dsh-netguard: Egress Network Guard (SSRF Protection)
`dsh-netguard` is a DeepSeek Harness (DSH) plugin designed to prevent SSRF attacks via the `netguard` service and the `fetch_url` tool. This plugin provides strict outbound network protection, including allowing only public network access, DNS resolution checks, hop-by-hop redirection reviews, streaming size limits, timeout controls, and port blacklisting. The article details its installation and configuration, as well as typical usage (supporting both JS calls and model tool invocations), and points out its limitations regarding DNS rebinding, proxy awareness, and content security.
Read Moredsh-netguard: Egress Policies and Host Allowlist Plugin for DeepSeek Harness
`dsh-netguard` is a plugin for DeepSeek Harness (DSH) that addresses shortcomings in its sandbox mechanism for controlling network traffic. The plugin provides hostname checks, parameter pre-checks, and audit logging, operating in audit-only mode by default. During installation, ensure Harness version compatibility and explicitly enable `fetchProvider` in the configuration. When deploying it, an audit-before-enforcement approach is recommended; however, note that it cannot detect URLs passed through variables and cannot fully prevent data leakage via proxy channels.
Read More