markdown-ai-rewriter
合法的 Markdown AI 改写工具,存在供应链风险(npx 动态拉取第三方包)和权限声明宽泛问题,无恶意行为证据。
Why this conclusion was reached
0/4 dimensions flaggedDeclared resources and inferred behavior are broadly aligned.
5 lower-risk artifacts were extracted and still need context.
There is no explicit malicious chain in the report.
Dependencies are present but no obvious high-risk issue stands out.
What drove the risk score up
config.json 中配置 install.type=npx,动态拉取第三方 npm 包执行,存在供应链攻击风险
使用 ^1.1.2 版本范围,允许小版本升级,实际执行代码不可控
网络域名列表包含 13 个域名,可能超出实际需要
Most important evidence
npx 动态拉取第三方包
config.json 中 install.type 设置为 npx,执行时通过 npx --yes 动态从 registry.npmjs.org 拉取 markdown-ai-rewriter 包。这导致实际执行的代码不受 Skill 仓库控制,存在供应链攻击风险。
config.json:38 版本锁定不足
使用 ^1.1.2 版本范围而非精确版本,允许 minor/patch 版本升级。攻击者可在包发布小版本更新时植入恶意代码。
config.json:40 网络权限范围较广
声明的网络域名包含 13 个不同域名,部分域名使用通配符如 api.minimax.io,实际可能仅需其中 2-3 个
config.json:55 npm 包无源码校验
config.json 中 source.audit 仅指向 GitHub 源码地址,未提供可信的完整性校验(如 hash 或 signature)
config.json:50 Declared capability vs actual capability
SKILL.md 声明读取 *.md 文件 scripts/run.js:17 使用 spawnSync 执行 npx 命令 config.json 声明访问各 AI API 域名 config.json 中 commands 定义 rewrite/check-quota 命令 Suspicious artifacts and egress
https://www.npmjs.com/package/markdown-ai-rewriter README.md:3
https://api.minimaxi.com/v1 README.md:71
https://your-resource.openai.azure.com README.md:117
Dependencies and supply chain
| Package | Version | Source | Known vuln | Notes |
|---|---|---|---|---|
| markdown-ai-rewriter | ^1.1.2 | npm (npx) | No | 使用 npx 动态拉取,未本地安装,版本锁定不足 |
File composition
config.json README.md