Skip to content

Instantly share code, notes, and snippets.

@k1eu
k1eu / check-shai-hulud.ts
Last active May 12, 2026 12:47
Check for compromised dependencies and known issues related to Mini Shai Hulud attack from 11th May 2026. save to a file and run with `bun run check-shai-hulud.ts`
#!/usr/bin/env bun
/**
* Scans the workspace for IOCs from the "Mini Shai-Hulud / TanStack compromise"
* campaign reported by Aikido (2026-05).
*
* Source: https://www.aikido.dev/blog/mini-shai-hulud-is-back-tanstack-compromised
*
* Run from repo root: bun run scripts/check-shai-hulud.ts
* It recurisively checks node_modules for compromised deps and scripts and versions
* Exits non-zero if any IOC matches.