Skip to content
KitploitKITPLOIT
工具博客
提交
工具博客
提交

黑客、渗透测试和网络安全工具,武装您的安全武器库!

Kitploit 是一个黑客、网络安全和渗透测试工具的目录。发现最新的项目更新,查找漏洞、分析系统、自动化测试并加强你的安全。

··订阅源·联系·隐私·© 2026 Kitploit

工具目录

分类

查看所有分类
Loading categories
工具/GitHubGitHub/prashanthnataraj/mini-shai-hulud-detector
漏洞扫描器取证分析恶意软件分析威胁情报供应链安全事件响应
GitHubprashanthnataraj/mini-shai-hulud-detector

mini-shai-hulud-detector

一键扫描器,用于检测 Mini Shai-Hulud npm 供应链蠕虫(CVE-2026-45321)。在轮换令牌之前进行检测。

最受欢迎

查看全部 →

发现我们社区最常用的工具。

探索所有工具

浏览我们的工具集合

查看所有工具 →
查看仓库
43个月前尚未审核
分享

迷你 Shai-Hulud 检测器

一键扫描器,用于检测 Mini Shai-Hulud npm 供应链攻击(CVE-2026-45321,CVSS 9.6)。

关键:在轮换令牌前先检测

该蠕虫会安装一个持久化守护进程(gh-token-monitor),一旦检测到凭据吊销,就会执行 rm -rf ~。在确认该守护进程已被清除之前,请勿轮换你的 GitHub PAT 或 npm 令牌。 检测 → 移除守护进程 → 然后 再轮换。

使用方法

root@kitploit:~
curl -fsSL https://raw.githubusercontent.com/prashanthnataraj/mini-shai-hulud-detector/main/shai-hulud-detector.sh | bash

或者先下载并检查(对于任何要通过管道传给 shell 的脚本,强烈推荐这样做):

root@kitploit:~
curl -fsSL https://raw.githubusercontent.com/prashanthnataraj/mini-shai-hulud-detector/main/shai-hulud-detector.sh -o shai-hulud-detector.sh
# 阅读脚本。然后:
bash shai-hulud-detector.sh

检测内容

步骤检测项
1package-lock.json 中的幽灵包 @tanstack/setup
2已知的恶意载荷文件(router_init.js、tanstack_runner.js)
3载荷 SHA-256 哈希值与已知恶意哈希列表比对
4gh-token-monitor 持久化守护进程(LaunchAgent / systemd / pgrep)
5~/.claude/settings.json 中意外的 PreToolUse / PostToolUse 钩子
6.github/workflows 中的 pull_request_target 触发器和未固定版本的操作引用

退出码

退出码判定结果
0干净 —— 未发现任何指标
1可疑 —— 需要人工审查
2已感染 —— 严格按照脚本输出的补救顺序执行

若 package-lock.json 缺失,默认返回“可疑”——请在 npm install 后再运行扫描。

若发现感染,补救顺序

  1. 立即断开网络连接。
  2. 不要运行 npm install、npm uninstall 或 git push。
  3. 首先移除守护进程 —— 脚本输出会告诉你确切路径。
  4. 移除载荷文件。
  5. 然后才重新连接网络并轮换凭据(先轮换 GitHub PAT)。
  6. 重新安装:rm -rf node_modules && npm install --ignore-scripts。

加固建议(无论扫描结果如何都值得做)

在 .npmrc 中添加:

root@kitploit:~
ignore-scripts=true
minimum-release-age=4320

将所有 GitHub Actions 引用固定到完整的提交 SHA,而非版本标签。

关于

本工具由 Lume AI 团队在 2026 年 5 月遭遇真实的 CVE-2026-45321 攻击后编写。该脚本为只读 —— 下载后不进行任何网络调用,也不会写入磁盘。运行前请审查源代码。

许可证

MIT —— 参见 LICENSE。

下载工具