audit_public_buckets
Audit S3 buckets for public exposure by checking bucket policies, ACLs, and Public Access Block settings. Get severity-ranked findings to identify and fix misconfigured buckets.
Instructions
Audit every S3 bucket in the account for public exposure.
For each bucket this checks: the Public Access Block configuration (missing or any of the four flags disabled yields a MEDIUM finding), the bucket policy (any Allow statement with principal "" or {"AWS": ""} yields a HIGH finding), and the bucket ACL (grants to the AllUsers or AuthenticatedUsers groups yield a HIGH finding).
Returns a dict {check, ok, findings, scanned} where ok is true only when no findings were produced, findings is a list of normalized finding dicts (check, severity, title, resource, detail), and scanned is the number of buckets examined. Buckets that raise an unexpected AWS error are skipped and reported under an extra "errors" key mapping bucket name to error code. Severity: HIGH means the bucket is likely publicly reachable right now; MEDIUM means a guardrail is missing.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||