Any secret, factor, or proof material used to verify identity and grant access. This includes passwords, tokens, certificates, passkeys, API keys, and similar objects. Credentials are operational and revocable, so they should be managed on a shorter lifecycle than the identity they support.
What a credential is in practice
A credential is more than a login secret. It is the material that proves an actor can be trusted, whether that proof comes from knowledge, possession, or cryptographic possession. In security operations, the key distinction is that the credential is the thing presented, validated, and revoked, while the underlying identity can remain stable across many credential changes.
That distinction matters because credentials are operational objects. They may be issued, scoped, rotated, expired, replaced, or disabled without changing the user, service, workload, or application that uses them. Treating the credential as a lifecycle object is what makes containment and recovery possible after exposure or misuse.
Common credential forms and where they appear
Credentials include passwords, one-time codes, API keys, access tokens, certificates, passkeys, SSH keys, and similar proof material. The form changes the control model, but the security purpose stays the same: prove an actor’s legitimacy and enable access to a protected resource or action.
Some credentials are human-facing, such as passwords and passkeys. Others are machine-facing, such as client secrets, API keys, OAuth client credentials, service certificates, and workload tokens. The practical difference is not just who holds them, but how they are stored, refreshed, shared, and detected when they leak.
Because credentials are often embedded in code, config files, browsers, devices, or automation, they can spread far beyond the place they were first issued. That is why credential handling is usually a security, engineering, and operations issue at the same time.
How credentials relate to identity, access, and trust
Credentials are the proof layer in an authentication flow, but they also shape authorization outcomes. A credential may unlock a session, mint a token, establish a TLS channel, or activate a role with privileges that are broader than the credential itself suggests. In practice, the credential is often the fastest path from exposure to impact.
Good credential design limits that blast radius. Short-lived credentials reduce replay value, scoped credentials reduce overreach, and revocable credentials make recovery possible when compromise is suspected. Stronger systems also separate the long-lived identity relationship from the short-lived proof used at runtime.
For readers who want a deeper treatment of lifecycle and rotation trade-offs, the Ultimate Guide to NHIs — Static vs Dynamic Secrets explains why dynamic, ephemeral credentials are usually safer than long-lived ones.
Credential failure modes and security consequences
The main security problem with credentials is not their existence, but their reuse, leakage, or over-extension. A stolen credential can bypass many upstream defenses because it is already accepted as proof. If the credential is also long-lived, widely scoped, or copied into multiple environments, one compromise can become many.
API keys and other shared secrets are especially sensitive because they are frequently used non-interactively and are easy to copy into code, logs, CI pipelines, and third-party tooling. When those credentials are exposed, the result is often unauthorized access, service abuse, data retrieval, or expensive downstream misuse.
That is why credential security must be judged by exposure path, lifetime, scope, and revocation speed, not just by whether a secret exists in a vault or an authentication provider.
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, CIS Controls v8 and NIST SP 800-63 set the governance and control requirements practitioners need to meet.
| Framework | Control / Reference | Relevance |
|---|---|---|
| OWASP Non-Human Identity Top 10 | NHI-07 — Long-Lived Secrets | Credentials with long lifetimes are directly at issue in this term. |
| Recommendation — Prefer short-lived credentials and rotate or revoke long-lived secrets quickly. | ||
| NIST SP 800-53 Rev 5 | IA-5 — Authenticator Management | This term centers on issuance, rotation, revocation and lifecycle of authenticators. |
| IA-9 — Service Identification and Authentication | Machine and service credentials are part of the term's scope. | |
| Recommendation — Manage credential issuance, storage, rotation and revocation under IA-5. Use IA-9 to control service-to-service credentials and authenticate non-human actors. | ||
| CIS Controls v8 | 5 — Account Management | Credential lifecycle and revocation are core account-management concerns. |
| Recommendation — Inventory, control and remove stale credentials through account management. | ||
| NIST SP 800-63 | Digital Identity Guidelines | The term concerns authenticators and proof material used in digital identity flows. |
| Recommendation — Apply digital identity guidance to choose phishing-resistant authenticators and reduce reliance on weak secrets. | ||
Practitioner Guidance
Why practitioners should care: The right question is not whether a credential works, but how quickly it can be constrained if it leaks. Short-lived, narrowly scoped credentials reduce the window for replay and make incident response materially easier.
What to watch for: Hardcoded secrets, shared credentials, stale certificates, unrotated API keys, and credentials reused across systems are all signs that the lifecycle is out of step with the risk. Those patterns usually indicate weak revocation discipline, poor inventory, or excessive operational dependence on a single secret.
Practitioner takeaway: Design credentials as disposable proof material, not as permanent identity substitutes.
Related resources from NHI Mgmt Group
Deepen Your Knowledge
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.
Reviewed and updated by the NHIMG editorial team on October 30, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org