DET-216 · agent · confidence Medium

Reviewing What Agents Can Reach vs What They Use

Run a recurring review comparing each agent's granted access with what it actually touched.

Agents tend to collect permissions and never lose them. A bot built for one folder ends up with tenant-wide read. This detection is a scheduled review, not a live alert. It builds an inventory of each agent's identities, connectors, scopes, corpora and delegated access.

Compare that to observed use over 30 to 90 days, or to the declared job. Flag dormant grants, unused write scopes, access to data classes the task does not need, and vendor-managed paths. For assistants grounded on enterprise content, compare everything the identity can reach with what it actually retrieved.

Data sources
IAM policy exportsCloudTrailOAuth grant inventoryRetrieval logsAccess analyzer findings
Platforms
AWSIdentityMicrosoft 365SaaS

Logic

Monthly: for each agent role, list granted actions (aws iam get-account-authorization-details) and used actions (IAM Access Advisor, or CloudTrail eventName distinct over 90 days). Report granted minus used. Also list OAuth scopes with no calls in 60 days. Send per-owner reports and track reduction.

False positives

Break-glass and rarely used incident-response permissions look unused. Mark them as intentional exceptions.

Catches 3 techniques