CrowdSec Sentinel — security monitoring, intrusion detection, and server hardening skill for OpenClaw.
Install, monitor, and manage CrowdSec from your OpenClaw agents via WhatsApp, CLI, or any supported channel. Includes proactive alerting, auth log analysis, firewall management, and security hardening checks.
- Linux (Debian/Ubuntu or RHEL/CentOS/Fedora)
- Python 3 (for JSON formatting)
- Root access (for install/manage commands)
CrowdSec itself is not required beforehand — crowdsec-skill install handles everything.
git clone https://github.com/Brettmmmmm/openclaw-crowdsec-skill.git
cd openclaw-crowdsec-skill
sudo cp crowdsec-skill /usr/local/bin/
chmod +x /usr/local/bin/crowdsec-skill
cp SKILL.md /path/to/openclaw/skills/crowdsec.mdcrowdsec-skill installThis installs CrowdSec engine + firewall bouncer, configures the API key, installs recommended collections (sshd, linux, iptables, linux-lpe), and starts all services.
crowdsec-skill status # Quick health check
crowdsec-skill bans [limit] # List banned IPs
crowdsec-skill alerts [1h|24h|7d] # Recent intrusion alerts
crowdsec-skill metrics # CrowdSec engine metrics
crowdsec-skill report [24h|7d|30d] # Full security summarycrowdsec-skill alert # Check for issues, returns exit codes:
# 0 = all clear
# 1 = warning
# 2 = criticalcrowdsec-skill ban 1.2.3.4 48h "port scanning"
crowdsec-skill unban 1.2.3.4
crowdsec-skill whitelist add 10.0.0.0/8
crowdsec-skill whitelist remove 1.2.3.4
crowdsec-skill whitelist listcrowdsec-skill auth recent # Recent auth events
crowdsec-skill auth failed # Failed login attempts
crowdsec-skill auth success # Successful logins
crowdsec-skill auth sudo # Sudo usage
crowdsec-skill auth stats # Today's auth summary
crowdsec-skill syslog recent # Recent syslog
crowdsec-skill syslog errors # Error entries
crowdsec-skill syslog kernel # Kernel/dmesg messages
crowdsec-skill syslog security # Security-related events
crowdsec-skill logs recent # CrowdSec logs
crowdsec-skill logs errors # CrowdSec errors
crowdsec-skill logs watch # Live tail (Ctrl+C to stop)
crowdsec-skill logs stats # Log file statisticscrowdsec-skill firewall status # Show firewall state + ipset counts
crowdsec-skill firewall reload # Reload bouncer
crowdsec-skill firewall flush # Clear all bans
crowdsec-skill firewall switch ufw # Switch bouncer typecrowdsec-skill logging status # Current config
crowdsec-skill logging setup # Configure logrotate
crowdsec-skill logging retention 30 # Set retention (days)
crowdsec-skill logging report 7d # Log analysis report
crowdsec-skill logging rotate # Force rotation nowcrowdsec-skill install # Full install from scratch
crowdsec-skill upgrade # Upgrade packages + hub
crowdsec-skill services health # Full health check
crowdsec-skill services restart # Restart engine + bouncer
crowdsec-skill collections list # Show installed collections
crowdsec-skill collections available # Show all available
crowdsec-skill collections install crowdsecurity/nginxcrowdsec-skill hardening # Check SSH config, firewall,
# permissions, update statuscrowdsec-skill compare # CrowdSec vs Fail2ban explained| Agent | Use Case |
|---|---|
| Pulse (monitor) | Automated security checks, alert delivery via WhatsApp |
| Atlas (infra) | Manual ban/unban, incident response, hardening |
| Jarvis (orchestrator) | On-demand security status |
openclaw agent --agent pulse \
-m "Run crowdsec-skill report --period 24h and send me the summary" \
--deliver --reply-channel whatsapp \
--reply-to 447480265496@s.whatsapp.netcrowdsec-skill alert || openclaw agent --agent pulse \
-m "Security alert triggered — run crowdsec-skill alert and send the output" \
--deliver --reply-channel whatsapp \
--reply-to 447480265496@s.whatsapp.netOUTPUT_FORMAT=json crowdsec-skill status
# {"active_bans":100,"alerts_last_hour":50,"crowdsec":"active","bouncer":"active","version":"1.5.0"}MIT — Brett Moore / InfraForesight Ltd