Luca Deri
4609e2084b
Added new risks (future use)
...
- NDPI_RISKY_ASN
- NDPI_RISKY_DOMAIN
- NDPI_RISKY_COUNTRY
2021-02-16 18:23:19 +01:00
Luca Deri
ea0309d21b
Removed now obsolete NDPI_DETECTION_SUPPORT_IPV6: code is more readeable now
2021-02-10 19:09:11 +01:00
Luca Deri
45e9c3c438
Partial fix for #1129
2021-02-05 22:22:33 +01:00
Alfredo Cardigliano
95a6a2072b
Code cleanup and safety checks in the fragment manager ( #1129 )
2021-02-05 17:16:11 +01:00
Luca Deri
6e87daab69
Cosmetic fixes
2021-02-03 11:52:32 +01:00
b70ad0e2f1
fragments management added ( #1122 )
...
Management of tcp segments managements.
Co-authored-by: ragostino <ragostino73@gmail.com >
Co-authored-by: Luca Deri <lucaderi@users.noreply.github.com >
2021-02-03 10:28:51 +01:00
Luca Deri
a31bd5ac3c
Cleaned up tls/quic datatypes
2021-01-21 19:17:33 +01:00
Luca Deri
15295ef4c5
Reworked TLS fingerprint calcolation
...
Modified TLS memory free
2021-01-21 19:06:05 +01:00
Luca Deri
3e5e9569ff
Added simple hash implementation to the nDPI API
2021-01-20 21:30:19 +01:00
Luca Deri
68b6ac7da8
(C) Update
2021-01-07 11:13:36 +01:00
Ivan Nardi
b8a5358e80
QUIC: improve handling of SNI ( #1105 )
...
* QUIC: SNI should be always saved in flow->protos.stun_ssl.ssl.client_requested_server_name
Close #1077
* QUIC: fix matching of custom categories
* QUIC: add NDPI_TLS_MISSING_SNI support for older GQUIC versions
* QUIC: fix serialization
* QUIC: add DGA check for older GQUIC versions
2021-01-07 10:55:23 +01:00
Luca Deri
05d76525b0
Added HTTP suspicious content securirty risk (useful for tracking trickbot)
2021-01-02 21:11:42 +01:00
Luca Deri
b231982286
Win fixes
2020-12-17 15:34:17 +01:00
Luca Deri
df1b3367a9
Type change to avoid Windows compilation issues
2020-12-17 12:58:12 +01:00
Toni
daa1c8ef8c
Fix/overflow and libgerror check ( #1068 )
...
* Fixed stack overflow caused by missing buffer space for the trailing \0 added by sprintf()
Signed-off-by: Toni Uhlig <matzeton@googlemail.com >
* Remove the autoconf cache value from the previous and failed check before checking again.
Signed-off-by: Toni Uhlig <matzeton@googlemail.com >
2020-11-26 19:46:31 +01:00
Luca Deri
e9721eb4ce
Improved processing of IPv6 header
...
Improved QUIC serialization
2020-10-15 21:57:59 +02:00
Luca
05d93790e4
Added ndpi_quick_16_byte_hash
...
Warning fix
2020-10-05 08:26:24 +02:00
Luca Deri
60a9f6610d
Added risks for checking
...
- invalid DNS traffic (probably carrying exfiltrated data)
- TLS traffic with no SNI extension
2020-09-21 19:57:23 +02:00
Toni Uhlig
87c43450f3
Do not re-define libc functions for mingw builds.
...
Signed-off-by: Toni Uhlig <matzeton@googlemail.com >
2020-09-20 23:29:23 +02:00
Luca Deri
1385f05713
Merge pull request #1017 from lnslbrty/fix/mingw-xcompile
...
Added support for mingw xcompile.
2020-09-20 18:33:40 +02:00
Luca Deri
d81bc1add6
Reworked MDNS dissector that is not based on the DNS dissector
2020-09-17 23:24:02 +02:00
Toni Uhlig
4c776501a6
Fixed shlib xcompile for x86_64-w64-mingw32
...
Signed-off-by: Toni Uhlig <matzeton@googlemail.com >
2020-09-08 19:52:46 +02:00
Luca Deri
3f49062db9
Added some additional TLS mappings
2020-09-02 23:35:22 +02:00
Luca Deri
8575a07113
Added check for ndpi_ssl_version2str()
2020-08-31 17:23:00 +02:00
Luca Deri
638624869a
Added new risk for NDPI_UNSAFE_PROTOCOL that identifies protocols that are not condidered safe/secure
2020-08-30 20:48:58 +02:00
Simone Mainardi
1810281d7f
Fixes control reaches end of non-void function
2020-08-27 10:39:36 +02:00
Simone Mainardi
f0325f713a
Passes method_len param to ndpi_http_str2method
2020-08-27 10:05:38 +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
Luca Deri
487d915262
Added ndpi_http_method2str() API call
2020-08-26 12:25:28 +02:00
Luca Deri
fef199ad45
Added new check for detecting suspicious (too long) names
2020-08-21 19:35:27 +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
c2156a5161
Added note on memory management
2020-08-06 09:19:04 +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
da87cc3157
Added NDPI_SMB_INSECURE_VERSION for detecting insecure SMB versions (e.g. v1)
2020-07-27 13:05:06 +02:00
Luca Deri
1c405e382a
SSH code cleanup
2020-07-25 16:43:54 +02:00
MrRadix
c450caae94
modified new last two risks
2020-07-22 15:38:31 +02:00
Luca Deri
f83d0b18c6
Introduced SSH rick checks
2020-07-22 11:40:57 +02:00
Luca Deri
a8ad99aca5
Fixed makefile error message
...
Code hardedning fix
2020-07-13 15:46:19 +02:00
Toni Uhlig
23c0721538
Fixed race condition in ndpi_ssl_version2str() caused by static qualifier in the version string buffer.
...
* added also GREASE supported tls versions as specified in
https://tools.ietf.org/html/draft-davidben-tls-grease-01#page-4
Signed-off-by: Toni Uhlig <matzeton@googlemail.com >
2020-07-11 01:05:39 +02:00
Luca Deri
b5f3facf7c
Added notes whenever a new flow risk is added
2020-06-26 23:39:48 +02:00
Luca Deri
8566288e43
Added malformed packet risk support
2020-06-26 22:37:52 +02:00
Luca Deri
55364ef0b4
Added DGA risk for names that look like a DGA
2020-06-11 18:51:53 +02:00
Luca Deri
3506a07864
Added check in TLS 1.2+ for reporting a risk when TLS is not used to carry HTTPS
2020-06-08 14:20:10 +02:00
Luca Deri
07c54f9992
Added ndpi_dpi2json() API call
2020-06-05 16:08:23 +02:00
Luca Deri
4ceff1dc77
Fixes for https://github.com/ntop/nDPI/pull/911
...
Added code for dumping invalid HTTP header
2020-05-29 21:23:46 +02:00
Luca Deri
8fa5c31996
Added ndpi_serialize_risk() to the nDPI API
2020-05-24 08:54:38 +02:00
Luca Deri
ee35834be6
Added flow risk serilization
2020-05-24 08:46:10 +02:00
Luca Deri
3d9285f1be
Added check for invalid HTTP URLs
2020-05-16 00:10:35 +02:00
Luca Deri
c375782b96
Added check for binary scripts
...
Added NDPI_HTTP_NUMERIC_IP_HOST risk
ndpi_risk moved to 32 bit
2020-05-15 22:49:55 +02:00
Luca Deri
e90c5c7c32
Added NDPI_HTTP_SUSPICIOUS_USER_AGENT ndpi_risk
2020-05-15 19:19:17 +02:00