Nardi Ivan
7d5a0e1f04
QUIC: extract User Agent information
2020-09-08 11:03:22 +02:00
Nardi Ivan
a1014e8895
http: create a common function to parse User Agent field
...
Prepare the code to handle UA information from flows other than HTTP
2020-09-08 10:34:05 +02:00
Toni Uhlig
799a6abfe6
Improved dnscrypt v1/v2 protocol detection.
...
Signed-off-by: Toni Uhlig <matzeton@googlemail.com >
2020-09-06 23:24:55 +02:00
Toni Uhlig
7051acc0b5
Fixed off-by-one error in Kerberos protocol.
...
Signed-off-by: Toni Uhlig <matzeton@googlemail.com >
2020-09-02 07:37:26 +02:00
Toni Uhlig
580859a47d
Fixed false positive detection for Skype.SkypeCall (affects at least Cisco HSRP and RADIUS).
...
Signed-off-by: Toni Uhlig <matzeton@googlemail.com >
2020-09-02 07:29:33 +02:00
Luca Deri
5d2551ff3e
Added boundary check
2020-09-01 22:31:34 +02:00
Luca Deri
460ff3c7ab
Added (optional) notifier for LRU add
2020-08-31 08:47:16 +02:00
Nardi Ivan
7da4abe6ad
QUIC: add support for GQUIC T050 and T051
...
QUIC versioning wasn't complex enough without T05X family...
These versions are very similar to Q050, but use TLS as their handshake
protocol.
2020-08-30 20:51:33 +02:00
Luca Deri
647c7d59bb
Improved ntop detection over HTTP
...
Added cap on number of attempts for CiscoVPN
2020-08-30 19:42:09 +02:00
Luca Deri
dd75060932
Fixed false positive in suspicous user agent
...
Optimized stddev calculation
2020-08-30 12:25:15 +02:00
Luca Deri
8bf95b6198
Merge pull request #996 from lnslbrty/fix/travis-ci
...
Fix travis-ci related errors.
2020-08-28 13:04:26 +02:00
Toni Uhlig
e998fc28d1
Fixed use-of-uninitialized-value in QUIC clho decryption probably caused by a BUG in libgcrypt (not verified).
...
Signed-off-by: Toni Uhlig <matzeton@googlemail.com >
2020-08-27 16:30:05 +02:00
Simone Mainardi
f0325f713a
Passes method_len param to ndpi_http_str2method
2020-08-27 10:05:38 +02:00
Toni Uhlig
5b27dfdd0c
Moved NDPI_CURRENT_PROTO define before ndpi_api.h include to prevent a redefinition warning.
...
Signed-off-by: Toni Uhlig <matzeton@googlemail.com >
2020-08-27 00:29:44 +02:00
Luca Deri
2e8aa9f08e
Added ndpi_http_method ndpi_http_str2method(const char* method) API call
2020-08-26 23:17:19 +02:00
Nardi Ivan
97b80a8838
QUIC: minor fixes
...
LGTM found a real issue on a boundary check
Fix unit tests: a pcap ha been uploaded twice (with different names)
Fix compilation when using DPDK (see #990 )
2020-08-24 13:53:36 +02:00
Luca Deri
b8307eb855
Creared IoT-Scada category
...
Minor dnp3 changes
2020-08-23 13:32:36 +02:00
Luca Deri
93003d0523
Warning fix
2020-08-22 16:41:42 +02:00
Nardi Ivan
b23cfd6b84
Add sub-classification for GQUIC >= Q050 and (IETF-)QUIC
...
Add QUIC payload and header decryption: most of the crypto code has been
"copied-and-incolled" from Wireshark. That code has been clearly marked
as such. All credits for that code should go to the original authors.
I tried to keep the Wireshark code as similar as possible to the original,
comments included, to ease future backporting of fixes.
Inevitably, glibc data types and data structures, tvbuff abstraction and
allocation functions have been converted.
2020-08-21 22:04:55 +02:00
Nardi Ivan
7a1147d733
Update TLS dissector to handle QUIC flows
...
Latest QUIC versions use TLS for the encryption layer: reuse existing code
to allow Client Hello parsing and sub-classification based on SNI value.
Side effect: we might have J3AC, TLS negotiated version, SNI value and
supported cipher list for QUIC, too.
2020-08-21 22:04:55 +02:00
Nardi Ivan
23ec82b59d
Major rework of QUIC dissector
...
Improve support for GQUIC (up to Q046) and add support for Q050 and (IETF-)QUIC
Still no sub-classification for Q050 and QUIC
2020-08-21 22:04:55 +02:00
Luca Deri
248d756e99
Merge pull request #987 from lnslbrty/update/mysql-protocol-detection
...
Updated MySQL protocol detection to support server version 8.
2020-08-19 21:49:53 +02:00
Toni Uhlig
3a76786121
Updated MySQL protocol detection to support server version 8.
...
Signed-off-by: Toni Uhlig <matzeton@googlemail.com >
2020-08-19 18:33:06 +02:00
Toni Uhlig
8e93f48c43
Added support for SOAP.
...
Signed-off-by: Toni Uhlig <matzeton@googlemail.com >
2020-08-18 16:21:26 +02:00
Nardi Ivan
2722861d6e
Suspicious ESNI usage: add a comment and a pcap example
...
See: 79b89d2866
2020-08-06 10:29:35 +02:00
Luca Deri
95dfbdc64a
Merge pull request #973 from IvanNardi/esni3
...
Add risk flag about suspicious ESNI usage
2020-08-06 10:18:27 +02:00
Luca Deri
d3fb1fb25a
Fixed possible memory leak in TLS certificate handling
2020-08-05 17:57:00 +02:00
Nardi Ivan
79b89d2866
Add risk flag about suspicious ESNI usage
...
In a Client Hello, the presence of both SNI and ESNI may obfuscate the real
domain of an HTTPS connection, fooling DPI engines and firewalls, similarly
to Domain Fronting.
Such technique is reported in a presentation at DEF CON 28:
"Domain Fronting is Dead, Long Live Domain Fronting: Using TLS 1.3 to evade
censors, bypass network defenses, and blend in with the noise"
Full credit for the idea must go the original author
At the moment, the only way to get the pdf presention and related video is via
https://forum.defcon.org/node/234492
Hopefully a direct link (and an example pcap) will be available soon
2020-08-05 17:13:23 +02:00
Luca Deri
00b2763399
Added check on payload lenght during extra packet processing
2020-08-04 21:59:45 +02:00
Luca Deri
ea10b8e757
Added memory checks
2020-08-02 13:00:31 +02:00
Luca Deri
2ae4c6675d
Fixed partial TLS dissection
2020-07-30 18:30:07 +02:00
Luca Deri
6904935934
Restored TLS dissection
2020-07-30 00:06:35 +02:00
Luca Deri
a828ac0191
Tiny changes for TLS block lenght dissection
2020-07-29 22:36:27 +02:00
Luca Deri
32bd3d7a59
TLS dissection improvements
2020-07-28 01:06:38 +02:00
Luca Deri
da87cc3157
Added NDPI_SMB_INSECURE_VERSION for detecting insecure SMB versions (e.g. v1)
2020-07-27 13:05:06 +02:00
Luca Deri
69f140878c
Boundary check on QUIC
2020-07-27 07:40:50 +02:00
Luca Deri
4b1cae2c2b
Boundary check
2020-07-27 06:52:35 +02:00
Luca Deri
1c405e382a
SSH code cleanup
2020-07-25 16:43:54 +02:00
MrRadix
6719fa30f9
added other ssh implementations to check
2020-07-24 20:53:02 +02:00
MrRadix
a9ca47fcdb
added cipher check
2020-07-22 17:17:12 +02:00
MrRadix
1c1be5a0d1
Resolved conflicts on fetch
2020-07-22 16:25:01 +02:00
Luca Deri
3cd1ec5c9a
Added changes for handlign SSSH cipher detection
2020-07-22 15:58:46 +02:00
MrRadix
a3ba9253ef
fixed bug inside set bit macro call
2020-07-22 15:39:44 +02:00
MrRadix
af5d792c08
added sscanf error handling
2020-07-22 13:06:08 +02:00
MrRadix
8e2cd9ff43
improved performance and legibility
2020-07-22 12:42:26 +02:00
MrRadix
0a182c6d18
Merge remote-tracking branch 'ntop_origin/dev' into dev
2020-07-22 11:15:02 +02:00
MrRadix
847eb7b180
improved performance by removing linear scan
2020-07-22 10:54:55 +02:00
MrRadix
f66cd5aabc
added ssh_analyse_signature_version and ssh_has_old_signature for check old signature version of ssh
2020-07-21 19:31:02 +02:00
Luca Deri
879cec94b2
User agent detection improvements
2020-07-21 12:06:34 +02:00
Luca Deri
9f4f228832
Added skeleton for checking SSH signature
2020-07-20 17:25:17 +02:00