Cyberlium
Cyberlium
Cyberlium on Android·Google Play Store

Learn cybersecurity with hands-on labs and AI mentor support on your phone.

Mod 6 · Les 2/5
In progress
Module 6•Lesson 2 of 5•⏱️ 15 min read•Beginner+40 XP

RAG and Plugins

RAG and plugin literacy — retrieval trust boundary, tool permissions, indirect injection surface — on `$AI_LAB` RAG stub only.

RAG and Plugins
00:00/03:14

Visual · t32_rag_and_plugins

RAG and plugins = named trust-boundary rows. $AI_LAB. Original Cyberlium.

RAG pulls untrusted text into context — name retrieval and plugin permission rows on YOUR lab stack before granting tools to prod agents.

RAG and plugin literacy names: retrieval source trust category, chunk poisoning surface, indirect prompt injection via documents category, plugin/tool permission scope, allowlist vs open tool category, and human-in-the-loop gate for sensitive actions. Analyst documents RAG/plugin threat matrix on `$AI_LAB` instructor RAG stub or YOUR local vector store — maps two indirect injection paths and one excessive plugin permission row — without indexing stranger websites without permission, without auto-executing shell tools on lab default, without plugin abuse against third-party APIs. Cyberlium links Module 3 injection literacy to RAG context — defender vocabulary on YOUR apps. Refused: scrape-and-poison stranger sites, weaponized plugin chains, unauthorized API tool calls. Lab row: RAG/plugin matrix (surface, risk, control) four rows.

1. Named RAG risks

Untrusted retrieval, chunk poisoning, indirect injection, stale context — four literacy anchors.

Trust boundary row states what sources YOUR lab RAG may ingest.

Command guide

Try these commands — Named RAG risks

═══ LINUX / macOS (Terminal Practice) ═══

Check system state and user context

Command — copy this

id
whoami
uname -a

Inspect network sockets listening for connections

Command — copy this

ss -tuln 2>/dev/null || netstat -tuln

Audit active processes

Command — copy this

ps aux | grep -v "\[" | head -15

═══ WINDOWS (POWERSHELL) ═══ Query user identity and system information

Command — copy this

whoami /all
Get-ComputerInfo | Select-Object CsName, OsName, OsVersion

Primary tools to practice this lesson: grep, curl. Reference sites: OWASP LLM07/LLM08 (https://owasp.org/www-project-top-10-for-large-language-model-applications/); OpenAI RAG (https://platform.openai.com/docs/guides/retrieval); NIST AI RMF (https://www.nist.gov/itl/ai-risk-management-framework). Run every command in the box — install first, then the usage lines — only on YOUR lab / program scope.

2. Plugin permission rows

Tool allowlist, scoped credentials, confirm-before-action, rate limits — four defense anchors.

Excessive agency (LLM08) ties to open plugin design — document restrict row.

3. Refused

No scrape-poison stranger content; no weaponized plugin exploit chains.

RAG literacy supports secure app design — not unauthorized data harvesting.

4. What you ship: RAG/plugin threat matrix

Four surface rows + control each + NEVER weaponized plugin chain line.

5. What you record before the next lesson

RAG/plugin threat matrix path.

6. Wrong vs right: stranger SaaS vs YOUR toy LLM

Worked failure — same MSF word, opposite target. Right never needs a café Wi-Fi or classmate laptop.

  • Wrong: Index competitor docs into lab RAG then run injection PoC against their prod bot.
  • Right: RAG/plugin matrix from `$AI_LAB` stub. Next: Output Handling.
Hands-on Exercise

Mission: RAG/plugin threat matrix

1) Name four RAG/plugin risk surfaces. 2) Control row per surface. 3) Link one row to Module 3 injection. 4) Write NEVER weaponized plugin chain line.

Pro Tip

Stuck? Ask Cyberlium AI Mentor

Ask Mentor: “Human-in-the-loop — minimum gate literacy?”

Practice QuizQuestion 1
Multiple choice
Q1

APPLY: RAG literacy uses:

Practice QuizQuestion 2
True or False
Q2

APPLY: True or False: Indirect injection via RAG is a named risk.

Practice QuizQuestion 3
Multiple choice
Q3

APPLY: Plugin defense includes:

←Previous: OWASP LLM Top10
Answer 3 practice quiz questions to unlock XP reward. (0/3 answered)
Skip quiz & read next →