Geen omschrijving

mmetc d369656b26 agent: fix message when -dsn is provided without -type (#2009) 2 jaren geleden
.github 1e4441b6ae docker: replace BUILD_ENV with --target (#1995) 2 jaren geleden
cmd d369656b26 agent: fix message when -dsn is provided without -type (#2009) 2 jaren geleden
config 185f9ad541 Alert context (#1895) 2 jaren geleden
debian 185f9ad541 Alert context (#1895) 2 jaren geleden
docker 1e4441b6ae docker: replace BUILD_ENV with --target (#1995) 2 jaren geleden
pkg e5833699c0 cscli config feature-flags (#2006) 2 jaren geleden
platform 7c3dbffcc6 clean up BUILD_GOVERSION which is set at runtime with runtime lib (#1901) 2 jaren geleden
plugins 487bf4e74a require go 1.19 for plugins; require crowdsec 1.4.1; go mod tidy (#1823) 2 jaren geleden
rpm 185f9ad541 Alert context (#1895) 2 jaren geleden
scripts 0449ec1868 Windows Support (#1159) 3 jaren geleden
tests d369656b26 agent: fix message when -dsn is provided without -type (#2009) 2 jaren geleden
windows 2142f7bb5c ci: remove hub dispatch, (msi) take release version from git history (#1949) 2 jaren geleden
.dockerignore 799cc82bb5 functional tests, minor refactoring and lint/cleanup (#1570) 3 jaren geleden
.gitignore 344b1dc559 fixed package tests w/wal, gitignore/typos (#1849) 2 jaren geleden
.gitmodules 67841d54ee updated bats to 1.7.0; shellcheck fixes and moved cfssl dir under testdata/ (#1584) 3 jaren geleden
.golangci.yml 104f5d1fe6 lint: error handling cleanup (#1877) 2 jaren geleden
.yamllint c78c833400 CI: colored test output, colored crowdsec and crowdsec-api logs, full final db dump for mysql and sqlite (#1596) 3 jaren geleden
CONTRIBUTING.md b8547da4c3 "make localstack" target, link to docs/contributing (#1522) 3 jaren geleden
Dockerfile 1e4441b6ae docker: replace BUILD_ENV with --target (#1995) 2 jaren geleden
Dockerfile.debian 1e4441b6ae docker: replace BUILD_ENV with --target (#1995) 2 jaren geleden
LICENSE 6491100ef1 update license (#1382) 3 jaren geleden
Makefile 83ed8a61aa Store go module name in var in Makefile (#1989) 2 jaren geleden
README.md cc228f1868 Typos, grammar (#1905) 2 jaren geleden
SECURITY.md 44525e235a renamed security.MD -> SECURITY.md, typos (#1774) 2 jaren geleden
azure-pipelines.yml 03c9216026 Update chocolatey spec file and publish nupkg in github releases (#1826) 2 jaren geleden
go.mod 942aed1219 Bump github.com/containerd/containerd from 1.6.2 to 1.6.12 (#1978) 2 jaren geleden
go.sum 4f29ce2ee7 CTI API Helpers in expr (#1851) 2 jaren geleden
make_chocolatey.ps1 03c9216026 Update chocolatey spec file and publish nupkg in github releases (#1826) 2 jaren geleden
make_installer.ps1 5009e9e483 windows: Use consistent GUID for harvested files (#1548) 3 jaren geleden
wizard.sh 185f9ad541 Alert context (#1895) 2 jaren geleden

README.md

CrowdSec




:computer: Console (WebApp) :books: Documentation :diamond_shape_with_a_dot_inside: Configuration Hub :speech_balloon: Discourse (Forum) :speech_balloon: Discord (Live Chat)

:dancer: This is a community-driven project, we need your feedback.

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), it uses Grok patterns to parse logs and YAML scenarios 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

:information_source: 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 offer 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 analyze 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 contexts, 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.

:point_right: 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, and rule out false positives or poisoning attempts.

:arrow_down: Install it !

Crowdsec is available for various platforms :

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

:tada: 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.