npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@bluefire-redteam/nx-s1ngularity-check

v1.0.8

Published

Bluefire Redteam scanner for Nx 's1ngularity' supply-chain compromise (malicious versions, IoCs, exfil).

Readme

🔍 Bluefire Redteam's Nx "s1ngularity" Supply Chain Scanner(New Update)

npm (scoped)

Free, open-source scanner from Bluefire Redteam
Detect if your systems or projects were impacted by the August 2025 Nx s1ngularity supply-chain compromise.


🚨 What Happened?

On Aug 26–27, 2025, multiple malicious versions of the Nx build system packages were published to npm.
They contained a postinstall malware (telemetry.js) that:

  • Stole GitHub tokens, npm tokens, SSH keys, .env secrets, crypto wallets
  • Abused local AI CLI tools (Claude, Gemini, Q) to aid reconnaissance
  • Exfiltrated stolen data into public GitHub repos named:
    • s1ngularity-repository
    • s1ngularity-repository-0
    • s1ngularity-repository-1
    • s1ngularity-repository-<5letters> (Phase 2)
    • *_bak with description "S1ngularity" (Phase 3)
  • Modified ~/.bashrc & ~/.zshrc to cause forced shutdowns

👉 Thousands of secrets and repos were exposed across multiple phases of this attack.


✅ What This Tool Does

@bluefire-redteam/nx-s1ngularity-check scans your environment for all known indicators of compromise (IoCs):

  • Malicious versions of Nx / @nx packages in:
    • package-lock.json, yarn.lock, pnpm-lock.yaml
    • npm ls output
  • Host IoCs:
    • sudo shutdown -h 0 in ~/.bashrc / ~/.zshrc
    • /tmp/inventory.txt or /tmp/inventory.txt.bak
  • Node_modules payload check:
    • Detects telemetry.js with malicious markers across all known prompt variants (Phase 1–3)
  • Exfil files:
    • Finds results.b64 (locally or /tmp)
    • Auto-decodes up to 3x Base64 → previews decoded JSON
  • GitHub repos (expanded detection):
    • Flags attacker-created repos in your account/org:
      • s1ngularity-repository, -0, -1
      • s1ngularity-repository-<5letters>
      • Any repo suffixed with _bak or with description "S1ngularity"
    • Requires GH_TOKEN or GITHUB_TOKEN for API access
  • GitHub search mode (NEW in v1.0.7):
    • Use --search <query> to check all public repos on GitHub for IoCs

🚀 Quick Start

Run directly with npx (no install needed):

npx @bluefire-redteam/nx-s1ngularity-check

⚠️ Use the scoped name @bluefire-redteam/nx-s1ngularity-check.
Do not use any unscoped package — that is not us!


🔍 Usage Examples

Scan current project

npx @bluefire-redteam/nx-s1ngularity-check

Scan a GitHub user’s repos

GH_TOKEN=ghp_xxx npx @bluefire-redteam/nx-s1ngularity-check --user someuser

Scan a GitHub organization

GH_TOKEN=ghp_xxx npx @bluefire-redteam/nx-s1ngularity-check --org myorg

Search all public GitHub repos (NEW in v1.0.7)

GH_TOKEN=ghp_xxx npx @bluefire-redteam/nx-s1ngularity-check --search s1ngularity-repository

🖥️ Example Output

=== Bluefire Nx s1ngularity Comprehensive Scanner ===

❌ Suspicious GitHub repos detected

--- JSON ---
{
  "summary": {
    "affectedFound": false,
    "iocFound": false,
    "nodeModulesFound": false,
    "resultsB64Found": false,
    "ghFound": true,
    "severity": "high"
  }
}

🛡️ What To Do If Compromised

  1. Remove malicious Nx versions:
    rm -rf node_modules
    npm cache clean --force
    npm install nx@latest
  2. Clean persistence:
    • Remove sudo shutdown -h 0 lines from ~/.bashrc / ~/.zshrc
    • Delete /tmp/inventory.txt*
  3. Check GitHub repos:
    • Delete suspicious repos flagged by the scanner
  4. Rotate ALL credentials:
    • GitHub tokens, npm tokens, SSH keys, API keys, environment secrets
    • Move cryptocurrency funds to new wallets immediately
  5. Audit CI/CD pipelines & logs for suspicious activity

🏢 About Bluefire Redteam

Bluefire Redteam is a global leader in offensive security, AI red teaming, and supply chain defense.
We built this tool to help the community detect, contain, and respond to the Nx compromise.

👉 Need help with incident response or supply chain hardening?
Contact us: bluefire-redteam.com


📦 Version Updates

  • v1.0.7 (latest) — Added Phase 2/3 repo detection, expanded telemetry.js IoCs, new --search flag
  • v1.0.6 — Added --org and --user scanning, initial GitHub integration
  • v1.0.5 and earlier — Initial release with local project + host scanning

📜 License

MIT – free to use and share. Please credit Bluefire Redteam when referencing.