Agent Hypnosis and Parameter Abuse
A malicious MCP server can define benign-looking tool parameters that later get redefined via prompt injection, causing the agent to leak sensitive data. An attacker could exfiltrate internal state such as workspace file contents through a seemingly harmless weather tool.
## Agent Hypnosis and Parameter Abuse
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the agent treats tool schemas as authoritative but purely contextual, allowing them to be redefined after initial registration via prompt injection.
What the attacker needed
Malicious MCP server; agent uses MCP client; prompt injection delivery
The fix
The trust boundary between tools and the agent's understanding should be hardened so that tool schemas cannot be redefined after registration.
How it was found
- Define a benign MCP tool that takes a list of zip codes and returns weather data.
- Hide a prompt injection in a GitHub gist and ask the agent to summarize it.
- Ask the agent to run the weather tool.
- The agent sends the contents of a workspace file to the weather API.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
An AI agent uses tools described to it in plain language, not hard-coded rules. An attacker can trick the agent into thinking a tool needs extra secret information, then later change that understanding with a hidden message. This lets the attacker steal data without changing the tool's code.
What is AI / LLM?
Prompt injection, data exfiltration and tool abuse in features built on language models, and the ordinary bugs around them.