security

Investigate a finding missing after a scan change

Preserve a finding after a scanner or configuration change until you can distinguish a real fix from a rule, permission or coverage change.

TrustIvan · · 10 min read

The release team had not shipped a new billing image overnight. Its approved build record still pointed to the same digest. Yet the morning dashboard showed one fewer open finding, and a ticket automation marked the missing row as fixed. The change belonged to the scanner: a performance pilot had moved the billing scan to a narrower profile, and the assessment no longer produced the inventory that supported the original finding.

Someone has to decide what the missing row means before the ticket status becomes a release decision. A finding can disappear because the fix worked, because an assessment stopped looking, or because the system handling the results stopped displaying it. Each explanation calls for different evidence.

Recover the earlier observation

Begin with the original report or the richest record still available. Capture the immutable target identifier, platform, package identity and version, location if available, rule or advisory reference, and observation time. A dashboard title alone is rarely enough to recover the relevant operating system package or application dependency. Look for the report's component identifier and the target that owns the package inventory.

Also record the population the earlier assessment claimed to cover. A team may have scanned the running image, a repository snapshot, or a source lockfile. Those inputs describe different stages. The billing image could contain an embedded library while the source repository has no dependency declaration for it. An absent inventory entry in a repository scan supplies no evidence about what the previous image contained.

If the evidence is fragmentary, retain the finding and explicitly identify the missing fields. A ticket linked to an older repository name may still be traceable through an artifact promotion record. If a tag points to more than one digest over time, use the deployment or registry event to recover the digest at the earlier observation. Avoid comparing yesterday's image to today's tag resolution.

Ask where the result disappeared

Trace the result backwards from the dashboard. It can be missing from a saved view, absent from ingested results, absent from the raw report, or absent from the component inventory. Each boundary needs its own input.

A hidden row can still appear in a raw report with a suppression or severity state attached. A missing ingestion record deserves an import check before any new scan. If the raw report lacks the finding while it still shows the component and affected version, compare the rules, advisory inputs, package classification and filtering. If the component itself is missing, look at the target, scanner coverage, collection access and analysis settings. The latest failure output can explain an incomplete scan even when another stage marked the overall job successful.

Record what each system can actually show. Where a scanner uses a separate analyzer and results filter, keep the related profile fields separately. A source path exclusion affects what data the scanner sees. A result filter affects what it reports from data it already analyzed. Trivy documents those distinct operations in its file selection and filtering guides.

Compare the scope before comparing the verdict

Set up the comparison with a pair of records rather than a before-and-after count. Check the target digest, image variant, scanner version, effective configuration and advisory snapshot. Confirm which package types were enabled, which inputs were eligible and whether permissions allowed the scan to finish. Keep a captured copy of the effective profile when the system injects defaults at execution time.

A matching scanner version can still produce different results from updated advisory data. A matching ruleset can still scan a different platform when the input refers to a multi-platform index. A changed profile name might represent only a rename. Compare contents where possible instead of making the decision from labels.

When several inputs changed together, make a small authorized reproduction. Hold an approved target fixed and compare the current profile with the earlier profile or an approved equivalent. Then change the target while holding the profile fixed to evaluate a claimed remediation. If you cannot rerun the earlier setup, record what is unavailable and examine direct component evidence from the known artifact. Keep the reduced confidence visible in the decision.

Work a synthetic billing release

Use an authorized fixture with an inert package marker and a test rule identified as CHECK-209. The marker stands in for a version a production scanner would report. It cannot be used to exercise a vulnerability. Prepare artifact B24 with marker 3.1 and artifact B25 with marker 3.2. The baseline profile inspects the marker's package inventory. The narrow profile omits that inventory and records the reason.

ScanArtifact and profileExpected reportWhat the result proves
AB24 with the baseline profileInventory reports 3.1 and CHECK-209Reproduces the original condition in the fixture
BB24 with the narrow profileNo marker inventory or findingDemonstrates lost coverage against the same artifact
CB25 with the baseline profileInventory reports 3.2 and no CHECK-209Supports the expected change in the candidate artifact
DB25 with the narrow profileNo marker inventory or findingSupplies no verification of the marker condition
EB24 with baseline inventory and a display filterRaw detail contains the check, saved view omits itIdentifies a presentation change with coverage still available

The comparison between A and B explains why the finding disappeared while the build remained unchanged. The comparison between A and C supports a fix on the candidate. Before closing a finding scoped to production, confirm which candidate was deployed to the affected workloads. A target tracked only as an unreleased build may have different completion criteria, so identify the scope in the ticket before applying the closure rule.

Run the fixture once more with a deliberately incomplete test import. Expect the scanner report to contain CHECK-209 while the dashboard later shows no imported report. A product that reduces both B and the incomplete import to the same empty list lets the operator conflate coverage and ingestion. Ask where it stores evidence that distinguishes those outcomes.

Pick a disposition the evidence supports

Keep the original finding open or pending verification if the scan no longer covers the original condition. Include the coverage change in its history and assign a scanning owner. The affected service can remain responsible for any supported remediation. The scanning owner restores or replaces the evidence path. A ticket assigned to a single queue should still identify which of those two jobs remains.

If package evidence shows a different version in a comparable record, attach the candidate digest and measurement. Then apply the verification criteria for the scope, including deployment or rollback observations when relevant. When an advisory publisher or assessment owner has withdrawn or corrected the classification, record that evidence and use the corresponding disposition. A revised advisory and an upgraded component are distinct events for trend reporting.

If the organization deliberately excludes a rule, record the scope, rationale, effective date, owner and next review. Use the exception or policy change as evidence for that decision. Keep it possible to revisit the original finding if scope expands again. A count of findings no longer in a new profile cannot serve by itself as a count of repairs.

Make the scan change safe to release

Protect a scanner configuration change with a before-and-after check on a small set of known targets. Include one representative target per capability being changed, such as a package ecosystem, operating system, platform or analysis mode. For each target, record which inventory elements and representative checks should survive. An intentionally excluded target needs an expected policy note, so a disappearance comes with an explanation.

Review both number of scanned subjects and the scope within each subject. A pipeline can finish with the same number of images while missing an architecture or omitting a package analyzer. Store the released profile revision with the detection result or keep a reference that lets operators reconstruct it. Decide how to annotate reports when the advisory feed, severity settings or reporting defaults also changed.

During the migration, suspend any automatic resolution flow for findings whose coverage comparison cannot be established. Work with the ticket owner to ensure a repeated observation can be linked to the existing record once coverage returns. Closure totals and age calculations should remain interpretable through the migration. The most helpful rollout note tells operators which decisions require an additional check and where to make that check.

Handle cases where the old report cannot be replayed

Some earlier scanner runs cannot be reproduced. The report may identify the checked package and target but fail to preserve its advisory snapshot. The old scanner release might no longer run in the current build environment. In that situation, recover the strongest facts still available. Inspect the authoritative package identity and version from the exact archived artifact using an approved inventory method. Compare those facts with the advisory source currently used by your assessment policy.

Describe the resulting conclusion at the level the evidence supports. A package still observed on the same digest indicates that the package itself did not change within the artifact. It does not resolve whether the old advisory interpretation was accurate. A previously observed artifact that is no longer retained may leave the old condition unresolved while comparable evidence on the current deployment supports a current-state decision. Preserve both statements and their limits for future reviewers.

Keep the dashboard from calling every absence a fix

Have the reporting owner test two numbers before and after the migration. One records verified remediations attached to comparable follow-up evidence. The other records findings with coverage pending, including any assessment errors that made confirmation impossible. During the transition, it is plausible for the second number to rise. That change describes the quality of the observations. It does not describe how much engineering repair work occurred.

Tie each count to a named population. If the baseline included eight deployed services but the narrower profile covered seven, mark the eighth as a coverage exception or gap according to policy. Reconcile the denominator against the deployment inventory at the next checkpoint. Otherwise a dashboard can show the remaining seven services as fully covered while the omitted one never enters the report.

Test the handling of duplicate observations too. A broad profile and a narrow profile can run against the same release during a migration. An observation from the broad profile should attach to the existing finding. A missing row from the narrow profile should indicate its own coverage and leave the earlier observation intact. At the next review, verify these states in the raw export as well as the interface, because a downstream reporting integration might flatten distinctions that the product shows correctly.

Use the same test to compare products

Give candidate tools the same fixture reports and ask someone outside the pilot team to answer two questions. What changed in the deployed subject? What changed in the evidence used to check the subject? Have them export the earlier finding, the narrow scan, the verified candidate and the profile change record.

Check whether the export preserves the immutable identifiers, coverage references, rule revision, disposition and evidence links. Confirm an operator can retain the original finding, mark coverage uncertain, reopen the record if the earlier condition returns and report verified fixes separately. If a tool lacks one function, record the practical extra work needed to reproduce the decision. Use the finding lifecycle guide for more on retaining the decisions behind a finding.

A closed ticket needs a reason that survives the next configuration change. The simplest useful record answers what was inspected, what changed, who verified it and which observation supports the current state.