ShellWard Security Deployment Guide
Produces a complete security-hardening checklist for an OpenClaw installation guarded by ShellWard. Inspect the current system state with available tools, then give actionable, command-level recommendations. Prioritize critical issues first; ask for confirmation before any destructive operation.
When to use
- User asks to secure / harden / audit an OpenClaw or ShellWard install.
- Reviewing exposed gateway ports, container isolation, leaked secrets, audit logging, plugin risk, or version/patch status.
- User runs ShellWard quick commands:
/security, /audit, /harden, /scan-plugins, /check-updates.
Security checklist
1. Network control
- Check whether OpenClaw gateway ports (19000 / 19001) are exposed to the public network.
- Bind to
127.0.0.1 or front with an authenticated reverse proxy.
- Firewall:
ufw allow from 127.0.0.1 to any port 19000
- Cloud servers: review security-group / inbound rules.
2. Container isolation
Run OpenClaw in Docker with dropped capabilities and a read-only rootfs:
docker run --cap-drop=ALL --cap-add=NET_BIND_SERVICE \
--read-only --tmpfs /tmp \
-u 1000:1000 \
--memory=2g --cpus=1 \
openclaw
Mount only the directories actually required.
3. Credential management
- Scan for plaintext secrets in
.env, .bashrc, and environment variables.
- Move secrets to a manager (Vault, Doppler, etc.).
- Sensitive files must be mode
0600: chmod 600 ~/.env ~/.ssh/* ~/.aws/credentials
4. Audit logging
- Confirm the ShellWard audit log is active at
~/.openclaw/shellward/audit.jsonl.
- Show recent security events.
- Set up log rotation + backup; forward critical events to an external SIEM.
5. Plugin security
- List installed plugins; flag known-risky ones.
- Disable plugin auto-update; install only from trusted sources.
- Scan plugin code for suspicious patterns.
6. Patch management
- Check the current OpenClaw version and report known vulnerabilities for it.
- Recommend an upgrade path.
- Verify Node.js
>= 22.12.
ShellWard quick commands
/security — full security status overview
/audit [count] [filter] — view audit log
/harden — scan for issues; /harden fix to auto-fix
/scan-plugins — scan plugins for security risks
/check-updates — check versions and vulnerabilities
Response style
- Concise and actionable; critical issues first.
- For each issue, give the exact fix command.
- Detect and match the user's language (original skill is bilingual EN / 中文).
- Confirm before executing destructive operations.
Gotchas
- This skill targets the OpenClaw runtime specifically — ports, log paths, and
/-commands assume a ShellWard-instrumented OpenClaw host. Adapt paths for other stacks.
1---2name: shellward-guide3description: "Use when securing or hardening an OpenClaw / ShellWard installation — auditing exposed gateway ports, container isolation, plaintext secrets, audit logs, plugin risks, or patch/version status; triggers on shellward, openclaw security, harden, security checklist, /security, /audit, /harden, /scan-plugins, /check-updates."4version: 1.0.05license: MIT6tags: [security, hardening, openclaw, shellward, audit, secrets, docker, firewall, plugins, vulnerabilities]7source: https://github.com/jnMetaCode/shellward/tree/main/skills/security-guide8derived_from: awesomeclaude9prerequisites:10 commands: [docker, ufw, chmod]11metadata:12 source: https://skillmd.com/skills/aashutosh396/shellward-guide13---1415# ShellWard Security Deployment Guide1617Produces a complete security-hardening checklist for an OpenClaw installation guarded by ShellWard. Inspect the current system state with available tools, then give actionable, command-level recommendations. Prioritize critical issues first; ask for confirmation before any destructive operation.1819## When to use20- User asks to secure / harden / audit an OpenClaw or ShellWard install.21- Reviewing exposed gateway ports, container isolation, leaked secrets, audit logging, plugin risk, or version/patch status.22- User runs ShellWard quick commands: `/security`, `/audit`, `/harden`, `/scan-plugins`, `/check-updates`.2324## Security checklist2526### 1. Network control27- Check whether OpenClaw gateway ports (19000 / 19001) are exposed to the public network.28- Bind to `127.0.0.1` or front with an authenticated reverse proxy.29- Firewall: `ufw allow from 127.0.0.1 to any port 19000`30- Cloud servers: review security-group / inbound rules.3132### 2. Container isolation33Run OpenClaw in Docker with dropped capabilities and a read-only rootfs:34```35docker run --cap-drop=ALL --cap-add=NET_BIND_SERVICE \36 --read-only --tmpfs /tmp \37 -u 1000:1000 \38 --memory=2g --cpus=1 \39 openclaw40```41Mount only the directories actually required.4243### 3. Credential management44- Scan for plaintext secrets in `.env`, `.bashrc`, and environment variables.45- Move secrets to a manager (Vault, Doppler, etc.).46- Sensitive files must be mode `0600`: `chmod 600 ~/.env ~/.ssh/* ~/.aws/credentials`4748### 4. Audit logging49- Confirm the ShellWard audit log is active at `~/.openclaw/shellward/audit.jsonl`.50- Show recent security events.51- Set up log rotation + backup; forward critical events to an external SIEM.5253### 5. Plugin security54- List installed plugins; flag known-risky ones.55- Disable plugin auto-update; install only from trusted sources.56- Scan plugin code for suspicious patterns.5758### 6. Patch management59- Check the current OpenClaw version and report known vulnerabilities for it.60- Recommend an upgrade path.61- Verify Node.js `>= 22.12`.6263## ShellWard quick commands64- `/security` — full security status overview65- `/audit [count] [filter]` — view audit log66- `/harden` — scan for issues; `/harden fix` to auto-fix67- `/scan-plugins` — scan plugins for security risks68- `/check-updates` — check versions and vulnerabilities6970## Response style71- Concise and actionable; critical issues first.72- For each issue, give the exact fix command.73- Detect and match the user's language (original skill is bilingual EN / 中文).74- Confirm before executing destructive operations.7576## Gotchas77- This skill targets the OpenClaw runtime specifically — ports, log paths, and `/`-commands assume a ShellWard-instrumented OpenClaw host. Adapt paths for other stacks.