Chhlafiu4312/promptwall2

dsh-promptwall

Local prompt-injection and secret-exfiltration firewall for DeepSeek Harness

AI 分析

核心用途是提升大模型交互的安全性。适合在处理敏感数据或运行不可信第三方输入时,需要拦截提示词注入攻击、防止凭证等机密信息被恶意工具外流的安全敏感型任务。

パッケージ
dsh-promptwall
バージョン
0.1.1
ライセンス
BSD-3-Clause
最終更新
2026/08/14

インストール

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:Chhlafiu4312/promptwall

ドキュメント

README 全文を読む ↗

Configuration

FieldDefaultPurpose
enabledtrueRegister the tool and policy hooks.
injectionActionsanitizemonitor, sanitize, or block suspicious output. Dangerous and truncated output still fails closed.
suspiciousThreshold30Score that produces a suspicious verdict.
dangerousThreshold70Score that produces a dangerous verdict.
maxScanChars250000Maximum UTF-16 code units inspected per string.
maxJsonDepth256Maximum canonical tool-result nesting depth; exceeding it fails closed.
maxJsonNodes100000Maximum canonical JSON values inspected per tool result; exceeding it fails closed.
inspectToolOutputstrueInspect post-execution output automatically.
trustedToolspromptwall_scanExact tool names exempt from automatic reinspection.
egressActionaskoff, ask, or deny for secret-like egress arguments.
egressToolPatternscommon network namesCase-insensitive patterns identifying egress-capable tools.
rules[]Additional deterministic injection rules.
secretPatterns[]Additional credential patterns.

The complete default composition is in cordis.patch.yml. Custom rules are JavaScript regular-expression sources and should be reviewed like code.