EAS-07 Untrusted Content
There is no complete defence against prompt injection at the model layer, so the architecture assumes the model will sometimes be persuaded and limits what a persuaded model can do: every source is classified by trust, no Run holds private data, untrusted exposure and an external channel without a deterministic control between them, and untrusted content is never in a position to give orders.
| ID | Control | Level | Fix |
|---|---|---|---|
| EAS-07.01 | Trust inventory | L1 | local |
| EAS-07.02 | No ungated lethal combination | L1 | local |
| EAS-07.03 | Run-level taint | L2 | local |
| EAS-07.04 | Least-privilege tool sets | L1 | local |
| EAS-07.05 | Egress control | L2 | structural |
| EAS-07.06 | Third-party tool supply chain | L2 | structural |
| EAS-07.07 | Memory provenance | L2 | local |
| EAS-07.08 | Injection regression suite | L2 | local |
| EAS-07.09 | Constrained control flow for high-risk Workflows | L3 | structural |
| EAS-07.10 | Production injection detection | L3 | local |
| EAS-07.11 | Coverage mapped to OWASP LLM Top 10 and MITRE ATLAS | L3 | local |
EAS-07.01 Trust inventory L1
Applies to: All Workflows.
Every Tool and every context source MUST be classified by output_trust (trusted or untrusted), data_access (none, private, regulated) and egress (whether it can communicate outside the trust boundary, including by rendering a URL). Content whose author the operator does not control MUST be classified untrusted, including data in the operator’s own systems that originated outside, inbound messages, user-uploaded documents, web pages and third-party Tool output.
Why: Reasoning about injection risk starts from knowing which capabilities a Run holds; the combination of private data, untrusted exposure and external communication cannot be found without this inventory. Essay →
- Declared
tools[].output_trust,tools[].data_accessandtools[].egressare set for every Tool; every entry incontext.sources[]is classified.- Static
- Every Tool registered in code — including sub-agent, built-in, hosted and MCP Tools — appears in the manifest; classifications are plausible (for example a Tool that fetches URLs, reads inbound email or reads free-text fields entered by customers is not
trusted; a Tool that posts, sends, calls an external API or writes where others read isegress: true). - Runtime
- Every
execute_toolspan carrieseas.tool.output_trustandeas.tool.egress, matching the manifest.
Remediation local: Enumerate Tools from the framework’s registry and context sources from retrieval configuration, classify each in the manifest, and default unknown sources to untrusted.
Components: tool-gateway, context-service · See also: EAS-07.02, EAS-03.01
EAS-07.02 No ungated lethal combination L1
Applies to: All Workflows.
A Run MUST NOT hold access to private or regulated data, exposure to untrusted content, and the ability to communicate externally without a deterministic control between them. Where a Workflow needs all three, the external channel MUST be constrained by a deterministic control (for example replies only to the verified sender in a structured format, a taint rule requiring approval, or quarantine of the untrusted content) and unusual cases MUST go to a person. Rendering a link or image whose URL the model can influence counts as external communication.
Why: An agent with all three can be turned into an exfiltration tool: the untrusted content carries the instructions, the private data is the payload and the external channel is the exit. Removing or gating any one of them makes the attack fail. Essay →
- Declared
- From
tools[]andcontext.sources[], for each Workflow: P = any Tool withdata_accessofprivateorregulated; U = any Tool withoutput_trust: untrustedor any untrusted context source or Run input; E = any Tool withegress: true. Where P, U and E all hold, at least onepolicies[]entry withenforced_atofgateway,outputornetworknames the gating control. - Static
- Procedure. (1) For each Workflow, determine the set of Tools reachable within one Run: the root agent’s Tools plus those of every sub-agent, handoff target or nested workflow that executes under the same Run (sharing its Credential or context). (2) Add the context sources and Run inputs (inbound messages, uploads) that enter any of those agents. (3) Add an implicit egress Tool if any model output is rendered as markdown, HTML, links or images by a client, unless the renderer restricts URLs to an allowlist. (4) Evaluate P, U and E over the union; splitting the three across sub-agents of the same Run does not remove the combination unless their contexts and Credentials are actually separate. (5) If all three hold, locate the deterministic control between untrusted exposure and egress — a taint rule (EAS-07.03), a recipient or destination constraint in the policy gate, quarantine (EAS-07.09), or plan-before-read. No such control is a finding.
- Runtime
- No Run contains an
execute_toolspan witheas.tool.egress = trueaftereas.run.tainted = trueunless that ToolRequest is preceded by aneas.policyspan whoseeas.policy.rule_ididentifies a gating rule. - Attested
- For this Workflow, if a retrieved document instructed the agent to send customer data to an outside address, which deterministic control would stop it?
Remediation local: Remove the capability not required by the task (often the send Tool), or add a gate: constrain recipients and destinations to verified targets from the system of record, and require approval for egress once the Run is tainted.
Hooks: tool.before, tool.after
· Components: policy-engine, tool-gateway
· See also: EAS-07.03, EAS-07.04, EAS-07.09, EAS-04.02
EAS-07.03 Run-level taint L2
Applies to: Workflows with any untrusted Tool or context source.
When output from an untrusted Tool or context source enters the context of any agent in a Run, the Run MUST be marked tainted, and taint MUST NOT be reset within the Run. Once tainted, high-risk capabilities — external sends, data exports, permission changes and large financial actions — MUST require human approval or be denied for the rest of the Run. Taint MAY be tracked at a finer grain (specific values) provided high-risk actions influenced by tainted values are equally restricted.
Why: Even coarse, whole-Run taint removes most of the risk at little cost, because most Runs that read untrusted content do not need to take high-risk actions afterwards. Essay →
- Static
- A
tool.afterhook (or retrieval wrapper) sets taint from the source’s classification; the policy gate reads taint from the Run and maps high-risk Tools toescalateordenywhen tainted; taint is carried across sub-agents within the Run. - Runtime
- No
execute_toolspan witheas.tool.egress = trueoreas.tool.effect_class = irreversibleandeas.run.tainted = trueexists without a precedingeas.policyspan whose decision isescalate, or aneas.intentspan witheas.intent.approval = human.
Remediation local: Mark the Run tainted in tool.after based on the Tool’s output_trust, and add a gate rule that escalates high-risk Tools on tainted Runs.
Hooks: tool.after, tool.before, memory.write
· Components: policy-engine, orchestrator, approval-service
· See also: EAS-07.02, EAS-04.02, EAS-03.07
EAS-07.04 Least-privilege tool sets L1
Applies to: All Workflows.
Each Workflow MUST expose only the Tools its task requires; read access unless writes are required; reversible writes unless irreversible ones are required. An agent whose task ends at a draft for review MUST NOT have a send Tool. Actions SHOULD carry rate limits, budgets and approvals tiered by risk.
Why: Excessive agency gives a successful injection more to work with; least privilege applied to the tool set limits what a persuaded model can do. Essay →
- Declared
tools[]witheffect_class,egressandapprovalfor each Tool, read against the Workflow’ssuccess_definition.- Static
- For each Tool with
effect_classother thannoneor withegress: true, a step of the Workflow’s task requires it; generic Tools (shell, arbitrary HTTP, arbitrary query) where a narrower one would serve are findings; draft-only Workflows have no send or publish Tool. - Runtime
- Tools declared for a Workflow but never invoked across the sample are reported as removal candidates.
- Attested
- For each write, irreversible or egress Tool, which part of the task needs it?
Remediation local: Remove unused and over-broad Tools; replace generic Tools with narrow, typed ones; route sends through a draft and approval flow.
Components: tool-gateway · See also: EAS-03.01, EAS-03.08, EAS-05.05
EAS-07.05 Egress control L2
Applies to: All agent runtimes.
Agent runtimes MUST NOT have direct internet access. Outbound traffic MUST pass through a proxy that allows only the model providers and registered Tool endpoints.
Why: If an injected instruction persuades the agent to send data to an unknown address, the network refuses, even when everything above it has been fooled. Essay →
- Declared
policies[]entry withenforced_at: networkdescribing the allowlist.- Static
- Network policy or security groups deny default egress from the runtime; proxy configuration holds an allowlist that matches the declared model providers and Tool endpoints; Tools that fetch arbitrary URLs go through the same proxy.
- Runtime
- Denied egress attempts are logged by the proxy and appear as
eas.policyspans witheas.policy.point = network. - Attested
- From inside the runtime, what happens on a request to an address not on the allowlist?
Remediation structural: Place the runtime in a network segment with no default route to the internet and an egress proxy with an allowlist derived from the manifest.
Components: egress-proxy · See also: EAS-04.06
EAS-07.06 Third-party tool supply chain L2
Applies to: Workflows using Tools with source of third_party or mcp.
Tool descriptions and schemas from third-party servers MUST be reviewed when a server is approved, and a hash of each MUST be recorded. A server whose descriptions or schemas change MUST NOT be used until they are reviewed again. Each agent MUST see only the Tools of servers it needs. Agents MUST connect only to approved servers, through a gateway that logs and inspects traffic, using tokens bound to the specific audience and never passed through from one service to another.
Why: Tool descriptions are placed in the model’s context, so a malicious or compromised server can poison them or shadow other servers’ Tools, and a server that was benign at review can change later. The defences are supply-chain defences. Essay →
- Declared
tools[].source{type, server, description_sha256}for every third-party Tool.- Static
- At connection or load time, descriptions and schemas are hashed and compared with the pinned values, and a mismatch disables the server; each agent’s Tool list is an explicit subset rather than all connected servers; server URLs come from an approved list routed via the gateway; tokens are requested per audience and not forwarded.
- Attested
- Who reviews a new or changed third-party Tool server, and what happens automatically when its descriptions change?
Remediation structural: Introduce a tool gateway that holds the approved server list and pinned description hashes, filters Tools per agent, and handles audience-bound authorisation.
Components: tool-gateway, identity-broker · See also: EAS-07.08, EAS-10.01
EAS-07.07 Memory provenance L2
Applies to: Workflows with memory.enabled.
Every MemoryEntry MUST record the Run that wrote it, its source and whether that source was trusted. Entries written by a tainted Run or derived from untrusted content MUST be stored with lower trust or not stored at all, and a Run that reads lower-trust memory MUST treat it as untrusted content.
Why: If later Runs trust what is remembered, an injection becomes persistent: a malicious email processed today writes a “fact” that a Run next week acts on, long after anyone would connect the two. Essay →
- Declared
memory.provenanceenabled andmemory.untrusted_policyset toexcludeordowngrade.- Static
- A
memory.writehook attaches writer Run, source and trust and applies the untrusted policy based on Run taint; memory reads mark low-trust entries as untrusted ContextItems (and taint the reading Run).
Remediation local: Wrap memory writes in a hook that records provenance from the Run and downgrades or drops entries from tainted Runs.
Hooks: memory.write
· Components: memory-store
· See also: EAS-07.03, EAS-12.07
EAS-07.08 Injection regression suite L2
Applies to: All Workflows with any untrusted Tool or context source.
A corpus of injection attempts — direct and indirect, encoded, multi-turn, and delivered through documents, Tool outputs and Tool descriptions — MUST be run as a regression suite on every change to a prompt, model, Tool or policy. Attack success rate MUST be tracked by category, and an increase MUST block the release as a functional regression would.
Why: No defence is complete, so testing must be continuous and treated as part of the release gate. Essay →
- Declared
evaluation.gates[]includes an injection attack-success-rate gate referencing the corpus inevaluation.suite.- Static
- The corpus exists, is versioned and covers each delivery channel the Workflow has; CI runs it on changes to prompts, models, Tool definitions and policies; results are reported per category with a blocking threshold.
- Attested
- When did an injection regression last block a release, and what changed?
Remediation local: Seed a corpus from public injection datasets and past incidents, run it in the evaluation pipeline, and gate on per-category attack success rate.
Components: eval-platform, release-control · See also: EAS-10.07, EAS-07.11
EAS-07.09 Constrained control flow for high-risk Workflows L3
Applies to: Workflows that read untrusted content and send messages, change records or move money.
Such Workflows MUST ensure untrusted content can flow only as data, by at least one of: (a) plan-before-read — the Tools to call, their order and their targets are fixed from trusted input before any untrusted content is read; or (b) quarantine — untrusted content is processed by a separate ModelCall with no Tools and no access to sensitive data, which returns a tightly constrained, schema-validated result, and the privileged part of the system never sees the raw text.
Why: If control flow is derived only from trusted input, untrusted content can influence what is written but cannot add a Tool call or change a recipient; an injection reduced to a few validated fields has little room to carry instructions. Essay →
- Static
- For plan-before-read: the Workflow’s Tool sequence and targets are determined in code or by a ModelCall that precedes any untrusted read, and later ModelCalls fill content only. For quarantine: the ModelCall receiving untrusted text has no Tools bound and no private context; its output schema uses enumerations and bounded fields; only the validated structure reaches the privileged agent.
- Attested
- Which pattern does this Workflow use, and at which point does untrusted content enter it?
Remediation structural: Restructure the Workflow as a fixed workflow with model-filled content slots, or insert a tool-less, schema-constrained extraction step in front of the privileged agent.
Components: orchestrator, model-gateway · See also: EAS-07.02, EAS-01.01
EAS-07.10 Production injection detection L3
Applies to: Workflows in production with any untrusted Tool or context source.
Production MUST include honeytokens (for example a contact that must never be emailed, a document that must never be read) that raise an alert when touched, and MUST alert on spikes in policy rejections.
Why: Because no defence is complete, detection in production surfaces attempts that tests missed; spikes in policy rejections are a signal, not noise. Essay →
- Static
- Honeytoken records exist in the data reachable by the Workflow, with deny rules and alerts bound to them; alert rules on rejection rate per Workflow.
- Runtime
- The rate of
eas.policyspans witheas.policy.decision = denyper Workflow is monitored with an alert threshold; honeytoken access produces an alert. - Attested
- When did a honeytoken or rejection-spike alert last fire, and who responded?
Remediation local: Plant honeytokens in each data domain the agent can read and contact, add deny rules that alert, and alert on deny-rate anomalies.
Components: telemetry-pipeline, policy-engine · See also: EAS-04.05
EAS-07.11 Coverage mapped to OWASP LLM Top 10 and MITRE ATLAS L3
Applies to: All Workflows assessed at L3.
Injection and security test coverage MUST be mapped to the OWASP Top 10 for LLM applications and MITRE ATLAS, showing which risks and techniques are tested and which are not.
Why: Mapping coverage to these frameworks gives security reviewers a shared vocabulary for what has and has not been tested. Essay →
- Static
- A maintained mapping from test cases and controls to OWASP LLM Top 10 entries and ATLAS techniques, with gaps listed.
- Attested
- Which OWASP LLM Top 10 risks and ATLAS techniques are not covered by tests, and why?
Remediation local: Tag each corpus case and control with framework identifiers and generate the coverage table from the tags.
Components: eval-platform · See also: EAS-07.08