Commit graph

2732 commits

Author SHA1 Message Date
Simone Mainardi
4524029e1a Implements handling of ntop user ids 2021-05-13 19:27:08 +02:00
Simone Mainardi
bc6008be28 Reports all alerts inside a flow alert (not jsut the predominant)
Implements #5316
2021-05-13 15:51:05 +02:00
Simone Mainardi
6ae7664de0 Fixes missing interface and host score timeseries
Fixes #5300
2021-05-12 17:17:57 +02:00
Simone Mainardi
8cf7635fb6 Calibrates scores associated to flow risks 2021-05-12 15:10:52 +02:00
Simone Mainardi
cb8cd3d8f6 Fixes default scores for flow-risk-based alerts
Fixes #5315
2021-05-12 13:04:58 +02:00
Simone Mainardi
bcb38cf2c7 Harmonizes scores across all flow callbacks
Addresses #5315
2021-05-12 12:25:12 +02:00
Alfredo Cardigliano
ef07331395 Add support for --cluster-id 2021-05-12 10:25:12 +02:00
Simone Mainardi
bb3f8ed168 Implements efficient unexpected_new_device alert 2021-05-11 19:03:40 +02:00
Simone Mainardi
33495e0188 Fixes system interface selection mixed between Lua and C++ 2021-05-11 12:51:34 +02:00
Matteo Biscosi
c9b08d52a0 Implemented attacker and victim column
Implements #5310
2021-05-11 12:46:49 +02:00
Simone Mainardi
457af5d222 Fixes flapping of Lua-triggered engaged alerts
Fixes #5304
2021-05-10 15:18:19 +02:00
Alfredo Cardigliano
4d9d2331d4 Fix ifid range in interface_alerts schema (fix #5295) 2021-05-10 15:08:47 +02:00
Alfredo Cardigliano
450b6c4575 Remove AlertsManager (no longer used). Add back entity value or 5-tuple to exported alerts (fix #5285) 2021-05-10 10:57:43 +02:00
Alfredo Cardigliano
e3708bf017 Move buildSqliteAllowedNetworksFilters to Utils as AlertsManager is going to be removed 2021-05-10 10:45:49 +02:00
Simone Mainardi
ec5a92514d Fixes and simplifies getters of engaged alert counters 2021-05-07 15:06:55 +02:00
Simone Mainardi
7dea0f7f35 Implements alert badges on top of the alerts page 2021-05-07 11:16:05 +02:00
Simone Mainardi
ec06e6568f Simplifies and keeps per-family alert counters 2021-05-07 10:21:32 +02:00
Simone Mainardi
b54e46ad14 Fixes crash upon use of unsupported function 2021-05-06 17:44:50 +02:00
Simone Mainardi
917a3add9f Removes debug flag flow_only_interface 2021-05-06 11:51:50 +02:00
Alfredo Cardigliano
adc665c847 Cleanup get proto name functions. Add master proto to flow alerts. 2021-05-06 10:31:16 +02:00
Alfredo Cardigliano
8d1edf226e Add score to AlertFifoItem to avoid json parsing when exporting in json 2021-05-06 09:37:22 +02:00
Simone Mainardi
5fab173ba2 Updates default private nets with 169.254/16 2021-05-06 09:25:28 +02:00
Alfredo Cardigliano
127329ef12 Compute host alert score as sum of cli/src for consistency with flow score 2021-05-05 17:52:43 +02:00
Simone Mainardi
02934faf6e Optimizes flow callbacks (saves 24 bytes per flow) 2021-05-05 16:55:38 +02:00
Alfredo Cardigliano
77bd43765c Cleanup alert on score 2021-05-05 16:25:01 +02:00
Simone Mainardi
ef61b6db4a Fixes for descriptions of blacklisted and suspicious 2021-05-05 15:23:11 +02:00
Alfredo Cardigliano
ef65671794 Remove alert severity from Alerts. Always use score (convert to severity when required for UI or similar) 2021-05-05 09:54:14 +02:00
Simone Mainardi
83f0c38937 Massive cleanup of old alerts code 2021-05-03 18:16:46 +02:00
Alfredo Cardigliano
8dd0f903a1 Move host log alerts to host alerts. Fix syslog alerts. 2021-05-03 17:37:18 +02:00
Simone Mainardi
44861bcc0c Fixes deletion of old alerts 2021-05-03 16:48:30 +02:00
Alfredo Cardigliano
509f6a9939 Remove alerts for suspicious TCP/SYN flows leading to false positives (#5255) 2021-04-30 13:04:35 +02:00
Alfredo Cardigliano
92b4ae4828 Alerts DB housekeeping 2021-04-29 19:31:49 +02:00
Simone Mainardi
2e8a854d63 Refactors OtherAlertableEntity into individual classes 2021-04-28 18:14:04 +02:00
Simone Mainardi
2278926da4 Merge branch 'alerts-store' into dev 2021-04-26 19:59:30 +02:00
Simone Mainardi
c7082a4647 Implements new alerts database and drilldown
alert store skeleton

Alert database type changes

Implement alert store for host alerts. All alert store skeletons.

Fix class method access

Enable tracing

Implements simple queries for host alerts

Implement flow alert store

Fixes escaping of INSERT queries

Flow alerts database schema fixes

Adds escaping for alert JSON in flows and hosts

Implements queries .select() for alerts store

Adds limit and offset to perform paginated queries

Adds new REST getter for flow alerts

Name changes alert_severity to severity, alert_json to json

Fixes alert message not shown

Implement active monitoring alerts store

Implements sort of queries in the new dataabase

Changes alert_type to alert_id

Implement mac alerts store

Fixes flow alert messages

Implement system alerts store

Implement snmp alert store

Add missing items to the flow alerts

Add missing items to the host alerts

Add missing items to the mac alerts

Implements COUNT aplerts api

Add device_name to snmp alerts

add flow alerts templates

updated gitignore

fix for missing order field

add families defined in `alert_store_schema.sql`

Reworks and simplifies alert store subclasses

Implements REST API to fetch alert timeseries

Fixes date in flow REST api

Host alert json fix

Add get/host/alert/list.lua

Move alert/list.lua to alert/past/list.lua

Add alert/past/list.lua for all alert families

Add entity_id to system table to identify the alert type based on <alert_id, entity_id>

Add missing field

Implements facilities to query engaged alerts via REST

Handle both historical and past alerts in alert/list.lua

Fix count

Update params of select_historical

Implement method to add family-specific filters

Add alert/ts.lua for all alert families

Implements facilities and REST endpoints to delete alerts

Implements ordering of alert queries

Fix add_order_by group_by

Rest API tests update

Tests output update

Remove debug trace

Use alert_id instead of type. Add more flow alert info.

Update http lint

Format obsolete tlv version alerts. Add more host info.

Add row_id to list of alerts

Fix selection of engaged alerts

Add test for mac alerts (bcast domains)

Removes attempt to format alerts as flow alerts

Fixes interface selection for active monitoring

Update test output with rest changes

Add more fields to be ignores

Set alert count to 1 for the time being

add bar timeseries chart

add apexcharts

improvements on timeseries bar chart

registered chart callbakcs

working on alert page

fix for date format

Fixes acrive monitoring REST API

Fixes alignment of grouped alert data

Additional fix for alert histogram

remove useless if

formatting alerts page

fixes on flows alert stats table

rename local networks to device

format host pagie in alert_stats

add tag support for hosts and flow

implemented single delete action

add release modal

Fixes format of threshold cross interface alerts

Fixes wrong increase of dropped alerts

Implements exclusion list for invalid dns queries

Reworks exclusions lists for hosts and flows

Addresses #5212
Addresses #5113

Adds host alert keys in host callbacks definitions

Adds alert ids to flow callbacks

fix for not working button (#5215)

Fixes reported timeseries name

removed any additional button inside chart's toolbar (#5200)

Add tables for interfaces, networks, users to the schema. Skeleton alert_store classes

fixed broken range picker layout in firefox (#5199)

Alert insert fixes

Add more info to network alerts

Add rest endpoint for interface, network, user alerts

Fix endpoint selection in alerts_stats

Unifies columns between engaged and past alerts

Fixes Missing mandatory 'alert_granularity'

Minor fixes for missing alert_severity

Fixes arithmetic on a nil value (field 'last_seen')

Fixes get/system/alert/list.lua

use tstamp for column names (#5221)

Implements host alert formatter

Add alerts_store format_record_common

Use common format_record for am, system alerts

Use common format_record for all alerts

Fixes formatting of alerts of all types

Fixes nil in function 'hostinfo2label'

fixes on disable modal

add pages for network, user and interface endpoint (#5224)

Set alert_entity in all classes

Unifies influxdb alerts into system alerts

Addresses #5224

Unifies process alerts into system alerts

Addresses #5224

Cleanup unused periodicActivityEntity

Unifies category lists alerts into system alerts

Addresses #5224

Aligns new alert enums

Addresses #5224

Fixes alert page links

Fixes insertion of interface alerts

Implement filters for Host alerts

Fixes active monitoring alerts not triggering

Implement filters on flow alerts

Fixes for internal alerts timestamp and subtype

implements disable for the alerts

formatted alert disable label

Add address and device type to mac alert records

fix for delete alert toggle

Fix access to entity_val in alert_unexpected_new_device

add mac address and device type inside table

Fixes for new alert fields not handled

Fixes alert_definitions to handle new fields

Add ip/port to snmp alert records

Implements deletion of stored flow alerts

Add alert_name to all alert records via rest. Fix duration.

fixes for snmp tab

Implements delete of past host alerts

Add name to snmp alert records

fixes on system tab

Fix Date column

fixes link

Update menu

Fixes bad argument #3 to 'format' in snmp alerts

updated interface link

new alerts url for host (#5228)

Fixes sort of engaged alert

Minor cleanup

Fixes data returned for local network alerts

Fix duration for one shot. Note.

Fix duration override

Fixes interface selection for system alerts

Move host alert page

fixes for local network tab

Minor fix

Fix engaged host alerts

fixes on user tab

Fix alert_user_activity message
2021-04-26 19:41:34 +02:00
Matteo Biscosi
e39f265f93 Fixes not correctly shown Thpt and improved performancies
Implements #5195
2021-04-23 11:19:28 +02:00
Matteo Biscosi
b0d21b0f3b Reduced update time interval for traffic map 2021-04-21 18:07:51 +02:00
Simone Mainardi
fb61a2a73d Fixes enable/disable user scripts with editions
Fixes #5191
2021-04-21 10:48:49 +00:00
Matteo Biscosi
888133ccb2 Removed 'duplicated' flows stats function retriever
Implements #5195
2021-04-21 10:56:14 +02:00
Matteo Biscosi
8e39725536 Implements notice severity in case of broadcast/multicast traffic
Implements #5185
2021-04-20 10:24:52 +02:00
Luca Deri
3dda9ba905 Added FLOW_VERDICT handling 2021-04-19 23:49:23 +02:00
Matteo Biscosi
3cb65f4b49 Added reset button for blacklisted flow stats 2021-04-19 18:46:02 +02:00
Luca Deri
76afff76d1 Created timeseries for blacklisted hosts 2021-04-18 15:28:31 +02:00
Luca Deri
adc00cbdc3 Added counter for tracking flows with balcklisted hosts 2021-04-18 11:44:38 +02:00
Matteo Biscosi
8f984b3f85 Fixes slow traffic map update
Implements #5178
Implements #5180
2021-04-18 11:22:06 +02:00
Alfredo Cardigliano
7bce66e801 Increase tree counters to 32 bit 2021-04-16 11:38:28 +02:00
Matteo Biscosi
64179273cf Added get traffic map stats per host 2021-04-16 11:37:31 +02:00
Matteo Biscosi
87d5cd2ff0 Added nDPI stats per host getter 2021-04-16 10:23:09 +02:00
Matteo Biscosi
1a30770933 Initial implementation of NTP and DNS traffic alert 2021-04-15 17:40:17 +02:00
Luca
c24938cf11 Added --version-json for printing license information in JSON format 2021-04-14 12:30:53 +02:00