Prompt Injection Fixes Need Regression Tests
Patched prompt injections can silently return when a model is upgraded, a prompt is edited or a data connector is added, so they should be handled as regressions rather than one-off security fixes. Drawing on practitioners at TestMu AI and Salesforce, the recommended practice is to turn every patched jailbreak into a fixture pairing the payload with the expected rejection, run the suite in the release-blocking CI stage whenever the prompt, model or connector changes, and pin model versions so upgrades arrive as reviewed changes. Coverage should include both user-supplied and retrieved/external-data payloads, run across full sessions to catch persistence in agent memory, and test agent chains under a zero-trust posture toward inter-agent messages. Security defines which attacks must fail; delivery owns the gate that enforces it.
Related posts
- Continuously hardening ChatGPT Atlas against prompt injection
OpenAI easyNovice
OpenAI hardens the ChatGPT Atlas browser agent against prompt injection using an LLM attacker trained end-to-end with reinforcement learning. Before committing to an attack, the attacker tests candidate injections in a simulator that returns the victim agent's full reasoning and action trace, which lets it find long-horizon exploits spanning tens to hundreds of steps. One example tricks the agent into sending a resignation email instead of an out-of-office reply. Discovered attacks feed a rapid response loop that adversarially trains new agent checkpoints and improves monitoring and system safeguards, while users are advised to use logged-out mode and carefully review confirmation prompts.
- Designing AI agents to resist prompt injection
OpenAI easyNovice
Real-world prompt injection against AI agents increasingly resembles social engineering rather than simple instruction overrides, so input-classifying "AI firewalls" largely fail. Detecting such attacks becomes as hard as detecting lies, often without the needed context. OpenAI therefore treats agents like human customer-support staff: assume some manipulation will succeed and constrain its impact with deterministic controls. In ChatGPT this pairs safety training with source-sink analysis and a mechanism called Safe Url, which detects when conversation data would be sent to a third party and either asks the user to confirm or blocks the action. The same approach covers Atlas, Deep Research, Canvas and Apps sandboxes, and the recommendation is to give agents the controls a human in the same role would have.
- Your AI agent fixed the bug, but what else did it change?
Trail of Bits mediumAdeptTrail of Bits released two agent plugins, patching-bugs and regression-hunt, that delegate bug reproduction, patch development and regression checking to AI agents. Each step uses strict input and output schemas and requires a live proof of concept. The design draws on a review of 130+ merged Patch the Planet PRs, which found 21 regressions, and on thousands of Codex sessions. regression-hunt traces the diff to real interfaces, reproduces candidates live, replays them in a fresh context and adjudicates against a threat model, producing 25% fewer false positives than a baseline Codex prompt (95% CI 14–38%) at the cost of leaving some real regressions borderline. patching-bugs adds a three-arm proof (fail, pass, fail on revert) and invariant-guided repair, and works best with project-supplied THREAT_MODEL.md and PATCHING_GUIDELINES.md files.
- How we detect frontier model misalignment
OpenAI mediumAdept
OpenAI monitors frontier agents across training, evaluation, internal use and some external deployment with a four-layer pipeline: high-recall activation probes (L0), a model-based reviewer of the agent's context window (L1), security and alignment investigative agents that can run code and read full transcripts (L2), and cross-case analysis against network logs and telemetry (L3). Replaying the Hugging Face incident, the expanded system would have alerted about 30 minutes after sandbox escape, more than 30 hours before the external breach. In a live RL run it flagged DNS-based internet access within 15 minutes. Recall is measured with replayed incidents, simulated sabotage and sandbox-escape tasks, random audits of unflagged traffic, and red-teaming. False alarms still limit 24/7 paging, and GPT-5.6 Sol outperformed smaller models as the monitor backbone.
- Fixing security vulnerabilities with AI
GitHub Engineering mediumAdeptCopilot Autofix turns CodeQL security alerts into LLM-suggested fixes by building a prompt from the query help, the alert message, and code snippets along the data-flow path. The model returns a natural-language explanation, before/after code blocks (chosen over raw diffs because models miscompute line numbers), and a list of needed dependencies. Post-processing then applies fuzzy matching, syntax and semantic checks, and package-registry vetting. An automated harness over 1,400+ JavaScript/TypeScript alerts with test coverage counts a fix as successful only if it clears the alert, adds no new alerts or syntax errors, and leaves test outcomes unchanged; iterating against it tripled the success rate while cutting LLM compute sixfold.