DET-225 · agent · confidence Medium
Tracing Actions Back to Untrusted Sources
Tag every piece of context with where it came from, and alert when a sensitive action rests on low-trust input.
If you know which web page, email or ticket fed a decision, you can tell a legitimate task from an injected one. This detection labels content at the point it enters: source system, author, trust level, tenant, classification and boundary zone. Labels follow the data through retrieval, memory and tool results.
Then apply a simple rule. A write, payment, external send or privilege change that traces to low-trust or out-of-boundary content is flagged. This turns a fuzzy question, was the agent manipulated, into a lookup, and it gives responders the exact source to remove.
- Data sources
- Agent gateway logsRetrieval pipeline logsTool broker logsMemory store audit logs
- Platforms
- AI PlatformSaaS
Logic
Attach taint=true to content from web, inbound email, public forms and unverified users. On every state-changing tool call, check whether any taint=true item is in the run's context window. SQL: SELECT run_id, tool FROM tool_calls tc JOIN context_items ci USING(run_id) WHERE tc.is_write AND ci.taint AND tc.approval='none'.
False positives
Many legitimate tasks read external pages before acting. Narrow to high-risk tools and require human approval to clear.
Catches 11 techniques
- TAM-A-ACT-012Getting Data Out Through the Agent
- TAM-A-CVR-007Hiding Where an Answer Came From
- TAM-A-DRV-002Agents Started by an Event
- TAM-A-DRV-008Staff-Side AI Helpers
- TAM-A-RCH-004Agents Working Together
- TAM-A-RCH-005AI Rented From a Vendor
- TAM-A-RCH-015What the Agent Remembers
- TAM-A-STG-002Attacks Through MCP Connections
- TAM-A-STG-004Dormant Orders in Memory
- TAM-A-STG-007Hostile Text in Content the Agent Reads
- TAM-A-STG-010Orders Passed Machine to Machine