CrowdSec - the open-source and participative security solution offering crowdsourced protection against malicious IPs and access to the most advanced real-world CTI.
Find a file
Laurence Jones 342e7f5272
Cscli Explain Stdin (#1597)
Allow `cscli explain` to rely on stdin
2022-06-23 11:51:43 +02:00
.github CI: colored test output, colored crowdsec and crowdsec-api logs, full final db dump for mysql and sqlite (#1596) 2022-06-17 16:12:49 +02:00
cmd Cscli Explain Stdin (#1597) 2022-06-23 11:51:43 +02:00
config Add duration expr to add duration formula (#1556) 2022-06-22 11:29:52 +02:00
debian install config.yaml with chmod 600 (#1518) 2022-05-17 12:50:18 +02:00
docker docker_start: improve start script (#1599) 2022-06-22 11:31:55 +02:00
pkg support yml file (#1605) 2022-06-22 17:01:27 +02:00
platform Windows Support (#1159) 2022-05-17 12:14:59 +02:00
plugins/notifications simplify err.Error() to err when used in printf context (#1603) 2022-06-22 15:53:53 +02:00
rpm install config.yaml with chmod 600 (#1518) 2022-05-17 12:50:18 +02:00
scripts Windows Support (#1159) 2022-05-17 12:14:59 +02:00
tests Add alerts and decisions metrics, LAPI and agent timing prom metrics (#1546) 2022-06-22 11:14:34 +02:00
windows Windows Support (#1159) 2022-05-17 12:14:59 +02:00
.dockerignore functional tests, minor refactoring and lint/cleanup (#1570) 2022-06-06 15:24:48 +02:00
.gitignore Windows Support (#1159) 2022-05-17 12:14:59 +02:00
.gitmodules updated bats to 1.7.0; shellcheck fixes and moved cfssl dir under testdata/ (#1584) 2022-06-13 21:54:47 +02:00
.golangci.yml enabled linters and fixes for: misspell, predeclared, unconvert, ineffassign, gosimple, govet (#1595) 2022-06-16 14:41:54 +02:00
.yamllint CI: colored test output, colored crowdsec and crowdsec-api logs, full final db dump for mysql and sqlite (#1596) 2022-06-17 16:12:49 +02:00
azure-pipelines.yml Windows Support (#1159) 2022-05-17 12:14:59 +02:00
CONTRIBUTING.md "make localstack" target, link to docs/contributing (#1522) 2022-05-17 15:54:52 +02:00
Dockerfile wizard: removed jq dependency (#1460) 2022-04-20 09:45:23 +02:00
Dockerfile.debian Register bouncers on container init (#1341) 2022-04-04 10:18:44 +02:00
go.mod Memory check for cscli dashboard setup (#1513) 2022-05-18 11:05:01 +02:00
go.sum Add support for machine heartbeat (#1541) 2022-05-19 15:47:27 +02:00
LICENSE update license (#1382) 2022-03-23 11:09:15 +01:00
make_chocolatey.ps1 Windows Support (#1159) 2022-05-17 12:14:59 +02:00
make_installer.ps1 windows: Use consistent GUID for harvested files (#1548) 2022-05-20 09:00:48 +02:00
Makefile make localstack-stop target (#1593) 2022-06-16 16:13:48 +02:00
README.md codecov badge (#1562) 2022-05-25 10:08:52 +02:00
wizard.sh install config.yaml with chmod 600 (#1518) 2022-05-17 12:50:18 +02:00

CrowdSec




💻 Console (WebApp) 📚 Documentation 💠 Configuration Hub 💬 Discourse (Forum) 💬 Discord (Live Chat)

💃 This is a community driven project, we need your feedback.

<TL;DR>

CrowdSec is a free, modern & collaborative behavior detection engine, coupled with a global IP reputation network. It stacks on fail2ban's philosophy but is IPV6 compatible and 60x faster (Go vs Python), uses Grok patterns to parse logs and YAML scenario to identify behaviors. CrowdSec is engineered for modern Cloud / Containers / VM based infrastructures (by decoupling detection and remediation). Once detected you can remedy threats with various bouncers (firewall block, nginx http 403, Captchas, etc.) while the aggressive IP can be sent to CrowdSec for curation before being shared among all users to further improve everyone's security. See FAQ or read below for more.

2 mins install

Installing it through the Package system of your OS is the easiest way to proceed. Otherwise, you can install it from source.

From package (Debian)

curl -s https://packagecloud.io/install/repositories/crowdsec/crowdsec/script.deb.sh | sudo bash
sudo apt-get update
sudo apt-get install crowdsec

From package (rhel/centos/amazon linux)

curl -s https://packagecloud.io/install/repositories/crowdsec/crowdsec/script.rpm.sh | sudo bash
sudo yum install crowdsec

From package (FreeBSD)

sudo pkg update
sudo pkg install crowdsec

From source

wget https://github.com/crowdsecurity/crowdsec/releases/latest/download/crowdsec-release.tgz
tar xzvf crowdsec-release.tgz
cd crowdsec-v* && sudo ./wizard.sh -i

About the CrowdSec project

Crowdsec is an open-source, lightweight software, detecting peers with aggressive behaviors to prevent them from accessing your systems. Its user friendly design and assistance offers a low technical barrier of entry and nevertheless a high security gain.

The architecture is as follows :

CrowdSec

Once an unwanted behavior is detected, deal with it through a bouncer. The aggressive IP, scenario triggered and timestamp are sent for curation, to avoid poisoning & false positives. (This can be disabled). If verified, this IP is then redistributed to all CrowdSec users running the same scenario.

Outnumbering hackers all together

By sharing the threat they faced, all users are protecting each-others (hence the name Crowd-Security). Crowdsec is designed for modern infrastructures, with its "Detect Here, Remedy There" approach, letting you analyse logs coming from several sources in one place and block threats at various levels (applicative, system, infrastructural) of your stack.

CrowdSec ships by default with scenarios (brute force, port scan, web scan, etc.) adapted for most context, but you can easily extend it by picking more of them from the HUB. It is also easy to adapt an existing one or create one yourself.

👉 What it is not

CrowdSec is not a SIEM, storing your logs (neither locally nor remotely). Your data are analyzed locally and forgotten.

Signals sent to the curation platform are limited to the very strict minimum: IP, Scenario, Timestamp. They are only used to allow the system to spot new rogue IPs, rule out false positives or poisoning attempts.

⬇️ Install it !

Crowdsec is available for various platforms :

Or look directly at installation documentation for other methods and platforms.

🎉 Key benefits

Fast assisted installation, no technical barrier

Initial configuration is automated, providing functional out-of-the-box setup

Out of the box detection

Baseline detection is effective out-of-the-box, no fine-tuning required (click to expand)

Easy bouncer deployment

It's trivial to add bouncers to enforce decisions of crowdsec (click to expand)

Easy dashboard access

It's easy to deploy a metabase interface to view your data simply with cscli (click to expand)

Hot & Cold logs

Process cold logs, for forensic, tests and chasing false-positives & false negatives (click to expand)

📦 About this repository

This repository contains the code for the two main components of crowdsec :

  • crowdsec : the daemon a-la-fail2ban that can read, parse, enrich and apply heuristics to logs. This is the component in charge of "detecting" the attacks
  • cscli : the cli tool mainly used to interact with crowdsec : ban/unban/view current bans, enable/disable parsers and scenarios.

Contributing

If you wish to contribute to the core of crowdsec, you are welcome to open a PR in this repository.

If you wish to add a new parser, scenario or collection, please open a PR in the hub repository.

If you wish to contribute to the documentation, please open a PR in the documentation repository.