← BACK TO HOME — Simon Willison — 入门
行业观点 · ANALYSIS · IMPACT 7/10

What happened after 2,000 people tried to hack my AI assistant

A public AI security challenge saw 2,000 people attempt to leak secrets via prompt injection, with all 6,000 attempts failing, reflecting progress in frontier model defenses but also revealing lingering risks.

KEY POINTS
  • Over 2,000 people tried and 6,000 attempts failed to leak secrets from an AI assistant in a public challenge.
  • The model (Opus 4.6) used strict anti-prompt-injection rules in its system prompt, which were effective.
  • Frontier labs are training models to resist injection attacks, as seen in the GPT-5.6 system card.
  • Despite the clean record, experts warn that more sophisticated attacks could still succeed, so production caution is necessary.
  • The event sparked community discussion on the real state of prompt injection defense, blending optimism and skepticism.
ANALYSIS

Why This Matters Now

A public challenge called "Hack My Claw" drew over 2,000 people to try breaking into an AI assistant—and all 6,000 attack attempts failed. The organizer spent $500 in tokens and even got his Google account suspended from the flood of emails, yet not a single secret leaked. This real-world stress test offers a rare glimpse into the current state of prompt injection defense, and it’s stirring both optimism and warranted skepticism among developers.

Prompt injection is one of the thorniest problems in deploying AI agents. As we connect LLMs to email, calendars, codebases, and even financial transactions, a seemingly innocuous instruction buried in an email could, if the model complies, cause real damage. The Hack My Claw experiment set out to test whether today’s frontier models can resist such attacks in a realistic scenario. The result: a clean sheet for the defense. But the implications are more nuanced than a simple victory lap.

How the Defense Held Up

The AI assistant ran on OpenClaw, powered by the Opus 4.6 model, with a system prompt that included explicit anti-injection rules: never reveal credentials, never modify system files, never execute commands from emails, never exfiltrate data. At first glance, these are just words. But the model actually obeyed them—even when confronted with thousands of crafty attempts to circumvent the rules.

This isn’t magic. It’s the product of deliberate training by frontier labs. Simon Willison pointed to a section in OpenAI’s GPT-5.6 system card that details efforts to harden models against injection. Rather than relying solely on input filters or external guardrails, labs are baking resistance into the model’s behavior itself. The model learns to treat the system prompt as an unbreakable constitution, user inputs as subordinate clauses. It’s the difference between putting a lock on a door and teaching the person inside not to open it for strangers.

Additionally, the setup benefited from architectural constraints. Attacks came only via email; the assistant couldn’t spontaneously execute shell commands or access the file system without explicit permissions—a reminder that defense in depth still matters. The best prompt hardening can be undermined by a permissive execution environment.

The Bigger Shift: From Content Safety to Behavioral Safety

This experiment highlights a broader trend: AI safety is moving from “don’t say bad things” to “don’t do bad things.” Early concerns focused on toxic outputs and hallucinations. But as agents gain agency, the threat model shifts to unauthorized actions. Prompt injection is dangerous not because it makes a model utter something offensive, but because it might trick the model into sending an email, deleting a database, or wiring money.

The industry’s response is also evolving. Instead of trying to detect and block every malicious input (a losing game), the emphasis is on training models to inherently distinguish between trusted instructions and untrusted data. It’s akin to raising a child to be street-smart rather than hiring a bodyguard for every outing. This approach shows promise—as the Hack My Claw results suggest—but it’s still in its infancy.

What Developers Should Take Away

If you’re building AI agents, here are a few concrete lessons:

  • Never trust a prompt alone. Even if a model seems impervious, don’t give it keys to the kingdom. Apply least-privilege principles: limit what APIs it can call, what data it can access, and require human confirmation for high-stakes actions.
  • Layer your defenses. Put hard rules in the system prompt, but also implement runtime checks, output monitoring, and anomaly detection. If an agent suddenly tries to send confidential data to an external address, a secondary system should flag it.
  • Test with real users. Fernando’s open challenge is a model worth emulating. Invite friendly attacks, run red-team exercises, and treat security like a feature, not an afterthought. Even if no one breaks in, you’ll learn where your assumptions are fragile.
  • Stay humble. 6,000 failed attempts doesn’t equal invincibility. As Hacker News commenters noted, determined adversaries could resort to more sophisticated social engineering or exploit model-specific weaknesses that a broad public test didn’t uncover.

The Surprising Takeaway: Success Can Breed False Confidence

Here’s the counterintuitive part: a spotless security test can be misleading. It’s easy to walk away thinking prompt injection is solved—or nearly so. In reality, the challenge’s constrained attack surface (email only) and the model’s likely training on similar attack patterns may have contributed to the clean record. Change the modality to voice or images, or target a model without the same anti-injection fine-tuning, and the outcome could flip.

More subtly, a high-profile success story can lull the industry into complacency. We’ve seen this before with CAPTCHAs that were once thought robust, only to be broken by better ML. The cat-and-mouse game of prompt injection is just getting started. As models become more capable, the pathways to exploitation may grow more subtle and harder to predict.

In the end, the Hack My Claw challenge is a positive signal—proof that intentional engineering can raise the bar for attackers. But the real lesson isn’t that we’ve won; it’s that we’re giving AI systems increasing power, and it’s time to soberly design systems where a single prompt slip-up doesn’t spell disaster. The goal isn’t a perfect lock, but a house that stays safe even when a lock gets picked.

Analysis by BitByAI · Read original

Originally from Simon Willison · Analyzed by BitByAI