DET-181 · agent · confidence High
Catching Agents That Read Beyond the Asker's Rights
Compare what an agent fetched or quoted with what the person who asked is allowed to see.
Agents often run with a broad service identity while answering for a user with narrow rights. If retrieval does not check the asker's access, the agent becomes a way to read files the person could never open. Volume alerts will not catch it because it looks like a normal question.
Log the asker, the agent identity, each returned document ID and the access decision. Then check every cited or returned source against the asker's entitlements, including group membership at that moment. Mismatches mean either an access-control bug in the pipeline or someone using the agent as a confused deputy.
- Data sources
- Retrieval logsIdentity provider group dataDocument ACL exportsAgent response logsSharePoint or Drive audit logs
- Platforms
- AI PlatformMicrosoft 365Google WorkspaceIdentity
Logic
For each answer: join retrieved_doc_ids to ACLs, then SELECT r.run_id, r.doc_id FROM retrievals r LEFT JOIN acl a ON a.doc_id = r.doc_id AND a.principal IN (user_groups(r.asker)) WHERE a.doc_id IS NULL. Alert on any row where the doc is cited or quoted in output, and rank by data classification.
False positives
Recent permission changes that have not synced, and documents shared by link. Re-check ACL at a fresh timestamp before alerting.