Scan Report
This report was generated in Chinese. Some content may be in Chinese.
45 /100
typescript-package-manager
TypeScript包管理器专家技能,涵盖npm、yarn、pnpm、bun、deno的配置和管理知识
技能声称提供知识指导,但实现代码包含远程脚本执行(curl|bash管道)和未声明的shell执行能力,文档-行为存在差异
Use with caution
建议审查:远程脚本执行命令需明确声明;考虑移除curl|bash管道模式,改用官方包管理器安装
Attack Chain 4 steps
◎
Entry 用户调用typescript-package-manager技能
SKILL.md:1⬡
Escalation 脚本通过execSync执行shell命令检测Bun是否安装
scripts/bun-workflow.js:37⬡
Escalation Bun未安装时输出curl|bash远程安装命令
scripts/bun-workflow.js:195◉
Impact 用户若执行该命令,系统将执行来自远程URL的脚本(风险取决于URL安全性)
scripts/bun-workflow.js:195Findings 4 items
| Severity | Finding | Location |
|---|---|---|
| High | 远程脚本管道执行 RCE | scripts/bun-workflow.js:195 |
| Medium | 声明能力与实际行为不符 Doc Mismatch | SKILL.md:1 |
| Medium | shell执行能力未声明 Priv Escalation | scripts/bun-workflow.js:27 |
| Low | 外部URL依赖 Supply Chain | scripts/bun-workflow.js, scripts/pnpm-workflow.md:120,195,51 |
| Resource | Declared | Inferred | Status | Evidence |
|---|---|---|---|---|
| Filesystem | READ | READ | ✓ Aligned | 脚本仅读取本地文件如tsconfig.json、package.json |
| Shell | NONE | WRITE | ✗ Violation | scripts/bun-workflow.js:195, scripts/pnpm-workflow.md:51 - curl|bash管道远程执行 |
| Network | NONE | READ | ✓ Aligned | 脚本访问外部URL获取安装脚本,但作为工具安装的一部分 |
| Environment | NONE | READ | ✓ Aligned | health-check.js通过execSync执行npm audit读取环境 |
2 Critical 50 findings
Critical Dangerous Command 危险 Shell 命令
curl -fsSL https://bun.sh/install | bash scripts/bun-workflow.js:195 Critical Dangerous Command 危险 Shell 命令
curl -fsSL https://get.pnpm.io/install.sh | sh scripts/pnpm-workflow.md:51 Medium External URL 外部 URL
https://yourwebsite.com assets/package-json-template.md:25 Medium External URL 外部 URL
https://docs.npmjs.com/cli/v9/configuring-npm/package-json assets/package-json-template.md:521 Medium External URL 外部 URL
https://nodejs.org/api/packages.html assets/package-json-template.md:522 Medium External URL 外部 URL
https://www.typescriptlang.org/docs/handbook/module-resolution.html assets/package-json-template.md:523 Medium External URL 外部 URL
https://www.typescriptlang.org/docs/handbook/integrating-with-build-tools.html references/integration-with-build-tools.md:13 Medium External URL 外部 URL
https://vitejs.dev/guide/ references/integration-with-build-tools.md:614 Medium External URL 外部 URL
https://webpack.js.org/concepts/ references/integration-with-build-tools.md:615 Medium External URL 外部 URL
https://esbuild.github.io/ references/integration-with-build-tools.md:616 Medium External URL 外部 URL
https://turbo.build/repo/docs references/integration-with-build-tools.md:617 Medium External URL 外部 URL
https://en.wikipedia.org/wiki/Npm references/package-management.md:13 Medium External URL 外部 URL
https://pnpm.io/ references/package-management.md:45 Medium External URL 外部 URL
https://semver.org/ references/package-management.md:96 Medium External URL 外部 URL
https://registry.company.com references/package-management.md:214 Medium External URL 外部 URL
https://npm.company.com references/package-management.md:217 Medium External URL 外部 URL
https://en.wikipedia.org/wiki/APT_(software references/package-management.md:285 Medium External URL 外部 URL
https://en.wikipedia.org/wiki/DNF_(software references/package-management.md:286 Medium External URL 外部 URL
https://en.wikipedia.org/wiki/Zypp references/package-management.md:287 Medium External URL 外部 URL
https://en.wikipedia.org/wiki/Homebrew_(package_manager references/package-management.md:288 Medium External URL 外部 URL
https://en.wikipedia.org/wiki/Pip_(package_manager references/package-management.md:292 Medium External URL 外部 URL
https://en.wikipedia.org/wiki/Rust_(programming_language references/package-management.md:293 Medium External URL 外部 URL
https://en.wikipedia.org/wiki/Apache_Maven references/package-management.md:294 Medium External URL 外部 URL
https://en.wikipedia.org/wiki/Conda_(package_manager references/package-management.md:295 Medium External URL 外部 URL
https://pdm-project.org/en/latest/ references/package-management.md:301 Medium External URL 外部 URL
https://en.wikipedia.org/wiki/Open_Container_Initiative references/package-management.md:306 Medium External URL 外部 URL
https://en.wikipedia.org/wiki/Flatpak references/package-management.md:307 Medium External URL 外部 URL
https://en.wikipedia.org/wiki/Snap_(software references/package-management.md:308 Medium External URL 外部 URL
https://en.wikipedia.org/wiki/AppImage references/package-management.md:309 Medium External URL 外部 URL
https://flox.dev/blog/package-managers-and-package-management-a-guide-for-the-perplexed/ references/package-management.md:313 Medium External URL 外部 URL
https://hub.flox.dev/packages references/package-management.md:315 Medium External URL 外部 URL
https://docs.docker.com/build/building/best-practices/ references/package-management.md:316 Medium External URL 外部 URL
https://bun.sh/docs/runtime/bunfig scripts/bun-workflow.js:120 Medium External URL 外部 URL
https://registry.myorg.com/ scripts/bun-workflow.js:134 Medium External URL 外部 URL
https://bun.sh/install scripts/bun-workflow.js:195 Medium External URL 外部 URL
https://bun.sh/docs scripts/bun-workflow.md:5 Medium External URL 外部 URL
https://npm.mycompany.com/ scripts/bun-workflow.md:361 Medium External URL 外部 URL
https://www.typescriptlang.org/tsconfig/ scripts/health-check.md:6 Medium External URL 外部 URL
https://www.typescriptlang.org/docs/handbook/declaration-files/do-s-and-don-ts.html scripts/health-check.md:7 Medium External URL 外部 URL
https://docs.npmjs.com/ scripts/npm-workflow.md:5 Medium External URL 外部 URL
https://get.pnpm.io/install.ps1 scripts/pnpm-workflow.md:48 Medium External URL 外部 URL
https://get.pnpm.io/install.sh scripts/pnpm-workflow.md:51 Medium External URL 外部 URL
https://npm.company.com/ scripts/pnpm-workflow.md:308 Medium External URL 外部 URL
https://pnpm.io/cli/add scripts/pnpm-workflow.md:692 Medium External URL 外部 URL
https://pnpm.io/workspaces scripts/pnpm-workflow.md:693 Medium External URL 外部 URL
https://pnpm.io/benchmarks scripts/pnpm-workflow.md:695 Medium External URL 外部 URL
https://yarnpkg.com/ scripts/yarn-workflow.md:5 Medium External URL 外部 URL
https://yarnpkg.com/getting-started/migration scripts/yarn-workflow.md:827 Medium External URL 外部 URL
https://yarnpkg.com/features/pnp scripts/yarn-workflow.md:829 Medium External URL 外部 URL
https://yarnpkg.com/features/workspaces scripts/yarn-workflow.md:830 File Tree
13 files · 164.8 KB · 6923 lines Markdown 10f · 5899L
JavaScript 3f · 1024L
├─
▾
assets
│ ├─
package-json-template.md
Markdown
│ └─
package-manager-comparison.md
Markdown
├─
▾
references
│ ├─
integration-with-build-tools.md
Markdown
│ └─
package-management.md
Markdown
├─
▾
scripts
│ ├─
bun-workflow.js
JavaScript
│ ├─
bun-workflow.md
Markdown
│ ├─
health-check.js
JavaScript
│ ├─
health-check.md
Markdown
│ ├─
npm-workflow.js
JavaScript
│ ├─
npm-workflow.md
Markdown
│ ├─
pnpm-workflow.md
Markdown
│ └─
yarn-workflow.md
Markdown
└─
SKILL.md
Markdown
Security Positives
✓ 无凭证访问或窃取行为
✓ 无数据外泄或C2通信
✓ 代码结构清晰,包含内建测试
✓ 无恶意混淆或Base64编码执行
✓ 依赖第三方安全工具进行审计和检查