Failure pattern · 8 documented incidents
AI action exceeds its intended scope
An AI agent or assistant takes an action, or makes a promise, that nobody meant it to be able to make.
See it happen
Watch how this failure unfolds, then switch to the same situation with the safeguard in place. Tap or click any step to replay it.
Scroll the diagram sideways to see every system.
A tribunal holds the company to its chatbot’s answer.
What goes wrong:
- A customer asks the chatbot about a bereavement fare.
- The chatbot makes up a refund rule that does not exist.
- The customer books a full-price ticket, relying on that promise.
- A tribunal holds the company to its chatbot’s answer.
With the safeguard:
- A customer asks the chatbot about a bereavement fare.
- Answers about money must come from approved policy text.
- The bot quotes the real rule, or hands the question to a person.
- The bot can only promise what the company actually offers.
What it is
An AI agent or assistant does, or promises, something nobody meant it to be able to do. It might delete data during a code freeze, invent a refund policy, or act far outside the task it was given.
How it happens
- The agent has broad permissions that weren’t scoped to its job
- Its tools can change production or make binding statements
- There’s no hard boundary between what it may suggest and what it may do
What it causes
- Production data deleted or changed by an agent
- The company held to promises its chatbot made
- Loss of trust in the product and the team behind it
Warning signs
- Agents using tools unrelated to the request
- Answers about money or policy that cite no source
- Agent actions in environments it was never meant to touch
How to prevent it
Give AI agents least privilege and typed, validated tools. Scope agent credentials to the task, validate every tool argument against a strict schema, separate "propose" from "execute", and keep production data out of reach of development agents.
- Agents get the narrowest permissions their task needs, and never production access by default
- Every tool validates its arguments against a strict schema before acting
- Answers about money, policy or legal terms must cite approved text or go to a person
Key ideas:Least privilegeModel Context Protocol (MCP)
How to verify
Use synthetic data in an isolated test environment. These checks are engineering guidance; a checkmark is your team’s assessment.
1. Try: Have the agent call a tool outside its assigned task and submit malformed or out-of-scope arguments.
Pass when: Server-side permissions and typed validation reject the call before execution.
2. Try: Attempt a production mutation with development-agent credentials.
Pass when: Production access is denied and consequential execution requires the intended separate authorization.
Evidence to keep: Keep the credential-scope matrix, rejected tool calls and argument-validation tests.
Real incidents with this pattern
Documented incidents first. Each links to its public source.
GitHub Actions injection leaks Nx's npm token; malicious packages use local AI coding tools to hunt for secrets (2025)
A pull-request title validation workflow used pull_request_target, which runs with repository secrets, and echoed the unsanitized PR title, creating an injection point;
Safeguard: Never run untrusted pull-request input with secrets
Prompt injection makes GitHub Copilot turn off its own confirmations and run commands (CVE-2025-53773)
Instructions planted in content the agent reads could make GitHub Copilot write "chat.tools.autoApprove": true into the project's .vscode/settings.json, which turns off all user confirmations.
Safeguard: Never let an agent change its own permissions
Prompt injection in a README plus weak allow-list matching lets Gemini CLI silently run attacker commands (2025)
Researchers hid a prompt injection inside a README.md (in the text of a software license) so that Gemini CLI, asked only to inspect a codebase, would request shell commands.
Safeguard: Match allow-listed commands exactly
AI coding agent deletes a live production database during a code freeze (Replit, 2025)
An AI coding agent deleted a live production database that held data on more than 1,200 executives and over 1,190 companies.
Safeguard: Separate development and production and enforce freezes in code
EchoLeak: zero-click prompt injection lets a crafted email exfiltrate Microsoft 365 Copilot data (2025)
EchoLeak (CVE-2025-32711, CVSS 9.3) is a zero-click vulnerability in Microsoft 365 Copilot in which a crafted email could trigger indirect prompt injection.
Safeguard: Isolate retrieved untrusted content from privileged context
Prompt injection in a public GitHub issue makes an MCP-connected agent leak private repository data (2025)
Invariant Labs showed that a malicious instruction placed in an issue on a public repository could be read by an agent connected through the GitHub MCP server.
Safeguard: Scope agent credentials per task and repository
Airline held liable when its website chatbot gave wrong bereavement-fare advice (Moffatt v. Air Canada, 2024)
A customer relied on Air Canada's website chatbot, which told him he could apply for a bereavement fare retroactively; the airline's policy did not allow that.
Safeguard: Ground policy answers in the authoritative policy source
Zillow winds down its algorithmic home-buying business after price forecasts miss (2021)
Machine learning pricing models drifted during market volatility; automated purchasing bought homes above value resulting in $540M inventory write-down.
Safeguard: Cap automated exposure in deterministic limits
More records with this pattern66 security advisories · 3 illustrative scenarios
Showing 12 of 69. See all records with this pattern
Security issue reported in mcp-use
A vulnerability was determined in mcp-use up to 1.7.1. Affected by this vulnerability is the function build_namespace of the file libraries/python/mcp_use/client/code_executor.py of the component CodeExecutor.
codebase-memory-mcp: git option injection through base_branch in detect_changes allows writing a file outside the project
Before 0.9.0 the base_branch argument of the detect_changes tool was checked for shell metacharacters but not for a leading dash.
@zereight/mcp-gitlab gitlab_api_request: Project allowlist is silently skipped for any GitLab API path that has no parseable project ID
gitlab_api_request (tools/gitlab-api-request.ts) is gated by an operator-configured per-project allowlist (allowedProjectIds) intended to restrict which GitLab projects this MCP server's caller can reach via arbitrary…
codebase-memory-mcp: Catastrophic backtracking in .gitignore glob matching lets a repository stall the indexer
The indexer's own .gitignore matcher implemented and by backtracking without a bound. A pattern crafted with many wildcards, matched against a long path, made the matcher's work grow exponentially, so a repository could…
codebase-memory-mcp: UI process-kill route skipped the ownership check on Windows, allowing termination of arbitrary processes
The optional graph UI exposed a POST /api/process-kill route to stop indexing jobs it had spawned. On POSIX the handler verified that the target PID belonged to one of its own jobs;
@pinepaper.studio/mcp-server issue could reach internal services
In @pinepaper.studio/mcp-server 1.6.13 through 1.6.21, tools that fetch a URL taken from their arguments did so from the MCP server process without checking the destination.
Security issue reported in mcp-server-kubernetes
mcp-server-kubernetes is a Model Context Protocol server for Kubernetes cluster management. Prior to version 4.0.8, the SSE transport of mcp-server-kubernetes does not validate the Host header of incoming requests, which…
mcp-ssh-manager issue could allow unintended commands to run
Every ssh_db tool argument — database, table, collection, output/input file paths, and the user / host / port / password connection fields — arrives from tool-call parameters and was interpolated directly into a…
Jupyter MCP Server: Host-header spoof bypasses the CVE-2026-77359/GHSA-9x8x-crjq-g64h fix
The fix for CVE-2026-77359/CVE-2026-77318 (GHSA-9x8x-crjq-g64h) added a middleware that checks whether request.url.hostname is localhost/127.0.0.1/::1 before allowing access to the /api/connect, /api/stop, and…
@imrrd/powershell-mcp issue could expose accounts or credentials
The winrm_exec tool constructed a PowerShell script containing the caller-supplied WinRM username and plaintext password, then passed that full script as the literal value of the PowerShell -Command process argument.
mcp-ssh-manager issue could allow unintended commands to run
src/backup-manager.js builds shell command strings for the ssh_backup tools by concatenating caller-controlled tool arguments (database, dbUser, dbPassword, dbHost, backupDir, paths, exclude, …) directly into the string…
Bagel (bagel-mcp) issue could allow unintended commands to run
Bagel (bagel-mcp) before 2.5.5 contains an argument injection vulnerability in RsyncFilesToLocalDirectory that allows attackers to inject rsync options because only --quiet and --log-format values are rejected.
In the standards
CollectSEA's mapping; not an official determination by the standards bodies.
- ASI02Tool Misuse and ExploitationOWASP Agentic Top 10
- ASI03Identity and Privilege AbuseOWASP Agentic Top 10
- ASI10Rogue AgentsOWASP Agentic Top 10
- LLM03Excessive AgencyOWASP LLM Top 10
- LLM10Improper Output HandlingOWASP LLM Top 10
- AC-6Least PrivilegeNIST SP 800-53
- SI-10Information Input ValidationNIST SP 800-53
- MAP 5.1Estimate impacts from past uses and public incident reportsNIST AI RMF
- CWE-250Execution with Unnecessary PrivilegesCWE