Repository navigation
fix(prescan): surface incomplete bumblebee scan instead of failing open - #79
Merged
Merged
Conversation
`checkBumblebee` returned `[]` both when the known-compromise scan errored/timed
out AND when it found nothing — so a scanner that couldn't complete looked
identical to a clean run in the prescan verdict. An attacker who can make the
scan time out (resource pressure, a crafted repo tripping the 90s max-duration)
suppresses supply-chain detection without tripping anything.
Now an errored/incomplete scan emits a visible `info` finding ("scan did not
complete — results may be incomplete") rather than a silent empty result, so
"we couldn't scan" is distinguishable from "nothing found". Same fail-closed
philosophy as the scanner-ingest fix, different (bumblebee-specific) site.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_015ERHw6bVUz39sAuoQZ1iyg
Closed
3 of 4 tasks
|
✅ Docker image built successfully
|
sandstream
added a commit
that referenced
this pull request
Jul 6, 2026
The device id is trust-bearing: the device fences in palList/palSyncFindings auto-close another device's open findings by it, so a spoofed KIT_DEVICE_ID could silently close them. deviceId() only validates the format; the protection was otherwise doc-only. Add deviceIdOverrideActive() and a `device-id override` security check that WARNs (never fails by default; escalates under --fail-on-warning) when a well-formed override is set AND a store exists (a device fence is actually in effect); skips otherwise. Tests cover the predicate (unset/valid/malformed) and the check (skip/skip-no-store/warn). Verified already-fixed: #45/#47 (isNewer strips prerelease/build, is exported, has direct tests) — no change needed. Claude-Session: https://claude.ai/code/session_01DbF4MFePXWNCd4dxBQvqH2 Co-authored-by: Claude <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
checkBumblebeereturned[]both when the known-compromise scan errored/timed out AND when it found nothing — so a scan that couldn't complete looked identical to a clean run. An attacker who makes the scan time out (resource pressure, a crafted repo) suppresses supply-chain detection silently.Fix: an errored/incomplete scan now emits a visible
infofinding ("scan did not complete — results may be incomplete") instead of a silent empty result. Same fail-closed philosophy as the scanner-ingest fix, different (bumblebee-specific) site. (Security audit finding.)