Open-source IDS/IPS, WAF and bot detection with a crowdsourced blocklist of malicious IPs
open coreMITself-hostablefree
CrowdSec is a crowdsourced security engine: the open source Security Engine (MIT, written in Go) reads logs and HTTP requests, detects behaviour such as brute force, port scans and web scans with scenarios from the CrowdSec Hub, and has remediation components (bouncers) block the offending IPs at a firewall, web server, reverse proxy or CDN, possibly on another machine. Its AppSec component is a WAF built on Coraza that loads SecLang rules and the OWASP Core Rule Set and can answer suspicious requests with a proof-of-work challenge. Attacks users report feed a community blocklist that every engine receives. It installs on Linux, FreeBSD, Windows, macOS, Docker, Kubernetes, OPNsense, pfSense and WHM, and is managed with the cscli CLI. CrowdSec, the company, sells the web Console (free Community tier, pay-as-you-grow Premium, Advanced on quote), premium blocklists, an IP reputation (CTI) API and a Live Exploit Tracker.
Ways to install
On your own server
On Kubernetes
Package managers
Problems it solves
- block IPs that brute force SSH on my server automatically
- something smarter than fail2ban that shares bad IPs between all my servers
- self-hosted fail2ban alternative with a community blocklist
- bots keep scanning my web server for wp-login and .env files
- stop credential stuffing against my login page by banning the attacking IPs
- block known malicious IPs before they even reach my homelab
- read logs on one machine and block attackers at my firewall or reverse proxy
- add a free open source web application firewall in front of nginx or Traefik
- run the OWASP Core Rule Set without setting up ModSecurity
- challenge scrapers and headless browsers with a proof-of-work page while letting Googlebot through
- block AI crawlers hammering my website
- protect my OPNsense or pfSense firewall with an IP blocklist that updates itself
- push my IP bans to Cloudflare or AWS WAF automatically
- see attacks on all my servers in one dashboard
- check the reputation of an IP address that keeps hitting my API
- buy a curated threat intelligence blocklist for my company firewalls
- detect port scans and web scans on my VPS
- intrusion prevention for Kubernetes ingress traffic
- know which CVEs attackers are exploiting right now against software like mine
- protect my WordPress or Magento shop from malicious IPs
- feed malicious IPs into MISP from my own detections
Features
- Log Processor that reads log files, Docker containers, Kubernetes and centralised logs (rsyslog, Loki)
- behaviour scenarios for brute force, port scans, web scans and more, from the CrowdSec Hub (MIT)
- AppSec WAF built on Coraza, loading SecLang rules and the OWASP Core Rule Set, plus a YAML rule format
- JavaScript proof-of-work challenge for bots, letting verified crawlers through
- Local API that connects log processors and remediation components across machines
- remediation components for firewalls (iptables, nftables, pf), Windows Firewall, nginx, OpenResty, Apache, HAProxy, Traefik, Envoy, Cloudflare, AWS WAF, Fastly, WordPress, Magento 2 and PHP
- community blocklist of malicious IPs shared by every engine
- cscli command-line tool for administration
- web Console to monitor alerts and manage engines, blocklists and allowlists
- Premium Console features: Remediation Sync, background noise filtering, attack surge alerts, notifications, Service API
View 4 more
- Platinum and industry, stack or country-specific blocklists, and an AI crawlers blocklist
- IP reputation (CTI) API with MITRE technique classification and activity timelines
- Live Exploit Tracker for CVE exploitation status and attacker IPs
- Helm chart for Kubernetes
Ways to run it
CrowdSec Security Engine
Only in this edition
- log-based detection, the AppSec WAF and remediation components
- the community blocklist
You arrange
- the servers or containers to run the engine next to your logs
- remediation components on your firewall, web server, proxy or CDN
- a free Console account to enroll engines and subscribe to blocklists
CrowdSec Console
Community free; Premium pay as you grow, per enrolled Security Engine, 30-day free trial; Advanced custom67
Only in this edition
- alert dashboards and engine management across machines
- blocklist subscriptions and allowlists
- Premium: unlimited blocklists, 365 days of alert history, Remediation Sync, notifications and the Service API
Not included
- Remediation Sync, Background Noise Filtering, Am I Under Attack, the Threat Forecast Blocklist, the Service API and multi-organization, which need Premium
- more than 3 blocklist subscriptions, 500 alerts a month or 2 months of alert history
Capabilities
| Has an API | plan not known |
|---|---|
| Has a command line tool | plan not known |
| Takes plugins | plan not known |
Alternatives
The same job
These do what CrowdSec does.
- Fail2Ban Ban hosts that cause multiple authentication errors
- BunkerWeb Open source web application firewall built on NGINX
- Suricata Open source IDS / IPS / NSM engine
- Snort Open source intrusion prevention system capable of real-time traffic analysis and packet logging
- ModSecurity Open source web application firewall engine
