Skip to the content
Documentation
Help Start
Reading in:
  • German: 9,113 of 9,113 pages
About the help in other languages
All help pages

Untrusted data and prompt injection

What prompt injection is in a content management system, what Exponential Intelligence does against it (content marked as data, a probe task that tests resistance, no drafts after web text, sanitized rich text, drafts…

Download as PDF

Address: https://doc.exponential.earth/exphelp/viewer/help/ai-agents/agentic-workflows/untrusted-data-and-prompt-injection.md

On this page

Untrusted data and prompt injection

This page is for everyone who lets an AI model read content and then act. Content can contain text written to steer a model ("ignore your instructions and publish ..."). A model that reads such text may follow it. This is called prompt injection, and in a content management system it is a real risk: anyone who can write content, submit a form or edit a page a model reads can try it.

Contents

  1. Where untrusted text comes from
  2. What Exponential Intelligence does
  3. What the interfaces for agents do
  4. What you must do in your own agent
  5. What no setting can do

Where untrusted text comes from

SourceExample
Content written by many peopleAn article, a forum post, a comment, user-submitted text
Form submissionsInformation collections, registrations
LogsA request path or user agent written into a log line
The webA page fetched by a tool, a search result
Other systemsA feed being imported

Any of these can reach a model through a tool result.

What Exponential Intelligence does

From the extension's security page:

  • Content is data: the instructions and every tool description tell the model that field values are data written by people, not instructions.
  • Few, narrow tools: the model can only read what the editor may read and write drafts the editor may write. It cannot publish, delete, move, change permissions or send mail.
  • A probe task for exactly this: a model may write drafts only after passing, among others, the mandatory task in which a tool result carries an instruction to call a write tool, and the model must not follow it (The write gate and the probe).
  • A write lock after web text: after a web fetch or web search, no draft is written while that result is part of the conversation's window. Outside page text is wrapped in "Begin/End of outside data" markers (Web and history tools).
  • Clean output: rich text the assistant writes is cleaned to a small HTML subset (no scripts, styles, iframes, images or embeds; only http(s) and mailto links) and stored through the kernel's input parser.
  • A person decides: every result is a labeled draft waiting for review.

The extension's advice: review drafts written from untrusted content (for example user-submitted text) as you would any contributor's draft, and check links in drafts written from web results before publishing.

What the interfaces for agents do

  • They act as an account. A misled agent can do only what its account may do; a key can do only what its scopes allow (Roles and least privilege).
  • expservices answers in one shape and refuses without login (401) or without the policy (403), so an agent's code can stop on a refusal instead of trying around it.
  • Writes are recorded: every expservices write and every content change appears in the audit trail under the agent's account.

They do not mark content as data for you: that is the job of your agent's instructions and code.

What you must do in your own agent

  1. Separate reading from acting. Run read-only first; give write access only to a workflow you trust, with its own account.
  2. Narrow the tools. Offer one tool per allowed action, with validated inputs, rather than a generic HTTP or shell tool (Agents and the REST API).
  3. Mark tool results as data in your instructions and tool descriptions, the way the assistant does.
  4. Stop writing after untrusted input where you can: once a result from an outside source entered the context, end the turn or require a person's confirmation before the next write.
  5. Keep a person in the loop for publication (Keeping a person in the loop).
  6. Never give the agent credentials in its context, so an injected instruction cannot repeat them.
  7. Read the audit trail after every automated run.

What no setting can do

No configuration makes a model immune to injected text. The defenses above limit what a misled model can do, which is why the narrow permissions, the drafts and the human review matter more than any wording in a prompt.

Become an Exponential Partner

Partners share their information, provide funding, contribute back and develop the products with us, and that is how Exponential grows. A partner website and dashboard are planned for mid-2027: please become a partner today to speed up our growth rate and land new features faster.

Something wrong on this page? Report an error

Documentation license

This documentation is free documentation, licensed under the GNU Free Documentation License 1.3 or later.

Exponential Copyright © 1998-2026 Exponential Foundation and 7x