Commit graph

712 commits

Author SHA1 Message Date
Simone Mainardi
3ae6564cba Fixes deletion of active monitoring hosts 2021-06-25 16:34:07 +02:00
Simone Mainardi
63168f5ff2 Implements 'Subject' column for interface alerts
Addresses #5563
2021-06-24 15:51:17 +02:00
Simone Mainardi
48014f74cb Fixes lateral movement alerts poorly formatted
Fixes  #5524
2021-06-22 11:57:17 +02:00
Simone Mainardi
1811f90867 Fixes nil in ghost network alerts
Partially addresses #5534
2021-06-21 11:37:17 +02:00
Simone Mainardi
2e8a6de0fc Major terminology unification (user scripts -> checks) 2021-06-17 12:39:43 +02:00
Simone Mainardi
4a526c3cdf Decouples checks from alerts (removes unnecessary flag is_alert) 2021-06-17 11:43:12 +02:00
Simone Mainardi
25159f0a9b Refactors {host,flow}_callbacks into {host,flow}_checks (lua) 2021-06-16 18:59:07 +02:00
Simone Mainardi
e33af8a23c Refactors script_categories into check_categories (c++ and lua) 2021-06-16 18:43:55 +02:00
Simone Mainardi
76fd315d1b Refactors user_scripts into checks (lua) 2021-06-16 18:02:22 +02:00
Simone Mainardi
483ca921f0 Adds notes to send emails via Gmail in endpoint
Addresses #5480
2021-06-10 09:30:19 +02:00
Simone Mainardi
fc2db1513b Cleanup of unnecessary items in user scripts config. JSON
Fixes #5456
2021-06-08 18:38:58 +02:00
Simone Mainardi
fa3ccb3277 Fixes missing active monitoring measurements in filter
Fixes #5466
2021-06-08 15:20:04 +02:00
Simone Mainardi
a0ff417ed5 Fixes missing active monitoring measurements in filter
Fixes #5466
2021-06-08 15:15:52 +02:00
Simone Mainardi
4343ff9b27 Fixes sort of active monitoring last measurements 2021-06-08 14:47:00 +02:00
Simone Mainardi
79a873564d Fixes alignment of spillover actions column in active monitoring
Fixes #5419
2021-06-08 14:23:56 +02:00
Simone Mainardi
47db845f12 Fixes measurement labels and error messages in active monitoring
Fixes #5414
2021-06-08 11:54:41 +02:00
Matteo Biscosi
eb5090051e Fixes unexpected device connected not working (#5450) 2021-06-07 19:30:02 +02:00
Simone Mainardi
c01483ae67 Unifies button style
Fixes #5330
2021-06-07 15:02:26 +02:00
Simone Mainardi
c407b099ac Cleanup old unused active monitoring import/export code 2021-06-04 15:14:54 +02:00
Simone Mainardi
0f5340e1a3 (C) update 2021-05-31 12:39:02 +02:00
Simone Mainardi
115327eceb Fixes is_infrastructure possibly accessing nil
Fixes #5417
2021-05-28 11:05:08 +02:00
Simone Mainardi
13283eca4b Fixes invisible badges
Fixes #5355
2021-05-19 18:13:12 +02:00
Simone Mainardi
208743c0ba Fixes active monitoring modal poorly styled
Fixes #5359
2021-05-19 17:52:41 +02:00
Matteo Biscosi
ede933a1a2 Fixes dropdowns not working correctly (#5359) 2021-05-19 16:20:57 +02:00
gabryon99
857211933e fix active monitoring modals layout (#5359) 2021-05-19 12:12:55 +02:00
Alfredo Cardigliano
36908af60f Fix dismiss buttons 2021-05-19 09:31:03 +02:00
Simone Mainardi
1dce9e5842 Migrates to Bootstrap 5
Adds bootstrap-5.0.0-beta3-dist

Adds bootstrap-5.0.0

Updates bootstrap-5.0.0-beta3-dist to bootstrap-5.0.0-dist

initial migration to bs v5

porting to bs5

improvements on dropdown menu filter

fixed host map dropdown

removed excessive padding

fix button toggle

re-add blog news

removed text decoration for links

fix button layout (#5348)

remove underscore from href (#5347)
2021-05-18 11:39:59 +02:00
Simone Mainardi
ccb61a7444 Harmonizes remaining hardcoded Lua scores 2021-05-15 11:00:20 +02:00
Matteo Biscosi
323ab56282 Fixes menu entries not showing into health submenu
Implements #5318
2021-05-12 13:00:25 +02:00
Simone Mainardi
d45ab54934 Harmonizes scores for Lua-triggered alerts
Addresses #5315
2021-05-12 12:56:12 +02:00
Simone Mainardi
bb3f8ed168 Implements efficient unexpected_new_device alert 2021-05-11 19:03:40 +02:00
Simone Mainardi
6767a5b8c7 Additional cleanup for system interface handling 2021-05-11 14:13:06 +02:00
Simone Mainardi
33495e0188 Fixes system interface selection mixed between Lua and C++ 2021-05-11 12:51:34 +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
Simone Mainardi
ec5a92514d Fixes and simplifies getters of engaged alert counters 2021-05-07 15:06:55 +02:00
Alfredo Cardigliano
24321cba24 Add mapScoreToSeverity call 2021-05-05 10:40:10 +02:00
Simone Mainardi
bbe6a3de37 Changes set_severity to set_score 2021-05-05 09:59:04 +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
5fc210f664 Move syslog parsing to syslog_utils 2021-05-03 15:47:54 +02:00
Simone Mainardi
bb26afe902 Massive cleanup of flow user scripts into callback_definitions 2021-04-30 15:33:41 +02:00
Simone Mainardi
f6d9be96b5 Makes all remaining user scripts with 1min granularity 2021-04-30 12:20:21 +02:00
Simone Mainardi
77501fac39 Cleanup interface user scripts 2021-04-30 12:15:41 +02:00
Luca Deri
4cf953052b Better language 2021-04-26 21:19:42 +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
5b486bf8e4 Lowered alert severity for unsafe protocol
Implements #5185
2021-04-20 09:45:07 +02:00
Alfredo Cardigliano
ff6a69250b Add device_name to snmp alerts 2021-04-14 18:37:05 +02:00
Simone Mainardi
c0ad0ff162 Simplifies host callbacks lua structure with callback_definitions/host 2021-04-13 10:53:15 +02:00
Alfredo Cardigliano
7a527df9e2 Update tests for suspicious tcp probing 2021-04-12 19:16:52 +02:00