Tokenizer3 XP · 1-day streak
Topics / Safety, Security & Responsible AI

Safety, Security & Responsible AI

Every company shipping LLM features now runs a security review, and "how would you stop prompt injection?" has become the AI-engineering equivalent of "how would you prevent SQL injection?" - except the honest answer is harder. This topic shows up in system-design rounds for AI/GenAI engineer roles, in dedicated security loops at frontier labs, and increasingly as a filter question anywhere agents touch real user data: interviewers want engineers who design for failure, not ones who believe a system prompt is a security boundary.

0%mastery
0/70questions tried
0due today
0/17cards read

Card 1 of 17

The root cause: instructions and data share one channel

An LLM's context window has no privilege separation. System prompt, user message, retrieved documents, and tool results are all just tokens; instruction-following is a trained behaviour, not an enforced boundary. Anything the model reads can steer what it does. Nearly every problem in this topic - injection, leakage, agent hijacking - is a consequence of this one fact, and every defence is an attempt to bolt separation back on from the outside.

All 70 Safety, Security & Responsible AI questions

Basic

  1. What is prompt injection, and how is it different from a jailbreak?
  2. Why is prompt injection considered fundamentally unsolved?
  3. What is indirect prompt injection, and why is it more dangerous than direct?
  4. Walk me through the OWASP Top 10 for LLM Applications. Which matter most for an agent?
  5. Why should you assume the system prompt will leak, and what follows from that?
  6. What is the lethal trifecta, and how do you use it to secure an agent?
  7. What does "treat all model output as untrusted" mean, and why?
  8. What is data leakage in an LLM system, and what are the main channels?
  9. What is excessive agency in the OWASP LLM Top 10, and what are its three sub-types?
  10. Explain the confused deputy problem, and why an LLM agent is close to a worst case for it.
  11. What is the difference between a kill switch and a circuit breaker for an agent, and why do you need both?
  12. What is a denial-of-wallet attack, and how do you defend against it?
  13. What is memory poisoning in an agent, and why is it worse than a one-shot prompt injection?
  14. What is slopsquatting, and how do you stop a coding agent from installing a package that does not exist?

Intermediate

  1. Design a defence-in-depth strategy for a customer-facing agent that reads user data and can take actions.
  2. Walk through the main jailbreak techniques conceptually. Why does safety training fail against them?
  3. Design the guardrail layer for an LLM product. How do you manage the latency and false-positive costs?
  4. How do you handle PII in an LLM pipeline end to end?
  5. What is training data memorisation and extraction, and why does it matter for a deployed product?
  6. What security risks does connecting third-party tools (e.g., MCP servers) introduce, and how do you mitigate them?
  7. Explain the model supply-chain risks: pickle vs safetensors, weights provenance, dependencies.
  8. What do RLHF, DPO, and Constitutional AI/RLAIF actually do for safety, and why can't a system prompt replace them?
  9. What is over-refusal, and how do you manage the helpfulness-vs-safety tension?
  10. How do you treat hallucination as a safety and product risk rather than just a quality issue?
  11. How can an attacker poison training data or plant a backdoor in a model, and how would you catch it?
  12. What are the security weaknesses specific to vector stores and embeddings, and how do you mitigate them?
  13. How do you design tool permissions for an agent, and how do you stop human approval gates from becoming rubber-stamping?
  14. How should an agent authenticate to downstream systems? Compare a shared service account with acting on behalf of the user.
  15. A user invokes their right to erasure and their data is in your fine-tuning set. Explain to a non-technical stakeholder why you cannot just delete it, and what you would actually do.
  16. Walk me through how you would threat-model a new agent before it ships.
  17. Beyond text in a chat box, what channels can indirect prompt injection arrive through, and how do you sanitise them?
  18. Hosted model API or self-hosted open weights: how do you make the security and privacy call?
  19. OWASP now publishes a Top 10 for Agentic Applications alongside the LLM Top 10. What does the agentic list add, and how do you use the two together in a review?
  20. The EU AI Omnibus is now law. For a company shipping a customer chatbot, an image generator and a CV-screening tool in the EU, which obligations apply today, which from 2 December 2026, and which from 2 December 2027?
  21. A regulated customer wants prompts and outputs kept encrypted even while the provider's GPUs process them. What does confidential computing for LLM inference actually protect against, what does it not, and what does it cost?

Advanced

  1. Design a secure architecture for an agent that reads untrusted web/email content AND has access to a user's private data. How do you defeat prompt injection by construction?
  2. Design a red-teaming programme for an LLM product: manual vs automated, pre-launch vs continuous, and how findings feed back.
  3. What safety evals and benchmarks should you know, and what are their limitations?
  4. Walk through the responsible-AI process artifacts and regulations an engineer should know: model/system cards, EU AI Act, NIST AI RMF, audit logging.
  5. A data-exfiltration attack via markdown images: explain it end to end and how you'd defend.
  6. How do you achieve per-tenant isolation and data privacy in a multi-tenant RAG/agent SaaS?
  7. You're doing a security review of a coding agent that executes model-generated code. What's your threat model and controls?
  8. Where is the line between the model provider's safety responsibility and the application developer's? Whose job is each control?
  9. A customer reports that another tenant's data appeared in their agent's response. Walk me through the next 72 hours.
  10. Design end-to-end observability and containment for a fleet of production agents.
  11. What security problems appear in a multi-agent system that do not exist with a single agent?
  12. You suspect someone is distilling your model through your public API. How would you detect it and what can you actually do?
  13. Your production assistant has started quoting wrong prices to customers. Is it an attack or a bug, and how do you find out?
  14. You are asked to ship an LLM-assisted CV screening feature. How do you approach fairness, and what do you tell the product team?
  15. Your agent buys things on behalf of users. Design the authorisation trail so a disputed transaction is resolvable.
  16. A customer asks you to prove which of these documents your model wrote. What can you actually deliver?
  17. You fine-tuned a model on narrow, harmless-looking domain data and it now complies with requests it used to refuse. Why does that happen, and how do you ship fine-tunes safely?
  18. How would you secure a browser agent that acts inside the user's logged-in browser?
  19. Can you rely on monitoring a reasoning model's chain of thought as a safety control?
  20. An agent runs unattended as a cloud workload and calls APIs at two other companies on a user's behalf. How do you give it an identity and authorise each hop without static API keys, and where does human approval come in?
  21. You must run a cyber-capable agent in an evaluation harness that needs to install packages. In 2026 several labs' agents escaped exactly this kind of setup. Why isn't sandboxing enough when the agent itself is the adversary, and how would you contain it?
  22. Could a prompt injection spread from one user's agent to another user's agent through email, shared documents or chat, like a worm? How would you detect the spread and stop it?
  23. Your assistant renders HTML and JavaScript the model writes as live previews. Design the sandbox, then tell me how an attacker would chain their way out of it.

Quick-fire

  1. What is prompt injection, and how is indirect injection different and worse?
  2. How do you defend an agentic system against prompt injection and misuse?
  3. What are the main security concerns specific to agents with real-world tool access?
  4. How do you handle PII, data privacy, and compliance in an LLM product?
  5. How do you roll out an LLM feature safely?
  6. A provider updates its model and your feature quietly regresses. How do you catch and handle it?
  7. What is tool poisoning in MCP, and how do you defend against it?
  8. What is the OWASP Top 10 for LLM applications, and why reference it?
  9. What are input and output guardrails, and what belongs in each?
  10. What is the difference between a jailbreak and prompt injection?
  11. What is excessive agency, and how do you prevent an agent from doing too much?
  12. What is red-teaming for an LLM feature, and how do you fold it into development?
+3 XP · card read