DET-189 · agent · confidence Medium

Denied Action Rerouted Through Another Agent

Find cases where one agent is denied an action and another agent performs it soon after.

Delegation abuse shows up as a sequence. Joining authorization failures for one agent identity with successful matching actions by a different agent identity within a short window, and checking the orchestration trace for a call between them, catches confused-deputy chains.

The orchestration trace is what turns a coincidence into evidence. Without it, two agents doing related work look unrelated. Make sure each inter-agent call is logged with caller, callee, the text passed and the user who started the run.

Data sources
Agent orchestration tracesCloud audit logsApplication authorization logs
Platforms
AI PlatformAWSAzureGCPSaaS

Logic

WITH denied AS (SELECT actor, action, resource, ts FROM authz WHERE result = 'deny' AND actor_type = 'agent'),
     done AS (SELECT actor, action, resource, ts FROM authz WHERE result = 'allow' AND actor_type = 'agent')
SELECT d.actor AS asked, x.actor AS did, d.action, d.resource
FROM denied d JOIN done x ON d.action = x.action AND d.resource = x.resource AND x.actor <> d.actor AND x.ts BETWEEN d.ts AND d.ts + interval '15 min'
JOIN agent_calls c ON c.caller = d.actor AND c.callee = x.actor AND c.ts BETWEEN d.ts AND x.ts

False positives

Designed escalation flows where a low-tier agent hands off to a supervisor agent on purpose.

Catches 2 techniques