Skip to content

fix(scan): match renamed compromised packages header#74

Merged
ericboehs merged 1 commit into
masterfrom
fix/shai-hulud-header-match
May 13, 2026
Merged

fix(scan): match renamed compromised packages header#74
ericboehs merged 1 commit into
masterfrom
fix/shai-hulud-header-match

Conversation

@ericboehs
Copy link
Copy Markdown
Collaborator

@ericboehs ericboehs commented May 13, 2026

Summary

  • Upstream Cobenian/shai-hulud-detect/compromised-packages.txt header was renamed from Shai-Hulud NPM Supply Chain Attack to Shai-Hulud Supply Chain Attack - Compromised Packages List, breaking vtk scan repo with a false possible MITM or corrupted file error
  • Switch the bash and PowerShell scripts to a regex match (Shai-Hulud.*Supply Chain Attack) so both old and new wordings pass, while still rejecting unrelated or tampered files
  • Reported by @cachelina — thanks Catalina!

Test plan

  • Clear cache and run bash scripts/shai-hulud-repo-check.sh --refresh /tmp → cached 2,123 packages, status CLEAN
  • Confirm vtk scan repo works against a real repo with a lockfile
  • Spot-check PowerShell path on Windows (regex -notmatch is built-in, no escape needed)

The upstream Cobenian/shai-hulud-detect compromised-packages.txt header
was renamed from "Shai-Hulud NPM Supply Chain Attack" to "Shai-Hulud
Supply Chain Attack - Compromised Packages List", causing `vtk scan
repo` to fail validation with a false MITM/corrupted-file warning.

Switch the expected-header check to a regex (`Shai-Hulud.*Supply Chain
Attack`) so both the old and new wordings validate while still being
specific enough to catch a tampered or unrelated file.

Reported by Catalina Espinoza.
@ericboehs ericboehs merged commit 78b4ecc into master May 13, 2026
5 checks passed
@ericboehs ericboehs deleted the fix/shai-hulud-header-match branch May 13, 2026 20:33
@ericboehs ericboehs mentioned this pull request May 13, 2026
2 tasks
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.

1 participant