Overview
Curated: · Written: · Reviewed:
AI Security, Governance & Responsible AI
In one line
Controls for LLM systems: treat retrieved content and model output as untrusted, enforce access and spend limits on the server, and tie every governance claim to current evidence. Reach for this whenever a model reads external content, calls tools, or touches personal data.
Key definitions
- Direct injection: the user tells the model to override its instructions.
- Indirect injection: instructions arrive inside content the model reads, such as retrieved documents, web pages, tool results or email.
- Least privilege: the agent holds only the tools and scopes the task needs. This is the control that still holds when injection succeeds.
- Excessive agency (OWASP LLM06): an irreversible or high-impact action taken on bad reasoning.
- Reauthorization at point of use: the ACL is checked again before disclosure, not only at index time.
- Applicability analysis: the memo that records which legal duties apply, and why, by role, classification and date.
How it works
Untrusted input reaches the model, which only proposes text or tool calls. The server decides what happens.
- The server checks each tool call against its grant, argument schema and allowlist. The model is never the enforcement point.
- Limits apply to the running total, not each call. A per-call cap with no per-order cumulative cap lets repeated calls exceed the amount.
- Retrieval filters candidates by ACL from authenticated server state before the top-k chunks reach the prompt, and the answer is rechecked at disclosure.
- Logs keep metadata and scores. Full prompts and completions are stored only where a stated purpose needs them, and deletion jobs enforce retention.
When to use and when not to
| Situation | Control to apply | Trade-off |
|---|---|---|
| Model reads external content and can act | Least privilege, allowlists, argument validation, approval gate | Latency and human review cost |
| Summarizer with no side effects | Zero tools, output validation | Little agency to lose |
| Shared vector index across tenants | Partition by tenant, filter before retrieval | Per-tenant storage and indexing cost |
| Model informs a decision about a person in the EU | Applicability analysis by counsel before launch | Time before ship |
| Hosted provider receives personal data | Minimize input, confirm contract terms and retention | Vendor dependency |
Traps interviewers probe
- Treating the system prompt as a boundary. Fix: assume injection succeeds and cap what a successful injection can reach.
- Per-call limits read as total limits. Fix: enforce cumulative caps per order and per run, with idempotency keys so retries cannot double-charge.
- Nightly ACL snapshots. Fix: check membership at query time. Revocation latency equals your cache or index refresh interval, so measure it.
- Treating a framework checklist as compliance. Fix: NIST AI RMF functions give you a control structure. The EU AI Act needs a role, classification and applicability memo.
- Reading a model card as proof of fitness. Fix: a card supports only the slice it evaluated. Test your own traffic mix and segments. A valid C2PA signature with a failing hard binding hash means the file changed after signing, so the assertions no longer describe this file. Human overrides near zero can mean rubber-stamping, not accuracy.
Interview tips
Open with the assumption: "I assume injection succeeds, so the question is what the model can reach."
Expect these follow-ups:
- How you measure revocation latency.
- How the human gate avoids rubber-stamping: show the actual arguments and measure override rates.
- What triggers rollback in production.
- What the applicability memo says for a specific deployment.
- Whether the dataset's coverage matches your traffic mix.
30-second answer outline:
- Name the failure mode and the surface it enters through.
- State the server-side control that holds even if injection succeeds.
- Name the test and the metric that proves it.
- Name the owner and the rollback trigger.
Feedback on this overview
Log in free to save your progress and keep bookmarks and notes for a quick revision before your interview.