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
Thibault "bui" Koechlin fb1884a4ca
add documentation on upgrades (#290)
* add documentation on upgrades
* make it more clear that you need bouncers
2020-10-05 11:58:44 +02:00
.github make cscli use crowdsec version for hub (#194) 2020-09-01 14:32:45 +02:00
cmd set default hub branch to master in cscli (#279) 2020-10-01 15:02:53 +02:00
config updated mysql plugin support (#135) 2020-07-16 16:05:03 +02:00
data initial import 2020-05-15 11:39:16 +02:00
docs add documentation on upgrades (#290) 2020-10-05 11:58:44 +02:00
pkg set default hub branch to master in cscli (#279) 2020-10-01 15:02:53 +02:00
plugins/backend updated mysql plugin support (#135) 2020-07-16 16:05:03 +02:00
scripts Advise user to perform a reload when appropriate (#163) 2020-07-30 12:15:15 +02:00
.gitignore make cscli use crowdsec version for hub (#194) 2020-09-01 14:32:45 +02:00
go.mod add randomness to machine-id when registering. (#261) 2020-09-29 13:17:33 +02:00
go.sum add randomness to machine-id when registering. (#261) 2020-09-29 13:17:33 +02:00
LICENSE Initial commit 2020-05-15 11:38:06 +02:00
Makefile make cscli use crowdsec version for hub (#194) 2020-09-01 14:32:45 +02:00
mkdocs.yml fix typos in doc + update schema (#221) 2020-09-14 10:48:51 +02:00
README.md Update readme beta message (#282) 2020-10-01 17:25:36 +02:00
RELEASE.json remove requirement for version in RELEASE.json, the version is guessed from the git tag (#64) 2020-06-03 15:59:13 +02:00
wizard.sh Fix documentation (#219) 2020-09-13 15:56:04 +02:00

CrowdSec

Coverage Status

📚 Documentation 💠 Hub 💬 Discourse Forum 💬 Gitter Chat

Crowdsec is in BETA version. It shouldn't, and didn't crash any production so far we know, but some features might be missing or undergo evolutions. IP Blocklists are limited to very-safe-to-ban IPs only (~5% of the global database so far, will grow soon)

<TL;DR>

A modern behavior detection system, written in Golang. It stacks on Fail2ban's philosophy, but uses Grok patterns & YAML grammar to analyse logs, a modern decoupled approach (detect here, remedy there) for Cloud/Containers/VM based infrastructures. Once detected you can remedy threats with various bouncers (block, 403, Captchas, etc.) and the blocked IPs are shared among all users to further improve their security.

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.

Processing is done in 5 steps:

  1. Read Data sources (log files, streams, trails, messages ...), normalize and enrich signals
  2. Matching those signals to behavior patterns, aka scenarios (*)
  3. If an unwanted behavior is detected, deal with it through a bouncer : a software component integrated into your applicative stack that supports various remediations such as block, return 403, and soon captcha, 2FA, etc.
  4. (ONLY) The aggressive IP, the scenario name triggered and a timestamp is then sent to our curation platform (to avoid poisoning & false positives)
  5. If verified, this IP is then integrated to the block list continuously distributed to all CrowdSec clients (which is used as an enrichment source in step1)

By detecting, blocking and sharing the threat they faced, all clients are reinforcing 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 scenario (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 very 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 stay in your premices and are only analyzed and forgotten.

Signals sent to the curation platform are extremely limited (IP, Scenario, Timestamp), and are only there to allow the system to rule out false positives or poisoning attemps.

Install it !

Find the latest release

Ensure you have dependencies :

for Debian based distributions
apt-get install bash gettext whiptail curl wget
for RedHat based distributions
yum install bash gettext newt curl wget
curl -s https://api.github.com/repos/crowdsecurity/crowdsec/releases/latest | grep browser_download_url| cut -d '"' -f 4  | wget -i -
tar xvzf crowdsec-release.tgz
cd crowdsec-v*
sudo ./wizard.sh -i

Key points

Fast assisted installation, no technical barrier

User is assisted during setup, 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)

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 heuristis 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.

⚠️ Beta version

Please note that crowdsec is currently in beta version, use with caution !