dsh-data-masking
已验证@liuhange/dsh-data-masking · v3.0.4 · MIT
Data masking plugin: sensitive field identification and graded masking (FULL/PARTIAL/GENERALIZE) Also known as @deepseek-ai/dsh-data-masking.
安装
dsh plugin add @liuhange/dsh-data-masking 用 dsh --profile default --dump-config 确认 layer 已生效 —— 参见安装指南。
源码
发布到 npm 但没有公开仓库。安装前请检查包内容。
标签
说明文档
@liuhange/dsh-data-masking
Data masking plugin for DeepSeek Harness. Identifies and masks sensitive fields (ID card, phone, bank card, email).
安装
dsh plugin --profile web add @liuhange/dsh-data-masking
Tool: mask_sensitive_data
- Parameters:
filePath(required),strategy(optional: FULL | PARTIAL | GENERALIZE, default PARTIAL) - Output: Masking report with field counts and output file path
- Output file:
{originalName}_masked.{ext}
Business Rules
All sensitive field patterns and masking levels are read from config/business-rules.json. No business logic is hardcoded.
Known Limitations and Deferred Work
- Regex patterns are compiled at runtime from config strings
- Large file streaming masking not yet implemented