SynfraCore
Synfracore
Start Learning
Navigation

Academies

Platform

RoadmapsLabsCertificationsInterviewPYQsAI AssistantCareer
Start Learning Free Learning Roadmaps

AI Security — Cheatsheets

Quick reference — commands, syntax, and patterns

📄
Last updated Nov 2026
Expert Content

AI Security Quick Reference

text
# The core problem, in one line
An LLM has no structural boundary between "instruction" and "data" --
everything is just text in the same context window.

# Direct vs indirect injection
Direct   -- user's own message tries to override instructions (visible)
Indirect -- instruction hidden in a document/webpage/tool result the
            model processes as data (nobody specifically screens this)

# Realistic worst case of a successful injection, in order of severity
1. The model says something inappropriate (contained, embarrassing)
2. The model takes a wrong but harmless action
3. Data exfiltration through a tool the agent already legitimately has
4. A consequential action executes (delete, send, pay) with real impact

# Known exfiltration pattern worth recognizing
A tool that fetches/renders a URL (e.g. for an image) can leak data as
query parameters the moment the request fires -- NOT visible in the
model's printed text response, so text-output filtering alone misses it.

# Mitigations (layer several -- no single one is sufficient)
[ ] Least-privilege tool scoping -- only what THIS task needs, nothing more
[ ] Mark retrieved/tool content as data, not instructions, in the prompt
[ ] Monitor tool-call patterns, not just the visible text response
[ ] Human confirmation on CONSEQUENTIAL actions specifically
      (overusing this on routine actions trains reflexive click-through)

# Excessive agency -- a design risk, not an incident
Exists the moment a tool/permission is granted beyond what the task
needs, regardless of whether it's ever exploited. Fix before deploy,
not after.

# OWASP LLM risk categories -- recurring themes (verify current list/
# numbering against the live OWASP project page, it's periodically revised)
- Prompt injection (direct + indirect)
- Insecure output handling (executing/rendering model output unchecked)
- Training-data / supply-chain risk (data poisoning)
- Excessive agency (over-provisioned tool/permission access)
- Sensitive information disclosure (model reveals data it had but shouldn't share)
Share:
Join our Community
Daily tips, job alerts, interview help — join engineers learning together
→
Also Worth Exploring
← Back to all AI Security modules
← CertificationNotes →