Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Random reactions to 901340 resulting in ban #3456

Open
Simbiat opened this issue Feb 8, 2025 · 3 comments
Open

Random reactions to 901340 resulting in ban #3456

Simbiat opened this issue Feb 8, 2025 · 3 comments
Labels

Comments

@Simbiat
Copy link

Simbiat commented Feb 8, 2025

What happened?

Not sure what exactly happened, but looks like 1.6.3 at some point started reacting to 901340 (which is just "Enabling body inspection") resulting in (almost) instant ban. Nothing in Crowdsec log, and since I am test-driving Caddy's module, which does not log anything unless I use debug mode, nothing there as well. But on the app.crowdsec.net the purest test I had (with just 1 HTTP request to an API endpoint) resulted in this:

Image

The China item is valid one, the next one was a POST request with a file and nothing else. I repeat: it was 1 (one) request, but somehow you can see 12 alerts about 901340. Next request triggered alert to 941100 (which is "XSS Attack Detected via libinjection", and it does not make sense here, too, since it was the same request repeated once again), and then vpatch alert recognized Brute Force (T1110), probably because of multiple previous alerts, that passed a threshold, and that resulted in a ban. The next 2 alerts are from 2 different requests which I triggered while using a different VPN server.

At the same time it looks like before that I had 2 cases when ban was also instant, but did not have as many alerts:

Image

And when I actually noticed it for the first time, it looked like this:

Image

Among the failed requests here were also regular GETs without anything special, and everything was working completely fine for like 10 minutes before this, when I was going through multiple pages on my website. At the same time I see increase in these kinds of alerts starting yesterday, but there was something last Thursday as well (I did restart server last weekend, though). In fact, I did that because I was banned by Crowdsec as well, but switching to VPN solved it without any issues, so I did not pay much attention to it (the US IP is not from me, though).

Image

Since I need to finish some stuff on website, I had to clean the decisions in the container, and assuming that this may be result of some bug, I've updated it to 1.6.5 RC7. After that it seemed to stop, but I assume that it may happen again and will monitor things. Registering the issue, in case someone has idea what may be happening here. At the least I do not think 901340 should result in any alerts at all, since, from what I understand, this is technically turning on Coraza.

What did you expect to happen?

No alerts and no bans

How can we reproduce it (as minimally and precisely as possible)?

Unfortunately, no idea at the moment

Anything else we need to know?

No response

Crowdsec version

I was stupid enough to not record this before the update :(

version: v1.6.5-rc7-eb1defaf
Codename: alphaga
BuildDate: 2025-02-06_16:10:20
GoVersion: 1.23.6
Platform: docker
libre2: C++
User-Agent: crowdsec/v1.6.5-rc7-eb1defaf-docker
Constraint_parser: >= 1.0, <= 3.0
Constraint_scenario: >= 1.0, <= 3.0
Constraint_api: v1
Constraint_acquis: >= 1.0, < 2.0
Built-in optional components: cscli_setup, datasource_appsec, datasource_cloudwatch, datasource_docker, datasource_file, datasource_http, datasource_journalctl, datasource_k8s-audit, datasource_kafka, datasource_kinesis, datasource_loki, datasource_s3, datasource_syslog, datasource_victorialogs, datasource_wineventlog

OS version

$ cat /etc/os-release
PRETTY_NAME="Debian GNU/Linux 12 (bookworm)"
NAME="Debian GNU/Linux"
VERSION_ID="12"
VERSION="12 (bookworm)"
VERSION_CODENAME=bookworm
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"
$ uname -a
Linux e9f6f329bcf9 6.8.0-41-generic #41-Ubuntu SMP PREEMPT_DYNAMIC Fri Aug  2 20:41:06 UTC 2024 x86_64 GNU/Linux

Enabled collections and parsers

Loaded: 133 parsers, 10 postoverflows, 751 scenarios, 8 contexts, 5 appsec-configs, 94 appsec-rules, 131 collections
Unmanaged items: 2 local, 0 tainted
name,status,version,description,type
crowdsecurity/appsec-logs,enabled,0.5,Parse Appsec events,parsers
crowdsecurity/caddy-logs,enabled,0.9,Parse caddy logs,parsers
crowdsecurity/cri-logs,enabled,0.1,CRI logging format parser,parsers
crowdsecurity/dateparse-enrich,enabled,0.2,,parsers
crowdsecurity/docker-logs,enabled,0.1,docker json logs parser,parsers
crowdsecurity/geoip-enrich,enabled,0.5,"Populate event with geoloc info : as, country, coords, source range.",parsers
crowdsecurity/http-logs,enabled,1.3,"Parse more Specifically HTTP logs, such as HTTP Code, HTTP path, HTTP args and if its a static ressource",parsers
crowdsecurity/sshd-logs,enabled,2.9,Parse openSSH logs,parsers
crowdsecurity/syslog-logs,enabled,0.8,,parsers
crowdsecurity/whitelists,enabled,0.2,Whitelist events from private ipv4 addresses,parsers
openappsec/openappsec-logs,enabled,0.2,Parse openappsec logs,parsers
crowdsecurity/cdn-whitelist,enabled,0.4,Whitelist CDN providers,postoverflows
crowdsecurity/discord-crawler-whitelist,enabled,0.1,Discord PTR whitelist,postoverflows
crowdsecurity/rdns,enabled,0.3,Lookup the DNS associated to the source IP only for overflows,postoverflows
crowdsecurity/seo-bots-whitelist,enabled,0.5,Whitelist good search engine crawlers,postoverflows
crowdsecurity/apache_log4j2_cve-2021-44228,enabled,0.6,Detect cve-2021-44228 exploitation attemps,scenarios
crowdsecurity/appsec-vpatch,enabled,0.5,Identify attacks flagged by CrowdSec AppSec,scenarios
crowdsecurity/CVE-2017-9841,enabled,0.2,Detect CVE-2017-9841 exploits,scenarios
crowdsecurity/CVE-2019-18935,enabled,0.2,Detect Telerik CVE-2019-18935 exploitation attempts,scenarios
crowdsecurity/CVE-2022-26134,enabled,0.2,Detect CVE-2022-26134 exploits,scenarios
crowdsecurity/CVE-2022-35914,enabled,0.2,Detect CVE-2022-35914 exploits,scenarios
crowdsecurity/CVE-2022-37042,enabled,0.2,Detect CVE-2022-37042 exploits,scenarios
crowdsecurity/CVE-2022-40684,enabled,0.3,Detect cve-2022-40684 exploitation attempts,scenarios
crowdsecurity/CVE-2022-41082,enabled,0.4,Detect CVE-2022-41082 exploits,scenarios
crowdsecurity/CVE-2022-41697,enabled,0.2,Detect CVE-2022-41697 enumeration,scenarios
crowdsecurity/CVE-2022-42889,enabled,0.3,Detect CVE-2022-42889 exploits (Text4Shell),scenarios
crowdsecurity/CVE-2022-44877,enabled,0.3,Detect CVE-2022-44877 exploits,scenarios
crowdsecurity/CVE-2022-46169,enabled,0.2,Detect CVE-2022-46169 brute forcing,scenarios
crowdsecurity/CVE-2023-22515,enabled,0.1,Detect CVE-2023-22515 exploitation,scenarios
crowdsecurity/CVE-2023-22518,enabled,0.2,Detect CVE-2023-22518 exploits,scenarios
crowdsecurity/CVE-2023-49103,enabled,0.3,Detect owncloud CVE-2023-49103 exploitation attempts,scenarios
crowdsecurity/CVE-2024-0012,enabled,0.1,Detect CVE-2024-0012 exploitation attempts,scenarios
crowdsecurity/CVE-2024-38475,enabled,0.1,Detect CVE-2024-38475 exploitation attempts,scenarios
crowdsecurity/CVE-2024-9474,enabled,0.1,Detect CVE-2024-9474 exploitation attempts,scenarios
crowdsecurity/f5-big-ip-cve-2020-5902,enabled,0.2,Detect cve-2020-5902 exploitation attemps,scenarios
crowdsecurity/fortinet-cve-2018-13379,enabled,0.3,Detect cve-2018-13379 exploitation attemps,scenarios
crowdsecurity/grafana-cve-2021-43798,enabled,0.2,Detect cve-2021-43798 exploitation attemps,scenarios
crowdsecurity/http-admin-interface-probing,enabled,0.4,Detect generic HTTP admin interface probing,scenarios
crowdsecurity/http-backdoors-attempts,enabled,0.6,Detect attempt to common backdoors,scenarios
crowdsecurity/http-bad-user-agent,enabled,1.2,Detect usage of bad User Agent,scenarios
crowdsecurity/http-bf-wordpress_bf,enabled,0.7,Detect WordPress bruteforce on admin interface,scenarios
crowdsecurity/http-crawl-non_statics,enabled,0.7,Detect aggressive crawl on non static resources,scenarios
crowdsecurity/http-cve-2021-41773,enabled,0.3,Apache - Path Traversal (CVE-2021-41773),scenarios
crowdsecurity/http-cve-2021-42013,enabled,0.3,Apache - Path Traversal (CVE-2021-42013),scenarios
crowdsecurity/http-cve-probing,enabled,0.2,Detect generic HTTP cve probing,scenarios
crowdsecurity/http-dos-bypass-cache,enabled,0.5,Detect DoS tools bypassing cache every request,scenarios
crowdsecurity/http-dos-invalid-http-versions,enabled,0.7,Detect DoS tools using invalid HTTP versions,scenarios
crowdsecurity/http-dos-random-uri,enabled,0.4,Detect DoS tools using random uri,scenarios
crowdsecurity/http-dos-switching-ua,enabled,0.5,Detect DoS tools switching user-agent too fast,scenarios
crowdsecurity/http-generic-bf,enabled,0.9,Detect generic http brute force,scenarios
crowdsecurity/http-open-proxy,enabled,0.5,Detect scan for open proxy,scenarios
crowdsecurity/http-path-traversal-probing,enabled,0.4,Detect path traversal attempt,scenarios
crowdsecurity/http-probing,enabled,0.4,Detect site scanning/probing from a single ip,scenarios
crowdsecurity/http-sensitive-files,enabled,0.4,"Detect attempt to access to sensitive files (.log, .db ..) or folders (.git)",scenarios
crowdsecurity/http-sqli-probing,enabled,0.4,A scenario that detects SQL injection probing with minimal false positives,scenarios
crowdsecurity/http-wordpress-scan,enabled,0.2,Detect WordPress scan: vuln hunting,scenarios
crowdsecurity/http-wordpress_user-enum,enabled,0.3,Detect WordPress probing: authors enumeration,scenarios
crowdsecurity/http-wordpress_wpconfig,enabled,0.3,Detect WordPress probing: variations around wp-config.php by wpscan,scenarios
crowdsecurity/http-xss-probing,enabled,0.4,A scenario that detects XSS probing with minimal false positives,scenarios
crowdsecurity/jira_cve-2021-26086,enabled,0.3,Detect Atlassian Jira CVE-2021-26086 exploitation attemps,scenarios
crowdsecurity/netgear_rce,enabled,0.4,Detect Netgear RCE DGN1000/DGN220 exploitation attempts,scenarios
crowdsecurity/pulse-secure-sslvpn-cve-2019-11510,enabled,0.3,Detect cve-2019-11510 exploitation attemps,scenarios
crowdsecurity/spring4shell_cve-2022-22965,enabled,0.3,Detect cve-2022-22965 probing,scenarios
crowdsecurity/ssh-bf,enabled,0.3,Detect ssh bruteforce,scenarios
crowdsecurity/ssh-cve-2024-6387,enabled,0.2,Detect exploitation attempt of CVE-2024-6387,scenarios
crowdsecurity/ssh-slow-bf,enabled,0.4,Detect slow ssh bruteforce,scenarios
crowdsecurity/thinkphp-cve-2018-20062,enabled,0.6,Detect ThinkPHP CVE-2018-20062 exploitation attemps,scenarios
crowdsecurity/vmware-cve-2022-22954,enabled,0.3,Detect Vmware CVE-2022-22954 exploitation attempts,scenarios
crowdsecurity/vmware-vcenter-vmsa-2021-0027,enabled,0.2,Detect VMSA-2021-0027 exploitation attemps,scenarios
ltsich/http-w00tw00t,enabled,0.2,detect w00tw00t,scenarios
openappsec/openappsec-bot-protection,enabled,0.2,Detect openappsec 'prevent' securityActions on 'Bot Protection' events (when waf blocks malicious request),scenarios
openappsec/openappsec-cross-site-redirect,enabled,0.2,Detect openappsec 'prevent' securityActions on 'Cross Site Redirect' events (when waf blocks malicious request),scenarios
openappsec/openappsec-csrf,enabled,0.2,Detect openappsec 'prevent' securityActions on 'Cross Site Request Forgery' events (when waf blocks malicious request),scenarios
openappsec/openappsec-error-disclosure,enabled,0.2,Detect openappsec 'prevent' securityActions on 'Error Disclosure' events (when waf blocks malicious request),scenarios
openappsec/openappsec-error-limit,enabled,0.2,Detect openappsec 'prevent' securityActions on 'Error Limit' events (when waf blocks malicious request),scenarios
openappsec/openappsec-evasion-techniques,enabled,0.2,Detect openappsec 'prevent' securityActions on 'Evasion Techniques' events (when waf blocks malicious request),scenarios
openappsec/openappsec-general,enabled,0.2,Detect openappsec 'prevent' securityActions on 'General' events (when waf blocks malicious request),scenarios
openappsec/openappsec-http-limit-violation,enabled,0.2,Detect openappsec 'prevent' securityActions on 'Http limit violation' events (when waf blocks malicious request),scenarios
openappsec/openappsec-http-method-violation,enabled,0.2,Detect openappsec 'prevent' securityActions on 'Illegal http method violation' events (when waf blocks malicious request),scenarios
openappsec/openappsec-ldap-injection,enabled,0.2,Detect openappsec 'prevent' securityActions on 'LDAP Injection' events (when waf blocks malicious request),scenarios
openappsec/openappsec-open-redirect,enabled,0.2,Detect openappsec 'prevent' securityActions on 'Open Redirect' events (when waf blocks malicious request),scenarios
openappsec/openappsec-path-traversal,enabled,0.2,Detect openappsec 'prevent' securityActions on 'Path Traversal' events (when waf blocks malicious request),scenarios
openappsec/openappsec-probing,enabled,0.2,Detect openappsec 'prevent' securityActions on 'Vulnerability Scanning' events (when waf blocks malicious request),scenarios
openappsec/openappsec-rce,enabled,0.2,Detect openappsec 'prevent' securityActions on 'Remote Code Execution' events (when waf blocks malicious request),scenarios
openappsec/openappsec-request-rate-limit,enabled,0.2,Detect openappsec 'prevent' securityActions on 'Request Rate Limit' events (when waf blocks malicious request),scenarios
openappsec/openappsec-schema-validation,enabled,0.2,Detect openappsec 'prevent' securityActions on 'Schema Validation' events (when waf blocks malicious request),scenarios
openappsec/openappsec-sql-injection,enabled,0.2,Detect openappsec 'prevent' securityActions on 'SQL Injection' events (when waf blocks malicious request),scenarios
openappsec/openappsec-url-instead-of-file,enabled,0.2,Detect openappsec 'prevent' securityActions on 'URL instead of file' events (when waf blocks malicious request),scenarios
openappsec/openappsec-xss,enabled,0.2,Detect openappsec 'prevent' securityActions on 'Cross Site Scripting' events (when waf blocks malicious request),scenarios
openappsec/openappsec-xxe,enabled,0.2,Detect openappsec 'prevent' securityActions on 'XML External Entity' events (when waf blocks malicious request),scenarios
crowdsecurity/appsec_base,enabled,0.7,,contexts
crowdsecurity/bf_base,enabled,0.1,,contexts
crowdsecurity/http_base,enabled,0.2,,contexts
crowdsecurity/appsec-default,enabled,0.2,,appsec-configs
crowdsecurity/crs,enabled,0.2,,appsec-configs
crowdsecurity/generic-rules,enabled,0.3,,appsec-configs
crowdsecurity/virtual-patching,enabled,0.4,,appsec-configs
simbiat/simbiat-appsec,"enabled,local",,,appsec-configs
crowdsecurity/base-config,enabled,0.1,,appsec-rules
crowdsecurity/crs,enabled,0.4,,appsec-rules
crowdsecurity/generic-freemarker-ssti,enabled,0.3,Generic FreeMarker SSTI,appsec-rules
crowdsecurity/generic-wordpress-uploads-php,enabled,0.1,Detect php execution in wordpress uploads directory,appsec-rules
crowdsecurity/vpatch-connectwise-auth-bypass,enabled,0.3,Detect exploitation of auth bypass in ConnectWise ScreenConnect,appsec-rules
crowdsecurity/vpatch-CVE-2017-9841,enabled,0.3,PHPUnit RCE (CVE-2017-9841),appsec-rules
crowdsecurity/vpatch-CVE-2018-1000861,enabled,0.1,Jenkins - RCE (CVE-2018-1000861),appsec-rules
crowdsecurity/vpatch-CVE-2018-10562,enabled,0.2,Dasan GPON RCE (CVE-2018-10562),appsec-rules
crowdsecurity/vpatch-CVE-2018-13379,enabled,0.2,Fortinet FortiOS - Credentials Disclosure (CVE-2018-13379),appsec-rules
crowdsecurity/vpatch-CVE-2018-20062,enabled,0.1,ThinkPHP - RCE (CVE-2018-20062),appsec-rules
crowdsecurity/vpatch-CVE-2019-1003030,enabled,0.1,Jenkins - RCE (CVE-2019-1003030),appsec-rules
crowdsecurity/vpatch-CVE-2019-12989,enabled,0.3,Citrix SQLi (CVE-2019-12989),appsec-rules
crowdsecurity/vpatch-CVE-2019-18935,enabled,0.1,Telerik - RCE (CVE-2019-18935),appsec-rules
crowdsecurity/vpatch-CVE-2020-11738,enabled,0.6,Wordpress Snap Creek Duplicator - Path Traversal (CVE-2020-11738),appsec-rules
crowdsecurity/vpatch-CVE-2020-17496,enabled,0.1,vBulletin RCE (CVE-2020-17496),appsec-rules
crowdsecurity/vpatch-CVE-2020-5902,enabled,0.1,F5 BIG-IP TMUI - RCE (CVE-2020-5902),appsec-rules
crowdsecurity/vpatch-CVE-2021-22941,enabled,0.3,Citrix RCE (CVE-2021-22941),appsec-rules
crowdsecurity/vpatch-CVE-2021-26086,enabled,0.1,Atlassian Jira Server/Data Center 8.4.0 - Limited Remote File Read/Include (CVE-2021-26086),appsec-rules
crowdsecurity/vpatch-CVE-2021-3129,enabled,0.4,Laravel with Ignition Debug Mode RCE (CVE-2021-3129),appsec-rules
crowdsecurity/vpatch-CVE-2022-22954,enabled,0.2,VMWare Workspace ONE Access RCE (CVE-2022-22954),appsec-rules
crowdsecurity/vpatch-CVE-2022-22965,enabled,0.2,Spring4Shell - RCE (CVE-2022-22965),appsec-rules
crowdsecurity/vpatch-CVE-2022-26134,enabled,0.2,Confluence - RCE (CVE-2022-26134),appsec-rules
crowdsecurity/vpatch-CVE-2022-27926,enabled,0.4,Zimbra Collaboration XSS (CVE-2022-27926),appsec-rules
crowdsecurity/vpatch-CVE-2022-35914,enabled,0.5,GLPI RCE (CVE-2022-35914),appsec-rules
crowdsecurity/vpatch-CVE-2022-41082,enabled,0.1,Microsoft Exchange - RCE (CVE-2022-41082),appsec-rules
crowdsecurity/vpatch-CVE-2022-44877,enabled,0.2,CentOS Web Panel 7 RCE (CVE-2022-44877),appsec-rules
crowdsecurity/vpatch-CVE-2022-46169,enabled,0.5,Cacti RCE (CVE-2022-46169),appsec-rules
crowdsecurity/vpatch-CVE-2023-0600,enabled,0.1,WP Visitor Statistics - SQL Injection (CVE-2023-0600),appsec-rules
crowdsecurity/vpatch-CVE-2023-0900,enabled,0.1,AP Pricing Tables Lite - SQL Injection (CVE-2023-0900),appsec-rules
crowdsecurity/vpatch-CVE-2023-1389,enabled,0.1,TP-Link Archer AX21 - RCE (CVE-2023-1389),appsec-rules
crowdsecurity/vpatch-CVE-2023-2009,enabled,0.1,Pretty Url - XSS (CVE-2023-2009),appsec-rules
crowdsecurity/vpatch-CVE-2023-20198,enabled,0.6,CISCO IOS XE Account Creation (CVE-2023-20198),appsec-rules
crowdsecurity/vpatch-CVE-2023-22515,enabled,0.4,Atlassian Confluence Privesc (CVE-2023-22515),appsec-rules
crowdsecurity/vpatch-CVE-2023-22527,enabled,0.2,RCE using SSTI in Confluence (CVE-2023-22527),appsec-rules
crowdsecurity/vpatch-CVE-2023-23488,enabled,0.2,Wordpress Paid Memberships Pro Blind SQLi (CVE-2023-23488),appsec-rules
crowdsecurity/vpatch-CVE-2023-23489,enabled,0.1,WordPress Easy Digital Downloads plugin SQL injection (CVE-2023-23489),appsec-rules
crowdsecurity/vpatch-CVE-2023-23752,enabled,0.1,Joomla! Webservice - Password Disclosure (CVE-2023-23752),appsec-rules
crowdsecurity/vpatch-CVE-2023-24489,enabled,0.2,Citrix ShareFile RCE (CVE-2023-24489),appsec-rules
crowdsecurity/vpatch-CVE-2023-28121,enabled,0.1,WooCommerce auth bypass (CVE-2023-28121),appsec-rules
crowdsecurity/vpatch-CVE-2023-33617,enabled,0.4,Atlassian Confluence Privesc (CVE-2023-33617),appsec-rules
crowdsecurity/vpatch-CVE-2023-34362,enabled,0.6,MOVEit Transfer RCE (CVE-2023-34362),appsec-rules
crowdsecurity/vpatch-CVE-2023-35078,enabled,0.1,MobileIron Core Remote Unauthenticated API Access (CVE-2023-35078),appsec-rules
crowdsecurity/vpatch-CVE-2023-35082,enabled,0.2,MobileIron Core Remote Unauthenticated API Access (CVE-2023-35082),appsec-rules
crowdsecurity/vpatch-CVE-2023-3519,enabled,0.3,Citrix RCE (CVE-2023-3519),appsec-rules
crowdsecurity/vpatch-CVE-2023-38205,enabled,0.3,Adobe ColdFusion Access Control Bypass (CVE-2023-38205),appsec-rules
crowdsecurity/vpatch-CVE-2023-40044,enabled,0.3,WS_FTP .NET deserialize RCE (CVE-2023-40044),appsec-rules
crowdsecurity/vpatch-CVE-2023-42793,enabled,0.3,JetBrains Teamcity Auth Bypass (CVE-2023-42793),appsec-rules
crowdsecurity/vpatch-CVE-2023-4634,enabled,0.2,Media Library Assistant - RCE 2023 4634,appsec-rules
crowdsecurity/vpatch-CVE-2023-46805,enabled,0.4,Ivanti Connect Auth Bypass (CVE-2023-46805),appsec-rules
crowdsecurity/vpatch-CVE-2023-47218,enabled,0.2,QNAP QTS - RCE (CVE-2023-47218),appsec-rules
crowdsecurity/vpatch-CVE-2023-49070,enabled,0.1,Apache OFBiz - RCE (CVE-2023-49070),appsec-rules
crowdsecurity/vpatch-CVE-2023-50164,enabled,0.6,Apache Struts2 Path Traversal (CVE-2023-50164),appsec-rules
crowdsecurity/vpatch-CVE-2023-6360,enabled,0.1,WordPress My Calendar - SQL Injection (CVE-2023-6360),appsec-rules
crowdsecurity/vpatch-CVE-2023-6553,enabled,0.1,Backup Migration plugin for WordPress RCE (CVE-2023-6553),appsec-rules
crowdsecurity/vpatch-CVE-2023-6567,enabled,0.1,LearnPress - SQL Injection (CVE-2023-6567),appsec-rules
crowdsecurity/vpatch-CVE-2023-6623,enabled,0.1,Wordpress Essential Blocks plugin LFI (CVE-2023-6623),appsec-rules
crowdsecurity/vpatch-CVE-2023-7028,enabled,0.2,Gitlab Password Reset Account Takeover (CVE-2023-7028),appsec-rules
crowdsecurity/vpatch-CVE-2024-0012,enabled,0.1,PanOS - Authentication Bypass (CVE-2024-0012),appsec-rules
crowdsecurity/vpatch-CVE-2024-1061,enabled,0.1,WordPress HTML5 Video Player - SQL Injection (CVE-2024-1061),appsec-rules
crowdsecurity/vpatch-CVE-2024-1071,enabled,0.2,WordPress Ultimate Member - SQL Injection (CVE-2024-1071),appsec-rules
crowdsecurity/vpatch-CVE-2024-1212,enabled,0.3,Progress Kemp LoadMaster Unauthenticated Command Injection (CVE-2024-1212),appsec-rules
crowdsecurity/vpatch-CVE-2024-22024,enabled,0.1,Ivanti Connect Secure - XXE (CVE-2024-22024),appsec-rules
crowdsecurity/vpatch-CVE-2024-23897,enabled,0.4,Jenkins CLI RCE (CVE-2024-23897),appsec-rules
crowdsecurity/vpatch-CVE-2024-27198,enabled,0.5,Teamcity - Authentication Bypass (CVE-2024-27198),appsec-rules
crowdsecurity/vpatch-CVE-2024-27348,enabled,0.1,Apache HugeGraph-Server - RCE (CVE-2024-27348),appsec-rules
crowdsecurity/vpatch-CVE-2024-27954,enabled,0.1,WP Automatic - Path Traversal (CVE-2024-27954),appsec-rules
crowdsecurity/vpatch-CVE-2024-27956,enabled,0.1,WordPress Automatic Plugin - SQLi (CVE-2024-27956),appsec-rules
crowdsecurity/vpatch-CVE-2024-28255,enabled,0.1,OpenMetadata - Authentication Bypass (CVE-2024-28255),appsec-rules
crowdsecurity/vpatch-CVE-2024-28987,enabled,0.1,SolarWinds WHD Hardcoded Credentials (CVE-2024-28987),appsec-rules
crowdsecurity/vpatch-CVE-2024-29824,enabled,0.1,Ivanti EPM - SQLi (CVE-2024-29824),appsec-rules
crowdsecurity/vpatch-CVE-2024-29849,enabled,0.5,Veeam Backup Enterprise Manager - Authentication Bypass (CVE-2024-29849),appsec-rules
crowdsecurity/vpatch-CVE-2024-29973,enabled,0.1,Zyxel - RCE (CVE-2024-29973),appsec-rules
crowdsecurity/vpatch-CVE-2024-32113,enabled,0.1,Apache OFBiz - Path Traversal (CVE-2024-32113),appsec-rules
crowdsecurity/vpatch-CVE-2024-3272,enabled,0.1,D-Link NAS - RCE (CVE-2024-3272),appsec-rules
crowdsecurity/vpatch-CVE-2024-3273,enabled,0.1,D-LINK NAS Command Injection (CVE-2024-3273),appsec-rules
crowdsecurity/vpatch-CVE-2024-34102,enabled,0.1,Adobe Commerce & Magento - XXE (CVE-2024-34102),appsec-rules
crowdsecurity/vpatch-CVE-2024-38816,enabled,0.2,Spring - Path Traversal (CVE-2024-38816),appsec-rules
crowdsecurity/vpatch-CVE-2024-38856,enabled,0.1,Apache OFBiz Incorrect Authorization (CVE-2024-38856),appsec-rules
crowdsecurity/vpatch-CVE-2024-41713,enabled,0.2,Mitel MiCollab - Path Traversal (CVE-2024-41713),appsec-rules
crowdsecurity/vpatch-CVE-2024-4577,enabled,0.1,PHP CGI Command Injection - CVE-2024-4577,appsec-rules
crowdsecurity/vpatch-CVE-2024-51378,enabled,0.1,Cyberpanel - RCE (CVE-2024-51378),appsec-rules
crowdsecurity/vpatch-CVE-2024-51567,enabled,0.1,CyberPanel RCE (CVE-2024-51567),appsec-rules
crowdsecurity/vpatch-CVE-2024-52301,enabled,0.1,Laravel - Parameter Injection (CVE-2024-52301),appsec-rules
crowdsecurity/vpatch-CVE-2024-6205,enabled,0.2,PayPlus Payment Gateway WordPress plugin - SQL Injection (CVE-2024-6205),appsec-rules
crowdsecurity/vpatch-CVE-2024-7593,enabled,0.1,Ivanti vTM - Authentication Bypass (CVE-2024-7593),appsec-rules
crowdsecurity/vpatch-CVE-2024-8190,enabled,0.1,Ivanti Cloud Services Appliance - RCE (CVE-2024-8190),appsec-rules
crowdsecurity/vpatch-CVE-2024-8963,enabled,0.2,Ivanti CSA - Path Traversal (CVE-2024-8963),appsec-rules
crowdsecurity/vpatch-CVE-2024-9465,enabled,0.2,Palo Alto Expedition - SQL Injection (CVE-2024-9465),appsec-rules
crowdsecurity/vpatch-CVE-2024-9474,enabled,0.3,PanOS - Privilege Escalation (CVE-2024-9474),appsec-rules
crowdsecurity/vpatch-env-access,enabled,0.1,Detect access to .env files,appsec-rules
crowdsecurity/vpatch-git-config,enabled,0.2,Detect access to .git files,appsec-rules
crowdsecurity/vpatch-laravel-debug-mode,enabled,0.3,Detect bots exploiting laravel debug mode,appsec-rules
crowdsecurity/vpatch-symfony-profiler,enabled,0.1,Detect abuse of symfony profiler,appsec-rules
simbiat/simbiat-seclang,"enabled,local",,,appsec-rules
crowdsecurity/appsec-crs,enabled,0.4,Appsec: Modsecurity core rule set rules,collections
crowdsecurity/appsec-generic-rules,enabled,0.6,A collection of generic attack vectors for additional protection.,collections
crowdsecurity/appsec-virtual-patching,enabled,5.3,"a generic virtual patching collection, suitable for most web servers.",collections
crowdsecurity/appsec-wordpress,enabled,0.4,"A virtual patching collection, suitable for WordPress websites",collections
crowdsecurity/base-http-scenarios,enabled,1.0,http common : scanners detection,collections
crowdsecurity/caddy,enabled,0.1,caddy support : parser and generic http scenarios,collections
crowdsecurity/discord-crawler-whitelist,enabled,0.1,Whitelist Discord PTR domains,collections
crowdsecurity/http-cve,enabled,2.9,Detect CVE exploitation in http logs,collections
crowdsecurity/http-dos,enabled,0.2,,collections
crowdsecurity/linux,enabled,0.2,core linux support : syslog+geoip+ssh,collections
crowdsecurity/sshd,enabled,0.5,sshd support : parser and brute-force detection,collections
crowdsecurity/whitelist-good-actors,enabled,0.1,Good actors whitelists,collections
crowdsecurity/wordpress,enabled,0.5,wordpress: Bruteforce protection and config probing,collections
openappsec/openappsec,enabled,0.1,open-appsec support : open-appsec parser and scenarios,collections

Acquisition config

For some reason `cat` did not work in container, but all YML files are [here](https://github.com/Simbiat/simbiat.ru/tree/master/config/crowdsec)

Config show

Global:
   - Configuration Folder   : /etc/crowdsec
   - Data Folder            : /var/lib/crowdsec/data
   - Hub Folder             : /etc/crowdsec/hub
   - Simulation File        : /etc/crowdsec/simulation.yaml
   - Log Folder             : /usr/local/logs
   - Log level              : warning
   - Log Media              : file
Crowdsec:
  - Acquisition File        : /etc/crowdsec/acquis.yaml
  - Parsers routines        : 1
  - Acquisition Folder      : /etc/crowdsec/acquis.d
cscli:
  - Output                  : human
  - Hub Branch              :
API Client:
  - URL                     : http://0.0.0.0:8080/
  - Login                   : localhost
  - Credentials File        : /etc/crowdsec/local_api_credentials.yaml
Local API Server:
  - Listen URL              : 0.0.0.0:8080
  - Listen Socket           :
  - Profile File            : /etc/crowdsec/profiles.yaml

  - Trusted IPs:
      - 127.0.0.1
      - ::1
      - 172.21.0.0/16
      - 2001:db8:1::/64
  - Database:
      - Type                : sqlite
      - Path                : /var/lib/crowdsec/data/crowdsec.db
      - Flush age           : 7d
      - Flush size          : 5000

Prometheus metrics

╭───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ Acquisition Metrics

├─────────────────────────────────┬────────────┬──────────────┬────────────────┬────────────────────────┬───────────────────┤
│ Source                          │ Lines read │ Lines parsed │ Lines unparsed │ Lines poured to bucket │ Lines whitelisted │
├─────────────────────────────────┼────────────┼──────────────┼────────────────┼────────────────────────┼───────────────────┤
│ file:/usr/local/logs/access.log │ 12.89k     │ 12.89k       │ 1              │ 17.54k                 │ -

│ file:/var/log/auth.log          │ 290        │ 165          │ 125            │ 450                    │ -

│ file:/var/log/syslog            │ 423        │ -            │ 423            │ -                      │ -

╰─────────────────────────────────┴────────────┴──────────────┴────────────────┴────────────────────────┴───────────────────╯
╭────────────────────────────────────────────────────╮
│ Local API Alerts                                   │
├────────────────────────────────────────────┬───────┤
│ Reason                                     │ Count │
├────────────────────────────────────────────┼───────┤
│ crowdsecurity/http-probing                 │ 41    │
│ crowdsecurity/ssh-bf                       │ 29    │
│ native_rule:901340                         │ 65    │
│ native_rule:932125                         │ 1     │
│ native_rule:942550                         │ 3     │
│ crowdsecurity/http-dos-swithcing-ua        │ 15    │
│ crowdsecurity/appsec-vpatch                │ 6     │
│ crowdsecurity/http-admin-interface-probing │ 2     │
│ crowdsecurity/http-cve-2021-41773          │ 7     │
│ native_rule:941100                         │ 5     │
│ LePresidente/http-generic-403-bf           │ 5     │
│ crowdsecurity/http-crawl-non_statics       │ 1     │
│ crowdsecurity/netgear_rce                  │ 2     │
│ crowdsecurity/ssh-slow-bf                  │ 48    │
│ native_rule:200002                         │ 3     │
│ native_rule:920350                         │ 1     │
│ crowdsecurity/http-bad-user-agent          │ 17    │
│ native_rule:930110                         │ 3     │
│ crowdsecurity/http-sensitive-files         │ 4     │
╰────────────────────────────────────────────┴───────╯
╭───────────────────────────────────────╮
│ Appsec Metrics                        │
├─────────────────┬───────────┬─────────┤
│ Appsec Engine   │ Processed │ Blocked │
├─────────────────┼───────────┼─────────┤
│ AppSecComponent │ 12.87k    │ -       │
╰─────────────────┴───────────┴─────────╯
╭───────────────────────────────────────────────────────────────╮
│ Local API Decisions                                           │
├───────────────────────────────────┬──────────┬────────┬───────┤
│ Reason                            │ Origin   │ Action │ Count │
├───────────────────────────────────┼──────────┼────────┼───────┤
│ crowdsecurity/http-bad-user-agent │ crowdsec │ ban    │ 1     │
│ crowdsecurity/ssh-bf              │ crowdsec │ ban    │ 1     │
│ crowdsecurity/ssh-slow-bf         │ crowdsec │ ban    │ 10    │
╰───────────────────────────────────┴──────────┴────────┴───────╯
╭───────────────────────────────────────╮
│ Local API Metrics                     │
├──────────────────────┬─────────┬──────┤
│ Route                │ Method  │ Hits │
├──────────────────────┼─────────┼──────┤
│                      │ CONNECT │ 2    │
│ /                    │ GET     │ 1    │
│ /board.cgi           │ GET     │ 1    │
│ /v1/alerts           │ POST    │ 10   │
│ /v1/decisions/stream │ GET     │ 764  │
│ /v1/decisions/stream │ HEAD    │ 64   │
│ /v1/heartbeat        │ GET     │ 63   │
│ /v1/usage-metrics    │ POST    │ 3    │
│ /v1/watchers/login   │ POST    │ 371  │
╰──────────────────────┴─────────┴──────╯
╭─────────────────────────────────────────────────╮
│ Local API Bouncers Metrics                      │
├──────────┬──────────────────────┬────────┬──────┤
│ Bouncer  │ Route                │ Method │ Hits │
├──────────┼──────────────────────┼────────┼──────┤
│ CADDY    │ /v1/decisions/stream │ GET    │ 382  │
│ CADDY    │ /v1/decisions/stream │ HEAD   │ 64   │
│ IPTABLES │ /v1/decisions/stream │ GET    │ 382  │
╰──────────┴──────────────────────┴────────┴──────╯
╭───────────────────────────────────────────╮
│ Local API Machines Metrics                │
├───────────┬───────────────┬────────┬──────┤
│ Machine   │ Route         │ Method │ Hits │
├───────────┼───────────────┼────────┼──────┤
│ localhost │ /v1/heartbeat │ GET    │ 63   │
│ localhost │ /v1/alerts    │ POST   │ 10   │
╰───────────┴───────────────┴────────┴──────╯
╭──────────────────────────────────────────────────────────────────────╮
│ Parser Metrics                                                       │
├─────────────────────────────────────────┬────────┬────────┬──────────┤
│ Parsers                                 │ Hits   │ Parsed │ Unparsed │
├─────────────────────────────────────────┼────────┼────────┼──────────┤
│ child-crowdsecurity/http-logs           │ 38.66k │ 25.81k │ 12.85k   │
│ child-crowdsecurity/sshd-logs           │ 2.34k  │ 165    │ 2.18k    │
│ child-crowdsecurity/syslog-logs         │ 713    │ 713    │ -        │
│ crowdsecurity/caddy-logs                │ 12.89k │ 12.89k │ -        │
│ crowdsecurity/cdn-whitelist             │ 10     │ 10     │ -        │
│ crowdsecurity/dateparse-enrich          │ 13.05k │ 13.05k │ -        │
│ crowdsecurity/discord-crawler-whitelist │ 10     │ 10     │ -        │
│ crowdsecurity/geoip-enrich              │ 13.05k │ 13.05k │ -        │
│ crowdsecurity/http-logs                 │ 12.89k │ 12.89k │ -        │
│ crowdsecurity/non-syslog                │ 12.89k │ 12.89k │ -        │
│ crowdsecurity/rdns                      │ 10     │ 10     │ -        │
│ crowdsecurity/seo-bots-whitelist        │ 10     │ 10     │ -        │
│ crowdsecurity/sshd-logs                 │ 253    │ 165    │ 88       │
│ crowdsecurity/syslog-logs               │ 713    │ 713    │ -        │
│ crowdsecurity/whitelists                │ 13.05k │ 13.05k │ -        │
╰─────────────────────────────────────────┴────────┴────────┴──────────╯
╭────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ Scenario Metrics                                                                                   │
├──────────────────────────────────────┬───────────────┬───────────┬──────────────┬────────┬─────────┤
│ Scenario                             │ Current Count │ Overflows │ Instantiated │ Poured │ Expired │
├──────────────────────────────────────┼───────────────┼───────────┼──────────────┼────────┼─────────┤
│ crowdsecurity/http-bad-user-agent    │ -             │ 1         │ 1            │ 2      │ -       │
│ crowdsecurity/http-crawl-non_statics │ 48            │ -         │ 8.21k        │ 9.56k  │ 8.16k   │
│ crowdsecurity/http-dos-random-uri    │ -             │ -         │ 84           │ 97     │ 84      │
│ crowdsecurity/http-dos-swithcing-ua  │ 161           │ -         │ 7.55k        │ 7.57k  │ 7.39k   │
│ crowdsecurity/http-probing           │ 23            │ -         │ 315          │ 316    │ 292     │
│ crowdsecurity/ssh-bf                 │ -             │ 2         │ 40           │ 162    │ 38      │
│ crowdsecurity/ssh-bf_user-enum       │ -             │ -         │ 40           │ 77     │ 40      │
│ crowdsecurity/ssh-slow-bf            │ 2             │ 8         │ 21           │ 162    │ 11      │
│ crowdsecurity/ssh-slow-bf_user-enum  │ 2             │ -         │ 15           │ 49     │ 13      │
╰──────────────────────────────────────┴───────────────┴───────────┴──────────────┴────────┴─────────╯
╭────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ Whitelist Metrics                                                                                  │
├─────────────────────────────────────────┬────────────────────────────────────┬───────┬─────────────┤
│ Whitelist                               │ Reason                             │ Hits  │ Whitelisted │
├─────────────────────────────────────────┼────────────────────────────────────┼───────┼─────────────┤
│ crowdsecurity/cdn-whitelist             │ CDN provider                       │ 10    │ -           │
│ crowdsecurity/discord-crawler-whitelist │ Discord PTR domain                 │ 10    │ -           │
│ crowdsecurity/seo-bots-whitelist        │ good bots (search engine crawlers) │ 10    │ -           │
│ crowdsecurity/whitelists                │ private ipv4/ipv6 ip/ranges        │ 13051 │ -           │
╰─────────────────────────────────────────┴────────────────────────────────────┴───────┴─────────────╯

Related custom configs versions (if applicable) : notification plugins, custom scenarios, parsers etc.

All related configs are [here](https://github.com/Simbiat/simbiat.ru/tree/master/config/crowdsec)
@Simbiat Simbiat added the kind/bug Something isn't working label Feb 8, 2025
Copy link

github-actions bot commented Feb 8, 2025

@Simbiat: Thanks for opening an issue, it is currently awaiting triage.

In the meantime, you can:

  1. Check Crowdsec Documentation to see if your issue can be self resolved.
  2. You can also join our Discord.
  3. Check Releases to make sure your agent is on the latest version.
Details

I am a bot created to help the crowdsecurity developers manage community feedback and contributions. You can check out my manifest file to understand my behavior and what I can do. If you want to use this for your project, you can check out the BirthdayResearch/oss-governance-bot repository.

@LaurenceJJones
Copy link
Contributor

LaurenceJJones commented Feb 8, 2025

Hey I will take a deeper look on monday, but currently I would say the CRS experience with CrowdSec is not the best. Currently the first matching rule is the id that is used for the alert, however, this means the id of nolog and noaudit items are taken into account for example here is the details of an alert generate locally:

root@bookworm:/var/lib/crowdsec/data/coreruleset# cscli alerts inspect 4 -d

################################################################################################

 - ID           : 4
 - Date         : 2025-02-08T20:14:02Z
 - Machine      : cfea735df2bd4248b19999188aeec5ceava1mksydGhitIuC
 - Simulation   : false
 - Remediation  : false
 - Reason       : native_rule:901340
 - Events Count : 0
 - Scope:Value  : Ip:192.168.121.1
 - Country      :
 - AS           :
 - Begin        : 2025-02-08 20:14:02 +0000 UTC
 - End          : 2025-02-08 20:14:02 +0000 UTC
 - UUID         : e563f27a-f2f5-4b2a-a5da-14990ab2f25c


 - Context  :
╭───────────────┬─────────────────────────────────────────────────╮
│      Key      │                      Value                      │
├───────────────┼─────────────────────────────────────────────────┤
│ id            │ 901340                                          │
│ id            │ 920350                                          │
│ id            │ 930130                                          │
│ id            │ 949110                                          │
│ matched_zones │ REQBODY_PROCESSOR                               │
│ matched_zones │ REQUEST_HEADERS.Host                            │
│ matched_zones │ REQUEST_FILENAME                                │
│ matched_zones │ TX.blocking_inbound_anomaly_score               │
│ method        │ GET                                             │
│ msg           │ Enabling body inspection                        │
│ msg           │ Host header is a numeric IP address             │
│ msg           │ Restricted File Access Attempt                  │
│ msg           │ Inbound Anomaly Score Exceeded (Total Score: 8) │
│ name          │ native_rule:901340                              │
│ name          │ native_rule:920350                              │
│ name          │ native_rule:930130                              │
│ name          │ native_rule:949110                              │
│ target_uri    │ /.env                                           │
╰───────────────┴─────────────────────────────────────────────────╯

As you can see the rule is stated as native_rule:901340 but the actual useful details are the other id's and messages.

Just to note if you enrolled into the console using -e context or enabling it afterwards with:

root@bookworm:/var/lib/crowdsec/data/coreruleset# cscli console enable context
INFO context set to true
INFO [context] have been enabled
INFO Run 'sudo systemctl reload crowdsec' for the new configuration to be effective.

This will allow you in the console to click columns and context and it will show this information in the console. However, this can be verbose.

Image

@Simbiat
Copy link
Author

Simbiat commented Feb 9, 2025

Nice, i did not even know about that feature, and I would prefer to have it enabled automatically every time container is recreated/rebuilt. Guess adding flags to docker_start.sh would be the way to go. I guess I'll make a PR for that (#3457)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants