Files
zira-etc/crowdsec/hub/scenarios/crowdsecurity/http-bad-user-agent.yaml

27 lines
722 B
YAML

type: leaky
format: 2.0
#debug: true
name: crowdsecurity/http-bad-user-agent
description: "Detect bad user-agents"
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://raw.githubusercontent.com/crowdsecurity/sec-lists/master/web/bad_user_agents.regex.txt
dest_file: bad_user_agents.regex.txt
type: regexp
strategy: LRU
size: 40
ttl: 10s
capacity: 1
leakspeed: 1m
groupby: "evt.Meta.source_ip"
blackhole: 2m
labels:
confidence: 1
spoofable: 0
classification:
- attack.T1595
behavior: "http:scan"
label: "detection of bad user-agents"
service: http
remediation: true