@@ -108,10 +108,20 @@ AD's certificate services can be enumerated through LDAP queries, revealing info
108108Commands for using these tools include:
109109
110110``` bash
111- # Enumerate trusted root CA certificates and Enterprise CAs with Certify
112- Certify.exe cas
113- # Identify vulnerable certificate templates with Certify
114- Certify.exe find /vulnerable
111+ # Enumerate trusted root CA certificates, Enterprise CAs and HTTP enrollment endpoints
112+ # Useful flags: /domain, /path, /hideAdmins, /showAllPermissions, /skipWebServiceChecks
113+ Certify.exe cas [/ca:SERVER\c a-name | /domain:domain.local | /path:CN= Configuration,DC= domain,DC= local] [/hideAdmins] [/showAllPermissions] [/skipWebServiceChecks]
114+
115+ # Identify vulnerable certificate templates and filter for common abuse cases
116+ Certify.exe find
117+ Certify.exe find /vulnerable [/currentuser]
118+ Certify.exe find /enrolleeSuppliesSubject # ESC1 candidates (CT_FLAG_ENROLLEE_SUPPLIES_SUBJECT)
119+ Certify.exe find /clientauth # templates with client-auth EKU
120+ Certify.exe find /showAllPermissions # include template ACLs in output
121+ Certify.exe find /json /outfile:C:\T emp\a dcs.json
122+
123+ # Enumerate PKI object ACLs (Enterprise PKI container, templates, OIDs) – useful for ESC4/ESC7 discovery
124+ Certify.exe pkiobjects [/domain:domain.local] [/showAdmins]
115125
116126# Use Certipy for enumeration and identifying vulnerable templates
117127certipy find -vulnerable -u john@corp.local -p Passw0rd -dc-ip 172.16.126.128
@@ -125,8 +135,7 @@ certutil -v -dstemplate
125135
126136- [ https://www.specterops.io/assets/resources/Certified_Pre-Owned.pdf ] ( https://www.specterops.io/assets/resources/Certified_Pre-Owned.pdf )
127137- [ https://comodosslstore.com/blog/what-is-ssl-tls-client-authentication-how-does-it-work.html ] ( https://comodosslstore.com/blog/what-is-ssl-tls-client-authentication-how-does-it-work.html )
138+ - [ GhostPack/Certify] ( https://github.com/GhostPack/Certify )
139+ - [ GhostPack/Rubeus] ( https://github.com/GhostPack/Rubeus )
128140
129- {{#include ../../../banners/hacktricks-training.md}}
130-
131-
132-
141+ {{#include ../../../banners/hacktricks-training.md}}
0 commit comments