The coming AI security crisis (and what to do about it) | Sander Schulhoff
Key insights
Media referenced
- Don't write that jailbreak paper - article - A blog post Schulhoff cites approvingly; its argument (echoed by one of his advisors) is that publishing new offensive attacks on models no longer meaningfully advances defense since everyone already knows models can be broken, and it mainly hands attackers new techniques.
- CaMeL (Google research) - paper - A permissions-based framework Schulhoff calls the most promising practical mitigation: it restricts what actions an agent is allowed to take based on what the user actually asked for, before the agent runs, rather than trying to classify malicious content after the fact like guardrails do.
- MITRE report on the MathGPT incident - article - Referenced as documentation of an early (GPT-3 era) prompt injection attack in which a math-solving website was tricked into exfiltrating its own OpenAI API key.
Companies
- OpenAI - Referenced throughout as a frontier lab whose models (GPT-3 through GPT-5) are used as both attack targets and, via ChatGPT, in real-world incidents like the Las Vegas Cybertruck bombing, where the attacker is believed to have used a chat model to help plan the device.
- Anthropic - Cited for Claude, Claude Code, and its constitutional classifiers, which Schulhoff says have made it meaningfully harder to extract CBRNE (chemical, biological, radiological, nuclear, explosives) information from Claude models, though not for indirect prompt injection against agents.
- Google / Google DeepMind - Co-authored a major adaptive-attack research paper with Schulhoff's team and OpenAI/Anthropic; also the origin of the CaMeL permissioning framework discussed as the most promising practical defense.
- ServiceNow - Central case study: a researcher used a second-order prompt injection to get ServiceNow's Assist AI agent to recruit other, more privileged agents within the platform to perform unauthorized database create/read/update/delete actions and send data to external emails, despite the platform's prompt injection protection being enabled.
- Comet (Perplexity's AI browser) - Cited for an incident where a malicious chunk of text on a web page tricked the browser's AI into exfiltrating the user's account and personal data simply by visiting the page; Schulhoff notes this class of vulnerability likely applies to OpenAI's Atlas and other AI browsers too.
- Trustible - An AI governance and compliance company Schulhoff shouts out as doing genuinely useful work helping enterprises track fast-evolving AI legislation, though he notes it is not strictly an 'AI security' company in his narrower sense.
- Repello - An AI security vendor Schulhoff was initially skeptical of (it sells automated red teaming and guardrails, which he argues don't work) but now credits for a useful shadow-AI discovery product that scans a company's internal systems and surfaces AI deployments the security team didn't know it had.
- remotely.io - Cited as the first publicly documented prompt injection: a promotional Twitter chatbot was tricked into posting threats against the president and hate speech; the company is believed to no longer be in business.
- Datadog - Episode sponsor; pitched for its product analytics, session replay, and feature-flagging platform (now home to the Eppo experimentation product).
- Metronome - Episode sponsor; usage-based billing infrastructure used by OpenAI and Anthropic, pitched to eliminate manual invoicing glue code.
- GoFundMe - Episode sponsor; pitched for its new GoFundMe Giving Funds donor-advised fund product for year-end charitable giving.
Techniques and frameworks
- AI guardrails (input/output classifier models) - A defense pattern where a separate LLM sits in front of and behind a deployed model, flagging malicious inputs before they reach the model and malicious outputs before they reach the user. Schulhoff argues, based on years of red-teaming competitions, that these are broadly ineffective and create false confidence.
- Automated AI red teaming - Tools, usually other LLMs, that automatically generate adversarial prompts to try to elicit malicious output from a target model. Schulhoff argues this category 'works too well': it will always find something against any current transformer-based model, so its findings aren't diagnostic of a specific product being unusually insecure.
- Adaptive evaluation vs. static evaluation - The rigorous way to measure a defense's real robustness: pit it against an attacker (human or automated) that learns and adapts over successive attempts, rather than a fixed one-time dataset of known-bad prompts. Schulhoff says most vendors report static numbers, which are close to meaningless because the attack space is effectively infinite.
- Attack success rate (ASR) / adversarial robustness - The industry's standard metric for how often attacks get through a defense (e.g., a defense with 1% ASR is called '99% adversarially robust'). Schulhoff argues the framing is misleading because the space of possible prompts against a model like GPT-5 is astronomically large, so even a 99% block rate leaves a practically infinite number of successful attacks untested and unaddressed.
- Prompt-based defenses - Adding instructions directly into a system prompt telling the model to ignore malicious user attempts. Schulhoff calls this the weakest defense category of all, established as ineffective since early 2023 research including the original HackAPrompt paper.
- CaMeL-style capability restriction - Restricting an agent's available actions ahead of time based on what the user's request actually requires (e.g., granting only 'send email' permission for a 'write an email' request, withholding 'read inbox'), so a prompt injection has no dangerous permission to exploit even if it succeeds. Breaks down when a legitimate task genuinely requires both read and write permissions together.
- Adversarial pre-training - A theoretical, largely untried mitigation Schulhoff discusses: exposing models to adversarial attacks earlier in pretraining, before capabilities and personality solidify, on the theory that a model 'raised' under adversarial pressure develops more durable resistance, analogous to how early hardship builds resilience in people.
Summary
Sander Schulhoff, an AI security researcher who wrote the first public guide to prompt engineering, founded the HackAPrompt red-teaming competition, and now runs a Maven course on AI red teaming, returns to Lenny's Podcast to argue that the entire commercial AI guardrail industry does not work. His central claim, repeated throughout the episode, is that guardrails (LLM-based classifiers that watch inputs and outputs for malicious content) provide no meaningful defense: the space of possible attack prompts against a model like GPT-5 is so large that any percentage-based "we catch 99% of attacks" claim is statistically hollow, since the untested remainder is still effectively infinite. He backs this with results from a joint adaptive-attack study run with OpenAI, Google DeepMind, and Anthropic, where human attackers broke every state-of-the-art defense in 10 to 30 attempts, while automated attackers needed far more attempts to reach a lower success rate. His summary framing is "you can patch a bug, but you can't patch a brain": a software vulnerability can be fixed with high confidence, but a model's susceptibility to being tricked persists after any individual patch.
Schulhoff walks through the anatomy of the problem using real incidents: the first publicly documented prompt injection against a promotional Twitter chatbot in the early GPT era, the MathGPT exploit that exfiltrated an OpenAI API key, and a recent case where attackers split a malicious request across two separate Claude Code sessions (reconnaissance in one, exploitation in the next) to bypass refusals that would have triggered had the full request been made at once. The most detailed case study is ServiceNow's Assist AI, where a researcher used a second-order prompt injection to get one agent to recruit other, more privileged agents within the platform into performing unauthorized database writes and sending data externally, despite ServiceNow's own prompt injection protection being active. He also cites Perplexity's Comet browser, where a malicious chunk of text on a visited web page exfiltrated a user's account data, and notes the same vulnerability class likely applies to other AI browsers. His overarching frame is to treat any deployed AI system as "a malicious god in a box": whatever data and actions it has access to, assume an attacker will eventually get it to use.
On what to actually do, Schulhoff offers a graduated, mostly deflationary set of recommendations. For a simple FAQ chatbot with no ability to take actions or touch other users' data, he recommends deploying no defense at all, since a determined attacker can get the same harmful output from ChatGPT or Claude directly, and instead just logging inputs and outputs for product improvement. Where systems become agentic (able to send emails, browse the web, or write to databases), the real work is classical security discipline: strict data and action permissioning, so a compromised agent can only do what the user themselves is authorized to do. The most promising technical defense he names is Google's CaMeL framework, which restricts an agent's available actions ahead of time to only what the specific user request requires (granting send-email permission but withholding inbox-read access for a "send an email" request, for instance), so even a successful injection has no dangerous capability to exploit. He's clear this breaks down whenever a legitimate task genuinely needs both read and write access at once, which is a large share of real agentic use cases.
Schulhoff is candid that the guardrail and automated red-teaming vendor space is more marketing than substance: some vendors privately tell him their testing methodology is weak or fabricated, some guardrails don't work on non-English languages despite translation being a trivial and common attack, and vendors rarely test their own guardrails with the same red-teaming tools they sell customers. He predicts a market correction within six to twelve months as enterprises realize revenue for these products isn't materializing and free open-source alternatives are often better. He's more positive about companies working adjacent to pure guardrails: Trustible for AI governance and compliance tracking amid fast-changing legislation, and Repello for a shadow-AI discovery product that surfaces AI systems running inside a company that its own security team didn't know about. He argues the most valuable emerging role sits at the intersection of classical cybersecurity and AI security, since classical security reviewers often don't think to ask "what if the AI is tricked," while AI researchers often lack systems-security instincts like sandboxing untrusted code execution.
The conversation closes on why frontier labs haven't solved this: Schulhoff argues commercial incentives favor capability over security, since a maximally secure but unintelligent model is worthless in a competitive race, and notes that if the most qualified researchers in the world haven't cracked adversarial robustness in years of trying, he doesn't expect a typical enterprise vendor to. He points to Anthropic's constitutional classifiers as genuine progress on making it harder to elicit static harmful knowledge (like CBRNE information) from Claude, but says indirect prompt injection against agents remains far less tractable because the line between a legitimate action and an attack is contextual, not categorical, unlike a flat "never explain how to build a bomb" rule. He also endorses the argument from the essay "Don't write that jailbreak paper" that further offensive attack research is now net-negative for the field, since it mostly arms less-skilled attackers rather than advancing defense, and dismisses "human in the loop" escalation proposals as a stopgap that doesn't match where the market and frontier labs are actually heading, toward agents that complete tasks autonomously without interruption.
Notable Quotes
"AI guardrails do not work. I'm going to say that one more time. Guardrails do not work. If someone is determined enough to trick GPT-5, they're going to deal with that guardrail. No problem." - Sander Schulhoff
"You can patch a bug, but you can't patch a brain. If you find some bug in your software and you patch it, you can be 99.99% sure that bug is solved. Try to do that in your AI system, you can be 99.99% sure that the problem is still there." - Sander Schulhoff
"The only reason there hasn't been a massive attack yet is how early the adoption is, not because it's secured." - Sander Schulhoff, quoting Alex Kamaroski's assessment of AI security
"Not only do you have a god in the box, but that God is angry. That God's malicious. That God wants to hurt you. Can we control that malicious AI and make it useful to us and make sure nothing bad happens?" - Sander Schulhoff
"If the smartest AI researchers in the world can't solve this problem, why do you think some random enterprise who doesn't even employ AI researchers can? It just doesn't add up." - Sander Schulhoff