AI Agent Hub
Back to plugins
🧩

dsh-plugin-auth-guard

admin-security Updated 2026.08.26

Run the following command in DeepSeek Harness:

dsh plugin install lijx122/dsh-plugin-auth-guard

Paste the following prompt into your AI chat to install this plugin:

Run dsh plugin install lijx122/dsh-plugin-auth-guard in the DeepSeek Harness CLI to install the plugin, whose source is hosted at https://github.com/lijx122/dsh-plugin-auth-guard , or search for auth-guard under Settings > Plugins > Marketplace in the DSH Web GUI.

About this plugin

DeepSeek Harness is natively designed for local desktop workflows. The moment a developer tries to expose it across a LAN for mobile access or host it on a cloud server, hard loopback fences trigger 403 blocks, mobile browsers lack the Secure Context that RPCs depend on, and the complete absence of authentication opens the door to remote code execution. dsh-plugin-auth-guard closes every one of those gaps with zero intrusion: it automatically binds the Web GUI to 0.0.0.0, enumerates active LAN interfaces, securely proxies privileged RPCs such as settings.describe and llm.providers for authenticated clients, and dynamically injects crypto.randomUUID and other mobile polyfills into the HTML response so that iOS Safari and Android Chrome work seamlessly over plain HTTP.

On the security front, the plugin intercepts HTTP requests and WebSocket upgrade events at the lowest TCP server level, enforcing a default-deny whitelist across /api/, /api2/, and /sidebar/* routes. Passwords are stored as 32-byte Scrypt hashes with random salts; tokens embed HMAC-SHA256 password fingerprints so that changing the password instantly revokes every token globally and purges all active remote WebSockets within milliseconds. IP sliding-window rate limiting, global burst throttling, a 64 KB request body cutoff, CSRF/CSWSH protection, and physical socket address validation round out a deep-defense posture against spoofing and DoS attacks.

It is built for developers who need to turn DSH from a single-machine desktop tool into a shared or remotely accessible service, and who want a production-grade security gateway, mobile compatibility, and full credential lifecycle management with a single CLI command and no source modifications.

Use Cases

  • Exposing DSH over LAN for iOS/Android remote coding sessions
  • Hosting DSH on a cloud server for team access without opening arbitrary command execution
  • Adding a production-grade shield against spoofing, CSRF, and distributed brute-force attacks

Best For

  • Developers upgrading DSH from a single-machine tool to a multi-device or remotely accessible service
  • Operators deploying DSH on VPS or container environments and worried about the security boundary
  • Users who want a full security gateway with minimal changes and zero DSH source modifications