Subscribe to the Non-Human & AI Identity Journal

Who is accountable when exposed machine secrets are found in a public repository or portal?

Accountability should sit with the team that owns the workload, repository, or portal where the secret was exposed, supported by the identity or platform team that controls rotation and access policy. NHI governance works when ownership, remediation authority, and service dependency knowledge are all clear before the next incident.

Why This Matters for Security Teams

When a machine secret shows up in a public repository or portal, the issue is not just leakage. It is a breakdown in ownership, rotation, and dependency control. The accountable team is usually the one operating the workload or publishing the content, because that team can revoke access, replace the secret, and prevent recurrence. NHI governance fails when identity ownership is split across platform, app, and security functions with no clear decision path.

This matters because exposed secrets are often reused, duplicated, or left active long after discovery. NHIMG research shows that 62% of all secrets are duplicated and stored in multiple locations, which turns one mistake into several live exposures at once. The Guide to the Secret Sprawl Challenge explains why discovery without ownership rarely leads to real containment, and the 52 NHI Breaches Analysis shows the same pattern across incidents where service dependencies were not mapped before exposure.

Industry guidance is aligned on the need for accountability, but the operational detail is still evolving. The OWASP Non-Human Identity Top 10 treats ownership and lifecycle control as core issues, not optional hygiene. In practice, many security teams encounter exposed secrets only after a public commit, ticket, or portal screenshot has already been indexed and reused by an attacker.

How It Works in Practice

The first step is to assign a named owner for every workload secret, token, certificate, and API key. That owner should be the team that can take action, not just the team that noticed the problem. Identity or platform teams support the process by enforcing rotation policy, shortening token lifetime, and removing standing access where possible. This is where Ultimate Guide to NHIs — Static vs Dynamic Secrets is useful: static secrets create long recovery windows, while dynamic secrets and JIT provisioning reduce blast radius when exposure happens.

A workable response flow usually includes four actions:

  • confirm which workload, pipeline, or portal exposed the secret;
  • identify the service that depends on it, including downstream automation;
  • revoke or rotate immediately, then verify the old credential no longer works;
  • record the owner, approver, and remediation timestamp so the same gap can be audited later.

For high-volume environments, identity evidence should be treated as part of the asset record, not as an afterthought. That means tying each secret to a repository, workload, and deployment path, then using policy checks to block public exposure before merge or publish. This is consistent with the CI/CD pipeline exploitation case study, where pipeline trust was abused because credential scope was broader than the team realised. External guidance from the Anthropic report on AI-orchestrated cyber espionage reinforces a practical point: once an attacker gets a working secret, they can chain tools and pivot quickly.

These controls tend to break down when secrets are embedded in shared automation, because no single team can prove who owns the runtime dependency.

Common Variations and Edge Cases

Tighter secret ownership often increases operational overhead, requiring organisations to balance fast delivery against stronger dependency tracking. That tradeoff becomes visible in shared platforms, managed portals, and delegated admin models where the publishing team may not control the underlying secret store. Current guidance suggests the accountable team should still be the one closest to the workload outcome, but there is no universal standard for every shared-service arrangement yet.

Edge cases usually involve third-party integrations, contractors, and ephemeral build systems. If a secret is embedded in a vendor portal, the business owner of the integration is still accountable for the exposure, while the platform team may own the mechanics of rotation. If the secret is used by an AI-enabled workflow or agent, the governance bar is higher because autonomous systems can reuse credentials in ways that are not obvious from human access patterns. The safest practice is to combine explicit ownership with OWASP Non-Human Identity Top 10 style lifecycle controls and zero-standing-access principles.

The Shai Hulud npm malware campaign and the Reviewdog GitHub Action supply chain attack both show how quickly a leaked machine secret becomes a platform-wide issue when credentials are long-lived or overly shared. The practical rule is simple: accountability sits with the team that can fix the dependency, not with the team that first noticed the breach.

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-03 Addresses secret rotation and lifecycle control after exposure.
NIST CSF 2.0 PR.AC-1 Maps to identity governance and access accountability for exposed secrets.
NIST AI RMF GV.2 Supports governance and accountability for autonomous or tool-using systems.

Tie each machine secret to an accountable owner and limit access to only required systems.