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