DET-205 · agent · confidence Medium
Mapping Who Agents Talk To
Record agent-to-agent and agent-to-tool messages as a graph, and alert when the shape or content changes.
Multi-agent systems pass tasks and data between orchestrators, workers, tools and shared memory. An attacker who controls one node can steer others, and nobody reviews those internal messages. This detection logs each hop as an edge in a graph, with source, destination, task and a hash of the message.
Baseline the normal graph per workflow. Alert on new edges, workers calling tools they never use, long delegation chains, loops, and messages containing instructions that were not in the original task. Graph review also shows which agent first introduced a bad instruction.
- Data sources
- Agent orchestration tracesMCP server logsMessage queue logsTool broker logsShared memory audit logs
- Platforms
- AI Platform
Logic
Store edges as (run_id, src, dst, tool, msg_hash). Per workflow, keep the set of seen (src,dst) pairs. Alert on new pairs, depth > baseline p99, cycles, or when dst is a high-privilege tool and src is a low-trust worker. Example graph query: MATCH (w:Worker)-[:CALLS]->(t:Tool {tier:'admin'}) WHERE NOT (w)-[:APPROVED]->(t) RETURN w,t.False positives
New workflows and A/B tests change the graph. Require a graph update as part of each workflow release.