Join our Newsletter — 33% off our NHI Course
Home› Glossary› NHI Lifecycle Management› Key Creation
NHI Lifecycle Management

Key Creation

← Back to Glossary
By NHI Mgmt Group Updated November 26, 2026 Domain: NHI Lifecycle Management

Key Creation is the generation of a new cryptographic key or access key, such as an API key, SSH key or cloud access key pair, tied to an identity. Attackers with access can create extra keys to maintain persistence. Defenders alert on unexpected key creation, especially for privileged or dormant identities, and restrict who may create keys.

What Key Creation Is and Why It Matters

Key creation is the moment a new cryptographic or access key enters the environment, and that makes it a high-value control point rather than a routine administrative step. Because keys can unlock APIs, cloud services, SSH access or application trust, creation events often mark the first point where an identity becomes usable, and where abuse can start.

In practice, the security question is not just whether a key exists, but whether its creation was expected, approved and attributable. Unexpected key creation can signal persistence, privilege expansion or an attempt to bypass normal sign-in and approval paths.

Where Key Creation Fits in Identity and Access Control

Key creation sits at the intersection of authentication, authorization and lifecycle governance. A key may be tied to a human user, a service account, an application or a workload, but in every case it represents a reusable form of authority that should be bound to a clear owner and purpose.

The control value comes from limiting who can create keys, under what conditions, and for which identities. Strong programmes separate key creation from ordinary usage rights, require approval for privileged identities, and treat dormant or seldom-used accounts as especially sensitive because a newly created key can quietly restore access.

For cloud and platform environments, the same principle applies to service identities, API credentials and federation relationships. A key created outside approved workflows can become the foothold for long-lived access even when interactive sign-in is protected.

Attack Patterns and Detection Signals

Attackers often create additional keys after they have gained access because a newly minted key is durable, scriptable and easier to reuse than an interactive session. That makes key creation a common persistence tactic, especially where audit coverage is weak or alerts are tuned only to logons and password changes.

Defenders look for creation events that do not fit the normal lifecycle of the identity, such as key creation on dormant accounts, privileged accounts, or identities that rarely need direct key material. Sudden bursts of key activity, keys created by unusual operators, or keys created outside change windows are all strong review triggers.

Detection is strongest when key creation is correlated with immediate follow-on activity such as API calls, new token use, new cloud role assumption, or access from unfamiliar locations. The creation event itself is often the earliest indicator that an attacker is establishing a durable access path.

Governance, Monitoring and Remediation

Key creation works best when it is governed as a privileged lifecycle event, not just an administrative convenience. That means clear ownership, a narrow set of key creators, audit logging, periodic review of active keys, and a retirement process that removes keys once they are no longer needed.

When unexpected key creation is found, the response should focus on whether the identity, the newly created key, or both are compromised. In many cases, the safest response is to revoke the key, review recent use, and assess whether related credentials or sessions also need to be reset.

Where possible, organisations should prefer short-lived or federated access models over standing keys, especially for automation. The less often a key must be created, the smaller the attack surface and the easier it is to notice when someone creates one without a legitimate reason.

Risk and Threat Considerations

Key creation is risky because it can silently convert a controlled identity into a persistent access path. A single unexpected key can let an attacker return later even after a password reset or interactive session expiry, especially if monitoring focuses on sign-in events instead of credential issuance.

Failure mechanism: The attacker gains the ability to create or add key material, then uses that key to preserve access, impersonate the identity or extend control beyond the original compromise window.

Impact: The organisation may lose visibility into how the identity is being used, and the compromise can persist across incident response actions unless the new key and any related sessions, tokens or trust relationships are removed.

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 addresses the attack and risk surface, while NIST SP 800-53 Rev 5 and NIST SP 800-57 set the governance and control requirements practitioners need to meet.

FrameworkControl / ReferenceRelevance
NIST SP 800-53 Rev 5IA-5 — Authenticator ManagementKey creation governs issuance, rotation and revocation of authenticators and access keys.
AC-2 — Account ManagementKey creation is an account-lifecycle event that should be approved and reviewed for each identity.
AU-12 — Audit Record GenerationUnexpected key creation depends on audit events that record who created keys and when.
Recommendation — Restrict and monitor key issuance, then revoke unapproved authenticators immediately. Link key creation to account lifecycle approvals and periodic access review. Generate auditable key-creation events and alert on anomalous issuance.
NIST SP 800-573 — Key LifecycleKey creation is the opening stage of cryptographic key lifecycle management.
Recommendation — Apply key-lifecycle policy from creation through rotation, expiration and destruction.
OWASP Non-Human Identity Top 10NHI-02 — Secret LeakageCreated access keys become secret material that can be exposed and abused.
Recommendation — Detect and block exposed newly created keys before they are reused.

Practitioner Guidance

Why practitioners should care: Treat key creation as a high-signal security event because it often marks the transition from transient access to durable access. For privileged, dormant or automation identities, even a single unexpected key can materially change the blast radius of a compromise.

What to watch for: Review who is allowed to create keys, whether the event was expected for that identity, and whether the new key is being used immediately after creation. The most important judgement is whether the key aligns with an approved lifecycle or looks like an attempted persistence step.

Practitioner takeaway: If key creation is not tightly governed and monitored, the identity control you think you have may already be bypassed by a newly issued credential.

Free weekly newsletter

Subscribe to the NHI & AI Identity Journal

The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.

Bonus 33% off our NHI Course when you subscribe.

NHIMG Editorial Note
Reviewed and updated by the NHIMG editorial team on November 26, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org