ysskrishna logoysskrishna

Shai Hulud Detector

When the worm hits the news, triage GitHub accounts for known Shai Hulud IOC signals.

Built with
PyPI Packages
Auth & Security
Python
Typer
PyPI
uv
Python CLI
GitHub Actions
Details
FreeMIT licenseCreated November 25, 2025Updated November 12, 2026
Share this product

The headline broke. You still owe answers on every account.

You read about Shai Hulud again. A self-replicating npm worm. GitHub repositories with injected malicious code. Your org has dozens of GitHub users, and manual search does not scale on a Sunday night.

You need a fast first pass: who might have the public markers, who looks clear, who needs a human right now. Shai Hulud Detector is that pass.

Flags are triage, not a verdict.

What you get

  • A quick GitHub account scan. One username, a list of names, or every member of an organization, checked through the GitHub API with your personal access token.
  • The IOCs the README documents. It looks for repository descriptions that match the known "Sha1-Hulud: The Second Coming." pattern and for suspicious JSON that may hold secrets or environment-style configuration.
  • Org-wide coverage without hand-rolling scripts. Run membership-wide scans and tune how many accounts run at once so an incident weekend does not become a queue of one.
  • Output you can scan in a terminal. Color-coded FLAG, OKAY, and ERROR lines, with a verbose mode when you need detail behind a flag.
  • Honest limits baked in. Positive flags are heuristics. False positives and false negatives happen. This is a helper for triage, not a malware lab or EDR replacement.
  • Free to run. MIT licensed, installable from PyPI, Python 3.11 or newer.

Picture your incident weekend

For example, you are the person who gets the Slack ping after a vendor postmortem. You paste twenty maintainer handles, run an org scan, and sort the terminal output: a few FLAG lines go straight to rotation and manual review, most come back OKAY, and the errors tell you who needs a token or scope fix before you rerun.

Ready to try it?

Keep exploring

Frequently asked questions

What is the Shai Hulud npm worm and how does it spread?

Shai Hulud is a self-replicating npm worm that spreads through compromised developer systems, infecting GitHub repositories and injecting malicious code. Public reporting has linked it to supply-chain attacks on major npm libraries. This tool does not explain every stage of the worm; it scans GitHub for IOC-style signals named in the README so you can triage accounts after those reports.

How to check for GitHub repos with description "Sha1-Hulud: The Second Coming."?

The README lists suspicious repository descriptions containing "Sha1-Hulud: The Second Coming." among known IOCs. Shai Hulud Detector checks repositories under each scanned user or org member for that description pattern, alongside suspicious JSON files. A hit is a reason to investigate, not proof on its own.

Why not just use GitHub search or audit logs?

GitHub search and audit logs are valid parts of response. They still leave you doing repetitive lookups per person, especially across an org. This CLI automates the README’s IOC checks across many accounts in one run, then hands you **FLAG** / **OKAY** / **ERROR** lines to prioritize human follow-up.

Do I need to rotate all GitHub, npm, and cloud secrets after exposure?

If you treat a flag as a possible compromise, the README’s recommended actions include rotating all GitHub, npm, cloud, and CI/CD secrets, enforcing MFA, reviewing suspicious files, and auditing npm dependencies. Rotation order and scope for your environment still belong to your incident plan and vendor guidance.

Does a scanner FLAG mean confirmed compromise?

No. Flags are heuristics for triage; false positives and false negatives are possible. Pair results with vendor intel, manual review, and the README’s follow-up steps. Evolving attacks may add IOCs the tool does not yet check.

Can I scan multiple GitHub usernames in parallel for IOCs?

Yes. You can scan one or more usernames in a single run, scan all members of an organization, and raise concurrency with the worker setting (default five). API rate limits and token scope still cap how fast and how deep each run can go.

Is it free?

Yes. It is open source under the MIT license. You can install it directly from PyPI with pip.

Continue exploring

BlogCover image for Shai Hulud 2.0: How to Detect a Suspected npm Supply-Chain Attack

Shai Hulud 2.0: How to Detect a Suspected npm Supply-Chain Attack

PyPI Packages
Python
+1
5 min read
ProductPyPIPyPI Package Stats

PyPI Package Stats

PyPI download counts, version mix, and package facts in one call, with disk caching built in.
PyPI Packages
Python
+6
BlogCover image for Encoding, Encryption, and Hashing: The Difference Everyone Should Know

Encoding, Encryption, and Hashing: The Difference Everyone Should Know

Auth & Security
3 min read
ProductPyPISocial Links

Social Links

Users paste messy profile links. One Python library turns them into clean, comparable URLs.
PyPI Packages
Python
+4
ProductPyPINested Utils

Nested Utils

Deep JSON and config paths, one string, no guard maze.
PyPI Packages
Python
+4
BlogCover image for How Microservices Verify JWTs Without Calling the Auth Service

How Microservices Verify JWTs Without Calling the Auth Service

Auth & Security
Backend & APIs
+1
8 min read