/install llm-shell-guard
name: linux-command-guard-elite version: 1.0.0 description: Defense-in-depth Linux command safety skill for AI agents using allowlist-first policy, approval gates, denylist, regex detection, and protected-path checks. category: security tags:
- security
- linux
- shell
- command-execution
- llm
- agent-safety
- openclaw
- clawhub
Linux Command Guard Elite
Use this skill before any agent executes shell commands on Linux.
Mandatory policy
-
Always prefer an allowlist over a denylist. If a command is not explicitly allowed, do not execute it.
-
Denylists are only a backup layer. They help catch known-bad patterns, but they are not sufficient by themselves.
-
Never trust wrappers or interpreters as inherently safe. Block or require separate sandbox policy for:
- bash
- sh
- zsh
- dash
- python / python3
- perl
- ruby
- node
- php
-
Require manual approval for high-risk commands and binaries, including:
- sudo
- su
- mount / umount
- systemctl / service
- iptables / nft / ufw
- docker / podman / kubectl / nsenter
- chmod / chown / chattr
- usermod / userdel / groupdel / passwd
- package managers
-
Never allow writes, deletes, moves, or redirects into protected system paths.
-
Do not use this skill as the only control. Also run the agent in:
- a sandbox or microVM
- non-root mode
- resource-limited environment
- network-restricted environment when possible
Recommended execution flow
- Parse the command safely.
- Reject command substitution, shell chaining, and redirect abuse.
- Reject wrappers and interpreters unless a stricter child policy is applied.
- Check allowlist.
- Check high-risk approval rules.
- Check denylist and regex rules.
- Check protected-path access.
- Execute only if the command is explicitly safe.
Strong recommendation
Keep the allowlist small and read-only by default.
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install llm-shell-guard - 安装完成后,直接呼叫该 Skill 的名称或使用
/llm-shell-guard触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
linux-command-guard 是什么?
Blocks destructive Linux commands by enforcing allowlist execution, denylist checks, regex detection, protected paths, and approval for risky actions. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 110 次。
如何安装 linux-command-guard?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install llm-shell-guard」即可一键安装,无需额外配置。
linux-command-guard 是免费的吗?
是的,linux-command-guard 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
linux-command-guard 支持哪些平台?
linux-command-guard 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 linux-command-guard?
由 Jurgenw81(@jurgenw81)开发并维护,当前版本 v1.0.1。