dsh-llmasking
DeepSeek Harness 的传输层数据脱敏插件:敏感数据不离开进程,模型接收占位符,用户端实时还原真实值。
AI 分析
核心用途是保护隐私与敏感信息,防止密钥或机密数据泄露给大模型。适合对数据安全和合规性有严格要求的企业或个人用户。
安裝
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:yolorouter/dsh-llmasking說明文件
閱讀完整 README ↗Configuration
Defaults are deliberate; most users need none of this. Override per profile in cordis.patch.yml (row config replaces wholesale, no deep merge):
- replace:
- id: llmasking
config:
keywords: ["acme-corp-token"]
regions: ["CN", "US"]
maskSystem: true
teachModel: true
| Option | Default | Meaning |
|---|---|---|
mode | enforce | enforce masks the wire. monitor is a shadow mode — counts and logs what WOULD be masked but sends real values to the provider; useful for building trust before enforcing |
keywords | [] | Extra literal keywords to mask (added to all built-in detectors) |
regions | all | Geo rule packs to enable: CN, US (universal rules are always on) |
maskSystem | true | Mask the system prompt slot too — project instructions (AGENTS.md etc.) can carry secrets |
teachModel | true | Add a short system-prompt section telling the model what placeholders are and to reproduce them verbatim |