tancheng33/dsh-egress-guard0

dsh-egress-guard

DeepSeek Harness 的运行时安全网关插件,支持出口域名白名单、工具结果敏感词脱敏及审计日志。

AI 分析

核心用途是监控并拦截 AI 智能体的不安全外网连接,并对输出的敏感数据进行遮蔽。适合对数据防泄露(DLP)和网络边界安全有严格要求的企业用户。

包名
dsh-egress-guard
版本
0.1.0
许可证
MIT
最近更新
2026年8月15日

安装

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:tancheng33/dsh-egress-guard

Configuration

KeyDefaultMeaning
modemonitoroff registers nothing. monitor evaluates and audits without acting. enforce denies and redacts.
egress.allowHosts[] in schema, a starter list in the bundlePermitted hosts. *.example.com covers the apex and every subdomain. An empty list means denylist-only.
egress.denyHosts[]Always denied. Beats allowHosts and allowLoopback.
egress.allowLoopbacktrueExempts localhost, 127.0.0.0/8, ::1, *.localhost.
egress.onViolationdenyask routes to ctx.approval instead — and degrades to deny when no approval service is mounted.
redact.builtinstruePrivate keys, vendor API keys, JWTs, bearer headers, KEY=value assignments.
redact.extraPatterns[]Extra regex sources, compiled with the global flag.
redact.placeholder[redacted:{name}]{name} is the pattern that matched.
audit.path$DSH_HOME/egress-guard.jsonlJSONL, one decision per line.
audit.logAllowedfalseAlso record calls that named a host and passed — this is how you build an allowlist out of real traffic.

Building an allowlist from real traffic