Subscribe to the Non-Human & AI Identity Journal

Service account policy

The authentication and access rules that govern a non-human account. In practice this includes allowed protocols, source and destination limits, and risk thresholds, all of which determine how much damage the account can do if abused.

Expanded Definition

service account policy is the rule set that limits what a non-human account can do, where it can authenticate from, and which systems it can reach. In NHI governance, the policy should be treated as a control surface, not a static document, because service accounts often support automation, integrations, and agentic workflows that change faster than human-led processes.

A strong policy usually defines protocol allowlists, network or workload source constraints, destination scoping, credential lifetime, and thresholds for elevated activity. It also clarifies whether the account may create tokens, call sensitive APIs, or act on behalf of other identities. That places it squarely within least privilege and Zero Trust thinking, as reflected in the NIST Cybersecurity Framework 2.0 and the NHIMG guidance on Lifecycle Processes for Managing NHIs.

Definitions vary across vendors when service account policy is bundled with secrets rotation, PAM, or workload identity policy, so practitioners should separate the account’s permitted behavior from the mechanics of how credentials are issued or stored. The most common misapplication is treating a service account policy as a one-time onboarding checklist, which occurs when permissions are never revalidated after the workload, environment, or integration changes.

Examples and Use Cases

Implementing service account policy rigorously often introduces operational friction, requiring organisations to weigh tighter blast-radius reduction against the cost of maintaining more specific rules.

  • A CI/CD service account is allowed to deploy only to a single namespace and only from approved runners, reducing the risk that stolen credentials can be reused elsewhere.
  • A data pipeline account may read from one storage bucket and write to one analytics workspace, but it is blocked from listing other resources or minting new credentials.
  • An API integration account is restricted to mTLS or signed requests from known workload identities, which aligns with the identity-bound control model described in the Top 10 NHI Issues.
  • A database migration account is time-bound for a maintenance window and then disabled, so the policy supports JIT-style access instead of permanent entitlement.
  • An agentic AI tool account is limited to low-risk functions and non-production endpoints, reflecting the caution discussed in the Ultimate Guide to NHIs — What are Non-Human Identities.

For teams building the policy, the key question is not whether the account can authenticate, but what the account should never be allowed to reach, create, or modify. That framing helps align the policy with workload design rather than retrofitting controls after deployment.

Why It Matters in NHI Security

Service account policy is one of the clearest ways to convert NHI risk into enforceable boundaries. Without it, service accounts tend to accumulate broad privileges, long-lived credentials, and implicit trust across environments, which makes compromise harder to contain and forensics harder to interpret. NHIMG notes that 97% of NHIs carry excessive privileges, a signal that policy gaps are not theoretical but systemic.

Policy also matters for auditability. A well-scoped service account makes it easier to answer what an automation identity was supposed to do, where it was allowed to connect, and whether behavior drifted over time. That becomes especially important when secrets are leaked, tokens are replayed, or third-party integrations are over-permissioned. The NHIMG analysis in 52 NHI Breaches Analysis and the broader governance lens in Regulatory and Audit Perspectives both show that weak NHI boundaries are rarely discovered until an incident forces the issue.

Organisations typically encounter the consequences only after a service account is abused for lateral movement, at which point service account policy becomes operationally unavoidable to address.

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 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-01 Service account policy governs NHI permissions, scope, and misuse resistance.
NIST CSF 2.0 PR.AC-4 Least-privilege access and authorization boundaries directly map to this term.
NIST Zero Trust (SP 800-207) SC-7 Zero Trust requires workload identities to be continuously constrained by policy.

Define explicit workload boundaries, rotate privileges, and remove standing access for every service account.