Security teams should centralise control over machine identities, reduce secret sprawl, and automate rotation for credentials that support workloads, applications, and integrations. The practical goal is to remove long-lived secrets from routine use, enforce short-lived access where possible, and maintain consistent visibility across environments so one exposed credential does not become a broad breach path.
Why This Matters for Security Teams
Machine identities that depend on many secrets create a wide blast radius: one leaked API key, certificate, or cloud token can unlock workloads across accounts, regions, and CI/CD systems. The core issue is not just volume, but the speed at which secrets spread through automation, scripts, and vendor integrations. The Guide to the Secret Sprawl Challenge shows why unmanaged distribution becomes a governance problem, not merely a hygiene problem.
Industry data backs that up. In The State of Non-Human Identity Security, Astrix Security & CSA report that lack of credential rotation is cited as the top cause of NHI-related attacks by 45% of organisations. That is a strong signal that long-lived secrets remain one of the most practical compromise paths in cloud environments. The OWASP Non-Human Identity Top 10 similarly frames secret exposure and over-privilege as recurring failure modes.
In practice, many security teams discover secret sprawl only after an exposed credential has already been reused to move laterally across environments.
How It Works in Practice
The most effective response is to treat secrets as short-lived delivery artifacts rather than permanent identity anchors. That means centralising control of where machine identities are issued, how they authenticate, what they can reach, and how quickly they expire. For cloud workloads, the preferred pattern is to shift from static credentials toward workload identity, ephemeral tokens, and automated rotation. The 230M AWS environment compromise is a reminder that broad cloud access plus weak secret discipline can scale into a major incident very quickly.
- Use workload identity as the primary trust signal, not embedded secrets in code or images.
- Issue just-in-time credentials for a specific task and revoke them automatically when the task ends.
- Set short TTLs for tokens, certificates, and cloud sessions so compromise windows stay narrow.
- Apply policy at request time, not just at provisioning time, so access reflects current context.
- Continuously inventory secrets across CI/CD, cloud accounts, and third-party integrations.
For implementation, the current guidance suggests pairing cloud-native federation with standards-based identity layers such as the SPIFFE project, then enforcing policy with tools such as NIST Cybersecurity Framework 2.0 and related control baselines. This lines up with the operational reality described in The 52 NHI breaches Report, where credential handling and oversight failures repeatedly turn routine access into breach paths.
These controls tend to break down when legacy applications require hardcoded secrets or when multi-cloud integrations cannot support federated identity end to end, because teams then fall back to long-lived credentials just to keep systems working.
Common Variations and Edge Cases
Tighter secret control often increases operational overhead, requiring organisations to balance reduced compromise risk against application compatibility, release velocity, and platform maturity. That tradeoff is real, especially in environments where older services, vendor connectors, or embedded devices cannot rotate credentials cleanly.
Current guidance suggests prioritising the highest-risk secrets first: internet-facing automation, privileged cloud roles, CI/CD pipelines, and third-party OAuth integrations. Where rotation is possible but disruptive, shorten TTLs gradually and move toward brokered access over time. Where it is not possible, isolate the workload, shrink privileges, and monitor usage aggressively. The Shai Hulud npm malware campaign and Reviewdog GitHub Action supply chain attack both show how quickly a single secret source can become many downstream compromises.
There is no universal standard for every cloud and workload combination yet, but the practical direction is clear: minimise static secrets, make expiration the default, and design identity around the workload rather than the environment. For teams adopting this posture, the key is to prevent exception handling from becoming the permanent operating model.
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, OWASP Agentic AI Top 10 and CSA MAESTRO address the attack and risk surface, while NIST CSF 2.0 and NIST Zero Trust (SP 800-207) set the governance and control requirements practitioners need to meet.
| Framework | Control / Reference | Relevance |
|---|---|---|
| OWASP Non-Human Identity Top 10 | NHI-03 | Secret rotation is central to reducing NHI compromise risk. |
| OWASP Agentic AI Top 10 | A-04 | Autonomous agents amplify secret sprawl and misuse risk. |
| CSA MAESTRO | M-3 | MAESTRO covers identity and access controls for machine workloads. |
| NIST CSF 2.0 | PR.AC-1 | Identity and credential management directly supports access control outcomes. |
| NIST Zero Trust (SP 800-207) | 3.1 | Zero trust supports runtime verification of workloads and secrets. |
Verify every machine access request using context, identity, and policy before granting access.
Related resources from NHI Mgmt Group
- How should security teams reduce credential stuffing risk across user and machine identities?
- How do teams reduce risk from machine identities in cloud environments?
- How should security teams use secrets managers in environments that still depend on long-lived credentials?
- How should security teams reduce reliance on frequent secret rotation in cloud and SaaS environments?
Deepen Your Knowledge
Reviewed and updated by the NHIMG editorial team on August 27, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org