When an attacker reaches your internal certificate authority, every machine, workload, device and user that trusts it can be impersonated, and the evidence you would normally rely on, the CA's own issuance database, may not show what was forged. This playbook is for the organisation that runs the CA: PKI owners, identity engineers and incident responders who must decide quickly whether a compromise is an abused enrolment account, a misused template or a stolen signing key, because each needs a very different response. It covers classification, the containment order, how revocation and trust removal really behave at relying parties, rotating the non-human identities that authenticate with certificates, rebuilding the hierarchy and the evidence to keep. It is vendor-neutral and applies to directory-integrated CAs, open source CAs, cloud private CA services and managed PKI. Prevention controls are in Securing the internal PKI and certificate authority itself; estate-wide replacement logistics and public CA scenarios are in the CA Compromise and Mass Certificate Replacement Playbook, which this page goes deeper than for the case where you are the CA.
Key takeaways
- Classify before you act. An abused enrolment account leaves records you can revoke one by one; a stolen CA private key lets the attacker sign certificates offline that your CA never saw, so serial-by-serial revocation cannot catch them.
- Cut trust at the highest level the key reached. For an issuing CA key, revoke the CA certificate at its parent with reason cACompromise; for a root key, nothing above can revoke it, so the root must be removed from every trust store.
- Certificates are credentials, and a password reset does not end them. MITRE ATT&CK notes that stolen or forged authentication certificates can act as valid accounts for their whole validity despite password resets, so every system that accepts certificate logon is in scope.
- Do not let the old trust authenticate the new. Automated re-enrolment usually authenticates with the current certificate, which a forged certificate can satisfy, so devices and workloads must be re-bootstrapped through a channel the attacker cannot mint.
- Distribute the new anchor before you reissue. Relying parties must trust the replacement hierarchy before leaf certificates move to it, or the rebuild becomes the outage.
Classify the compromise first
The first hour decides the scale of the response. NIST's 2012 ITL bulletin on CA compromise starts its response steps with determining the type of compromise, separating impersonation or registration authority compromise, where only fraudulent certificates need revoking, from compromise of the CA system or signing key, where everything the CA issued must be replaced. NIST SP 800-57 Part 1 Rev. 5 section 5.5.1 is blunt about the second case: disclosure of a CA's private signature key means an adversary can create fraudulent certificates and CRLs. Use this table to place the incident.
| Class | What the attacker controlled | Are forged certificates in the CA database? | Response scope |
|---|---|---|---|
| A. Enrolment or RA account abuse | A service account, enrolment agent or registration authority credential allowed to request certificates | Yes, issued through the CA in the normal way | Revoke the rogue certificates, rotate the account, review its permissions |
| B. Template or profile abuse | A template that let requesters supply their own subject or SAN, or granted an authentication EKU too widely | Yes, but with subjects naming other identities | Revoke everything issued from the template in the window, fix and re-approve the template |
| C. CA administrator or officer role misuse | CA management rights: approve pending requests, change templates, publish or suppress CRLs, alter audit settings | Usually, unless audit settings were changed or the database was edited | Treat the database as suspect; compare with independent logs; plan for class D if key export was possible |
| D. Issuing CA private key exposed | The issuing CA key, or the HSM partition, credentials or backup that unlock it | No: certificates signed offline leave no record | Revoke the issuing CA certificate at its parent, stand up a new issuing CA, reissue all leaves |
| E. Root CA key exposed | The root key or its backup or ceremony materials | No, and the attacker can also sign new subordinate CAs | Remove the root from all trust stores, build a new hierarchy, reissue everything |
| F. Status infrastructure tampering | CRL publishing locations, OCSP responder or its signing key | Not applicable | Restore status publishing, re-sign with clean keys, check whether revocations were hidden |
Escalate a class when you cannot rule the next one out. If the attacker had administrative access on the CA host and the key sits in software, or in an HSM whose partition credentials were on the same host, treat it as class D. If ceremony records for the offline root are incomplete or backups were stored online, test for class E.
Triggers and first-hour triage
Invoke this playbook on: a certificate with a subject or SAN that does not match its requester; authentication logs showing certificate-based logon for privileged or machine accounts from unexpected hosts; new or modified templates, enrolment agents or CA officer roles without a change record; HSM audit events for key export, partition login from a new client or backup outside a ceremony; a change to CRL publication or OCSP configuration; an unknown subordinate CA certificate seen on the network; or tool artefacts associated with certificate theft on an endpoint.
- Preserve before changing: export the CA issuance database, CA audit log, HSM audit log, template and permission configuration, CRLs and OCSP logs, and take forensic images of the CA and RA hosts. Hash and store them outside the PKI administrators' reach (AU-9).
- Collect independent evidence of use: certificate-based authentication events from directories, identity providers, VPN concentrators, RADIUS servers and service meshes. For classes D and E these are the only record of forged certificates being used.
- Establish key exposure: where the key lives, who could use or export it, and whether the HSM partition or backup credentials were on any compromised host. Using the key through a compromised host without export is still compromise for the period of access.
- Map the trust footprint: every trust store that holds the root or issuing CA certificate, every system that maps certificates to accounts for logon, and every partner or federated system that trusts your CA.
- Name the window: earliest evidence of attacker access to the latest point at which the key or account could still have been used.
Containment in the right order
- Stop issuance: disable the compromised enrolment accounts and templates (A, B), or stop the CA service and isolate the host while keeping it powered for forensics (C to E). Pause automated enrolment and renewal so that devices do not keep requesting from the affected CA.
- Restrict certificate logon: on directories and identity providers, remove the affected CA from the store of CAs trusted for authentication, or require strong certificate-to-account mapping so that a forged subject alone is not enough. Expect this to break smart card, device and machine logon that depends on the CA, so arrange an alternative for privileged administrators first.
- Revoke at the right level: for classes A to C, revoke the rogue leaf certificates with reason keyCompromise. For class D, have the parent CA revoke the issuing CA certificate with reason cACompromise (value 2 in the RFC 5280 CRLReason list) and publish a fresh CRL at once rather than at the next scheduled update. For class E, there is no parent: go straight to trust store removal.
- Remove trust where revocation will not reach: many relying parties cache CRLs until their next update, fail open when status is unavailable, or never check. NIST's bulletin lists confirming that revocation checking is enabled on relying-party systems as a response step; where it is not, remove the CA certificate from trust stores directly, through endpoint management, container base images, application keystores and appliance configuration. See the Certificate Revocation Guide and Certificate trust stores and root CA management.
- Contain the identities already abused: disable or rotate accounts that authenticated with suspect certificates, reset machine account secrets, revoke tokens and sessions issued after certificate logon, and check for persistence the attacker added with that access (T1098 Account Manipulation).
- Lock down CA administration: restrict CA officer, template and HSM roles to named responders on clean administrative workstations, and remove attacker-created roles, enrolment agents and request permissions.
Why the identity side is the bigger job
Internal certificates are mostly non-human identity credentials: server certificates for domain controllers, identity providers and RADIUS, client certificates for VPN and 802.1X Wi-Fi, mTLS identities for services and workloads, device certificates from mobile and IoT enrolment, and certificates that service principals or federation trusts use to sign or authenticate. ATT&CK T1649 Steal or Forge Authentication Certificates describes how certificates bound to identities can be used as credentials for domain accounts, how misconfigured enrolment lets users assume privileged identities through the SAN, and how an attacker with a root or subordinate CA key can forge arbitrary authentication certificates for persistence. Rotate in this order:
| Priority | Identity class | Why first | Rotation route |
|---|---|---|---|
| 1 | Certificates on authentication infrastructure: directory servers, identity providers, RADIUS and VPN gateways | A forged server certificate here supports interception (T1557) of every logon | New keys generated on the server, certificates from the clean issuing CA, pushed by hand under change control |
| 2 | Privileged and machine accounts that accept certificate logon | Forged client certificates give persistent privileged access | Revoke mappings, reissue with strong mapping, reset account secrets |
| 3 | Federation, token and code signing certificates issued by the CA | Signing keys let an attacker mint other credentials | New keys, update metadata with partners, assess signed artefacts |
| 4 | Workload mTLS identities and service mesh roots | Large numbers, usually automated | Rotate the mesh or workload CA, then let short-lived certificates roll |
| 5 | Devices, VPN and Wi-Fi clients | Largest population, often remote | Re-bootstrap enrolment with out-of-band authentication |
The re-bootstrap point matters. RFC 7030 (EST) section 2.3 says that when the current certificate can be used for TLS client authentication, the client presents it to the EST server, and simple re-enrolment renews against that identity. If the issuing CA key is gone, a forged certificate satisfies the same check, so re-enrolment must use a fresh bootstrap: device attestation, a one-time enrolment secret delivered through device management, or physical re-provisioning. The same caution applies to the root CA key update certificates RFC 7030 section 4.1.3 describes for planned rollover: a link certificate signed with a compromised key proves nothing. See the IoT and Device Certificate Provisioning (EST, SCEP) Guide and the Service Account Security Guide.
Choosing the rebuild depth
| Situation | Rebuild choice | Trade-off |
|---|---|---|
| Class A or B, key in an HSM, CA host clean, audit log intact | Clean in place: fix templates and permissions, revoke rogue leaves, rotate RA credentials | Fast; relies on the issuance database being complete |
| Class C with intact HSM controls but suspect host | Rebuild the CA host from clean media, keep the key only if HSM logs prove no use outside approved requests | Avoids reissuing the estate; needs strong HSM evidence |
| Class D | New issuing CA with a new key and a new subject name under the existing root; revoke the old issuing CA certificate | Root stays; every leaf from the old issuing CA is reissued |
| Class E, or the root cannot be shown clean | New root, new issuing CAs, new names; dual trust while migrating, then remove the old root | Most disruptive; NIST SP 800-57 Part 1 section 5.5.2 notes that every entity must obtain and install a new trust anchor |
A small organisation with one directory-integrated CA and a few hundred certificates should usually take the stricter option: a new hierarchy can be built and rolled out in days, and certainty is worth more than the saved work. A large estate with tens of thousands of device and workload certificates needs the tiered approach, and benefits from short-lived certificates afterwards so that exposure from any future compromise ages out on its own. Give the replacement CAs new subject names and key identifiers, so that chain building on relying parties cannot confuse them with the compromised CAs.
Rebuild and reissue without an outage
- Build the new hierarchy cleanly: offline root generated in a witnessed ceremony, keys in an HSM, new CP and CPS reflecting lessons from the incident. See the Private CA Design and Operations Guide and the Enterprise PKI Design and CA Hierarchy Guide.
- Distribute the new anchor first: push the new root to all trust stores and to partners, and confirm coverage from endpoint management reports before any leaf moves.
- Reissue by tier: follow the identity priority table, with new key pairs generated on the endpoint or in its HSM. Verify each service by the certificate it actually presents.
- Retire the old trust: once coverage is confirmed, remove the old issuing CA or root from every trust store and from the store of CAs trusted for authentication. Keep a final CRL published until all old leaves have expired.
- Test rollback: keep the old anchor removal reversible for a short window only for classes A to C. For classes D and E there is no rollback to the compromised key; plan alternative access, such as break-glass accounts that do not depend on certificates, instead.
Evidence and notification
- Keep: CA database and audit exports, HSM audit logs, template and permission snapshots before and after, CRL and OCSP history, certificate logon events, host images and the incident timeline.
- Partners and federations: anyone who trusts your CA for mTLS, federation or signed data must remove the old anchor and add the new one. Tell them before you revoke, with fingerprints for both (RS.CO-02).
- Certificate owners: NIST's bulletin recommends notifying owners and setting up a help point of contact; application teams need a single route for reissue questions.
- Regulators: if forged certificates enabled access to personal data or regulated systems, legal must assess notification. See the Cyber Incident Reporting Requirements Map.
Detection and measurement
For at least the validity period of any certificate that could have been forged, alert on: certificate logon by accounts that never used it before; certificates presented whose issuer is the revoked CA; new templates, enrolment agents or CA roles; HSM key use outside approved processes; changes to CRL publication; and any root added to managed trust stores outside change control (T1553.004 Install Root Certificate).
- Trust store coverage: share of managed endpoints, images and keystores with the new anchor and without the old one, target 100%.
- Time to stop issuance: from declaration to compromised CA or templates disabled.
- Reissue progress by tier: percentage of certificates in each priority tier reissued and verified as presented.
- Authentication on the old chain: count of successful logons using certificates from the compromised CA after cut-off, target zero.
- Re-bootstrapped devices: share of devices enrolled through out-of-band authentication rather than renewal.
Common failure patterns
- Revoking serials after a key theft: responders revoke the certificates in the database and declare containment, while certificates signed offline remain valid because no one knew their serials.
- Resetting passwords and stopping: accounts accessed with a certificate stay accessible after a reset until the certificate or its CA is no longer trusted.
- Letting devices renew themselves: automated renewal authenticated by the old chain lets a forged identity enrol into the new CA.
- Trusting revocation to reach everything: appliances and applications with their own trust bundles keep accepting the CA until the anchor is removed from them.
- Reusing names and keys: a rebuilt CA with the same subject name, or worse the same key, leaves relying parties unable to tell old from new.
- Ignoring signing keys: a forged credential accepted by a relying party that checks too little is the pattern behind the Microsoft Storm-0558 Key Breach, where a stolen signing key was used to forge tokens. See Signing keys and certificates in breaches.
Framework mapping
| Framework | Reference | Where it applies |
|---|---|---|
| NIST CSF 2.0 | RS.AN-03, RS.MI-01, RS.MI-02, RS.CO-02, RC.RP-03, PR.AA-01 | Root cause, containment, eradication, stakeholder notification, verified restoration, credential management |
| NIST SP 800-53 Rev. 5 | SC-12, SC-17, IA-5(2), IR-4, AU-9, CM-3 | Key management, PKI certificates, public key-based authentication, incident handling, audit protection, template change control |
| MITRE ATT&CK v20 | T1649, T1557, T1553.004, T1098, T1078 | Forged and stolen authentication certificates, interception, rogue roots, persistence, valid accounts |
| NIST SP 800-57 Part 1 Rev. 5 | 5.5.1, 5.5.2 | Implications of CA key compromise, compromise-recovery planning, new trust anchors |
| IETF | RFC 5280 5.3.1; RFC 7030 2.3, 4.1.3 | cACompromise reason code; re-enrolment authentication and root key update |
Practitioner checklist
- Write down, for each CA, which compromise class you could and could not rule out with the logs you keep today.
- Keep the parent CA, or for the root the offline ceremony kit, ready to revoke an issuing CA and publish a CRL out of cycle.
- List every trust store and every system that maps certificates to accounts, with how to remove a CA from each.
- Stream CA, HSM and certificate logon events to a log store PKI administrators cannot alter.
- Require strong certificate-to-account mapping wherever certificate logon is allowed.
- Design device enrolment with an out-of-band bootstrap you can use when the current chain cannot be trusted.
- Pre-stage a standby offline root or a documented ceremony to create one within days.
- Run a tabletop on class D and class E at least once a year, timing trust store coverage.
Standards and references
- NIST: ITL Bulletin, Preparing for and Responding to Certification Authority Compromise and Fraudulent Certificate Issuance
- NIST: SP 800-57 Part 1 Rev. 5, Recommendation for Key Management
- IETF: RFC 5280, Internet X.509 Public Key Infrastructure Certificate and CRL Profile
- IETF: RFC 7030, Enrollment over Secure Transport
- NIST: SP 800-61 Rev. 3, Incident Response Recommendations and Considerations for Cybersecurity Risk Management
- NIST: SP 800-53 Rev. 5, Security and Privacy Controls
- MITRE ATT&CK: Steal or Forge Authentication Certificates
- NIST: Cybersecurity Framework 2.0
Related NHI Mgmt Group resources: Machine Identity, PKI and Certificate Lifecycle Guide · If your certificate lifecycle manager is compromised · Compromised Code Signing Certificate Playbook · Encryption Key Compromise Playbook · HSM Deployment and Operations Guide