C
CrowdSec•4mo ago
EP

how to ban those

hi, sorry im newbie from crowdsec may i ask how to ban those inject?
No description
20 Replies
iiamloz
iiamloz•4mo ago
These seems to be just malformed HTTP requests which the webserver responds 400 to, it will be picked up by our default probing scenario but they seem quite sparse, so you can craft your own scenario which can filter for status 400
EP
EPOP•4mo ago
any idea how to create senarios?
iiamloz
iiamloz•4mo ago
Best place is to look at the scenarios we already have like https://app.crowdsec.net/hub/author/crowdsecurity/scenarios/http-probing then change the filter and name to match what you want and then decide if you want the capacity to be I advised to keep leaky but set capacity to 1 or 2 depending if you expect 400 status to be common
iiamloz
iiamloz•4mo ago
Format | CrowdSec
Scenario configuration example
CrowdSec Academy
CrowdSec Academy | Writing Parsers and Scenarios
The Writing Parsers and Scenarios course shows how to build parsers and behavior detection scenarios for the CrowdSec Security Engine.
EP
EPOP•4mo ago
thanks alot for help.
EP
EPOP•4mo ago
i ask npmplus they ask me to ask crowdsec. it normal?
No description
iiamloz
iiamloz•4mo ago
This has nothing to do with crowdsec, but it looks like a healthcheck imposed by a container?
EP
EPOP•4mo ago
i have no idea..haha its ok at least not risk
No description
EP
EPOP•2mo ago
Hi, may i ask why sometime got duplicate ban for single ip after update to latest?
No description
EP
EPOP•2mo ago
Not only trigger 1 decision? It trigger both decision for latest version😅
No description
iiamloz
iiamloz•2mo ago
@EP if your only using NPMPlus as your only remediation remember that the packet is not fully blocked, and NPMPlus still responds with the ban status code so there a chance it can retrigger scenarios over and over.
EP
EPOP•2mo ago
Any chance to fix that?
iiamloz
iiamloz•2mo ago
You cant really fix it as that is the designed behaviour, if you want to fully block packets you need to install the firewall remediation and configured the DOCKER-USER chain, however, this only works if you dont use an upstream proxy like cloudflare. If you use cloudflare then there no way to workaround this.
EP
EPOP•2mo ago
using firewall bouncer right?
No description
EP
EPOP•2mo ago
but may i ask if firewall added decision the ban user still can access the ban page? the secend image.
No description
No description
iiamloz
iiamloz•2mo ago
But as stated are you using cloudflare or any CDN infront?
EP
EPOP•2mo ago
some proxy yes some no.
iiamloz
iiamloz•2mo ago
Yes so the ones with "proxy" enabled cannot be 100% blocked since Cloudflare is proxying them, on the firewall layer all it can see is cloudflares ip address (as that is how reverse proxies work), the ones with proxy no should be blocking
EP
EPOP•2mo ago
noted. thanks for help.
CrowdSec
CrowdSec•2mo ago
Resolving how to ban those This has now been resolved. If you think this is a mistake please run /unresolve

Did you find this page helpful?