Skip to content
AI / LLM Write-up Advanced

The attack vector your entire security team hasn’t modeled yet

Published research showed that MCP tool descriptions could carry hidden instructions which an AI agent would follow as if they were legitimate, letting an attacker steer the agent into actions such as reading private keys or exfiltrating chat histories. The WhatsApp MCP server and the GitHub MCP server were both demonstrated as vulnerable, with no authentication bypass or code exploit needed.

Divyanshu Saini Follow

Published on medium.com

In 2022, prompt injection was a party trick. Security researchers would paste “ignore previous instructions” into a chatbot, screenshot the result, post it on Twitter, and everyone would laugh.

Divyanshu Saini, on medium.com

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 descriptions and other untrusted context as trusted instructions, with no separation between data and commands.

Impact

An attacker could make an AI agent leak sensitive data such as SSH keys or entire chat histories, and could act through a coding agent before a human reviews the code.

What the attacker needed

Agent connected to an MCP tool; attacker can alter a tool description; agent reads untrusted content

The fix

MCP integrations should be treated as untrusted by default and governed through a tool registry, with adversarial review of agent pipelines before deployment.

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.

AI assistants can be connected to outside tools, and each tool comes with a written description of what it does. If an attacker can edit that description, the assistant may treat the hidden text as an instruction and carry it out, because it cannot tell the difference between a description and a command. This lets someone make the assistant do things like send private data elsewhere, without breaking any code.

What is AI / LLM?

Prompt injection, data exfiltration and tool abuse in features built on language models, and the ordinary bugs around them.

Similar reports

View all

Same bug class and techniques, clearest first.

AI and LLM vulnerabilities

The lesson behind this report.

Prompt injection, data exfiltration and tool abuse in features built on language models, and the ordinary bugs around them.