dsh-plugin-doctor
界面增强 活跃维护

dsh-plugin-doctor

snow-The/dsh-plugin-doctor

提供插件安装前的静态审查,扫描插件目录或已安装包,识别数据外泄、凭据读取、代码混淆、持久化驻留与生命周期脚本等风险信号,输出红旗提示供人工复核。

0
Stars 标星
0
Forks 分支
0
Watchers 关注
0
Open Issues
TypeScript
主要语言
MIT
开源协议
74 KB
仓库大小
1 个月前
最后推送
一键安装扩展 / 插件指令
dsh plugin --profile web add github:snow-The/dsh-plugin-doctor
git clone https://github.com/snow-The/dsh-plugin-doctor.git
git clone git@github.com:snow-The/dsh-plugin-doctor.git
README.md main

dsh-plugin-doctor

Static vetting for DSH plugins — an own-built replacement for third-party
vetting plugins. Scans a plugin directory (a checkout, or an installed
package under ~/.dsh/profiles/*/node_modules) for red flags, scores them
SAFE / LOW / MEDIUM / HIGH, and reports evidence with file:line. It never
executes the scanned code
— purely read-only static analysis.

Checked patterns

  • Exfiltration: fetch/http(s) to non-localhost hosts, curl/wget/nc in
    child processes, sockets
  • Credential access: reads of .ssh, .aws, .env, credentials
    files, wholesale process.env harvest
  • Obfuscation: long base64/hex blobs, eval/Function/vm, hidden
    Unicode (zero-width / bidi controls)
  • Persistence: registry Run keys, startup folders, scheduled tasks,
    shell-rc appends
  • Destructive: rm -rf /-style deletes, force pushes
  • Lifecycle hooks: preinstall / install / postinstall scripts
    (always worth a human look — they run with the installer's privileges)

Tools

  • doctor_scan — scan a path (directory or single file), defaulting to
    the current profile's node_modules plugin packages
  • doctor_scan_path — alias with an explicit path parameter

License

MIT