Non-human identity material on endpoints is the credential material for service accounts, workloads and automation that sits on laptops, servers and build agents: cloud CLI credential files, API keys, SSH private keys, kubeconfig files, tokens and certificates. Attackers and infostealers harvest it to impersonate those identities, so it should be found, minimised and replaced with short-lived credentials.
What This Material Looks Like on Endpoints
Non-human identity material on endpoints is usually found where automation and developer tooling live, not just where applications run. That includes cloud CLI profiles, kubeconfig files, API keys, SSH private keys, tokens, certificates and similar artefacts stored on laptops, servers and build agents. The security problem is simple: these files often outlive the session that created them, so they become reusable access material.
These artefacts matter because they are not merely data at rest. They are authentication material, and in many environments they are also the fastest path from endpoint compromise to cloud, cluster or internal service access. When they are copied into home directories, caches, dotfiles, containers or build workspaces, they can be harvested by malware, post-exploitation tooling or even routine backup and support processes.
Why Endpoints Become a Collection Point
Endpoints collect NHI material for practical reasons. Developers, operators and automation agents need local access to APIs, clusters and cloud services, so credentials get cached for convenience and reused across tools. That convenience creates a trust gap: the endpoint inherits the power of the service account, workload or automation identity without always inheriting the same protection, rotation discipline or audit visibility.
Build agents are especially sensitive because they often receive temporary secrets, federation tokens or signing material as part of deployment workflows. If those artefacts are written to disk, echoed into logs, or left in workspaces after a job completes, they can be recovered later. NHIMG’s guide to NHI challenges and risks is a useful reference point for understanding how unmanaged credentials, visibility gaps and credential sprawl compound that exposure.
How Exposure Usually Happens
Exposure is rarely limited to a single file type. Attackers look for the easiest artefacts to extract, then pivot through whatever identity those artefacts represent. A stolen cloud CLI profile may reveal access to storage, compute or IAM APIs; a kubeconfig may open a cluster; an SSH key may unlock administration paths; a certificate or token may grant service-to-service access. Once one of these materials is captured, the attacker does not need the original endpoint anymore.
This is why endpoint-local credential material is attractive to infostealers and post-compromise operators. It is portable, often long-lived, and frequently stored in places security tools do not classify as sensitive by default. The result is a narrow local weakness with a wide downstream blast radius, especially when the same material is reused across environments or shared across multiple services. NHI reuse guidance and human use of NHI guidance both map directly to this failure pattern.
Why Short-Lived and Minimised Material Is the Better Model
The safer pattern is to reduce how much static credential material ever lands on an endpoint, and to make the remaining material short-lived, narrowly scoped and easy to revoke. That usually means preferring federated access, ephemeral tokens and brokered workflows over copied secrets, especially for build systems and automation. It also means separating operator convenience from credential persistence, so a local shell profile or job workspace cannot become a standing access path.
Minimisation is important because endpoint compromise is common enough that any long-lived secret on a workstation or build host should be treated as recoverable. The less material that exists, and the shorter its lifetime, the less useful the endpoint becomes as a source of reusable access. The NHI reference section in the Ultimate Guide provides a broader taxonomy of the credential types that should be designed out of local storage wherever possible.
Risk and Threat Considerations
Endpoint-stored NHI material creates a direct theft-to-access pathway. If an attacker lands on a laptop, server or build agent, the local files may be enough to impersonate service accounts, workloads or automation without triggering a normal interactive login flow. That makes this a high-value post-compromise target, especially where tokens, keys or certificates are reused or left valid for long periods.
Failure mechanism: Malware, infostealers, script execution or disk collection recover credential artefacts from predictable local paths, then replay them elsewhere as valid non-human access material.
Impact: The attacker can bypass the endpoint, reuse the stolen identity from another system, and escalate into cloud, cluster or internal service access with the original identity’s privileges.
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, MITRE ATT&CK and OWASP API Security Top 10 address the attack and risk surface, while CIS Controls v8 and NIST SP 800-57 set the governance and control requirements practitioners need to meet.
| Framework | Control / Reference | Relevance |
|---|---|---|
| OWASP Non-Human Identity Top 10 | NHI-02 — Secret Leakage | Endpoint-stored NHI material is a secret leakage problem. |
| NHI-07 — Long-Lived Secrets | Local endpoint files often persist long-lived credentials and tokens. | |
| NHI-09 — NHI Reuse | The same local credential material is often reused across tools and environments. | |
| Recommendation — Find and remove exposed secrets from endpoints and replace them with short-lived access. Replace long-lived endpoint secrets with ephemeral credentials and revocation-friendly flows. Eliminate reused NHI material across endpoints, tools and environments. | ||
| CIS Controls v8 | CIS-5 — Account Management | Account and credential inventory underpins locating and reducing endpoint-held access material. |
| Recommendation — Inventory accounts and credentials so endpoint-held access can be minimised and removed. | ||
| MITRE ATT&CK | T1552 — Unsecured Credentials | Stored endpoint credential material maps directly to attacker credential discovery and theft. |
| T1003 — OS Credential Dumping | Local credential material often becomes available after endpoint compromise or dumping. | |
| T1555 — Credentials from Password Stores | Endpoint caches, stores and files can be mined for reusable access material. | |
| Recommendation — Hunt for exposed credentials on endpoints and remove the storage locations attackers target. Assume endpoint compromise can expose local credential material and review for reuse. Search for credential stores and local caches that reveal reusable non-human access material. | ||
| NIST SP 800-57 | Key Management | Private keys and certificates on endpoints require lifecycle and protection decisions. |
| Recommendation — Apply key lifecycle rules that prevent persistent private keys from remaining on endpoints. | ||
| OWASP API Security Top 10 | API2 — Broken Authentication | Stolen API keys and tokens from endpoints enable replayed authentication to APIs. |
| API8 — Security Misconfiguration | Credential files left on endpoints are a misconfiguration and exposure issue. | |
| Recommendation — Use stronger API authentication patterns that do not depend on persistent local secrets. Remove insecure credential storage defaults from developer and automation endpoints. | ||
Practitioner Guidance
Why practitioners should care: Treat endpoint-stored NHI material as a design flaw, not just an endpoint hygiene issue. If a workstation, server or build agent can persist secrets locally, it becomes a durable compromise bridge rather than a transient tool. The most effective control is to make local storage unnecessary wherever possible and to ensure any unavoidable artefact has a short lifetime and tight scope.
What to watch for: Reused CLI profiles, lingering kubeconfigs, cached tokens, private keys in dotfiles, build workspace leftovers and secrets copied into documentation or scripts are the common warning signs. Teams should also pay attention to automation patterns that normalise manual secret placement, because those usually create the longest-lived exposure.
Practitioner takeaway: The question is not whether endpoints can hold NHI material, but whether they should. The more you can shift to ephemeral, brokered access, the less value an endpoint compromise has to an attacker.
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 November 24, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org