Subscribe to the Non-Human & AI Identity Journal
Home FAQ Governance, Ownership & Risk Who is accountable when a leaked secret is…
Governance, Ownership & Risk

Who is accountable when a leaked secret is used to access business systems?

← Back to all FAQ
By NHI Mgmt Group Editorial Team Updated June 10, 2026 Domain: Governance, Ownership & Risk

Accountability belongs to the team that created, approved, or failed to retire the credential, not only to the security function that discovered it. If the credential was used in an automation or AI workflow, the workflow owner also has responsibility for revocation, proof, and post-incident cleanup.

Why This Matters for Security Teams

When a leaked secret reaches business systems, accountability is not limited to the team that found it. It sits with the people who issued the credential, approved its use, embedded it in automation, and failed to retire it on time. That distinction matters because leaked secrets are often only the visible symptom of a wider control failure across development, operations, and governance. NHI Management Group’s research on Guide to the Secret Sprawl Challenge shows why discovery alone is not enough when secrets remain active after exposure.

This problem is amplified by the scale of modern secret leakage. GitGuardian reported in The State of Secrets Sprawl 2026 that 64% of valid secrets leaked in 2022 are still valid and exploitable today, which means a leaked secret can remain an operational risk long after the incident is first detected. In practice, many security teams encounter the real accountability gap only after the credential has already been used to reach production systems, rather than through intentional ownership reviews.

How It Works in Practice

Accountability should follow the credential lifecycle, not just the incident response team. The team that created the secret owns issuance hygiene, the team that approved its use owns risk acceptance, and the workflow owner owns revocation, evidence, and cleanup when the secret is embedded in pipelines, scripts, or agents. For autonomous or AI-driven workflows, this becomes more urgent because the secret may be consumed by a non-human actor with broader tool access and less predictable behavior. The OWASP Non-Human Identity Top 10 is a useful reference for mapping these identity and credential risks to concrete controls.

Operationally, strong teams treat leaked-secret response as a chain of obligations:

  • Confirm where the secret was stored, copied, and executed.
  • Identify the system owner and the workflow owner, not just the detection team.
  • Revoke or rotate the secret immediately, then verify dependent services still function.
  • Check for reuse across repositories, agents, CI/CD runners, and shared tooling.
  • Document proof of revocation and the business impact of the exposure.

Where automation is involved, current guidance suggests using short-lived credentials, explicit ownership tags, and task-scoped access so revocation is enforceable. The CI/CD pipeline exploitation case study shows why pipeline identities and runner permissions must be treated as accountable actors in their own right. These controls tend to break down in sprawling CI/CD environments with shared runners and hardcoded secrets because ownership becomes ambiguous and revocation cannot be proven quickly.

Common Variations and Edge Cases

Tighter secret governance often increases operational overhead, so organisations have to balance speed against provable ownership and cleanup. That tradeoff becomes especially visible when multiple teams share the same service account, or when a secret supports a legacy integration that cannot be rotated without downtime. In those cases, best practice is evolving rather than settled, and the right answer is usually temporary containment plus a dated remediation plan, not a permanent exception.

There is also a difference between detection accountability and business accountability. Security may discover the leak, but the application owner still owns the system that accepted the credential, and the platform or AI workflow owner still owns the path by which it was used. For AI-assisted development and agentic workflows, this is even more important because the same exposed credential may be replicated into code, prompts, logs, or tool memory. NHI Management Group’s 52 NHI Breaches Analysis is a useful reminder that exposure events often become incidents because retirement was not enforced, not because discovery was absent.

Where secrets are embedded in external collaboration tools, email, or ticketing systems, accountability can spread across business and technical owners. That is a genuine governance challenge, but it does not remove responsibility. It simply means the incident record should name every team that created, approved, reused, or delayed retirement of the credential.

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 and CSA MAESTRO address the attack and risk surface, while NIST AI RMF set the governance and control requirements practitioners need to meet.

FrameworkControl / ReferenceRelevance
OWASP Non-Human Identity Top 10NHI-03Leaked secrets require fast revocation and rotation of non-human credentials.
CSA MAESTROIAM-06Agentic and automated workflows need clear ownership for credential use and cleanup.
NIST AI RMFGOVERNAI workflows using leaked secrets require governance, accountability, and traceability.

Define accountable owners for AI-enabled secret use and require audit evidence for incident cleanup.

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