Security teams should treat attestations as proof that both the build process and the artifact itself are trustworthy. The pipeline should verify the artifact hash, confirm the attestation was signed by an authorised key, and check that the artifact came from the expected workflow. That combination helps block poisoned artifacts created through tampered pipelines or altered build inputs.
Why attestations matter beyond simple checksum checks
Software attestations are most useful when they prove provenance, not just integrity. For CI/CD security, that means validating that the artifact hash matches what was built, that the signing key is authorised, and that the build came from the expected workflow rather than an altered or bypassed path. The control only works if teams treat those checks as mandatory policy, not optional metadata.
That distinction matters because artifact poisoning usually exploits trust in the pipeline itself, for example through tampered build inputs, compromised build steps, or a substituted artifact that still looks structurally valid. An attestation can narrow that trust boundary if it is bound to the exact build context and the exact output.
- SLSA is the clearest external reference for build provenance and integrity verification in supply chains.
- Use Reviewdog GitHub Action supply chain attack to understand how a compromised action can turn trusted automation into a poisoning path.
- CI/CD pipeline exploitation case study shows how pipeline mismanagement and exposed material can let a poisoned artifact reach production.
What to verify in the pipeline before promotion
The most reliable verification sequence is simple: validate the artifact digest first, then validate the attestation signature, then validate that the claimed build identity and workflow match the expected source. If any one of those checks fails, the artifact should be treated as untrusted even if the package name, version, or repository metadata looks normal.
Teams should also verify that the attesting key is controlled by an approved issuer and that the attestation actually refers to the artifact being deployed, not a nearby or stale build output. That prevents attackers from replaying a legitimate attestation against a different binary, container image, or archive.
- SPIFFE workload identity specification is useful when you want the attestation chain to bind build or deployment trust to a concrete workload identity model.
- OWASP Non-Human Identity Top 10 helps frame the surrounding risk when pipeline credentials, signing keys, or automation identities are overprivileged or poorly governed.
- Shai Hulud npm malware campaign is a strong example of how supply-chain compromise can expose secrets and contaminate downstream builds.
Risk and Threat Considerations
Artifact poisoning is dangerous because a valid-looking artifact can still be malicious if the build process, inputs, or signing path were compromised. The failure is often not at deployment time, but earlier, when a trusted pipeline produces something attackers can later reuse, replay, or swap into release flow.
Failure mechanism: Attackers compromise build inputs, package dependencies, pipeline steps, or signing material, then generate or replay an attestation that appears legitimate while referring to a poisoned artifact.
Impact: Teams may deploy malicious code with a trusted provenance wrapper, which weakens release assurance, expands blast radius, and can make incident response slower because the artifact appears to have passed normal controls.
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 MITRE ATT&CK address the attack and risk surface, while CIS Controls v8, 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 |
|---|---|---|
| CIS Controls v8 | CIS 16 — Application Software Security | Build and artifact validation are software assurance controls in the release path. |
| CIS 15 — Service Provider Management | Poisoned artifacts often enter through third-party build and dependency paths. | |
| Recommendation — Require signed provenance checks before promoting artifacts into release. Validate supplier-controlled build inputs and release artifacts before trust. | ||
| NIST CSF 2.0 | PR.DS — Data Security | Artifact integrity and provenance checks protect release assets from tampering. |
| PR.AC — Identity Management, Authentication and Access Control | Attestation trust depends on authorised signing keys and controlled workflow access. | |
| Recommendation — Protect release artifacts with integrity verification and controlled trust decisions. Limit signing and workflow privileges to approved build identities. | ||
| NIST Zero Trust (SP 800-207) | SC-7 — Boundary Protection | Pipeline trust boundaries must be enforced at artifact promotion points. |
| Recommendation — Enforce trust decisions at each pipeline boundary before artifact promotion. | ||
| OWASP Non-Human Identity Top 10 | NHI-01 — Secrets and Credential Management | Signing keys and pipeline secrets are identity-bearing material that attackers abuse in poisoning. |
| NHI-04 — Identity and Access Governance | Only approved automation identities should be able to sign or attest releases. | |
| Recommendation — Rotate and protect signing credentials used by CI/CD automation. Restrict attestation and signing privileges to explicitly governed automation identities. | ||
| MITRE ATT&CK | T1552 — Unsecured Credentials | Pipeline compromise often relies on theft of signing keys or secrets used in build trust. |
| Recommendation — Hunt for exposed CI/CD secrets that could sign poisoned artifacts. | ||
Practitioner Guidance
What to verify: Treat attestation policy as a deployment gate, not a reporting control. Verify hash, signature, workflow identity, and issuer binding together, because any single check on its own leaves room for replay or substitution.
Common mistake: Teams often trust an attestation because it exists, then stop short of checking whether it is bound to the exact artifact and exact workflow run. That creates a false sense of supply-chain assurance.
Practitioner takeaway: The control objective is to prove that the artifact was built by the expected process and has not been swapped since, so the attestation must be validated as an end-to-end provenance claim rather than a standalone signature.
Related resources from NHI Mgmt Group
- How should security teams prevent artifact poisoning in CI/CD pipelines when signing releases?
- How should security teams prevent 403 errors in CI/CD pipelines?
- How should security teams implement software composition analysis in CI/CD pipelines?
- How should security teams prevent malicious Docker images from entering CI/CD pipelines?
Deepen Your Knowledge
Reviewed and updated by the NHIMG editorial team on September 20, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org