--- /dev/null
+# Description
+
+Test http double encoded uri alert
+
+# PCAP
+
+The pcap comes from running
+`curl http://oisf.net/evil%2527sqli`
--- /dev/null
+%YAML 1.1
+---
+
+include: ../../etc/suricata-4.0.3.yaml
+
+app-layer:
+ protocols:
+ http:
+ libhtp:
+ default-config:
+ double-decode-path: yes
+ double-decode-query: yes
--- /dev/null
+alert http any any -> any any (msg:"SURICATA HTTP Request double encoded URI"; flow:established,to_server; app-layer-event:http.double_encoded_uri; flowint:http.anomaly.count,+,1; classtype:protocol-command-decode; sid:1; rev:1;)
--- /dev/null
+requires:
+ features:
+ - HAVE_LIBJANSSON
+ min-version: 5.0.0
+
+# disables checksum verification
+args:
+ - -k none
+
+checks:
+ - filter:
+ count: 1
+ match:
+ event_type: alert
+ alert.signature_id: 1