Skip to content

fix(prescan): surface incomplete bumblebee scan instead of failing open - #79

Merged
sandstream merged 1 commit into
mainfrom
fix/prescan-bumblebee-fail-open
Jun 24, 2026
Merged

sandstream merged 1 commit into
mainfrom
fix/prescan-bumblebee-fail-open

Conversation

@sandstream

@sandstream sandstream commented Jun 23, 2026 •

Copy link
Copy Markdown
Owner

checkBumblebee returned [] 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 info finding ("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.)

`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
@github-actions

Copy link
Copy Markdown

✅ Docker image built successfully

  • CLI image: docker.io/sandstream/kit:test

@sandstream
sandstream merged commit 7106386 into main Jun 24, 2026
15 checks passed
@sandstream
sandstream deleted the fix/prescan-bumblebee-fail-open branch June 24, 2026 04:16
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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants