--- /dev/null
+# Description
+
+Test app-layer-event:http.failed_protocol_change
+
+# PCAP
+
+The pcap comes from oss-fuzz https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=45941
+And use of fuzzpcap to get to a real pcap file
--- /dev/null
+alert http any any -> any any (msg:"SURICATA HTTP failed protocol change"; flow:established; app-layer-event:http.failed_protocol_change; flowint:http.anomaly.count,+,1; classtype:protocol-command-decode; sid:2221053; rev:1;)
--- /dev/null
+requires:
+ min-version: 7
+
+args:
+ - -k none
+
+checks:
+ - filter:
+ count: 2
+ match:
+ event_type: alert
+ alert.signature_id: 2221053