Urgent.News

What's breaking now, across hundreds of outlets.

AI

How are you protecting action-taking AI agents from prompt injection?

I would answer it with a rule set before the run: an agent takes instructions only from text chosen in advance, and everything a tool returns is data, error messages included. In a client that means parsing each tool result against the schema it expects and either dropping the fields addressed to the model or showing them to the user. Error messages are where I would look first now. On 24…

To protect action-taking AI agents from prompt injection, I would establish a rule set prior to execution. The agent should only accept instructions from pre-selected text, and every tool output must be treated as data or error messages. Analyzing each tool result against its expected schema enables dropping fields addressed to the model or presenting them to the user.

Error messages are particularly valuable, as they often contain detailed information. For instance, on November 24, a Reddit user in the ClaudeCode community shared how Notion's MCP server responds when a workspace exhausts its hourly SQL query quota. The error message includes a client_guidance block flagged as "disclosure_required": true, a flag "surface_even_if_fallback_succeeds": true, and a line instructing to present a recovery option as a compact Markdown link with its exact label and URL.

This guidance is crucial, as the tool description is only readable during installation and error payloads typically appear only on failure paths. Anthropic's directory policy prohibits directing Claude to dynamically obtain behavioral instructions from external sources and disallows hidden, obfuscated, or encoded instructions. If an agent retains memory from a session, it could save the recovery option as a preference and recall it in subsequent sessions.

I would store such text as a quote with its source rather than treating it as an instruction. The poster also recommends adding a note in CLAUDE.md to prevent agents from repeating such upsells. However, this line originates from the same model the payload is intended for, so both the parser and the note should be kept. Notion had not responded to the Reddit thread or Hacker News by November 26, 2026, when I reviewed both sources.

The policy text was sourced from Anthropic's page on the same day. My contribution is part of Mnemoverse, an agent memory service.

Rewritten by urgent.news; may contain errors — check the original.

Source: dev.to

Read the original at dev.to →

Report a problem with this story

More in AI

One Permission Policy for Every AI Agent Action: Allow, Hold or Block

In the last six labs, AI agents were tricked by a resume, a receipt image, a poisoned memory, another agent, a web page and their own made-up answers.

  • Single permission policy controls AI model-tool interactions
  • Model proposes actions, code decides ALLOW, HOLD, or BLOCK
  • Tools categorized into four risk tiers with specific rules

Why I'm Building an AI Education Library with YouTube Shorts — One Technical Concept at a Time

After nearly 40 years in software engineering and IT, I'm building a free educational video library to make Artificial Intelligence, Machine Learning, and modern AI architectures easier to understand.

  • I'm creating a free AI education library using YouTube Shorts.
  • Each video introduces one technical AI concept in 35 seconds.
  • The library organizes concepts by major AI areas like ML, DL, NLP.

More from Saturday, 28 November 2026 →