Host Security Audit
/install host-security-audit
Host Security Audit
Run a comprehensive security audit on the machine hosting OpenClaw. Checks OS-level security, OpenClaw configuration, and common misconfigurations.
Quick Start
Run the full audit:
bash scripts/security-audit.sh
Run with JSON output:
bash scripts/security-audit.sh --json
What It Checks
OS Security
- Firewall — macOS Application Firewall or Linux ufw/firewalld
- Disk encryption — FileVault (macOS) or LUKS (Linux)
- Auto-updates — macOS SoftwareUpdate or unattended-upgrades
- Open ports — listening services on all interfaces
- Suspicious processes — crypto miners, reverse shells, unexpected listeners
OpenClaw Security
- OpenClaw version — current vs latest available
- API key exposure — plaintext keys in config files
- Gateway bind address — flags 0.0.0.0 binding (exposed to network)
- File permissions — secrets directory permissions
System Health
- Disk usage — warns at 80%, critical at 90%
- Brew outdated — packages with available updates (macOS)
- Time Machine — backup status and last backup time (macOS)
Scheduling Monthly Audits
Create an OpenClaw cron job for the 1st Monday of each month at 9 AM:
schedule: "0 9 1-7 * 1"
payload: Run a full host security audit. Execute: bash \x3Cskill-path>/scripts/security-audit.sh — Report findings with severity levels (CRITICAL/WARNING/OK). Only notify the user if there are CRITICAL or WARNING findings. If everything passes, do nothing (NO_REPLY).
Remediation
The audit reports findings but does not auto-fix. For each finding:
- CRITICAL — Act immediately (exposed API keys, no firewall, no encryption)
- WARNING — Schedule fix within a week (outdated packages, disk usage)
- OK — No action needed
To auto-fix OpenClaw-specific issues:
openclaw security audit --fix
This only tightens OpenClaw defaults and file permissions. It does not modify host firewall, SSH, or OS settings.
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install host-security-audit - After installation, invoke the skill by name or use
/host-security-audit - Provide required inputs per the skill's parameter spec and get structured output
What is Host Security Audit?
Comprehensive security audit and hardening for OpenClaw host machines. Checks firewall, disk encryption, open ports, auto-updates, brew outdated, OpenClaw ve... It is an AI Agent Skill for Claude Code / OpenClaw, with 275 downloads so far.
How do I install Host Security Audit?
Run "/install host-security-audit" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is Host Security Audit free?
Yes, Host Security Audit is completely free (open-source). You can download, install and use it at no cost.
Which platforms does Host Security Audit support?
Host Security Audit is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created Host Security Audit?
It is built and maintained by Jesse Wunderlich (@jessewunderlich); the current version is v1.0.0.