
Security News
vlt 1.5.0 Adds Agent Skills Management
vlt 1.5.0 links skills from JavaScript dependencies to coding agents, with lockfile versioning and Socket data to filter out known malicious packages.
dsh-safeguard
Advanced tools
面向 DeepSeek Harness(DSH)的危险命令 + 密钥泄漏拦截插件。挂载到 `tools/pre-execute` waterfall,在工具解析前短路拒绝,被拦截的副作用不会发生。
面向 DeepSeek Harness(DSH)的危险命令 + 密钥泄漏拦截插件。挂载到 tools/pre-execute waterfall,在工具解析前短路拒绝,被拦截的副作用不会发生。
bash 工具的命令做正则匹配,命中即 deny。JSON.stringify 后扫描常见密钥模式,命中即 deny。guard_list(列出当前规则)与 guard_check(纯检查不拦截,供调试/自检)。重要:本插件是基于正则的启发式拦截,不验签、不识别密钥真伪、不做沙箱隔离。它无法替代密钥扫描器、签名校验或操作系统级沙箱,只能拦截明显的高风险动作。
dsh plugin --profile <profile> add dsh-safeguard
本地开发安装:
dsh plugin --profile <profile> add file:./plugins/dsh-safeguard
enableDanger)| 规则名 | 匹配内容 |
|---|---|
| rm -rf | rm -rf / rm -fr 且目标是 /、*、./、../、., ~、$HOME |
| git push --force | git push --force / --force-with-lease / -f |
| git reset --hard | git reset --hard |
| git clean -fd | git clean 带 -fd / -df 等同时含 f、d 的标志 |
| chmod -R 777 | chmod -R 777 |
| mkfs | mkfs / mkfs.ext4 等 |
| dd 写盘 | dd if=... of=/dev/... |
| 重定向到块设备 | > /dev/sd[a-z] |
| curl|sh 管道执行 | curl ... | sh、wget ... | bash 等 |
| SQL DROP | 以 DROP TABLE/DATABASE/INDEX/... 开头 |
| SQL DELETE | 以 DELETE FROM 开头 |
| SQL TRUNCATE | 以 TRUNCATE [TABLE] ... 开头 |
enableSecrets)| 规则名 | 匹配模式 |
|---|---|
| AWS Access Key (AKIA) | AKIA[0-9A-Z]{16} |
| sk- API Key | sk-[A-Za-z0-9]{20,} |
| GitHub PAT (ghp_) | ghp_[A-Za-z0-9]{30,} |
| GitHub Fine-grained PAT (github_pat_) | github_pat_[A-Za-z0-9_]{10,} |
| PEM 私钥 | -----BEGIN (RSA|OPENSSH|EC|PGP) PRIVATE KEY----- |
| Slack Token (xox-) | xox[baprs]-... |
eyJ开头的长 JWT 不拦截(模式太宽,误报率高)。
在 profile 的 cordis.patch.yml(或 bundle 配置)中覆盖:
- insert:
- id: guard
name: dsh-safeguard
config:
enableDanger: true # 危险命令拦截开关(默认 true)
enableSecrets: true # 密钥泄漏拦截开关(默认 true)
extraPatterns: # 额外正则字符串(额外危险命令规则)
- 'curl.*\|.*bash'
allowList: # 精确豁免名单(字符串完全一致才豁免)
- 'rm -rf /tmp/safe-dir'
| 配置项 | 类型 | 默认 | 说明 |
|---|---|---|---|
enableDanger | boolean | true | 是否拦截危险命令 |
enableSecrets | boolean | true | 是否拦截密钥泄漏 |
extraPatterns | string[] | [] | 额外危险命令正则(非法正则以警告跳过) |
allowList | string[] | [] | 精确豁免:危险命令按整条命令、密钥按命中片段做完全一致匹配 |
guard_list无参,列出当前启用的规则类别与条目数:
[dsh-safeguard] 规则清单
危险命令: 启用(12 条规则)
密钥检测: 启用(6 条规则)
额外正则: 0 条
豁免名单: 0 条
guard_check参数 text(必填 string)。纯检查不拦截,返回命中规则名 / 类别 / 是否豁免:
guard_check("rm -rf /") → 命中,类别 danger,规则 rm -rfguard_check("aws key: AKIAIOSFODNN7EXAMPLE") → 命中,类别 secrets,规则 AWS Access Key (AKIA)guard_check("echo hello") → 通过模型可通过 await tools.guard_check({ text: "..." }) 做程序化自检。
dsh-bash-sandbox)使用。MIT
FAQs
面向 DeepSeek Harness(DSH)的危险命令 + 密钥泄漏拦截插件。挂载到 `tools/pre-execute` waterfall,在工具解析前短路拒绝,被拦截的副作用不会发生。
The npm package dsh-safeguard receives a total of 13 weekly downloads. As such, dsh-safeguard popularity was classified as not popular.
We found that dsh-safeguard demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.

Security News
vlt 1.5.0 links skills from JavaScript dependencies to coding agents, with lockfile versioning and Socket data to filter out known malicious packages.

Security News
Rust 1.100 will add opt-in dependency cooldowns to Cargo, giving security scanners and maintainers time to catch malicious crate releases.

Security News
Cloudflare is acquiring Deno’s team, which will provide another year of bug fixes and security updates before ending support for the runtime.