Join our Newsletter — 33% off our NHI Course
Home› Glossary› Architecture & Implementation› Source Revision
Architecture & Implementation

Source Revision

← Back to Glossary
By NHI Mgmt Group Updated November 26, 2026 Domain: Architecture & Implementation

A Source Revision is a specific, identifiable version of source code, usually a commit or changeset, from which a build is produced. Recording it in build provenance lets defenders trace an artefact back to the code it came from. Without it, tampered builds and unreviewed commits are hard to detect. Pin deployments to exact revisions, not moving branches or tags.

What Source Revisions Do in Build Provenance

A source revision is the exact code state a build came from, so provenance records can point back to a specific commit or changeset instead of a moving branch name. That precision matters because it lets defenders answer a simple but critical question: which code produced this artefact, and was that code actually reviewed and intended?

In practice, the revision is the anchor that connects source control history to the shipped artefact. If a deployment only records “main” or a mutable tag, the record can drift over time and stop describing what was built. Exact revision capture turns build history into something auditable rather than approximate.

Why Exact Revisions Matter for Integrity

The security value of a source revision is traceability. When a build can be tied to an immutable revision, teams can compare the deployed artefact against the source tree, review the associated change history, and look for tampering or unreviewed commits. That is the basic defence against provenance gaps that let malicious or accidental changes disappear into the release process.

Exact revision pinning also reduces ambiguity in incident response. If a problem is discovered in production, responders need to know whether it was introduced by the code itself, the build pipeline, or a post-build modification. A stable revision identifier narrows that search quickly and makes later verification possible.

How Source Revisions Are Used in Release Pipelines

Source revisions are typically recorded at build time and carried forward in artefact metadata, attestations, release records, or deployment manifests. The goal is not just to name a commit, but to preserve a verifiable chain from source to build to deployment. That chain is strongest when the build process refuses to move with branches or tags that can be rewritten later.

The operational pattern is straightforward: build from an exact revision, promote that artefact without rebuilding it from a different source state, and keep the revision reference attached wherever the artefact is stored or deployed. This is what makes later validation meaningful, especially in multi-stage pipelines where the same code may pass through several systems.

Revision Pinning Versus Mutable References

Branches and tags are convenient for developers, but they are poor provenance anchors because they describe a label that can move. A source revision does the opposite: it freezes the source reference to one immutable point in history. That distinction is central to build integrity, because the same label can otherwise point to different code at different times.

This is why source revision tracking is more than housekeeping. It is the mechanism that separates reproducible, reviewable releases from builds whose origin has to be guessed after the fact. When teams want trustworthy provenance, the revision should be treated as the source of truth, while branches and tags remain human-friendly pointers only.

Risk and Threat Considerations

When source revisions are not captured precisely, tampering, accidental drift, and unreviewed source changes become much harder to detect. The risk is not limited to build mistakes, because an attacker who can alter source state or substitute a different revision can create a release that looks legitimate while hiding the true origin of the artefact.

Failure mechanism: Mutable references, incomplete provenance, or weak build metadata let a build be associated with the wrong source state, which obscures review gaps and can conceal code insertion or substitution.

Impact: Defenders lose reliable traceability, post-incident reconstruction becomes weaker, and compromised or unauthorized code can reach production with less chance of being spotted quickly.

Standards & Framework Alignment

This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.

SLSA, NIST SP 800-53 Rev 5 and CIS Controls v8 set the technical controls, while ISO/IEC 27001:2022 defines the regulatory obligations.

FrameworkControl / ReferenceRelevance
SLSASource provenanceSource revisions are central to SLSA source provenance and build traceability.
Recommendation — Record and verify the exact source revision used for each build artifact.
NIST SP 800-53 Rev 5CM-2 — Baseline ConfigurationExact revisions support controlled, reviewable build baselines and change traceability.
CM-5 — Access Restrictions for ChangePinning builds to exact revisions helps restrict and audit source changes before release.
SI-7 — Software, Firmware, and Information IntegrityRevision traceability helps detect tampering or unreviewed source substitutions.
Recommendation — Establish build baselines from immutable source revisions and track deviations. Require approved, traceable source changes before a build can be released. Verify build integrity against the recorded source revision before deployment.
ISO/IEC 27001:2022A.8.9 — Configuration managementExact source revisions are a configuration-control measure for build provenance.
Recommendation — Maintain immutable source revision records for each released build.
CIS Controls v8CIS-16 — Application Software SecuritySource revision pinning strengthens software release integrity and traceability.
Recommendation — Tie releases to immutable source revisions and review them before promotion.

Practitioner Guidance

Why practitioners should care: Treat the source revision as a required provenance field, not an optional convenience. If a release cannot be traced to an exact revision, the artefact should be treated as lower trust until the chain is repaired or revalidated.

What to watch for: Be wary of pipelines that build from branches, floating tags, or manually updated references without recording the exact commit hash or equivalent changeset. Those patterns make later verification fragile and complicate both audit and incident response.

Practitioner takeaway: The safest release record is one that answers the provenance question without interpretation: this artefact was built from this exact revision, and nothing else.

Free weekly newsletter

Subscribe to the NHI & AI Identity Journal

The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.

Bonus 33% off our NHI Course when you subscribe.

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