The SSH key governance gap
SSH keys are a long-established non-human credential and are often left outside central governance. They can be generated freely by developers, copied between machines, shared across teams, and left out of any central inventory. A single authorized key on a critical server can grant standing access that no one is tracking, and because SSH keys typically do not expire, that access persists indefinitely. Orphaned authorized keys left on hosts after someone leaves are a classic backdoor.
Bringing SSH keys under management
- Discover authorized keys across your fleet, including hosts outside central configuration management.
- Attribute ownership for every key and remove ones with no valid owner.
- Move to short-lived SSH access using certificate-based SSH or a broker that issues ephemeral credentials, so standing keys disappear.
- Rotate and revoke keys on a schedule and immediately on personnel changes.
Related: GitHub deploy keys are SSH keys; the GitHub discovery query lists them. For replacement and rotation patterns, see credential rotation; for the wider class, see secrets.
Frequently asked questions
What is an SSH key?
An SSH key is a cryptographic key pair used to authenticate to servers and systems over SSH. The private key grants whatever access the corresponding public key authorises. SSH keys are credentials held by people and by automated processes, and they frequently have no expiry and no central record.
Why are SSH keys a security risk?
Because they are generated freely, copied between machines, shared across teams, and rarely inventoried, while typically never expiring. Orphaned authorized keys left on hosts after someone leaves grant standing access that nobody tracks, making them a classic and persistent backdoor.
How do you manage SSH keys?
Discover all authorized keys across your fleet, attribute an owner to each and remove ownerless ones, move to short-lived certificate-based SSH or a broker that issues ephemeral access so standing keys disappear, and rotate or revoke keys on a schedule and immediately on personnel changes.
Sources
- OWASP Non-Human Identities Top 10 (2025), owasp.org
- NIST SP 800-53 Rev. 5, Security and Privacy Controls for Information Systems and Organizations (AC-2, AC-6, IA-5), csrc.nist.gov
- ISO/IEC 27001:2022 Annex A (controls 5.15-5.18, 8.2, 8.5, 8.15, 8.16) paywalled standard; cited by clause, not linked
Where a primary URL is not shown, we have not confirmed the figure against the publisher’s own document and say so on the page rather than linking a secondary source that paraphrases it. Paywalled standards (ISO/IEC, AICPA) are cited by clause and not linked. Corrections welcome: report an error.
Disclosure. This reference is free. No vendor pays for coverage, placement, or favourable treatment. HumanAudit Inc., which publishes this site, sells ISO/IEC 42001 documentation and plans NHI governance documentation packs, including an RFP kit that does not name, rank or recommend any vendor; it builds and sells no NHI scanner and no NHI discovery, monitoring or security tool (see About). Links to its offers appear in the header, in the site footer and in one marked box on guide pages; company profiles carry none. See our methodology, sourcing standards and corrections policy.