Debian Codegraph @

hub1/scenarios/crowdsecurity/http-sqli-probing.yaml

raw symbols SCIP
1 type: leaky
2 #requires at least 2.0 because it's using the 'data' section and the 'Upper' expr helper
3 format: 2.0
4 name: crowdsecurity/http-sqli-probbing-detection
5 data:
6 - source_url: https://raw.githubusercontent.com/crowdsecurity/sec-lists/master/web/sqli_probe_patterns.txt
7 dest_file: sqli_probe_patterns.txt
8 type: string
9 description: "A scenario that detects SQL injection probing with minimal false positives"
10 filter: "evt.Meta.log_type in ['http_access-log', 'http_error-log'] && any(File('sqli_probe_patterns.txt'), {Upper(evt.Parsed.http_args) contains Upper(#)})"
11 groupby: evt.Meta.source_ip
12 capacity: 10
13 leakspeed: 1s
14 blackhole: 5m
15 #low false positives approach : we require distinct payloads to avoid false positives
16 distinct: evt.Parsed.http_args
17 labels:
18 service: http
19 type: sqli_probing
20 remediation: true