aws.iam.no-full-admin-policies
No customer-managed policy grants full administrative access
No attached customer-managed IAM policy contains a statement that allows every action on every resource.
Assertion
for every attached Local policy p: none(p.Statement, s => s.Effect == "Allow" and "*" in s.Action and "*" in s.Resource)Rationale
A policy that allows * on * makes every other permission decision in the
account irrelevant for whoever holds it. Customer-managed policies are where
this happens by accident: a statement added to unblock a deployment, scoped
“for now”, and attached to a role that outlives the incident. The control
exists so that the accident is noticed on the day it happens rather than in
the next access review.
Observation
The collector lists attached customer-managed policies (--scope Local
excludes AWS-managed policies) and fetches the default version of each. A
policy fails if any statement has Effect of Allow, an Action that is or
contains the literal *, and a Resource that is or contains the literal
*. Statements with a Condition still fail: a condition narrows when the
statement applies, not what it grants.
The AWS-managed AdministratorAccess policy is deliberately out of scope. It
is named for what it does and is unambiguous in an access review. Who holds
it is a question for controls that look at attachments, not at policy
documents.
Remediation
Replace the wildcard statement with the actions and resources the workload
actually calls. CloudTrail and IAM Access Analyzer will both show what those
were. If a principal genuinely needs administrative access, attach the
AWS-managed AdministratorAccess policy so that the grant is visible for
what it is.