dsh-sentinel
No description
- Stars
- 0
- Language
- TypeScript
- Created
- Aug 18, 2026
- Updated
- Aug 18, 2026
Introduction
dsh-sentinel 🛡️
DeepSeek Harness 插件安全体检官
静态扫描 + 运行时副作用追踪,为 DSH 生态 4,300+ 插件建立「安装前必看体检报告」,抢占生态安全准入第一站。
🎯 为什么需要 Sentinel?
- 权限裸奔风险:DSH 插件具备本机全部运行权限(文件读写、Shell 执行、外网请求、环境变量读取)。
- 13 类攻击链已披露:包含任意私钥窃取、命令注入、反弹 Shell 与供应链投毒。
- 零缓存损耗设计:Sentinel 采用 Cordis
before: ['*']旁路挂载与独立面板输出,完全不进入模型上下文,保持 99% 前缀缓存命中率。
📦 快速安装与配置
1. 官方命令行安装
dsh plugin --profile web add github:ceo-panda/dsh-sentinel#v0.1.0
2. 自动挂载声明 (cordis.patch.yml)
- id: dsh-sentinel
type: plugin
before: ['*']
provides: ['sentinel']
config:
mode: audit # audit(体检告警) | enforce(阻断高危)
strictness: high
output: panel
🛡️ 内置 13 大攻击链检测矩阵
| 编号 | 规则 ID | 类别 | 严重度 | 防护说明 |
|---|---|---|---|---|
| 1 | SENTINEL-F001 | File | Critical | 拦截任意敏感文件/私钥/.env 读取 |
| 2 | SENTINEL-F002 | File | Critical | 拦截未经声明的任意系统路径写入与覆盖 |
| 3 | SENTINEL-F003 | File | High | 拦截针对系统根目录与用户目录的递归遍历 |
| 4 | SENTINEL-F004 | File | Medium | 拦截符号链接逃逸漏洞 (TOCTOU) |
| 5 | SENTINEL-S001 | Shell | Critical | 拦截未参数化的拼接式 Shell 命令注入 |
| 6 | SENTINEL-S002 | Shell | Critical | 拦截反弹 Shell 与可疑远控特征 |
| 7 | SENTINEL-S003 | Shell | High | 拦截修改计划任务/服务的持久化植入 |
| 8 | SENTINEL-N001 | Network | Critical | 拦截未声明域名的外网数据回传 |
| 9 | SENTINEL-N002 | Network | High | 拦截针对 127.0.0.1 / 云元数据的 SSRF 探测 |
| 10 | SENTINEL-N003 | Network | Medium | 拦截通过 DNS 隐蔽信道的数据渗漏 |
| 11 | SENTINEL-E001 | Env | Critical | 拦截全量倾倒 process.env 的凭据窃取 |
| 12 | SENTINEL-E002 | Env | High | 拦截针对 API Key / 数据库密钥的定向探测 |
| 13 | SENTINEL-C001 | Supply | Critical | 拦截 package.json 生命周期脚本投毒 |
🏆 冲刺 dshfind S 级评分标准
- S95+ 架构指标:纯 TypeScript 强类型、完整 CI/CD 自动化校验、零前缀缓存损耗、声明式 Cordis 热插拔。
MIT License © 2026 CEO panda · 智能体公司