sudo cscli collections install crowdsecurity/aws-cloudfrontInstalls 2 parsers and 47 scenarios, via HTTP - Generic Protection.
View AWS CloudFront →sudo cscli scenarios install crowdsecurity/http-bad-user-agentThen reload CrowdSec: sudo systemctl reload crowdsec
Sign in to see which of your engines run it →Hover a line or a note to see what each field does.
type: leakyformat: 2.0#debug: truename: crowdsecurity/http-bad-user-agentdescription: "Detect usage of bad User Agent"filter: 'evt.Meta.log_type in ["http_access-log", "http_error-log"] && RegexpInFile(evt.Parsed.http_user_agent, "bad_user_agents.regex.txt")'data:- source_url: https://hub-data.crowdsec.net/web/bad_user_agents.regex.txtdest_file: bad_user_agents.regex.txttype: regexpstrategy: LRUsize: 40ttl: 10scapacity: 1leakspeed: 1mgroupby: "evt.Meta.source_ip"blackhole: 2mlabels:confidence: 1spoofable: 0classification:- attack.T1595behavior: "http:scan"label: "Bad User Agent"service: httpremediation: true
Sign in to see the Security Engines that run this attack scenario, the version they run and whether it was modified locally.
Detect known bad user-agents.
Bans after two requests per minute.