--- /dev/null
+# Description
+
+Test quic v2 parsing
+
+# PCAP
+
+The pcap comes from running https://github.com/quic-go/quic-go
+
+The example server is in example
+`go run main.go -bind localhost:443`
+The example client is in example/client
+`go run main.go -insecure https://127.0.0.1:443/`
+with this patch
+```
++qconf.Versions = []quic.VersionNumber{quic.VersionNumber(0x6b3343cf)}
+```
--- /dev/null
+alert quic any any -> any any (msg:"QUIC V2"; quic.version; content:"|6b 33 43 cf|"; sid:4;)
+alert quic any any -> any any (msg:"QUIC JA3"; ja3.string; content:"771,4865-4866-4867,5-10-11-13-65281-23-16-18-43-51-57,29-23-24-25,0"; sid:3;)
--- /dev/null
+requires:
+ min-version: 7.0.0
+ features:
+ - HAVE_JA3
+
+checks:
+ - filter:
+ count: 1
+ match:
+ event_type: quic
+ quic.extensions[0].name: "status_request"
+ quic.extensions[6].name: "alpn"
+ quic.extensions[6].values[0]: "h3"
+ - filter:
+ count: 2
+ match:
+ event_type: alert
+ alert.signature_id: 4
+ - filter:
+ count: 1
+ match:
+ event_type: alert
+ alert.signature_id: 3
alert quic any any -> any any (msg:"QUIC V2"; quic.version; content:"|6b 33 43 cf|"; sid:4;)
-alert quic any any -> any any (msg:"QUIC JA3"; ja3.string; content:"771,4865-4866-4867,5-10-11-13-65281-23-16-18-43-51-57,29-23-24-25,0"; sid:3;)
match:
event_type: alert
alert.signature_id: 4
- - filter:
- count: 1
- match:
- event_type: alert
- alert.signature_id: 3