dsh-agent-guard: Intercepting Credential Leaks and High-Risk Host Operations Before Tool Execution

dsh-agent-guard is a DSH admin-security plugin maintained by lyc0110. It hooks into `tools/pre-execute` to intercept mechanically determinable risks via regex before tool execution, specifically targeting credential patterns (such as API keys) in tool arguments and shell commands for service termination, privilege escalation, HKLM registry modification, firewall/DNS changes, and driver deletion. When a rule is triggered, it returns an "ask" for user approval, displaying sensitive credential fragments in a masked format. Installation is performed via `install_bundle` using a local path or via `pnpm` adding a Git dependency and registering it in `dsh.profile.bundles`; a DSH restart is required post-installation. The rules are located in `lib/index.js`, and running `node lib/index.js` executes 11 test cases for self-verification.

Read More
dsh-agent-guard: Evidence-First DSH Safety Guardrails

`dsh-agent-guard` is a safety guardrail plugin designed for DSH, aimed at preventing agents from incorrectly modifying core storage due to misjudged data loss. The plugin offers core capabilities including zero runtime dependencies, evidence-first read-only checks, write interception with backup, a circuit breaker mechanism, and per-turn rollback point logging. It intercepts write operations during the `tools/pre-execute` phase to ensure that agents first read primary evidence before execution, and provides CLI tools and a client UI for monitoring. Once installed, it takes effect automatically. Uninstalling it does not delete data; manual cleanup is required.

Read More