Certipy: AD CS Enumeration and Abuse from the Command Line
Tool for Active Directory Certificate Services enumeration and abuse
At a glance
- What is it?
- Certipy is a Python toolkit for finding and exploiting Active Directory Certificate Services misconfigurations, covering the ESC1 to ESC17 attack paths. It is aimed at red teamers and defenders who already understand AD CS, and its documentation lives almost entirely in the project wiki rather than the README.
- Who is it for?
- Certipy fits red teamers and AD CS defenders who already know how certificate templates, CAs and PKI permissions interact, and who are working in an environment where they hold written authorization. It is the wrong tool for someone looking for a general vulnerability scanner: every command targets AD CS specifically, and the README points to the wiki for installation and usage rather than explaining them itself.
- Can I use it commercially?
- Yes. MIT is a permissive licence: you can use, modify and sell software built on it, as long as you keep its copyright and licence notices.
- Is it still maintained?
- Yes. The repository last received commits 118 days ago.
- What is it written in?
- Mainly Python, according to GitHub's language statistics.
Answers come from the project's GitHub data, last synced on November 24, 2026, and from our analysis. They are not legal advice.
Star history
- ly4k/Certipy3,735 ★ · +60
| Repository | 2026-09-24 | 2026-11-24 |
|---|---|---|
| ly4k/Certipy | 3.7k | 3.7k |
60 Stars in the last 61 days, measured from the daily GitHub snapshot. Compare with other projects
Editorial analysis
The AD CS misconfiguration problem Certipy targets
Active Directory Certificate Services issues certificates that Active Directory trusts for authentication, which means a misconfigured certificate template or CA setting can hand an attacker domain credentials without cracking a single password. The failure mode is not a bug in Windows but a configuration choice: a template that lets a low-privileged user enrol, a CA that accepts a request with an arbitrary subject, or permissions that let a principal modify a template it should not touch. These settings are spread across templates, CA objects and ACLs, and reading them by hand through the certificate management console is slow and easy to get wrong.
Certipy exists to enumerate those settings and then act on them. The README describes it as an "offensive and defensive toolkit for enumerating and abusing Active Directory Certificate Services (AD CS)" and states that it supports identifying and exploiting all known ESC1 to ESC17 attack paths. The intended audience is narrow: red teamers and penetration testers running authorized assessments, plus defenders who want to see what their own PKI looks like from an attacker's position. The README carries an explicit warning to use it only where authorization exists.
What sits inside the certipy package and how commands are dispatched
The repository layout is compact. Top-level entries include the certipy/ package directory, a pyproject.toml, a PyInstaller spec file named Certipy.spec, and configuration for flake8 and pyright. Inside the package, pyproject.toml lists four packaged modules: certipy, certipy.commands, certipy.commands.parsers and certipy.lib. That split suggests the design: commands hold the subcommand implementations, parsers hold their argument definitions, and lib holds shared logic for talking to LDAP, the CA web endpoints and Kerberos.
The entry point is declared as a console script, certipy = "certipy.entry:main", so everything runs through a single main function that dispatches to a subcommand. Dependencies are pinned with compatible-release specifiers rather than exact versions, and they reveal the protocol surface: impacket and ldap3 for Windows networking and directory access, cryptography and asn1crypto for certificate handling, pycryptodome, httpx and requests for HTTP, dnspython for name resolution, beautifulsoup4 for parsing CA web pages, and argcomplete for shell completion. There is one optional extra, bloodhound, which pulls in neo4j. That extra matters because it implies a separate data flow: enumeration results can be pushed into a graph database rather than only printed to the terminal.
Installing certipy-ad and running a first enumeration
The README does not contain installation steps. It states that installation instructions live in the project wiki under an Installation page, and the Quick Start page under Usage. What the README does give is the package identity: the PyPI project is named certipy-ad, not certipy, and pyproject.toml sets requires-python to ">=3.12". The console script it installs is called certipy.
A pip install from PyPI is therefore the documented distribution channel, with the package name from pyproject.toml:
pip install certipy-adAfter that, the certipy command should be on your PATH. The entry point declared in pyproject.toml is certipy.entry:main, so the installed certipy command is what exposes every subcommand. The README names discovery of certificate authorities and templates among the features, and points to the wiki's Quick Start page for the most common commands and usage examples. For anything beyond this, the wiki is the source: the README itself does not document individual flags, output formats or rollback.
Where Certipy stops being the right tool
Certipy assumes AD CS is present and reachable. In an environment with no certificate authority, or one that is firewalled away from the host you run from, the enumeration has nothing to read and the abuse paths have nothing to exploit. That is a boundary, not a bug, but it means the tool cannot be dropped into a generic internal assessment and expected to produce findings on its own.
The second constraint is operational. The README's own warning about authorization is the honest framing of this: several of the capabilities it lists, including requesting and forging certificates, authenticating with them, relaying NTLM to CA endpoints, and Shadow Credentials or Golden Certificate techniques, change state in the directory or produce credentials that did not exist before. Enumeration is read-only; exploitation is not. Teams that want a read-only posture should stay on the enumeration side and treat the rest as separate, explicitly scoped work.
The third is documentation shape. The README is a signpost, not a manual: it links to the wiki for installation, usage, ESC explanations and mitigations. Anyone who needs a self-contained reference in the repository itself will not find one. Version pinning is also a consideration, since dependencies use compatible-release specifiers and the package requires Python 3.12 or newer, so older Python environments will need an upgrade before install succeeds.
Certipy compared with Certify
The natural comparison is Certify, the C# tool that popularised many of these AD CS techniques in the Windows offensive tooling world. The difference in approach is the runtime and the reach. Certipy is Python, packaged as certipy-ad on PyPI, and its dependency list shows it speaks LDAP, Kerberos, HTTP and RPC from a non-Windows host through impacket and ldap3. Certify is a .NET tool that runs in a Windows context, which fits operators who are already working from a Windows foothold and want to stay there.
That distinction shapes day-to-day use. A Python tool is easier to run from a Linux attack platform and easier to script, and the pyproject.toml optional bloodhound extra shows an intended pipeline into graph analysis. A .NET tool is easier to drop onto a Windows host that already has the right runtime and network position. Neither is strictly better; the choice follows where your tooling already lives and which protocol endpoints you can reach. Certipy also spans enumeration and exploitation in one binary, whereas the split between discovery and abuse is a matter of which subcommands you choose to run.
Maintenance, licence and upgrade cost
The repository is not archived, and the last push was on 2026-07-30. Release 5.1.0 was published on 2026-06-23, following 5.0.4 on 2025-11-22 and 5.0.3 on 2025-06-14. The gap between 5.0.4 and 5.1.0 is roughly seven months, and the gap before that roughly five, so the release cadence is irregular rather than frequent. The project is maintained, but planning should not assume a steady stream of point releases.
Upgrade cost is mostly about the Python floor and the dependency ranges. requires-python is ">=3.12", and the dependencies use compatible-release pins, so a minor upgrade can pull newer versions of impacket, cryptography or httpx within their allowed ranges. Environments that pin those libraries for other tooling may need to reconcile versions. The optional bloodhound extra pins neo4j separately, so graph export is only present if that extra is installed.
The licence is MIT, declared both in the repository's LICENSE file and in pyproject.toml as license = {text = "MIT"}. MIT is permissive, which generally means redistribution and modification are allowed provided the notice is kept, but this is not legal advice and the terms should be read directly. One practical note for distribution: the project ships a PyInstaller spec, Certipy.spec, which indicates standalone executables can be built, and anyone redistributing such a build inherits the same licence obligations as the source.
Editorial conclusion
Certipy fits red teamers and AD CS defenders who already know how certificate templates, CAs and PKI permissions interact, and who are working in an environment where they hold written authorization. It is the wrong tool for someone looking for a general vulnerability scanner: every command targets AD CS specifically, and the README points to the wiki for installation and usage rather than explaining them itself. Before adopting it, verify that the target environment runs the certificate services it assumes, read the wiki pages on installation and privilege escalation, and confirm the licence terms of the MIT-licensed certipy-ad package against your own distribution requirements.
Frequently asked questions
How do I install Certipy on Kali?
The README does not give installation steps and points to the project wiki's Installation page instead. The package is published on PyPI as certipy-ad and requires Python 3.12 or newer, so a pip install of that package name is the distribution channel the project declares.
What is the difference between Certipy and Certify?
Certipy is a Python toolkit packaged as certipy-ad, and its dependency list shows it works over LDAP, Kerberos, HTTP and RPC from a non-Windows host. Certify is the C# counterpart that runs in a Windows context. The choice follows where your tooling already lives.
Which AD CS attack paths does Certipy cover?
The README states that Certipy supports identifying and exploiting all known ESC1 to ESC17 attack paths, with detailed explanations and exploitation steps in the project wiki's privilege escalation page.
Does Certipy need BloodHound?
No. BloodHound integration is an optional extra in pyproject.toml that pulls in neo4j, so it is only present if that extra is installed. The README lists BloodHound support among the features but does not make it a requirement.
What Python version does Certipy require?
pyproject.toml sets requires-python to ">=3.12", and the README badge states Python 3.12 or newer. Older Python environments will need an upgrade before the package installs.
Official sources
Add this badge to your README
If you maintain this project, the badge below links readers to this analysis and shows its maintenance status from the daily GitHub snapshot. Paste the markdown into your README; add ?metric=license or ?metric=stars to the image URL for a different field.
[](https://hysenlabs.com/projects/ly4k-certipy)Star history chart for your README
[](https://hysenlabs.com/projects/ly4k-certipy)Was this useful?