Attack knowledge

Prompt injection attacks

Prompt injection can enter model context directly through user input or indirectly through external content. This hub organizes the attack surface by interaction pattern, content source and affected system.

DIRECT

Direct Prompt Injection

Direct path
UntrustedAttacker
UntrustedUser Input
SystemLLM

The attacker supplies competing instructions through an intended user-input channel.

View foundation
INDIRECT

Indirect Prompt Injection

Indirect path
UntrustedAttacker
UntrustedExternal Content
SystemRAG / Tool / Agent
SystemLLM

Instructions reach the system through external content it retrieves, reads or processes.

View foundation
Direct and indirect prompt injection
CharacteristicDirectIndirect
SourceUser inputExternal content
PathImmediateVia data or tool path
Primary boundaryInput channelContent processing

Attack knowledge areas

The published taxonomy groups the attack knowledge by interaction and entry path, external content vector, agent and tool path, advanced and lifecycle pattern, and security objective. Every entry leads to a published article.

Interaction patterns

External content vectors

Agent and tool paths

Advanced and persistent patterns

Security objectives