A supply chain compromise where the published package or tarball differs from the source repository or expected build output. The attacker targets the artifact that developers actually consume, which makes repository review alone an incomplete trust control.
Expanded Definition
Registry-Artifact Attack describes a supply chain compromise in which the artifact a team pulls from a registry, package index, container registry, or release channel is not the same trusted output that developers reviewed in source control. In NHI security, the risk is not limited to malicious code in a repository; it also includes tampering with build outputs, release bundles, and published packages that agentic systems or CI/CD jobs later execute. Definitions vary across vendors on whether the term should cover only intentional substitution or also accidental drift between source and artifact, but the operational concern is the same: the consumed object is what must be trusted. This aligns with broader software integrity guidance in NIST software supply chain integrity guidance and the identity-centric risk patterns discussed in Top 10 NHI Issues. The most common misapplication is treating repository review as sufficient assurance when the deployment pipeline actually installs a different artifact.
Examples and Use Cases
Implementing artifact integrity rigorously often introduces release friction, requiring organisations to weigh faster publishing against stronger verification at every consumption point.
- A Python package is approved in source review, but the published wheel in the index contains additional code that exfiltrates secrets when an agent imports it.
- A container image is built from clean source, then altered in a registry before a deployment job pulls it into a runtime that holds NHI tokens.
- A release tarball is signed inconsistently with the repository tag, so a build system retrieves an artifact that no longer matches the audited commit.
- An internal model-serving toolchain consumes a dependency from a mirror, but the mirrored package differs from the upstream source used in approval workflows.
- For context on how hidden payloads and exposed credentials frequently coexist in supply-chain incidents, compare this with Massive Docker Hub Secrets Leak and the broader abuse patterns in CISA cyber threat advisories.
Teams also use registry-artifact controls to protect signed packages, provenance attestation, and build promotions across environments. When those controls are absent, a trusted repository becomes a weak signal rather than a trust boundary.
Why It Matters in NHI Security
Registry-Artifact Attack is especially dangerous in NHI environments because CI/CD systems, service accounts, and AI agents often run with broad execution authority and persistent secret access. Once a malicious artifact enters the pipeline, it can steal credentials, pivot into registries, or quietly replace dependencies used by downstream automation. NHIMG research shows that 96% of organisations store secrets outside of secrets managers in vulnerable locations including code, config files, and CI/CD tools, which makes a compromised artifact far more likely to yield usable credentials once executed. The issue is amplified by the fact that 79% of organisations have experienced secrets leaks, with 77% of those incidents resulting in tangible damage, as documented in Ultimate Guide to NHIs. That risk context pairs with external guidance from NIST SP 800-53 Rev 5 Security and Privacy Controls and MITRE ATT&CK Enterprise Matrix, where software integrity and execution-path abuse are treated as practical compromise vectors. Organisations typically encounter this consequence only after a package is deployed and an NHI token or API key has already been exfiltrated, at which point registry-artifact trust 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 SP 800-53 Rev 5 set the governance and control requirements practitioners need to meet.
| Framework | Control / Reference | Relevance |
|---|---|---|
| OWASP Non-Human Identity Top 10 | NHI-06 | Covers supply-chain and artifact trust weaknesses that let malicious packages reach NHI runtimes. |
| NIST CSF 2.0 | PR.DS-6 | Addresses integrity of software and information in transit and at rest across the supply chain. |
| NIST SP 800-53 Rev 5 | SI-7 | Integrity controls apply when the artifact differs from the reviewed source or expected output. |
Verify package provenance, sign artifacts, and block mismatched builds before they reach NHI-executing systems.
Related resources from NHI Mgmt Group
Deepen Your Knowledge
Reviewed and updated by the NHIMG editorial team on August 20, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org