Commit graph

544 commits

Author SHA1 Message Date
Matteo Biscosi
b376ed8435 Fixes possible alert message error with OT protocols 2026-11-06 12:32:47 +01:00
Alfredo Cardigliano
e4d9b52e83 Initial Issues implementation 2026-11-04 12:43:21 +01:00
Matteo Biscosi
ae2db2aacc Added Custom flow check 2026-11-04 10:23:56 +01:00
Matteo Biscosi
b5ac06854b Removed no more used pages and reworked http status code page error 2026-11-04 10:23:56 +01:00
Ivan Nardi
e0a2f4aa5e
Fix the direction of DHCP flows and the Unexpected DHCP server check (#11139)
DHCP flows whose first packet is a reply sent by the server (e.g. a unicast
ACK or OFFER, a reply to a relay agent) were recorded with the server as
client, as the direction of UDP flows is never swapped by the ports. The
Unexpected DHCP server check, the DHCP service and the DHCP Server tag relied
on that reversed direction (server = client of the flow using port 67), so
also relay agents got the DHCP service/tag, rogue servers were missed when
the flow started with a request, the alert blamed the client of the flow and
its description named the DHCP client.

Direction (Flow::checkL7Direction()):
* DHCP (v4) flows are decided by the first packet, BOOTREQUEST or BOOTREPLY
  (op), as already done for DNS, NTP and ICMP.
* A flow is never swapped when its client would become a non-unicast address
  (e.g. a reply sent to broadcast), as in check_swap(): this applies to all
  the protocols checked there.

DHCP server of a flow (new Flow::isDHCPServerClient()): the server of the
flow, or its client for the replies sent to broadcast; by the ports only when
the direction has not been decided (e.g. collected flows). Used by
get_dhcp_srv_ip_addr(), by the DHCP service (relay agents talking to a DHCP
server no longer get it) and by the check. The DHCP fingerprint is taken only
from the DHCP client (port 68), not from relay agents.

Unexpected DHCP server check:
* Checks the flows whose DHCP server is a unicast address, on either side.
* Requires a reply from the server: the flows are checked when the protocol
  is detected, if the server has already replied, and again when they end
  (new has_flow_end parameter of UnexpectedServer), for the replies following
  a request. A flow alerted twice keeps the first alert only. A request with
  no reply (e.g. a renew to a server that no longer answers) raises no alert.
* The DHCP server is the attacker. UnexpectedServer now gives most of the
  score to the attacker set by buildAlert() (unchanged for the DNS, NTP and
  SMTP checks, which blame the client).
* The description names the DHCP server (server_ip of the alert), also when
  it is the client of the flow.
* Relay agents forwarding to a configured DHCP server are still allowed.

Documentation of the check updated.

DHCPv6 is not changed.
2026-10-28 11:24:28 +01:00
GabrieleDeri
8c236e969b
Added utm source to ntop links (#11108) 2026-10-21 17:23:50 +02:00
Ivan Nardi
cb0d0a104f Fix support for latest flow risk NDPI_NON_PQC_FLOW
Close: #11066
2026-10-08 13:05:50 +02:00
Ivan Nardi
d513a11ab1 S7Comm: fix function code names in alerts
Function codes 0x28 and 0x29 were swapped: 0x28 is PI-Service and
0x29 is PLC Stop. Also name all the known function codes (e.g.
upload/download ones, previously shown as plain numbers), using the
same names of the S7Comm flow details page.
2026-09-28 17:03:45 +02:00
Ivan Nardi
2ca3ff824f S7Comm/Modbus: fix function code help example and alert naming
- S7Comm allowed function codes help: use a decimal example (4,5,240);
  hex values are not supported and were parsed as 0
- Use the check title for the ModbusTCP unexpected function code alert,
  so check and alert share the same name
2026-09-28 16:55:50 +02:00
Ivan Nardi
191a93c542
S7Comm: fix UI labels and alert naming (#11009)
- Add missing flow_details.s7comm_functions label (empty row/header
  in the S7Comm flow details page)
- Remove orphan s7comm_requests/responses/acks/userdata strings: these
  counters are not exported by nProbe nor tracked by ntopng
- Use the check title for the S7Comm unexpected function code alert,
  so check and alert share the same name
- Add an "errors" field unit, for S7Comm/Profinet error thresholds
2026-09-28 13:47:46 +02:00
Alfredo Cardigliano
b04dd26418 Add missing flow risk mapping 2026-08-25 09:32:32 +02:00
Manuel Ceroni
5cde596288
Vulnerability Scan converted to Active Scan (#10774) 2026-08-14 17:43:43 +02:00
Alfredo Cardigliano
4afcfd4904 Add alert on disk space low (alert/check) 2026-08-14 15:16:24 +02:00
Alfredo Cardigliano
8ae9d8e989 Rename probe_ip to exporter_ip when used for exporters 2026-07-14 15:47:19 +02:00
Matteo Biscosi
02969a68d7 Removed CVEs and fixes non working Active Scan page and updated documentation 2026-06-29 14:46:34 +00:00
Matteo Biscosi
705c14a431 Revert "Removed vulnerability scan (#10490)"
This reverts commit 947019d8c7.
2026-06-28 10:52:21 +00:00
Manuel Ceroni
947019d8c7
Removed vulnerability scan (#10490)
* Removed vulnerability scan

* Removed other vs_utils references
2026-06-25 16:33:55 +02:00
Alfredo Cardigliano
8b009ac2f1 Move is<model> Lua functions to pro 2026-06-25 11:33:55 +02:00
Manuel Ceroni
648e668d23
Implemented BGP prefix update alert (#10373) 2026-05-25 12:32:21 +02:00
Luca Deri
80bc098a2a Added PQC flow detection
Some checks are pending
Build / build (push) Waiting to run
CIFuzz / Fuzzing (address) (push) Waiting to run
CodeQL / Analyze (push) Waiting to run
CodeQL / Analyze-1 (push) Waiting to run
2026-05-15 22:53:41 +02:00
Luca Deri
3c02147f03 Added non-OQC nDPI risk support 2026-05-15 19:56:24 +02:00
Manuel Ceroni
461ddd0d99
Implemented VPN detection alert (#10344) 2026-05-12 12:47:02 +02:00
Matteo Biscosi
0e713e32ac Updated wazuh alert with mitre info 2026-05-11 14:28:18 +00:00
Matteo Biscosi
257090ec73 Moved Wazuh alert to the host alert category (#10317)
Some checks are pending
Build / build (push) Waiting to run
CIFuzz / Fuzzing (address) (push) Waiting to run
CodeQL / Analyze (push) Waiting to run
CodeQL / Analyze-1 (push) Waiting to run
2026-05-05 16:49:00 +00:00
Matteo Biscosi
16aa3e0aa1 Added wazuh alert when info changes (#10317) 2026-05-05 14:51:03 +00:00
GabrieleDeri
1a2bafdf87
Added ai policy page and ai policy alert (#10301) 2026-04-24 17:15:57 +02:00
Matteo Biscosi
1a09f9876c Fixes alert settings button not working (#10225) 2026-03-27 10:32:01 +00:00
Luca Deri
389e832d1c (C) update 2026-01-19 16:23:53 +01:00
Manuel Ceroni
9c3705c697
Implementation of the SlowDoS alert structure (#9962) 2026-01-17 10:57:31 +01:00
Alfredo Cardigliano
f124dab10f Improve reported scan message 2026-01-07 15:21:50 +01:00
Alfredo Cardigliano
332c7d5df5 Add ProfinetTooManyErrorsAlert 2026-01-05 15:33:21 +01:00
Alfredo Cardigliano
e7c62c72c3 Add alert definitions for S7Comm 2025-12-16 11:20:15 +01:00
Matteo Biscosi
3975ed3018 Fixes flow alert description (#9873) 2025-12-04 11:47:21 +01:00
Manuel Ceroni
ff3c9605a5
Fixed quota exceeded alert (#9872) 2025-12-03 17:54:50 +01:00
Matteo Biscosi
bdae6129a0 Modified blacklisted flow alert description 2025-11-21 12:46:34 +01:00
Luca Deri
5f30641db3 Localized scan realtime alert message and improved message 2025-10-28 22:08:04 +01:00
Luca Deri
fbc55ab340 Implemenred support for flow risk NDPI_MISMATCHING_PROTOCOL_WITH_IP 2025-10-18 00:06:26 +02:00
Luca Deri
97c0bbb039 Improved alert formatting 2025-09-28 10:12:36 +02:00
Luca Deri
0e4014d7bf Minor formatting changes 2025-09-27 22:28:14 +02:00
Luca Deri
e13a7208e8 Improved alert reporting 2025-09-27 15:37:12 +02:00
Luca Deri
681d7703c9 Impoved alert formatting 2025-09-11 19:30:07 +02:00
Luca Deri
bdbf22de07 Improved AS changes script 2025-09-11 18:01:08 +02:00
Luca Deri
fe25a7a531 AS ranking alert changes 2025-09-11 17:04:54 +02:00
Alfredo Cardigliano
5fd9089eeb Add alert details page to AS alerts 2025-09-11 15:51:44 +02:00
Alfredo Cardigliano
94ef20b5d6 Safety check 2025-09-11 12:53:42 +02:00
Luca Deri
810ac15922 Fixed AS ranking alert 2025-09-09 23:09:33 +02:00
Luca Deri
e7dbf49932 AS ranking changes 2025-09-09 16:54:32 +02:00
Manuel Ceroni
d3b3a6b681
Removed AS from the message of the AS ranking changed alert (#9633) 2025-09-08 11:55:15 +02:00
Manuel Ceroni
837dc962b6
Implemented AS ranking changed alert (#9626) 2025-09-08 10:11:13 +02:00
Manuel Ceroni
62ef822ad4
Changed the message of the ASN Traffic Rule Alert (#9563) 2025-08-28 12:47:43 +02:00