/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.
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install llm-shell-guard - After installation, invoke the skill by name or use
/llm-shell-guard - Provide required inputs per the skill's parameter spec and get structured output
What is linux-command-guard?
Blocks destructive Linux commands by enforcing allowlist execution, denylist checks, regex detection, protected paths, and approval for risky actions. It is an AI Agent Skill for Claude Code / OpenClaw, with 110 downloads so far.
How do I install linux-command-guard?
Run "/install llm-shell-guard" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is linux-command-guard free?
Yes, linux-command-guard is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does linux-command-guard support?
linux-command-guard is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created linux-command-guard?
It is built and maintained by Jurgenw81 (@jurgenw81); the current version is v1.0.1.