| name | moltaudit |
| description | Security audit tool for Moltbot/Clawdbot AI assistant installations with DoD STIG/CIS/NIST compliance support. Use this skill when the user asks to: (1) Run a security audit on their VPS or server, (2) Check for vulnerabilities in their AI assistant setup, (3) Scan for exposed credentials, tokens, or insecure configurations, (4) Fix common security issues like SSH hardening, firewall setup, or file permissions, (5) Assess risk of their self-hosted AI setup, (6) Run STIG/CIS/NIST compliance checks, or mentions "moltaudit", "molt-security-audit", "clawdbot security", or "moltbot security".
|
MoltAudit Security Scanner
Defensive security audit tool for Moltbot/Clawdbot installations based on @mrnacknack's "10 ways to hack into a vibecoder's clawdbot".
Quick Reference
./molt-security-audit.sh
./molt-security-audit.sh --fix
./molt-security-audit.sh --json
./molt-security-audit.sh --quiet
./molt-security-audit.sh --deep
./molt-security-audit.sh --stig
./molt-security-audit.sh --stig --json
./molt-security-audit.sh --stig --fix
Exit Codes
| Code | Meaning |
|---|
| 0 | All checks passed |
| 1 | Critical failures detected |
| 2 | Warnings only |
Security Checks Performed
Core Checks (always run)
- SSH Security - Password auth, root login, fail2ban
- Firewall - UFW/iptables/firewalld status
- Gateway Exposure - Clawdbot control gateway binding
- User Allowlist - Discord/Telegram/Slack ID restrictions
- Browser Profile - Isolated vs shared Chrome profile
- Password Manager - 1Password/Bitwarden/LastPass CLI session status
- Docker Security - Privileged mode, root user, host mounts, socket mounts
- File Permissions - .env, SSH keys, AWS credentials
- Exposed Tokens - API keys in configs/logs/history
- Running Processes - Root processes, exposed tokens in process list
- Moltbot Native Audit - DM/group policies, tool blast radius, browser control, plugins, model hygiene, sandbox config (requires
moltbot or clawdbot CLI)
STIG Checks (--stig flag)
- SSH Hardening - Idle timeout, host key perms, ciphers, MACs, PermitUserEnvironment, Protocol 2, RSA key size
- Kernel Hardening - ASLR, SYN cookies, IP forwarding, ICMP redirects (all+default), source routing (all+default), BPF, core dumps
- Audit Logging - auditd running, rules, critical rules (execve/passwd/shadow), log perms, retention, boot audit
- Mandatory Access Control - SELinux enforcing, AppArmor profiles
- Account Controls - Session timeout (value + readonly), account lockout, password complexity, empty passwords, root login
- Service Hardening - Debug shell, Ctrl-Alt-Del, core dumps, service count
- Cryptographic Controls - Crypto policy, FIPS mode, TLS min version (crypto-policies backend)
- File Integrity - AIDE/Tripwire/OSSEC/Samhain, world-writable files, SUID/SGID binaries
- AI Supply Chain - SBOM, model integrity, plugin allowlist, rate limiting, TLS, foreign model origin
- Container Security (extended) - Read-only rootfs, no-new-privileges, memory/CPU limits
- macOS Security - Application Firewall, FW logging, Gatekeeper, SIP
- Network Zero Trust - Exposed services, encrypted DNS, network segmentation
Common Workflows
Initial Server Hardening
./molt-security-audit.sh --fix
STIG Compliance Audit
./molt-security-audit.sh --stig
./molt-security-audit.sh --stig --json > stig-report.json
./molt-security-audit.sh --stig --fix
CI/CD Integration
./molt-security-audit.sh --json > security-report.json
Risk Assessment
Run audit and check the risk score (0-100):
- 0-24: Good
- 25-49: Moderate Risk
- 50-74: High Risk
- 75+: Critical Risk
Manual Fix Commands
When --fix can't auto-remediate, use these:
sudo sed -i 's/PasswordAuthentication yes/PasswordAuthentication no/' /etc/ssh/sshd_config
sudo sed -i 's/PermitRootLogin yes/PermitRootLogin no/' /etc/ssh/sshd_config
sudo systemctl restart sshd
sudo ufw enable
sudo ufw default deny incoming
sudo ufw allow ssh
op signout --all
chmod 600 ~/.env ~/.aws/credentials ~/.ssh/id_*
Installation
git clone https://github.com/signalfi/MoltAudit.git
cd MoltAudit
chmod +x molt-security-audit.sh
./molt-security-audit.sh