typescript-package-manager
技能声称提供知识指导,但实现代码包含远程脚本执行(curl|bash管道)和未声明的shell执行能力,文档-行为存在差异
为什么得出这个结论
3/4 个维度触发发现 1 项声明之外的能力或越权行为。
提取到 2 个高危 IOC 或外联信号。
报告包含 4 步攻击链,另有 1 项高危或严重发现。
没有完整依赖信息,供应链判断需要保留弹性。
攻击链
初始入口 · SKILL.md:1
权限提升 · scripts/bun-workflow.js:37
权限提升 · scripts/bun-workflow.js:195
最终危害 · scripts/bun-workflow.js:195
风险分是怎么被拉高的
curl -fsSL https://bun.sh/install | bash 和 curl -fsSL https://get.pnpm.io/install.sh | sh 管道执行
SKILL.md声明为知识技能,但脚本实际执行shell命令并修改系统
execSync调用未在文档中说明
未发现凭证访问或外传
未发现外部数据通信
最关键的证据
远程脚本管道执行
bun-workflow.js:195 和 pnpm-workflow.md:51 包含 curl -fsSL <url> | bash/sh 模式,这是经典的高危远程代码执行模式。虽然用于安装合法工具,但存在被替换URL进行攻击的风险。
scripts/bun-workflow.js:195 声明能力与实际行为不符
SKILL.md声称是'知识技能',但scripts/文件夹中的脚本实际执行shell命令(execSync)并可能修改系统状态。这属于阴影功能。
SKILL.md:1 shell执行能力未声明
脚本使用execSync执行任意shell命令(如npm audit, tsc, npx等),但SKILL.md的allowed-tools中未声明shell:WRITE权限。
scripts/bun-workflow.js:27 外部URL依赖
多处引用外部URL(bun.sh, pnpm.io等)作为文档链接和安装源,依赖第三方基础设施。
scripts/bun-workflow.js, scripts/pnpm-workflow.md:120,195,51 声明能力 vs 实际能力
脚本仅读取本地文件如tsconfig.json、package.json scripts/bun-workflow.js:195, scripts/pnpm-workflow.md:51 - curl|bash管道远程执行 脚本访问外部URL获取安装脚本,但作为工具安装的一部分 health-check.js通过execSync执行npm audit读取环境 可疑产物与外联
curl -fsSL https://bun.sh/install | bash scripts/bun-workflow.js:195
curl -fsSL https://get.pnpm.io/install.sh | sh scripts/pnpm-workflow.md:51
https://yourwebsite.com assets/package-json-template.md:25
https://docs.npmjs.com/cli/v9/configuring-npm/package-json assets/package-json-template.md:521
https://nodejs.org/api/packages.html assets/package-json-template.md:522
https://www.typescriptlang.org/docs/handbook/module-resolution.html assets/package-json-template.md:523
https://www.typescriptlang.org/docs/handbook/integrating-with-build-tools.html references/integration-with-build-tools.md:13
https://vitejs.dev/guide/ references/integration-with-build-tools.md:614
https://webpack.js.org/concepts/ references/integration-with-build-tools.md:615
https://esbuild.github.io/ references/integration-with-build-tools.md:616
https://turbo.build/repo/docs references/integration-with-build-tools.md:617
https://en.wikipedia.org/wiki/Npm references/package-management.md:13
依赖与供应链
没有结构化依赖告警。
文件构成
scripts/health-check.md scripts/npm-workflow.md scripts/yarn-workflow.md scripts/bun-workflow.md scripts/bun-workflow.js scripts/pnpm-workflow.md references/integration-with-build-tools.md assets/package-json-template.md SKILL.md