Contents
- First, determine what leaked and where you are working from
- Changing the phrase does not invalidate the previously copied key
- Prepare an appropriate revocation
- Apply and distribute the revocation
- The replacement key needs a new trusted deployment
- Consider old signatures and encrypted data separately
- Completing an incident requires a traceability check
- Frequently asked questions
First, determine what leaked and where you are working from
Suspecting a private key leak requires a different approach than a typical public export loss. Determine whether the primary private key, a specific subkey, a passphrase, or the entire unlocked device was accessible. If you are unsure, do not assume protection simply because the application normally requires a password. The export may have been stored in a different format.
Perform other sensitive steps in a trusted environment. Creating a new key on a still compromised machine can immediately compromise even the replacement. Retain adequate evidence of the incident and record the time of discovery, estimated time period, and identities affected. Do not copy private material or passphrases into the regular incident log.
Changing the phrase does not invalidate the previously copied key
The passphrase protects the stored private form according to its format. If an attacker has already obtained the decrypted material or an old usable copy, re-encrypting your local version will not change that copy. Similarly, deleting the application or renaming the identity will not revoke trust with partners who have the public key stored.
The scope of the intervention varies by role. Leakage of a signing subkey can allow signatures to be created within it. Leakage of decryption material can compromise corresponding historically captured messages. Leakage of the primary private part can compromise the management of the entire identity. Do not assume that all types of incidents have the same impact or the same resolution.
Prepare an appropriate revocation
A ready-made revocation certificate or a newly created revocation certificate can be used for the entire key, if you have the necessary resources. In GnuPG, the --gen-revoke command creates a revocation certificate; its creation alone does not change the peer copies. For a specific subkey, the appropriate subkey management and updated public certificate are used.
# Pouze pro skutečně určenou identitu a důvěryhodné prostředí:
gpg --output revokace.asc --gen-revoke CELÝ_OTISKReplace the placeholder with a verified full fingerprint and carefully read the purpose and reason for revocation. Protect the prepared revocation document against unauthorized use: it is not a private key, but it can allow the revocation of the identity to be published. If you are unsure about the profile or authorization, do not perform irreversible steps on the wrong key.
Apply and distribute the revocation
In the normal GnuPG process, the revocation certificate is imported into the correct keyring and the updated public certificate is then exported. Verify the fingerprint and status in an independent review before publishing. The result must be a proper cryptographic revocation, not just a local note or a changed item name.
Deliver the update to services and partners that use the key. Include the relevant keyserver, your own distribution site, automation, and important contacts. One successful upload response is not proof that all client caches have read the change. Verify the pullback and the actual status update for important recipients.
The replacement key needs a new trusted deployment
Create a replacement in a clean environment with adequate protection and a chosen compatibility profile. Verify the backup and prepare the means for future revocation. Announce the new public fingerprint through a trusted channel. A claim signed only with an already compromised key may not be sufficient evidence that the replacement was actually approved by the original owner.
Recipients should know which old key was compromised, when, and for what new use they should switch to a replacement. Don't promise a complete solution by simply posting another key with the same email. Duplicate text identity is easy; trust is created by the verified relationship of the new fingerprint to the corresponding person or organization.
Consider old signatures and encrypted data separately
Revocation will not change the bytes of historical documents and will not guarantee the return of classified data. The assessment of an old signature may depend on the reason for the revocation, credible time evidence, and the principle of the verification system. Do not consider a simple date inside a signature or file as independent confirmation that it was created before the compromise.
Don’t delete the single decryption material needed for archives without a recovery plan. You can keep it in a separate protected mode for historical reading, even though it is no longer suitable for new use. Tailor the exact solution to the incident and the value of the data. Restoring availability and restoring trust are two different tasks.
Completing an incident requires a traceability check
- The scope of leaked secrets and a trustworthy working environment were defined.
- The revocation refers to the correct primary key or subkey.
- The update has been back-validated for the distribution paths used.
- The replacement print was reliably delivered to the necessary recipients.
- Historical data remained renewable as needed.
For mobile Vault or CH-J Tools, do not equate removal from the local list with a distributed revocation. For CH-J Keys2, verify the actual status of the returned certificate and the corresponding distribution policy. The incident is closed only after the necessary traceability is confirmed, not after the first successful click in the generator.
Frequently asked questions
Just change the passphrase?
No, if there is a previously leaked usable copy. It is necessary to deal with revocation and restoration of trust.
Will deleting a key from the phone invalidate its public validity?
No. Local deletion is not a distributed revocation.
Should I delete the old decryption subkey as well?
First, resolve access to historical data and the scope of the incident.
Detailed documentation
GnuPG: creating, importing and publishing a revocation →
IETF: OpenPGP revocation and key bindings →