<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>Forem: Jean Devaux</title>
    <description>The latest articles on Forem by Jean Devaux (@jeand).</description>
    <link>https://forem.com/jeand</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F477375%2F4c439e3a-71a8-4c95-8e94-ad1b659b1bf7.jpeg</url>
      <title>Forem: Jean Devaux</title>
      <link>https://forem.com/jeand</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/jeand"/>
    <language>en</language>
    <item>
      <title>CrowdSec v.1.0 is out: introduction of the local API</title>
      <dc:creator>Jean Devaux</dc:creator>
      <pubDate>Tue, 08 Dec 2020 14:44:40 +0000</pubDate>
      <link>https://forem.com/jeand/crowdsec-v-1-0-is-out-introduction-of-the-local-api-2dmk</link>
      <guid>https://forem.com/jeand/crowdsec-v-1-0-is-out-introduction-of-the-local-api-2dmk</guid>
      <description>&lt;p&gt;The team is happy to announce the official release of &lt;a href="https://github.com/crowdsecurity/crowdsec/releases/tag/v1.0.0"&gt;CrowdSec v.1.0&lt;/a&gt; which introduces several improvements to the &lt;a href="https://dev.to/jeand/crowdsec-an-open-source-modernized-collaborative-fail2ban-371i"&gt;previous version&lt;/a&gt;, including a major architectural change: the introduction of a local REST API.&lt;/p&gt;

&lt;p&gt;This local API allows all components to communicate together in a more efficient way, supporting more complex architectures, while keeping it simple for mono-machines users. It also makes the creation of bouncers (the remediation component) much simpler and renders them more resilient to upcoming changes, limiting the necessary maintenance time.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;New architecture&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;In the new 1.0 release, the CrowdSec architecture has been deeply remodeled:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--KZBe55-Y--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/63wko8gyjx8htz1uihfe.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--KZBe55-Y--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/63wko8gyjx8htz1uihfe.png" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;All CrowdSec components (the agent reading logs, cscli for humans, and bouncers to deter the bad guys) can now communicate together via a REST API, instead of reading or writing directly in the database. With this new version, only the local API service will interact with the database (supports SQLite, PostgreSQL and MySQL).&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What it brings to the table&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The benefits of having a REST API for bouncers are major:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Bouncers become truly stateless, making it possible to build new ones for serverless/lambda environments&lt;/li&gt;
&lt;li&gt;Future changes in DB schemas won’t impact bouncers, and API versioning ensures smooth control over this &lt;/li&gt;
&lt;li&gt;Bouncer implementation becomes really quick and easy: just one HTTP GET request with an API token is needed&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Much more details about this new release benefits can be found in the &lt;a href="https://crowdsec.net/2020/12/07/crowdsec-v-1-0-is-out/"&gt;product announcement here&lt;/a&gt;. &lt;/p&gt;

&lt;p&gt;We would love to hear your feedback about this latest release. If you are interested in testing the software or would like to get in touch with the team, here are a few useful links:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://github.com/crowdsecurity/crowdsec/releases/tag/v1.0.0"&gt;Download CrowdSec v.1.0&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://crowdsec.net/"&gt;our website&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://twitter.com/Crowd_Security"&gt;Twitter&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://github.com/crowdsecurity/crowdsec"&gt;GitHub&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://gitter.im/crowdsec-project/community#"&gt;Gitter&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Hope to hear from you soon!&lt;/p&gt;

&lt;p&gt;The CrowdSec team &lt;/p&gt;

</description>
      <category>security</category>
      <category>opensource</category>
      <category>linux</category>
      <category>devops</category>
    </item>
    <item>
      <title>CrowdSec, an open-source, modernized &amp; collaborative Fail2ban</title>
      <dc:creator>Jean Devaux</dc:creator>
      <pubDate>Tue, 29 Sep 2020 15:19:41 +0000</pubDate>
      <link>https://forem.com/jeand/crowdsec-an-open-source-modernized-collaborative-fail2ban-371i</link>
      <guid>https://forem.com/jeand/crowdsec-an-open-source-modernized-collaborative-fail2ban-371i</guid>
      <description>&lt;p&gt;Dear estimated community,&lt;/p&gt;

&lt;p&gt;We would like to introduce a new security project, CrowdSec, and collect your feedback &amp;amp; comments.&lt;br&gt;
The solution is available on &lt;a href="https://github.com/CrowdSecurity/crowdsec" rel="noopener noreferrer"&gt;GitHub&lt;/a&gt; and will remain open-source (MIT license) and free of charge.&lt;/p&gt;

&lt;p&gt;&lt;iframe width="710" height="399" src="https://www.youtube.com/embed/Ppn4DQRb4fU"&gt;
&lt;/iframe&gt;
&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;TL;DR&lt;/strong&gt;: CrowdSec parses logs from various data sources, normalizes and enriches them before applying heuristic scenarios to identify aggressive behaviors and protect you from most attack classes. Like with fail2ban, things like credential stuffing, web or port scans, ssh / ftp / telnet brute-force, and many others are really easy to defeat with the software, but CrowdSec modern grammar &amp;amp; architecture give the users more possibilities.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Target &amp;amp; goal&lt;/strong&gt;: &lt;a href="https://crowdsec.net/" rel="noopener noreferrer"&gt;CrowdSec&lt;/a&gt; is designed to protect servers, services, containers or VMs exposed on the Internet with a server side agent. It currently runs on Linux (ports to MacOS &amp;amp; Windows are on the roadmap).&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;How it works&lt;/strong&gt;: The software is written in Go-Lang and thought from day one to run on modern, complex architectures, like cloudified ones, lambdas, containers, etc. To achieve this, it’s “decoupled”. Meaning you can “&lt;strong&gt;detect here&lt;/strong&gt;” (say in your database logs) and “&lt;strong&gt;remedy there&lt;/strong&gt;” (say in your firewall or Rproxy). The tool internally uses &lt;a href="https://en.wikipedia.org/wiki/Leaky_bucket" rel="noopener noreferrer"&gt;leaky buckets&lt;/a&gt; to allow for tight event control. Scenarios are written in YAML to make them as simple and readable as possible, without sacrificing granularity. The inference engine lets you get insights from chain buckets or meta-buckets. (i.e. if several buckets (web scan, port scan and login attempt failed) overflow in a “meta bucket”, you can trigger a “targeted attack” remediation).&lt;/p&gt;

&lt;p&gt;Aggressive IPs are dealt with by bouncers. &lt;a href="https://hub.crowdsec.net/" rel="noopener noreferrer"&gt;The CrowdSec Hub&lt;/a&gt; offers ready to use data connectors, bouncers (Nginx, PHP, CloudFlare, Netfilter) and scenarios to deter various attack classes. Bouncers will be able to remedy threats in various ways. We work on bouncers like Captcha, limiting applicative rights, MFA, throttling queries, or activating Cloudflare attack mode just when needed, etc. You also already get a sense of what’s happening locally (and where from), with a lightweight visualisation interface and a strong prometheus observability.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fpjj345pnpt7oqze29wob.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fpjj345pnpt7oqze29wob.png" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;While the software currently looks like a 2020 pimped fail2ban, the endgame is to leverage the power of the crowd to create a very accurate &lt;strong&gt;IP reputation database&lt;/strong&gt;. When CrowdSec bounces a specific IP, the triggered scenario and the timestamp are sent to our API, to be checked and integrated in the global consensus of bad IPs. While we are already redistributing a block list to our community (you can see it with the CLI: cscli ban list --api), we plan to really improve this part as soon as we have dealt with other, prerequisite, code lines. The network already has sightings of 100K+ IPs (refreshed daily), and is able to redistribute ~10% (10K) of those to our community members. Also to be noted, the project has been designed to be GDPR compliant and privacy respectful, both in technical and legal terms.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Mid-term vision&lt;/strong&gt;: When the CS community will be large enough, we will all generate, in real time, the most accurate IP reputation database. This global reputation engine coupled with the local behavior assessment and remediation should allow lots of businesses to get tighter security at a very low cost. &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Current state&lt;/strong&gt;: Setup is quick &amp;amp; easy, heavily assisted by the wizard, to allow the greatest number to use it. The project is production-grade and already runs in many places, including hosting companies. As a good example, one of the CrowdSec users was able to stop a botnet attack from 7,000 different IPs in 5 minutes last week thanks to the solution. We are looking for more users, contributors and ambassadors to take the project to the next level. As of today, community members come from 21 countries across 5 different continents.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fpdlr8hcp7yjr7ns71xxq.jpeg" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fpdlr8hcp7yjr7ns71xxq.jpeg" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;We would love to hear your feedback and engage further discussions so don’t hesitate to comment, reach out through our &lt;a href="https://crowdsec.net/" rel="noopener noreferrer"&gt;website&lt;/a&gt;, &lt;a href="https://github.com/CrowdSecurity/crowdsec" rel="noopener noreferrer"&gt;GitHub&lt;/a&gt;, &lt;a href="https://discourse.crowdsec.net/" rel="noopener noreferrer"&gt;Discourse&lt;/a&gt; or give us a shout on &lt;a href="https://gitter.im/crowdsec-project/community#" rel="noopener noreferrer"&gt;Gitter&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Hope you will like it, use it and eventually contribute to improve it. Thanks in advance for sharing your thoughts.&lt;/p&gt;

&lt;p&gt;The CrowdSec team&lt;/p&gt;

</description>
      <category>security</category>
      <category>devops</category>
      <category>opensource</category>
      <category>linux</category>
    </item>
  </channel>
</rss>
