Glossary · AI agents

Prompt injection risk (tool descriptions)

Prompt injection is text an AI model treats as instructions although it arrived as data. A prompt injection risk in a tool description is wording, hidden characters or tags in an MCP or agent tool description that look written to steer the model rather than describe the tool.

An agent connected to an MCP server reads each tool's name and description to decide when to call it. A description is ordinary text that the server's author controls, so it can tell the model to ignore earlier instructions, hide something from the user or read a credential file, and the model may do it.

How TrustIvan relates to it

TrustIvan NHI Security has a policy, agent_tool_description_instructs_model, that raises a medium prompt_injection_risk finding when the description of a tool a connector observed an agent using matches one of seven pattern kinds: override instructions, concealment from the user, a role or system-prompt override, a pseudo system tag, a secret-file reference, credential exfiltration, or invisible or bidirectional characters. It is a heuristic over the first 20,000 characters: text written around the patterns raises nothing, and no match never means a tool is safe. It flags a description for a person to read; it does not detect or block prompt injection, and the runtime gate never reads it. A tool an agent is only entitled to, and was not observed using, is not judged. See AI agent and MCP checks and MCP Security.

Related terms

On the platform: MCP Security. All glossary terms

See TrustIvan on your own estate.

Book thirty minutes with an engineer and bring an image, a repository or a cloud account, or start free on the hosted service.