A single compromised push credential can turn ordinary release automation into a distribution path for malware. That risk is amplified when attackers can publish signed artifacts, because provenance may still look legitimate. Security teams should treat repository write access, CI tokens, and release roles as high-value identities that need tight least privilege, monitoring, and rapid revocation.
Why This Matters for Security Teams
Source-control credentials and non-human identities are not just operational conveniences. They are often the trusted path into build systems, package registries, signing services, and deployment pipelines. When one of those identities is compromised, the attacker can move from a single account to a broad software distribution channel, which is why guidance from the OWASP Non-Human Identity Top 10 is so relevant here. The core issue is trust amplification: a token with narrow technical scope can still sit at a point where small misuse has enterprise-wide impact.
Security teams often underestimate how quickly these credentials become production-critical. Repository write access can alter source code, CI tokens can change build outputs, and release roles can publish artefacts that downstream teams assume are authentic. If those identities are not governed with the same discipline as privileged human accounts, the organisation may inherit silent exposure through dependency updates, build automation, and signed releases. In practice, many security teams encounter this only after a trusted pipeline has already been used to distribute malicious code rather than through intentional supply-chain design.
How It Works in Practice
The risk is outsized because software supply chains chain trust across multiple systems. A repository credential may allow a commit, a CI secret may allow a build, and a signing key may allow a release that other systems accept without question. Attackers do not need every step; they only need one identity with enough reach to influence artefacts that are consumed widely. This is why NIST security controls around access restriction, audit logging, and key management remain directly relevant, especially in the NIST SP 800-53 Rev 5 Security and Privacy Controls and the NIST Cybersecurity Framework 2.0.
In practical terms, teams should treat the following as separate trust zones:
- Source-control write access, including branch protection bypass and merge permissions.
- CI and CD tokens that can invoke builds, fetch secrets, or publish packages.
- Signing credentials for artefact attestation and release verification.
- Automation identities used by bots, runners, and deployment controllers.
Controls need to cover the full lifecycle: issuance, rotation, scoped permissioning, short-lived use, auditability, and rapid revocation. Secret storage alone is not sufficient if a token can still perform high-impact actions for long periods. Mature programmes also separate duties so that the identity that changes code is not the same one that signs or publishes it. Where machine identities are used in developer tooling, current guidance suggests applying the same identity governance discipline used for high-risk human access, including traceability and ownership. These controls tend to break down when CI/CD environments reuse long-lived credentials across many repositories because compromise in one pipeline then exposes the entire release estate.
Common Variations and Edge Cases
Tighter release controls often increase engineering overhead, requiring organisations to balance delivery speed against trust assurance. That tradeoff becomes more visible in fast-moving environments such as open-source maintainership, multi-team monorepos, and ephemeral build runners. Best practice is evolving, and there is no universal standard for how much automation should be fully autonomous versus manually gated. The safest pattern depends on how sensitive the artefact is, who consumes it, and whether the pipeline can prove provenance end to end.
Compromise scenarios also vary by ecosystem. Package ecosystems with weak publishing controls, federated identity systems with broad token reuse, and environments that sign artefacts after build rather than before release all create different exposure paths. In AI-adjacent software supply chains, the risk can extend to model files, prompt assets, and evaluation artefacts, especially when agentic automation has permission to fetch secrets or publish updates. The Anthropic report on an Anthropic — first AI-orchestrated cyber espionage campaign report is a reminder that autonomous tooling can accelerate abuse when identities are over-privileged. For environments handling regulated or high-trust releases, alignment with NIST SP 800-63 Digital Identity Guidelines is useful where assurance, authentication strength, and lifecycle governance intersect.
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 OWASP Agentic AI Top 10 address the attack and risk surface, while NIST CSF 2.0, NIST AI RMF and NIST SP 800-63 set the governance and control requirements practitioners need to meet.
| Framework | Control / Reference | Relevance |
|---|---|---|
| OWASP Non-Human Identity Top 10 | Defines risks and controls for machine identities used in pipelines and releases. | |
| NIST CSF 2.0 | PR.AC, PR.DS, DE.CM | Access control, data protection, and monitoring are central to supply-chain credential abuse. |
| NIST AI RMF | AI-enabled automation in supply chains needs governance over trust, validity, and misuse. | |
| OWASP Agentic AI Top 10 | Agentic tools may wield source-control or CI permissions that attackers can abuse. | |
| NIST SP 800-63 | Assurance and lifecycle governance matter for high-trust identities used in release systems. |
Inventory non-human identities, scope permissions tightly, and rotate or revoke them fast.
Related resources from NHI Mgmt Group
Deepen Your Knowledge
Reviewed and updated by the NHIMG editorial team on August 24, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org