security
Match a dependency finding to the artifact that ships
Follow a vulnerable dependency from package evidence to the build manifest and runtime artifact before deciding which service team should remediate it.
TrustIvan · · 10 min read
A source scan reports an affected archive parser in a repository that builds a web server, a background worker and an administrative tool. The web image does not copy the parser, the worker bundles one version into its application output, and the administrative tool uses it only during build. A single repository-level finding gives the team a reason to investigate. Ownership and closure depend on which artifact contains which version and where that artifact is used.
Trace four scope boundaries. Record the finding's original package evidence, the inputs selected by the build, the output that contains the component, and the deployed workload serving the relevant operation. Each boundary can produce a separate observation. Keep unresolved links explicit and assign them to the owner who can verify them.
Start with the original evidence, not just the affected name
Record package ecosystem, package coordinates or stable component identifier, exact version, package or bundle path, advisory identity and scanner observation. Distinguish a report based on declared packages from one based on a resolved graph, an SBOM or packaged filesystem bytes. If two reports have the same package display name but differ in ecosystem or version, the issue needs disambiguation before ownership can be assigned.
Preserve the scanner's report ID and underlying identity. In an SBOM, internal references can associate findings and evidence with a component in that bill. A reference that is meaningful inside one BOM may need context before joining across two documents. Record the BOM identity, its subject and relevant component coordinates when comparing reports. The CycloneDX 1.6 JSON reference documents component and dependency representations used in one common exchange format.
Confirm which version range and packaging context the relevant advisory applies to, using a reliable source or comparative evidence from the scanner's documented policy. A patched downstream package can still have an upstream-looking version, and a finding can derive a version from incomplete metadata. Where the package identity or applicable version remains uncertain, preserve that classification and collect more evidence. A clean source inventory does not establish that an independently copied build input was never present.
Use the build record to follow each output
Identify the source revision, workspace, build job, package manager, lockfile and active platform. Record which build inputs actually contributed to each output. Build definitions can install dependencies in an intermediate stage, include locally linked workspaces, or copy artifacts from another job. If a Dockerfile or template has changed since the release, inspect the version that produced the target. Confirm whether the result is a source distribution, binary, container image or attached artifact.
Build provenance helps trace a specific artifact to its production process. A review can use the provenance subject to identify the output, then inspect the declared or resolved inputs relevant to the finding. That still leaves a separate question about which components or files were packaged into the output. SLSA describes an attestation model that identifies artifact subjects and build details. SLSA build provenance.
Ask the build owner to explain transformations. A bundled dependency can appear in minified application output without an installed package folder. A standalone archive can contain bytes copied from a separate workspace or binary. Native toolchains can link dependencies in multiple ways. Use authorized build metadata, SBOM evidence, approved package inspection, or other evidence appropriate to the packaging technique. Record what the current method cannot inspect and which team can supply different proof.
Reconcile a synthetic three-output build
Prepare an inert monorepo at source revision R51. It builds a web container W51, a batch image J51 and an administrative tool package T51. The archive parser fixture demo-report-archive@6.4 appears in the root resolution. The worker's bundled output retains part of that package. The toolchain uses the same release line during image build but the administrative package does not ship that intermediate environment.
| Observation | Evidence in the fixture | Interpretation |
|---|---|---|
| Repository R51 | Lockfile resolves demo-report-archive 6.4 | Candidate inventory and dependency path |
| Web container W51 | Supported final image inspection and build evidence show parser outside its selected inputs | No observed runtime component in reviewed scope |
| Batch image J51 | Artifact-specific SBOM and bundle record show parser 6.4 within the job output | Verified packaged component, runtime match required |
| Administrative package T51 | Build logs show parser in intermediate tooling, final package does not include that tooling | Build-time observation with its own owner and review |
| Worker deployment D51 | Runtime receipt shows J51 in the scheduled production scope of the fixture | Finding mapped to the actual worker deployment |
Have another reviewer trace the J51 finding through R51 and the produced artifact. Then present W51 and ask how the evidence supports its disposition. The example's conclusion about W51 depends on the declared scope and inspection evidence. It gives no basis to close the job or toolchain observations. Keep the component name consistent and check whether the reviewer can distinguish four separate facts.
For a counterexample, invalidate the J51 artifact-specific BOM by replacing it with a source inventory generated at the same commit. The package still appears in the data, but the new evidence no longer establishes which output contains it. Keep runtime exposure pending verification and have the build owner provide an approved bundle composition record. This test checks whether the evaluation can detect that a convenient data source answers a different question.
Verify deployed identity independently from packaged content
Start with the relevant environment and active workload. Locate the immutable artifact identity using an approved deployment or runtime observation and retain the time. If the deployment specifies a mutable tag, verify which digest was actually selected. If there is a multi-platform index, match the relevant child platform to the corresponding scan and component inventory. A shared release label can hide separate architectures and rebuilds.
Review each way the artifact can reach execution. A scheduled job can still use a previous image when the main worker template moves to the new version. A fallback environment or a second tenant can use a separate platform variant. The active serving scope and future configured scope each need appropriate observation. If the workspace and package were fixed at a later commit but J51 still runs, record progress at the source and preserve the open runtime evidence.
Look for a durable record of the affected version after deploying the replacement. Attach the amended package path, immutable artifact ID, scan evidence and actual release observation. If the new artifact bundles an independently copied old version, investigate the build path that selected it. Use representative functional tests alongside component evidence. A passing test can verify that behavior still works while remaining unable to establish which dependency code shipped.
Assign the work where a change can alter the result
A source code or manifest change usually belongs to the package consumer or shared library owner. Packaging steps may be controlled by a build or platform team. An operating system package shipped only in a base image can need upstream rebuild coordination. A live deployment can have a separate release owner even when the producing team has completed its work. State what each person is responsible for and what piece of proof they can obtain.
Record build-time exposure separately. A package used by a build can still process inputs or influence output integrity even when it does not ship in the end product. Assign its remediation to the build system's accountable owner and use evidence that demonstrates the relevant build process changed. Avoid designating a consumer's production rollout as the only closure check for a build tool. The lockfile ancestry article covers finding the parent when the resolution itself is the uncertain link.
If multiple services ship affected content, connect the shared originating issue while preserving consumer environments and separate verification. An update to a base image can be available while some consumers have yet to rebuild. Work completed by one owner should be visible without changing the recorded state of every related output. Keep one ownership and scope table that can be reviewed with the service teams.
Handle missing or contradictory evidence explicitly
When one source disagrees with another, first compare timestamps, target identity, evidence type and planned versus actual state. A report may be empty because a component was absent or because a scanner cannot inspect bundled content. Verify collector and scanner coverage appropriately before accepting a negative result. A finding reported only from source may be valuable for future build prevention even if verified production scope is not affected.
Add a fixture with two artifacts produced by the same commit but using different base images. Match the respective scan and runtime observations and confirm the report distinguishes them. Then present an isolated administrative package with a known missing build log. The workflow should retain its unknown provenance and assign someone to verify its source. Test whether the reviewer can give an independent reason for each disposition rather than deriving it from one overall pipeline status.
Keep decision time and observations visible in later rechecks. A scanned artifact can be superseded, rolled back or moved to another environment. Snapshot the source and effective deployment observations rather than assuming a prior decision describes the next state. The artifact rollback guide describes one condition that should trigger renewed verification.
Record the difference between installation and execution evidence
An artifact inspection can confirm that dependency bytes are present. A workflow may still need a separate assessment of whether the relevant component is loaded or reachable under the organization's policy. Use supported application design records or safe representative instrumentation rather than assuming that every packaged dependency is used in every request. Conversely, absence from a single test's trace does not prove the component cannot be used. Record the exact reviewed paths, evidence source, date and any behavior that remains unverified.
In the fixed worker fixture, show that a feature toggle can keep the parser from running in one staged workflow while the artifact still contains the original component. If the team treats that restriction as a temporary reduction of exposure, record its conditions and compiler or deployment proof separately. The component replacement decision still needs the new artifact and runtime observation.
Evaluate evidence joins on identical inputs
Give each platform evaluator the same source scan, build receipts, artifact-specific inventory and runtime observations. Ask them to explain the worker's evidence chain, show why the administrative build uses a distinct response, and identify the unresolved BOM scope from the counterexample. Check whether the integration copies a matching display name into multiple issues or can retain the edge between package, artifact and workload with its own evidence. Use the code and cloud security comparison for practical evaluation criteria.
Record which sources the reviewer needed and which steps are automated, independently verified or handled by a fallback. Compare closing a finding after successful source changes with closing the corresponding deployment exposure. If those states have the same status in the tool, preserve the necessary distinction in the review process and note the ongoing work required.
The final handoff names the observed component, where it was detected, the verified artifact, the workload that actually runs it, and who can make the next change. Give any unverified edge a scope and an owner. When a replacement is ready, apply the same evidence chain to prove that the affected environment received it.