Exploitationactive directorycertificate servicesad csenumerationabuse

Certipy-AD

Offensive tool for enumerating and abusing Active Directory Certificate Services (AD CS). Used to attack AD Certificate Services by managing accounts, certificates, and CAs.

Description

Certipy-AD is a specialized tool designed for offensive security operations targeting Active Directory Certificate Services. It enables users to enumerate vulnerabilities and exploit misconfigurations in AD CS environments, which are commonly used in enterprise Windows networks for issuing and managing digital certificates.

The tool supports a range of actions including account management, authentication with certificates, CA handling, certificate operations, AD CS enumeration, offline parsing from registry data, and more. This makes it valuable for penetration testers assessing the security of certificate authorities and related services in Active Directory setups.

Use cases include discovering weak certificate templates, forging certificates, relaying authentication, and shadowing credentials, all critical techniques in advanced Active Directory attacks. It integrates with Python libraries for handling cryptography, LDAP, and network protocols specific to Windows environments.

How It Works

Certipy-AD operates by interacting with Active Directory protocols such as LDAP, RPC, and HTTP endpoints for Certificate Services. It enumerates CAs, templates, and accounts using Impacket for SMB/NTLM, ldap3 for directory queries, and cryptography libraries for certificate parsing and forging. Actions like relay target NTLM relay to ADCS HTTP endpoints, while find and parse modules analyze configurations and registry data offline to identify abuse paths such as ESC1-ESC8 vulnerabilities.

Installation

bash
sudo apt install certipy-ad

Flags

-v, --versionShow Certipy's version number and exit
-h, --helpShow this help message and exit
accountManage user and machine accounts
authAuthenticate using certificates
caManage CA and certificates
certManage certificates and private keys
findEnumerate AD CS
parseOffline enumerate AD CS based on registry data
forgeAction for forging certificates
relayAction for relaying authentication
reqAction for certificate requests
shadowAction for shadow credentials
templateAction for managing templates

Examples

Display the full help message and usage information for Certipy-AD
certipy-ad -h
Show help for the account action to manage user and machine accounts
certipy-ad account -h
Show help for the auth action to authenticate using certificates
certipy-ad auth -h
Show help for the ca action to manage CA and certificates
certipy-ad ca -h
Show help for the cert action to manage certificates and private keys
certipy-ad cert -h
Show help for the find action to enumerate AD CS
certipy-ad find -h
Show help for the parse action for offline AD CS enumeration based on registry data
certipy-ad parse -h
Display Certipy-AD version number and exit
certipy-ad -v
Updated 2026-04-16kali.org ↗