diff options
author | Ivan Nardi <12729895+IvanNardi@users.noreply.github.com> | 2023-07-11 10:12:08 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-11 10:12:08 +0200 |
commit | 950f5cc4e3ddd9bc0f8881950082283aa381c805 (patch) | |
tree | 4686d9c1b1d0348d06db9d6aa8ed166f449e3238 /tests/cfgs | |
parent | 859d9ea3c33c3ed54c159658a94381fdd4e7eccb (diff) |
fuzz: extend fuzzing coverage (#2040)
Some notes:
* libinjection: according to https://github.com/libinjection/libinjection/issues/44,
it seems NULL characters are valid in the input string;
* RTP: `rtp_get_stream_type()` is called only for RTP packets; if you
want to tell RTP from RTCP you should use `is_rtp_or_rtcp()`;
* TLS: unnecessary check; we already make the same check just above, at
the beginning of the `while` loop
Diffstat (limited to 'tests/cfgs')
-rw-r--r-- | tests/cfgs/default/pcap/quic_cc_ack.pcapng | bin | 0 -> 2960 bytes | |||
-rw-r--r-- | tests/cfgs/default/pcap/stun_classic.pcap | bin | 0 -> 2000 bytes | |||
-rw-r--r-- | tests/cfgs/default/result/quic_cc_ack.pcapng.out | 26 | ||||
-rw-r--r-- | tests/cfgs/default/result/stun_classic.pcap.out | 25 |
4 files changed, 51 insertions, 0 deletions
diff --git a/tests/cfgs/default/pcap/quic_cc_ack.pcapng b/tests/cfgs/default/pcap/quic_cc_ack.pcapng Binary files differnew file mode 100644 index 000000000..055de0c1e --- /dev/null +++ b/tests/cfgs/default/pcap/quic_cc_ack.pcapng diff --git a/tests/cfgs/default/pcap/stun_classic.pcap b/tests/cfgs/default/pcap/stun_classic.pcap Binary files differnew file mode 100644 index 000000000..64b282ae5 --- /dev/null +++ b/tests/cfgs/default/pcap/stun_classic.pcap diff --git a/tests/cfgs/default/result/quic_cc_ack.pcapng.out b/tests/cfgs/default/result/quic_cc_ack.pcapng.out new file mode 100644 index 000000000..7d6c1667b --- /dev/null +++ b/tests/cfgs/default/result/quic_cc_ack.pcapng.out @@ -0,0 +1,26 @@ +Guessed flow protos: 0 + +DPI Packets (UDP): 2 (1.00 pkts/flow) +Confidence DPI : 2 (flows) +Num dissector calls: 2 (1.00 diss/flow) +LRU cache ookla: 0/0/0 (insert/search/found) +LRU cache bittorrent: 0/0/0 (insert/search/found) +LRU cache zoom: 0/0/0 (insert/search/found) +LRU cache stun: 0/0/0 (insert/search/found) +LRU cache tls_cert: 0/0/0 (insert/search/found) +LRU cache mining: 0/0/0 (insert/search/found) +LRU cache msteams: 0/0/0 (insert/search/found) +LRU cache stun_zoom: 0/0/0 (insert/search/found) +Automa host: 0/0 (search/found) +Automa domain: 0/0 (search/found) +Automa tls cert: 0/0 (search/found) +Automa risk mask: 0/0 (search/found) +Automa common alpns: 0/0 (search/found) +Patricia risk mask: 4/0 (search/found) +Patricia risk: 4/0 (search/found) +Patricia protocols: 3/1 (search/found) + +QUIC 2 2784 2 + + 1 UDP 152.14.223.145:57113 -> 71.98.228.93:443 [proto: 188/QUIC][IP: 0/Unknown][Encrypted][Confidence: DPI][DPI packets: 1][cat: Web/5][1 pkts/1392 bytes -> 0 pkts/0 bytes][Goodput ratio: 97/0][< 1 sec][Risk: ** Unidirectional Traffic **][Risk Score: 10][Risk Info: No server to client traffic][Plen Bins: 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,100,0,0,0,0,0] + 2 UDP 183.23.159.144:37787 -> 108.140.147.22:443 [proto: 188/QUIC][IP: 276/Azure][Encrypted][Confidence: DPI][DPI packets: 1][cat: Web/5][1 pkts/1392 bytes -> 0 pkts/0 bytes][Goodput ratio: 97/0][< 1 sec][Risk: ** Unidirectional Traffic **][Risk Score: 10][Risk Info: No server to client traffic][PLAIN TEXT (IhUo.7y)][Plen Bins: 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,100,0,0,0,0,0] diff --git a/tests/cfgs/default/result/stun_classic.pcap.out b/tests/cfgs/default/result/stun_classic.pcap.out new file mode 100644 index 000000000..ce9d637ed --- /dev/null +++ b/tests/cfgs/default/result/stun_classic.pcap.out @@ -0,0 +1,25 @@ +Guessed flow protos: 0 + +DPI Packets (UDP): 5 (5.00 pkts/flow) +Confidence DPI : 1 (flows) +Num dissector calls: 168 (168.00 diss/flow) +LRU cache ookla: 0/0/0 (insert/search/found) +LRU cache bittorrent: 0/0/0 (insert/search/found) +LRU cache zoom: 0/0/0 (insert/search/found) +LRU cache stun: 0/4/0 (insert/search/found) +LRU cache tls_cert: 0/0/0 (insert/search/found) +LRU cache mining: 0/0/0 (insert/search/found) +LRU cache msteams: 0/0/0 (insert/search/found) +LRU cache stun_zoom: 0/0/0 (insert/search/found) +Automa host: 0/0 (search/found) +Automa domain: 0/0 (search/found) +Automa tls cert: 0/0 (search/found) +Automa risk mask: 0/0 (search/found) +Automa common alpns: 0/0 (search/found) +Patricia risk mask: 2/0 (search/found) +Patricia risk: 0/0 (search/found) +Patricia protocols: 2/0 (search/found) + +RTP 22 1624 1 + + 1 UDP 172.16.63.224:55050 <-> 172.16.63.21:13958 [proto: 78.87/STUN.RTP][IP: 0/Unknown][ClearText][Confidence: DPI][DPI packets: 5][cat: Media/1][9 pkts/662 bytes <-> 13 pkts/962 bytes][Goodput ratio: 43/43][0.23 sec][bytes ratio: -0.185 (Mixed)][IAT c2s/s2c min/avg/max/stddev: 4/0 32/17 101/42 32/11][Pkt Len c2s/s2c min/avg/max/stddev: 70/74 74/74 74/74 1/0][Risk: ** Known Proto on Non Std Port **][Risk Score: 50][Plen Bins: 4,95,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0] |