Join our Newsletter — 33% off our NHI Course
Home FAQ Governance, Ownership & Risk How should security teams secure non-human access in…
Governance, Ownership & Risk

How should security teams secure non-human access in developer endpoints and CI/CD pipelines?

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

Security teams should treat machine-created credentials as first-class identities and control them at the point of use. That means discovering where tokens, keys, and certificates are created, avoiding hardcoded secrets, limiting standing access, and tying issuance to the task and environment. The goal is to reduce unmanaged credential risk without blocking automation or AI workflows.

Why This Matters for Security Teams

Developer endpoints and CI/CD pipelines are where non-human access becomes operational, not theoretical. Build agents, package managers, test runners, and deployment automation all depend on machine-created credentials, and those credentials often outlive the job that created them. Once a token, key, or certificate is reused across repos or runners, compromise spreads quickly across the software delivery chain.

This is why the issue is more than secret hygiene. The OWASP Non-Human Identity Top 10 treats unmanaged machine identities as a security class in their own right, and NHIMG research shows why: GitGuardian found that 59% of compromised machines in a major 2025 supply chain attack were CI/CD runners rather than personal workstations, underscoring how heavily attackers target automation infrastructure. The practical risk is that pipeline trust is often assumed, while the actual execution environment is transient, shared, and frequently over-permissioned. In practice, many security teams discover secret exposure only after a runner, repository, or deployment credential has already been reused outside its intended scope.

How It Works in Practice

Securing non-human access in developer endpoints and CI/CD pipelines starts with replacing static credentials with task-bound identity and policy. That means issuing access only when a job starts, scoping it to the repository, branch, environment, or build stage, and revoking it automatically when the task completes. Current guidance suggests this is best handled with short-lived tokens, workload identity, and policy-as-code rather than manual approvals or long-lived service accounts.

For example, a pipeline should authenticate using a workload identity that proves what the runner is, not just a copied secret stored on disk. Teams commonly use OIDC-based federation, SPIFFE-style workload identity, or cloud-native identity brokers to avoid baking credentials into images, variables, or local config. The control objective is simple: the pipeline should be able to prove its identity at runtime and receive only the minimum access needed for that exact action.

  • Discover where secrets are created, injected, and cached across local developer machines, runner templates, artifact stores, and deployment tools.
  • Replace long-lived keys with JIT credentials that expire after the build, test, or deploy window closes.
  • Bind access to environment context such as repo, branch, actor, runner image, and target system.
  • Log issuance, use, and revocation so secret reuse can be detected before it becomes lateral movement.
  • Prefer central policy evaluation over ad hoc permissions inside scripts or YAML.

NHIMG’s The State of Secrets Sprawl 2026 reports that 64% of valid secrets leaked in 2022 are still valid and exploitable today, which is why detection alone is insufficient without automated revocation. That is also why developer workflow controls need to be paired with findings from Guide to the Secret Sprawl Challenge and enforced through standards like NIST SP 800-53 Rev 5 Security and Privacy Controls. These controls tend to break down when legacy runners, shared service accounts, or unmanaged developer laptops still require persistent credentials because revocation becomes operationally unsafe.

Common Variations and Edge Cases

Tighter pipeline access often increases operational overhead, requiring organisations to balance delivery speed against control depth. That tradeoff is real, especially when teams support multiple languages, self-hosted runners, ephemeral preview environments, and external integrations that were built around static secrets.

There is no universal standard for every CI/CD pattern yet, so teams should treat some practices as evolving guidance. For highly regulated pipelines, separate identities per environment are usually justified. For low-risk internal builds, a narrower set of shared controls may be acceptable if secrets are still short-lived and centrally monitored. The same logic applies to developer endpoints: local tooling can be enabled with device-bound credentials, but only if revocation, session visibility, and workstation posture checks are reliable.

Edge cases appear when automation spans multiple trust zones, such as GitHub Actions calling internal deployment systems, or AI coding tools generating commits that touch secret-bearing files. NHIMG research on the Reviewdog GitHub Action supply chain attack shows how quickly trusted automation can become a credential exposure path. In these environments, security teams should assume that tool chains will be chained together by attackers, not just by engineers, and design controls accordingly.

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

FrameworkControl / ReferenceRelevance
OWASP Non-Human Identity Top 10NHI-01Directly addresses unmanaged machine identities in pipelines and developer endpoints.
OWASP Agentic AI Top 10A-04Pipeline automation increasingly behaves like autonomous tooling with runtime decisions.
CSA MAESTROMA-02Covers workload identity and trust boundaries for machine-driven automation.
NIST AI RMFUseful where AI coding and build tools alter risk and require governance.
NIST CSF 2.0PR.AC-4Least privilege and access management are central to non-human access control.

Inventory every non-human identity and remove unknown or duplicated pipeline credentials.

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