Luca Deri
06c6941f03
Removed xbox and playstation invalid port guesses
2021-06-02 00:24:41 +02:00
Ivan Nardi
9d427faafe
ndpiReader: fix collecting of risks statistics ( #1192 )
2021-06-01 16:50:46 +02:00
Ivan Nardi
f4dbeecba9
TLS: improve check for common ALPNs ( #1191 )
...
Facebook is still using its own ALPN for HTTP2 as well
2021-06-01 16:50:28 +02:00
Luca
c620858671
Reworked ndpi flow risk score adding client and server score
2021-06-01 09:17:26 +02:00
Alfredo Cardigliano
c4084ca3c7
Fix warnings
2021-05-25 15:17:48 +02:00
Luca
eb0115d4e0
Added TLS check to avoid crash with UDP-based traffic
2021-05-25 09:03:24 +02:00
Luca Deri
d485c1cecb
Improved TLS browser detection heuristics
2021-05-19 21:28:33 +02:00
Ivan Nardi
71b81d3799
wireshark/lua: fix offsets ( #1187 )
2021-05-18 21:36:46 +02:00
Luca Deri
732bcecd17
Added flow risk score
2021-05-18 21:05:47 +02:00
Luca Deri
86f3c29d03
Typo
2021-05-18 19:52:33 +02:00
Luca Deri
ca15e3295e
Added risk/score dump (ndpiReader -h)
...
Added ndpi_dump_risks_score() API score
2021-05-18 19:34:17 +02:00
Luca Deri
0b3d627185
Updated API for ndpi_risk2score()
...
Added ndpi_get_upper_proto() API call
2021-05-17 22:39:07 +02:00
Luca Deri
43a8576efb
Reworked human readeable string search in flows
...
Removed fragment manager code
2021-05-17 20:55:06 +02:00
Luca Deri
1ec621c85b
Added further checks
2021-05-15 19:53:46 +02:00
Luca Deri
9c5ba9c060
Updated protocol category
2021-05-15 11:20:15 +02:00
Luca Deri
5646ffa725
Added ndpi_check_subprotocol_risk() API call definition
2021-05-15 11:16:27 +02:00
Luca Deri
abd6bce6f9
Added TLS certifiacate caching
...
Added Fortigate protocol
2021-05-15 10:52:16 +02:00
Luca Deri
ca92660d98
Converted some test .pcapng files to pcap format
2021-05-13 20:51:11 +02:00
Luca Deri
ac1eaca8a6
Added browser TLS heuristic
2021-05-13 20:00:27 +02:00
Luca Deri
a62be9b8ec
Implemented heuristic to detect Safari and Firefox TLS browsing
2021-05-13 12:37:07 +02:00
Toni
87076dcd5b
Fixed obsolete error printing if CTRL-C is pressed. #1165 ( #1184 )
...
* This fix was proposed by @robertsong2019
Signed-off-by: Toni Uhlig <matzeton@googlemail.com >
2021-05-11 21:38:56 +02:00
Toni
5918a6542d
Improved SSL certificate name wildcard handling and risk. #1182 ( #1183 )
...
Signed-off-by: Toni Uhlig <matzeton@googlemail.com >
2021-05-11 21:38:26 +02:00
Luca Deri
a5ecdf9df8
Changes for sonarcloud integration
2021-05-11 21:36:25 +02:00
Luca Deri
5079bb1106
Fixed typo
2021-05-11 21:33:48 +02:00
Luca Deri
4297a65ce8
Implemented flow score in Wireshark integration
2021-05-10 22:43:05 +02:00
Luca Deri
fff60ec317
Added check to reduce MongoDB false positive detection
2021-05-10 21:14:55 +02:00
Luca Deri
66ebe444ae
Added (partial) Activision protocol support (based on tencent cloud)
2021-05-10 15:41:52 +02:00
Ivan Nardi
1deae1132b
Fix some warnings ( #1181 )
...
```
In file included from protocols/fasttrack.c:29:
../include/ndpi_api.h:1504:3: warning: type qualifiers ignored on function return type [-Wignored-qualifiers]
1504 | const ndpi_risk_severity ndpi_risk2severity(ndpi_risk_enum risk);
| ^~~~~
In file included from protocols/amazon_video.c:28:
../include/ndpi_api.h:1504:3: warning: type qualifiers ignored on function return type [-Wignored-qualifiers]
1504 | const ndpi_risk_severity ndpi_risk2severity(ndpi_risk_enum risk);
| ^~~~~
...
ndpi_utils.c: In function ‘ndpi_risk2severity’:
ndpi_utils.c:1834:1: warning: control reaches end of non-void function [-Wreturn-type]
1834 | }
| ^
```
2021-05-09 15:11:05 +02:00
Ivan Nardi
2ca37ff8be
TLS: fix extraction for TLS signature algorithms ( #1180 )
...
```
==69562==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x6100009000fb at pc 0x7f41882003a7 bp 0x7f4183cfbfc0 sp 0x7f4183cfb768
READ of size 32 at 0x6100009000fb thread T1
#0 0x7f41882003a6 in __interceptor_memcpy ../../../../src/libsanitizer/sanitizer_common/sanitizer_common_interceptors.inc:827
#1 0x560b2d7462a1 in processClientServerHello protocols/tls.c:1647
#2 0x560b2d73be6a in processTLSBlock protocols/tls.c:712
#3 0x560b2d73e61f in ndpi_search_tls_udp protocols/tls.c:968
```
2021-05-09 15:10:41 +02:00
Ivan Nardi
12c6ab768d
TLS: fix another use-of-uninitialized-value error in ClientHello parsing ( #1179 )
...
Error detected with valgrind.
==13127== Conditional jump or move depends on uninitialised value(s)
==13127== at 0x483EF58: strlen (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so)
==13127== by 0x1A93B6: ndpi_strdup (ndpi_main.c:159)
==13127== by 0x1C07CC: processClientServerHello (tls.c:1678)
==13127== by 0x1C0C4C: processTLSBlock (tls.c:712)
==13127== by 0x1C0C4C: ndpi_search_tls_tcp.part.0 (tls.c:849)
See also 8c3674e9
2021-05-09 15:10:14 +02:00
Toni
8c28613eb2
Check datalink during fuzzing to prevent console / logfile spam. See #1175 for more information. ( #1177 )
...
Signed-off-by: Toni Uhlig <matzeton@googlemail.com >
2021-05-09 15:09:43 +02:00
Bernhard M. Wiedemann
0663544be8
Allow to override build date with SOURCE_DATE_EPOCH ( #1176 )
...
in order to make builds reproducible.
See https://reproducible-builds.org/ for why this is good
and https://reproducible-builds.org/specs/source-date-epoch/
for the definition of this variable.
2021-05-09 15:09:15 +02:00
Luca
ae2470fad4
Initial work towards detection via TLS of browser types
2021-05-06 21:42:06 +02:00
Luca
808050e635
Add extraction for TLS signature algorithms
2021-05-06 08:56:01 +02:00
Luca
ce54a6ab57
Added ndpi_risk2severity() API call
2021-05-02 19:35:01 +02:00
Luca Deri
153d11c920
Enhanced netbios decoding check
2021-04-28 22:58:22 +02:00
Luca Deri
dd65142020
Compilation fix
2021-04-27 08:26:08 +02:00
Luca Deri
70686249c9
Updated code due to https://github.com/ntop/nDPI/pull/1175
2021-04-27 08:12:14 +02:00
Luca Deri
7b62db81c3
Removed DGA check for ipv6 reverse IPs
2021-04-27 07:23:11 +02:00
Toni
da3e6bd61b
Check for common ALPNs and set a flow risk if not known. ( #1175 )
...
* Increased risk bitmask to 64bit (instead of 32bit).
* Removed annoying "Unknown datalink" error message for fuzzers.
Signed-off-by: Toni Uhlig <matzeton@googlemail.com >
2021-04-27 07:22:04 +02:00
Luca Deri
d5b395f35a
Fixed invalid DNS dissection
2021-04-26 23:08:00 +02:00
Luca Deri
87ad2b58dc
Compilation fix
2021-04-26 10:50:19 +02:00
Luca Deri
4a09707e48
Added flow risk to wireshark dissection
2021-04-26 10:17:29 +02:00
Luca Deri
a04efb7ce7
Added tshark description
2021-04-25 11:47:19 +02:00
Luca Deri
fad246289f
README for the tshark class
2021-04-25 11:45:35 +02:00
Luca Deri
b586c223dd
Lua tshark class and examples
2021-04-25 11:40:53 +02:00
Luca Deri
0ef7998348
Removed protocol space in Genshin Impact
2021-04-25 10:06:22 +02:00
Toni
b4a8c8c63f
Add Genshin Impact protocol. ( #1173 )
...
Signed-off-by: Toni Uhlig <matzeton@googlemail.com >
2021-04-25 10:02:07 +02:00
Alfredo Cardigliano
d95cd9912c
Add vxlan enum to ndpi_packet_tunnel
2021-04-21 12:43:12 +02:00
Toni
9377991263
Add HP Virtual Machine Group Management (hpvirtgrp) protocol. ( #1170 )
...
Signed-off-by: Toni Uhlig <matzeton@googlemail.com >
2021-04-20 14:12:16 +02:00