cscli scenarios install crowdsecurity/http-sensitive-files
Detect tentative of dangerous file scanning such as logs file, database backup, zip archive etc ...
More than 3 access to sensitive files in this list
1type: leaky2format: 2.03#debug: true4name: crowdsecurity/http-sensitive-files5description: "Detect attempt to access to sensitive files (.log, .db ..) or folders (.git)"6filter: 'evt.Meta.log_type in ["http_access-log", "http_error-log"] and any(File("sensitive_data.txt"), { evt.Parsed.request endsWith #})'7groupby: "evt.Meta.source_ip"8distinct: evt.Parsed.request9data:10 - source_url: https://hub-data.crowdsec.net/web/sensitive_data.txt11 dest_file: sensitive_data.txt12 type: string13capacity: 414leakspeed: 5s15blackhole: 5m16labels:17 remediation: true18 classification:19 - attack.T1595.00320 behavior: "http:scan"21 label: "Access to sensitive files over HTTP"22 spoofable: 023 service: http24 confidence: 325