How can I tell who can actually read an S3 bucket through role chains and KMS?

December 2, 2026 5 answers
Asked by 6k~bracketwhistle_351

We have an SSE-KMS bucket in an organization with federated access, service roles, and some cross-account role chains. The bucket policy alone doesn't seem enough to identify everyone who can read the objects.

How would you build an audit-ready picture of effective access, including conditions, and distinguish access that exists from access that's actually used?

Answers

Mavqueni-5r

Start by agreeing on what the audit needs to cover. Is the request for identities with a possible path today, identities that have used it, or both? Also agree on the bucket, object scope, time window, and whether conditional access should be reported separately.

The question is reasonable, but those distinctions change the evidence you need. A dated inventory with its assumptions and known gaps is more useful than a bare list presented as complete.

Reply to this answer
5a~saffronwrench_729

I'd treat this as a graph problem. Start with principals that could get s3:GetObject on the relevant objects, then trace role trust and AssumeRole permissions backward to the originating identities. Include federated permission sets, service roles, and cross-account hops. Trust alone is not proof that a hop is allowed.

For each candidate path, check the applicable identity and resource policies, explicit denies, SCPs, permission boundaries, and session policies. Then check whether the role can decrypt with the relevant KMS key, including its key policy and grants. Keep conditions such as MFA and source VPC alongside the path rather than turning them into an unconditional yes or no.

PMapper can help explore role chains, but don't assume its graph resolves every KMS or condition detail. Validate representative paths separately and record what the tooling did not evaluate.

~Kivdelo!5:

Watch the object scope too. Access to one prefix doesn't necessarily mean access to every object in the bucket.

Reply to this answer
6r!coppercaper_391

Use IAM Access Analyzer as a starting point rather than expecting one finding to be the whole answer. External access findings help with paths outside your zone of trust. Internal access analysis may help identify access within the organization, depending on its scope and coverage.

For a short list of sensitive roles, use the policy simulator and review the actual KMS and resource policies as a cross-check. A per-principal simulation is useful evidence, but it won't discover all the principals or role chains for you.

Reply to this answer
~Vexrali+6

Keep observed use separate from possible access. Query S3 CloudTrail data events for the period you have available, then connect the assumed-role sessions back to the roles and originating identities where the event data permits. Athena or CloudTrail Lake can help with that.

No read events in the window doesn't prove a path is unused. Data events must have been enabled and retained, and a monthly or occasional process can easily fall outside a short window. Check with the integration owners before removing a path.

6k~bracketwhistle_351:

That distinction helps. A rarely used correction path would be a risky one to remove based only on a short quiet period.

Reply to this answer
Vorduni~4q

Once you have a snapshot, don't stop there. Review changes to role trust, bucket policies, KMS policies and grants for paths they add or remove. Otherwise the audit answer starts aging as soon as someone edits a policy.

Whether you script that or buy a permissions tool, test it against a few known role chains and conditional cases first. Ask what it actually evaluates and what still needs manual review.

Reply to this answer

Add your answer

Answers are reviewed before publication.

Related Discussions