Subscribe to the Non-Human & AI Identity Journal

What should organisations do when signing keys are exposed or lost?

Revoke the affected certificate immediately, rotate the signing material, and invalidate any trust assumptions tied to that key before more releases are made. Then review which build identities were authorised to use it, because key compromise often reveals a broader governance gap in build access and certificate ownership.

Why This Matters for Security Teams

When signing keys are exposed or lost, the issue is not only cryptographic compromise. It is a trust-collapse event that can let attackers sign releases, impersonate build systems, and extend the blast radius into downstream environments. NHI Mgmt Group notes that 79% of organisations have experienced secrets leaks, with 77% of those incidents causing tangible damage, which is why exposed signing material should be treated as an operational incident, not a housekeeping task. The same pattern appears in release pipelines that still rely on long-lived secrets stored outside controlled systems, a risk profile documented in the Ultimate Guide to NHIs — Why NHI Security Matters Now and the 52 NHI Breaches Analysis. The operational question is how fast trust can be revoked, re-established, and audited before more artefacts are released under a compromised identity. In practice, many security teams discover signing key exposure only after a suspicious release or a failed trust check has already occurred, rather than through intentional key-lifecycle monitoring.

How It Works in Practice

The immediate response should be to revoke the affected certificate or signing identity, rotate the underlying key material, and invalidate any tokens, attestations, or trust chains that depend on that key. For software supply chains, that often means stopping new releases, freezing pipeline use of the compromised signer, and reissuing signing credentials only after ownership and storage controls are verified. Guidance from CISA secure software development resources and release-signing practices described by Sigstore documentation both point to the same core discipline: treat signing authority as a short-lived, tightly bound privilege rather than a standing entitlement.

A practical containment sequence usually includes:

  • Revoking the certificate chain or trust anchor tied to the exposed key.
  • Rotating signing material and re-enrolling the build identity that will replace it.
  • Reviewing which CI/CD jobs, service accounts, or humans could have used the key.
  • Rebuilding trust decisions for artefacts already signed during the exposure window.
  • Checking logs for unauthorised signing attempts, release tampering, or lateral use of related secrets.

In mature environments, signing should be bound to workload identity and ephemeral issuance, not to a reusable static credential. That means runtime proof of the build workload, tight TTLs, and policy checks before each signing action, rather than relying on a key that stays valid for months. The most relevant control assumption is that the signer is as sensitive as production access, which is why compromise response must include certificate ownership, secret storage, and pipeline permission review. These controls tend to break down when signing is embedded in legacy build tooling that cannot enforce per-task identity or rapid revocation because the pipeline continues to trust cached credentials after the key has been exposed.

Common Variations and Edge Cases

Tighter signing control often increases release friction, requiring organisations to balance delivery speed against the cost of re-issuing trust. Current guidance suggests that the strongest response depends on where the key was used: a code-signing certificate, an artefact-signing key, and an internal package-signing key may require different revocation scopes, but there is no universal standard for this yet. The safe default is to invalidate every trust assumption that could let the compromised key authorise future releases, then re-establish only the minimum signing path needed for recovery.

Edge cases include offline signing keys, shared keys across multiple products, and build systems that cannot prove workload identity cleanly. In those environments, revocation may also require downstream consumers to reject old artefacts, because stale trust can persist even after the original key is disabled. Organisations should also verify whether the key exposure was a symptom of broader NHI governance failures, since the same access gaps that expose signing keys often affect API keys, service accounts, and certificate ownership. The Anthropic report on the first AI-orchestrated cyber espionage campaign reinforces how quickly autonomous tooling can exploit trusted credentials once they are available.

Standards & Framework Alignment

This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.

OWASP Non-Human Identity Top 10 and CSA MAESTRO address the attack and risk surface, while NIST AI RMF set the governance and control requirements practitioners need to meet.

Framework Control / Reference Relevance
OWASP Non-Human Identity Top 10 NHI-03 Covers secret rotation and revocation after signing key exposure.
CSA MAESTRO M1 Addresses trust and identity controls for machine and workload signers.
NIST AI RMF Supports governance of AI-enabled release systems using exposed signing keys.

Assign ownership, monitor misuse, and document recovery actions for compromised trust material.