mizazhaider-ceh/agentarsenal/s3-misconfigurations
Claude Code and agent skill by mizazhaider-ceh/agentarsenal
- community
Checking that the SKILL.md file is still in the repository.
Use when testing Amazon S3 buckets for misconfigurations
Install
npx vskill@latest install mizazhaider-ceh/agentarsenal/s3-misconfigurationsSKILL.md
The same SKILL.md was published earlier as mizazhaider-ceh/agentarsenal/s3-misconfigurations.
S3 misconfigurations are one of the most common cloud findings: buckets that anyone on the internet can list, read, or write because of an open ACL, a permissive bucket policy, or a missing public access block. This skill covers the authorized operator workflow for finding and proving S3 exposure: discovery, permission analysis, common misconfiguration patterns, impact proof that stays read-only, and verification of the fix. Use it against your own buckets, in-scope bug bounty targets, and lab environments only. Never upload files to, delete objects from, or modify buckets you do not own.
Quick Workflow
- Discover bucket names: from the authenticated
s3 lsinventory,
from scope notes, and from OSINT (subdomains, JS files, code) inside the authorized scope.
- Test each bucket unauthenticated with
--no-sign-request:
list, then read one object only if listing is public.
- Pull the bucket ACL and bucket policy with credentials and map
every grant to an access level.
- Check the four guardrails: public access block, default
encryption, versioning, and access logging.
- Check static website hosting and cross-account or
AuthenticatedUsers grants.
- Prove impact read-only: show a public object listing or one
non-sensitive object header, never full sensitive data.
- Classify the finding (public read, public write, sensitive data
exposed) and record the exact commands.
- Verify the fix after remediation: re-run the unauthenticated
checks and confirm 403/AccessDenied.
1. Bucket discovery
Bucket names often leak in JavaScript bundles, mobile apps, and subdomain certificates. Within your authorized scope, grep collected assets for s3.amazonaws.com and .s3-website patterns.
2. Unauthenticated access tests
Run these without credentials. Stop at the first read-only proof; do not download sensitive data or write test files to buckets you do not own.
HTTP equivalents when the CLI is not handy:
Result codes: 200 means public, 403 AccessDenied means closed, 404 NoSuchBucket means the name does not exist.
3. ACL analysis
Dangerous grants and what they mean:
| Grantee | Permission | Impact | |
|---|---|---|---|
http://acs.amazonaws.com/groups/global/AllUsers | READ | Anyone lists and reads | |
http://acs.amazonaws.com/groups/global/AllUsers | WRITE | Anyone uploads and deletes | |
http://acs.amazonaws.com/groups/global/AuthenticatedUsers | READ or WRITE | Any AWS account in the world, not just yours |
Note: AuthenticatedUsers does NOT mean your account's users. It means any authenticated AWS principal anywhere.
4. Bucket policy analysis
Read every statement and check three fields:
A "Principal": "*" Allow WITHOUT a restrictive Condition (IP allowlist, VPC endpoint, or aws:PrincipalOrgID) is effectively public. Common safe-looking but broken conditions: checking only aws:Referer, or StringLike on user agent.
5. The four guardrails
6. Cross-account and legacy grants
7. Proving impact without damage
Read-only proof is enough for the report:
- The unauthenticated
lsoutput showing object names (redact
sensitive names in the report if they leak PII).
head-objectoutput showing a public object exists and its
content type and size.
- The ACL or policy snippet granting the world access.
- One screenshot or terminal capture of the 200 response.
Do NOT: download full sensitive files, upload test objects to someone else's bucket, delete anything, or enable versioning or logging changes yourself. If you suspect live sensitive data is public, stop and escalate to the engagement lead immediately.
8. Bulk triage script
Edge cases
- Bucket exists but every call returns 403: it is closed to you.
Record the 403 as evidence of a correct configuration, do not try to bypass it.
get-bucket-policyreturns NoSuchBucketPolicy while the ACL
grants AllUsers READ: the bucket is still public through the ACL. Check both, always.
- Public access block is ON but objects were shared via
pre-signed URLs: those URLs are bearer tokens, not a bucket misconfiguration. Do not confuse the two.
us-east-1vs regional endpoints: a 301 redirect with the
correct region in x-amz-bucket-region is normal, follow it.
- Requester-pays buckets return 403 to anonymous reads even when
objects are shared; that is not a vulnerability.
- Object ACLs can be public while the bucket ACL is private
(common with old public-read uploads). Sample object ACLs, do not assume the bucket ACL tells the whole story.
- Versioning SUSPENDED is not the same as never enabled: old
versions may still exist and be publicly readable.
Escalation
- Unauthenticated list works but you need the data
classification: list object names and sizes only, then stop and escalate to the lead before touching any object body.
- Authenticated as a low-privilege user and
get-bucket-policy
is denied: the unauthenticated probes in section 2 still give you the ground truth about public exposure.
- Bucket name guesses return 404: move to scope-approved OSINT
(certificate transparency for *.s3.amazonaws.com style names rarely helps; JS bundles and mobile apps help more).
- You find public WRITE on your own test bucket: prove it with
aws s3 cp /tmp/probe.txt s3://<BUCKET>/probe-<RANDOM>.txt --no-sign-request, then DELETE the probe file immediately and record both commands.
- Suspected sensitive data exposed (backups, keys, PII): stop
testing that bucket, notify the engagement lead at once, and do not copy the data to your machine.
Detection and defender view
Defenders see S3 probing in S3 server access logs and CloudTrail data events: anonymous ListBucket and GetObject calls from unfamiliar IPs, and GetBucketAcl/GetBucketPolicy calls from your assumed role. AWS Config rules (s3-bucket-public-read-prohibited, s3-bucket-public-write-prohibited) and Security Hub flag public buckets continuously; Trusted Advisor does the same. The durable fixes are account-level public access blocks (all four settings ON), bucket policies that deny non-TLS and non-VPC-endpoint access, default encryption with KMS, versioning plus MFA delete for critical buckets, and access logging to a separate locked bucket. As the tester, keep unauthenticated probing gentle (a handful of requests per bucket), never write to buckets you do not own, and report exposure with the exact commands that proved it.
Key references
- MITRE ATT&CK T1530 (Data from Cloud Storage): reading exposed
buckets and objects.
- MITRE ATT&CK T1580 (Cloud Infrastructure Discovery): bucket
discovery and enumeration.
- CWE-732 (Incorrect Permission Assignment for Critical
Resource): the misconfiguration class.
- CWE-200 (Exposure of Sensitive Information to an Unauthorized
Actor): the impact.
- AWS S3 Block Public Access:
https://docs.aws.amazon.com/AmazonS3/latest/userguide/access-control-block-public-access.html
- AWS S3 bucket policy examples:
https://docs.aws.amazon.com/AmazonS3/latest/userguide/example-bucket-policies.html
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/cloud/s3-misconfigurations/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/mizazhaider-ceh/agentarsenal/s3-misconfigurations)