返回目录
安全与治理 插件

dsh-skill-scan

lengrufeng2008/dsh-skill-scan

Static, read-only security first pass for DSH skills and plugin bundles.

Stars
0
Forks
0
Issues
0
更新
22 天前

PROJECT TOPICS

项目标签

INSTALL REFERENCE

安装参考

未验证
dsh plugin --profile web add github:lengrufeng2008/dsh-skill-scan

该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。

PROJECT README

README

Skill Scan for DSH

A static first pass for third-party skills and plugin bundles. Inspired by NVIDIA SkillSpector's supply-chain idea, implemented as a small DSH tool plus a CLI. It does not execute the bundle.

What it finds

  • Instruction override / exfiltration language
  • curl ... | sh remote shell
  • destructive root/home delete
  • credential paths (.ssh/id_rsa, .aws/credentials)
  • eval / new Function
  • long encoded payloads
  • hidden Unicode (bidi/zero-width)
  • package lifecycle scripts
  • !!js in Cordis patches

CLI

node bin/dsh-skill-scan.mjs /path/to/bundle
node bin/dsh-skill-scan.mjs /path/to/bundle --json

Exit 1 on a BLOCK, 0 on PASS/WARN, 2 on invalid input.

DSH plugin

dsh plugin --profile web add /home/lrf/dsh/products/dsh-skill-scan

Then ask: “Use skill_scan on this bundle.” The tool is read-only.

What a result means

PASS means no finding under these heuristics. It is not proof of safety. BLOCK means a high finding needs an explanation before installation. Read the exact file and line; the scanner is not a sandbox, AST taint engine, OSV lookup, or runtime monitor.

False positives are possible: a security document may quote an attack, and a legitimate package may use a lifecycle script. Context matters.

Tests

npm test

The fixtures include a deliberately unsafe bundle; the test only reads it as text and never executes it.

Provenance

Inspired by NVIDIA SkillSpector; no source code copied. See NOTICE.md. License: MIT.

CLASSIFICATION EVIDENCE

分类依据

项目类型插件
功能分类安全与治理
规则置信度高

系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: security。