Join our Newsletter — 33% off our NHI Course

Key inventory

Key inventory is a complete record of cryptographic keys and related metadata such as purpose, owner, location, algorithm, and lifecycle state. It helps teams find exposed, stale, or orphaned keys, enforce rotation, and support revocation. Missing inventory leaves unknown keys active after staff changes or system decommissioning.

What key inventory is for

Key inventory gives security teams a reliable picture of which cryptographic keys exist, what they are for, and who owns them. That visibility turns keys from hidden dependencies into managed assets, which is essential when keys protect data, sign software, or authenticate services.

A usable inventory also makes lifecycle decisions practical. When a key is linked to a purpose, owner, system, and status, teams can tell whether it is still needed, whether it should be rotated, and whether it should be revoked after a change in application ownership or infrastructure.

What belongs in a key inventory

A complete inventory normally records more than the key material itself. The useful metadata is what lets teams govern the key across its life, including purpose, owning team, storage location, algorithm, creation date, rotation schedule, usage context, and current lifecycle state.

That metadata matters because keys are rarely isolated. A single key may support multiple applications, back-end services, or data protection processes, so the inventory has to show where the key is deployed and whether it is tied to a system, environment, or vendor dependency. The Cryptographic Key Management Guide covers the wider key lifecycle context, including inventory as a core control.

In practice, the record should be rich enough to answer three questions quickly: what the key does, where it lives, and when it must be reviewed or removed. Without that, inventory becomes a list of names rather than a control.

Why missing inventory creates security blind spots

When keys are not inventoried, they are easy to forget and hard to retire. That creates exposure when staff leave, services are decommissioned, or environments are rebuilt, because unknown keys can remain active long after the business thinks they have been removed.

Key inventory also reduces the chance of orphaned or stale keys surviving in backups, configuration files, CI/CD systems, or unmanaged secret stores. The risk is not only that the key exists, but that no one can prove it is still appropriate to keep using it. The key challenges and risks in NHIs are closely related to this visibility problem, especially where unmanaged credentials and stale artefacts persist.

Once a key is lost to visibility, standard hygiene actions become unreliable. Rotation may miss it, revocation may not happen, and incident responders may not know whether compromise is still possible through an overlooked signing or encryption key.

How key inventory supports control and response

Good inventory is what makes key governance executable. It supports rotation planning, revocation after compromise, access reviews, and the orderly removal of keys that no longer have a valid business purpose. It also helps teams separate production keys from test or legacy keys, which reduces the chance of accidental reuse.

It is also a detection aid. When inventory is current, defenders can compare observed key use against expected ownership, location, and age, then flag anomalous or unexpected usage for investigation. That is especially useful for finding keys that are overexposed, long-lived, or present in systems that should no longer contain them. The Top 10 NHI Issues page is a useful companion for understanding how inventory gaps connect to broader visibility, ownership, and lifecycle failures.

For teams managing signing or encryption keys at scale, the inventory should be treated as an operational source of truth, not a document to update occasionally after an audit.

Risk and Threat Considerations

Incomplete key inventory creates a direct security exposure because undiscovered keys can remain valid after ownership changes, environment changes, or suspected compromise. That makes it harder to revoke access, contain abuse, or prove that a key is no longer reachable.

Failure mechanism: Attackers or insiders can exploit forgotten keys, stale secrets, or unmanaged signing material to preserve access, decrypt data, or continue trusted operations after the original system owner has moved on.

Impact: The result can be persistent unauthorized access, loss of integrity in signed artifacts or encrypted data, and delayed incident containment because responders do not know which keys still matter.

Standards & Framework Alignment

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

NIST SP 800-57, NIST SP 800-53 Rev 5, CIS Controls v8 and NIST CSF 2.0 set the technical controls, while ISO/IEC 27001:2022 defines the regulatory obligations.

Framework Control / Reference Relevance
NIST SP 800-57 Key Management Defines key lifecycle practices that depend on complete inventory and ownership tracking
Recommendation — Maintain a current inventory to support key rotation, revocation, and lifecycle retirement decisions.
NIST SP 800-53 Rev 5 IA-5 — Authenticator Management Covers lifecycle control over authentication material, including key handling and rotation
Recommendation — Track and rotate keys under IA-5 so expired or orphaned keys are removed on schedule.
CIS Controls v8 CIS-5 — Account Management Supports inventory and governance of access-bearing credentials and related artefacts
Recommendation — Inventory and review key-bearing assets so unused access paths can be revoked promptly.
ISO/IEC 27001:2022 A.8.24 — Use of cryptography Requires governance over cryptographic use, including management of keys and related material
Recommendation — Document cryptographic keys and their owners so cryptographic use remains governed throughout the lifecycle.
NIST CSF 2.0 ID.AM-01 — Physical devices and systems are inventoried Inventory is a core Identify function that extends naturally to key assets and dependencies
Recommendation — Extend inventory discipline to cryptographic keys so lifecycle gaps are visible before exposure occurs.

Practitioner Guidance

Why practitioners should care: Key inventory should be owned as part of cryptographic governance, not left to application teams alone. If no one is accountable for completeness, the organisation will eventually lose track of high-value keys.

What to watch for: The strongest warning signs are unsigned or undocumented keys, keys with no clear owner, keys that outlive the system they were created for, and keys that appear in multiple places without a reasoned control model.

Practitioner takeaway: Treat inventory quality as a control objective in its own right, because rotation and revocation only work when you know what exists.