Accountability sits with the team that allowed standing access to persist after the original operational context changed. If the secret remains valid after offboarding, project completion, or environment reuse, the control failure is governance, not simply exposure detection.
Why This Matters for Security Teams
When a pipeline secret is leaked or reused, the immediate incident is usually visible in logs, but the accountability question lives in the control plane. The team that owned the pipeline, the repository, or the environment is responsible for preventing standing access from surviving a changed context. That is why NHI governance treats leaked secrets as a lifecycle failure, not just a detection problem. The pattern is consistent across breaches documented in the 52 NHI Breaches Analysis and in the Guide to the Secret Sprawl Challenge, where secrets persist beyond the system, project, or person that first justified them. In practice, many security teams encounter this only after a stale token has already been reused in a different workload.
How It Works in Practice
Accountability should follow the team that can change issuance, rotation, storage, and revocation behaviour. That means platform engineering, DevOps, or the application team owning the pipeline is accountable for the secret lifecycle, while security sets policy and validates whether controls are actually enforced. Current guidance suggests treating secrets as short-lived operational artefacts, not persistent credentials, and pairing that with ownership metadata, rotation triggers, and offboarding hooks. The OWASP Non-Human Identity guidance is useful here because it frames secrets as part of a broader NHI control problem, not a one-off leak event, and the OWASP Non-Human Identity Top 10 is especially relevant for identifying gaps in lifecycle governance.
A practical operating model usually includes:
- Secret issuance tied to a named workload, pipeline, or deployment stage.
- JIT credentials or short TTL secrets for build and release jobs.
- Automatic revocation when a repo, service, or environment is retired or repurposed.
- Central inventory that records who requested the secret, where it is used, and when it expires.
For higher-risk pipelines, teams should also validate the path from secret creation to consumption against real-world abuse patterns seen in the Reviewdog GitHub Action supply chain attack and the CI/CD pipeline exploitation case study. These controls tend to break down when secrets are embedded directly in CI variables and reused across long-lived shared runners, because ownership becomes diffuse and revocation is no longer tied to a single runtime.
Common Variations and Edge Cases
Tighter secret controls often increase delivery overhead, so organisations must balance release speed against revocation discipline. There is no universal standard for every pipeline shape yet, especially in hybrid estates, but the safest default is to assume that any reused secret is already overexposed. Where a third party, contractor, or build service can inject or consume the secret, accountability becomes shared, but not diluted: the system owner still owns the control failure if standing access was allowed to persist. That lesson is visible in the Emerald Whale breach and the 230M AWS environment compromise, where broad credential exposure multiplied downstream impact.
One useful rule is to treat environment reuse as a mandatory re-issuance event. If a secret survives a project rename, tenant migration, or offboarding event, the control has already failed even if no attacker is yet confirmed. The same logic applies when organisations store long-term credentials in code or config, because the breach becomes a governance issue the moment the secret outlives its intended context. For that reason, NHI teams should pair incident response with ownership reviews, so leaked secret remediation does not stop at detection and containment.
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 address the attack and risk surface, while NIST CSF 2.0 and NIST AI RMF set the governance and control requirements practitioners need to meet.
| Framework | Control / Reference | Relevance |
|---|---|---|
| OWASP Non-Human Identity Top 10 | NHI-01 | Secret reuse is a lifecycle and ownership failure in NHI governance. |
| NIST CSF 2.0 | PR.AC-1 | Access control and credential governance underpin accountability for leaked secrets. |
| NIST AI RMF | GOV-2 | Accountability requires defined governance for autonomous secret issuance and reuse. |
Assign every pipeline secret an owner, expiry, and revocation path before release.
Related resources from NHI Mgmt Group
Deepen Your Knowledge
Reviewed and updated by the NHIMG editorial team on June 4, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org