Subscribe to the Non-Human & AI Identity Journal

Who should be accountable for secrets that belong to applications or service accounts?

Accountability should sit with the team that owns the workload, not with a generic security inbox. Secrets tied to applications, pipelines, or machine identities need a named operational owner who can approve rotation and revocation, and an identity programme that tracks those decisions through the lifecycle.

Why This Matters for Security Teams

Secrets tied to applications and service accounts are not general IT assets, because they directly control what a workload can do in production, pipelines, and third-party services. When ownership is vague, rotation stalls, revocation is delayed, and the first responder is often a security mailbox with no ability to act. That is why NHI Management Group treats workload ownership as an operational accountability problem, not a ticket-routing problem. The risk shows up clearly in the Guide to the Secret Sprawl Challenge and in OWASP Non-Human Identity Top 10 guidance, both of which reflect how unmanaged machine credentials become persistent attack paths.

NHIMG research also shows the scale of the problem: in The State of Secrets in AppSec, GitGuardian & CyberArk report that the average estimated time to remediate a leaked secret is 27 days, despite 75% of organisations expressing strong confidence in their secrets management capabilities. In practice, many security teams discover accountability gaps only after a secret has already been exposed or abused, rather than through intentional lifecycle control.

How It Works in Practice

Accountability should follow the workload owner, meaning the engineering team, platform team, or product group that can explain why the secret exists, where it is used, and who can safely change it. Security teams still set policy, define minimum controls, and monitor exceptions, but they should not be the default approver for every rotation or revocation event. Current guidance suggests assigning one named operational owner per application or service account, plus a backup approver, so there is always a human responsible for action.

In mature environments, that ownership maps to a few practical controls:

  • Each secret is linked to a specific application, pipeline, or machine identity.
  • The owner approves issuance, rotation cadence, and revocation triggers.
  • Secrets are stored and tracked in a central inventory so ownership survives team changes.
  • Access reviews include business justification, not just technical presence.
  • Expiry, rotation, and incident response are automated wherever possible.

This model aligns with the broader machine identity lifecycle described in the Ultimate Guide to NHIs — Static vs Dynamic Secrets, where short-lived credentials reduce the window of abuse and make ownership easier to enforce. It also fits the spirit of the CI/CD pipeline exploitation case study, because pipeline secrets are only safe when the team operating the pipeline can revoke them quickly. These controls tend to break down when service accounts are shared across multiple teams because no single owner can confidently approve change or accept operational impact.

Common Variations and Edge Cases

Tighter ownership often increases coordination overhead, requiring organisations to balance speed of delivery against the discipline of clear accountability. That tradeoff is real in shared platforms, legacy applications, and cross-functional automation, where one secret may support several services or a vendor integration. In those cases, best practice is evolving, but the safest approach is still to nominate a primary owner, document secondary stakeholders, and make revocation authority explicit rather than implied.

Edge cases matter. Shared service accounts should not become permanent exceptions, because they make it hard to prove who accepted risk when a secret leaks. Vendor-managed integrations are similar: the internal team that consumes the service remains accountable for confirming scope, expiry, and offboarding, even if the vendor issues the credential. For secrets that appear in build systems, the platform or DevOps team usually owns the pipeline mechanics, while the product team owns business justification and access need. The relevant lesson is consistent across breach analysis in the 52 NHI Breaches Analysis: the issue is rarely just secret leakage, but the lack of a named party who can act before reuse turns into compromise.

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 Covers ownership and lifecycle control for non-human secrets and identities.
NIST CSF 2.0 PR.AA-01 Identity and access accountability depend on knowing who owns each workload credential.
NIST AI RMF GOVERN Accountability for autonomous or automated systems requires clear operational ownership.

Assign each application secret a named owner and enforce rotation and revocation through that owner.