LLM Application Security

Injection across trust boundaries, tool and sandbox escape, secret exposure and threat modelling for agents.

12concepts
108flashcards
88minutes of reading
  1. 01 Agent Permissions and Blast Radius How to design tool access for a component you must assume is compromised, why capability scoping beats identity-based permissions here, and the reversibility test that decides what needs confirmation. advanced 7m 14 cards
  2. 02 Audience Binding and Token Exchange Why a bearer token that does not name its destination becomes a skeleton key the moment an agent passes it along, and the OAuth mechanisms — resource indicators, token exchange, protected resource metadata — that MCP now requires to stop it. advanced 8m 8 cards
  3. 03 Delegated Authority and the Confused Deputy The 1988 result that a privileged intermediary acting on ambiguous instructions will misuse its own authority, why every tool-using agent is that intermediary, and the capability discipline that fixes it where filtering cannot. advanced 8m 7 cards
  4. 04 Output Handling and Downstream Injection Why model output is untrusted input to everything it touches, the injection classes that follow from rendering or executing it, and the encoding discipline that prevents them. advanced 7m 12 cards
  5. 05 Prompt Injection as a Trust Boundary Failure Why injection is architectural rather than a prompting problem, the distinction between direct and indirect injection that decides severity, and why no known technique closes it. advanced 8m 12 cards
  6. 06 RAG Poisoning and Retrieval Trust How a handful of crafted passages in a corpus of millions can control what a RAG system says, why detection-based defences have fallen short, and why the durable controls are provenance on the write path and aggregation that bounds any single passage's influence. advanced 7m 7 cards
  7. 07 Red-Teaming and Security Evaluation for LLM Apps What automated attack generation covers, why a pass rate is not a security property against an adversary who retries, and how to structure an evaluation that informs a decision. advanced 7m 10 cards
  8. 08 Signed Mandates and Agent Accountability Why logs written by the agent cannot settle a dispute about what a user authorised, and how cryptographically signed mandates plus a hash-chained action record turn "the agent did it" into evidence someone can be held to. advanced 8m 7 cards
  9. 09 Threat Modelling an LLM System The trust boundaries specific to model-based applications, an inventory of assets and adversaries worth enumerating, and how to turn that into controls rather than a document. advanced 7m 12 cards