Sub topic 2
Reading External Access Findings
Assume you know IAM principals, JSON policies, AWS accounts, and the AWS CLI. IAM Access Analyzer reports access that crosses an analyzer’s zone of trust. An external access finding means a resource policy, trust policy, or other configuration allows a principal outside that zone to access a resource.
Reading an external access finding
Read the finding as a specific access path:
- Principal: the external account, role, user, or public principal.
- Resource: the affected resource and its AWS Region.
- Action: the operation that is allowed.
- Condition: restrictions such as source VPC, organization ID, or encryption requirements.
- Reason: the policy statement or trust relationship that created the path.
For example, Principal: "*" in an S3 bucket policy can allow public reads:
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "AllowEveryoneRead",
"Effect": "Allow",
"Principal": "*",
"Action": "s3:GetObject",
"Resource": "arn:aws:s3:::example-bucket/*"
}
]
}Confirm whether the access is intentional. If it is not, narrow the principal, action, resource, or condition. If it is intentional, document the business reason before archiving it.
Reading unused access findings
Unused access analyzers identify access with no observed use during the configured tracking period. Findings can cover unused IAM roles, users, access keys, passwords, or permissions.
An unused permission finding does not prove that removal is safe. CloudTrail coverage, deployment paths, emergency procedures, and infrequent jobs can affect the evidence. Check the resource owner and usage history before changing a policy.
Triage: status, filters, and queries
Find active findings before reviewing older results:
aws accessanalyzer list-findings-v2 \
--analyzer-arn arn:aws:access-analyzer:us-east-1:111122223333:analyzer/account-unused \
--filter '{"status":{"eq":["ACTIVE"]}}' \
--query 'findings[].[findingType,resource,status]' \
--output tableACTIVE requires attention. ARCHIVED means a rule or user action removed it from normal review. RESOLVED means the access path no longer exists. Recheck archived findings when policies or ownership change.
Archive rules for intended access
An archive rule suppresses recurring, expected findings by matching attributes such as a resource ARN. Keep rules narrow. A broad rule can hide a real exposure.
aws accessanalyzer create-archive-rule \
--analyzer-name account-external \
--rule-name known-partner-bucket \
--filter '{"resource":{"eq":["arn:aws:s3:::example-partner-share"]}}'Exercise
An active finding shows public read access to a bucket used for a documented public download site. What should you do?
Show answer
Confirm the policy is intentional, add or verify appropriate conditions and safeguards, document the approval, and create a narrow archive rule for that bucket.