Commit graph

392 commits

Author SHA1 Message Date
Matteo Biscosi
e1bbb5632b Improved host map performances and possibility to change label names 2021-04-20 16:41:38 +02:00
Luca Deri
7876bfa0c1 Added host map for blackedlisted hosts flows 2021-04-18 15:37:53 +02:00
Matteo Biscosi
8bf28a6033 Fixes invalid label in host map names
Implements #5177
2021-04-18 11:22:06 +02:00
gabryon99
491aee29c9 enbaled autoscaleYaxis 2021-04-17 10:18:12 +02:00
gabryon99
fe073cff35 add forceNiceScale param to yaxis (#5182) 2021-04-17 10:10:34 +02:00
gabryon99
322149bd48 add reload button and bubble_mode to the url (#5181) 2021-04-17 10:08:28 +02:00
Matteo Biscosi
89353e32fb Fixes traffic map crash hide entries if traffic map disabled 2021-04-16 16:05:53 +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
b30620ef49 Added DNS and NTP Host Map 2021-04-15 18:36:57 +02:00
gabryon99
c23590832a migrated charts from chart.js to apexcharts 2021-04-13 14:07:19 +02:00
Luca Deri
3dc84acdec Added hosts anomalies in traffic stats page 2021-04-10 11:01:18 +02:00
gabryon99
15e601e797 edit stub REST endpoint (#5151) 2021-04-07 15:29:41 +02:00
gabryon99
d20b1e4739 implemented stub for the new alerts page 2021-04-07 12:53:07 +02:00
Simone Mainardi
a0a4843dc7 Adds REST getter for host alerts
Partially addresses #5153
2021-04-07 11:34:19 +02:00
Simone Mainardi
b12fc91a6b Merge branch 'host-user-scripts' into dev 2021-04-03 10:18:09 +02:00
Luca
a4047c5a1c Implements flow callbacks and alerts in C++
Scaffolding code of the host scripts

Scaffolding code for host alerts

Adds host_callbacks/ for .cpp files

Implements all classes for host callbacks

Removes pro/enterprise host callbacks

Adds typedefs with callback deltas

Compilation fix

Creates instances of host callbacks in loader

Link fix

Removes redundant/non-necessary host alerts

Merges Scan and Flood callbacks together

Removes outdated API files

Refactors alert keys into entity|id

Refactors all flow alert_{...} into flow_alert_{...}

Refactors C++ flow alert_{...} into flow_alert_{...}

Reworks alert ids to include an entity type

Cleanup and merge alertTypeRaw with getAlertType

Minor fix

Refactors alert definitions and keys into sub directories

Implement host alert callback execution and trigger/release logic

Update callbacks API

Adds base CallbacksLoader for {Host,Flow}CallbacksLoader

Implements load of host user scripts with periodicities

Implements runtime reload of host callbacks

Add logic for periodic callbacks

Add 'expired' flag to host alerts

Implements execution of host callbacks and SYN flood checks

Adds triggerAlertAsync calls to SYNFlood

Implements JSON host alert generation info

Handle callback getPeriod. Optimize callback lookup.

Implements host recipients in C++

Add callback status

Define destructor

Iterator fixes

Cleanup host Lua calls (now performed in C++)

Changes to show new host alerts in SQLite

Adds release/engage action on alert JSON

Move AlertableEntity to OtherAlertableEntity, inheriting from a new AlertableEntity. Add HostAlertableEntity.

Implements SYN Flood Attacker with params

Uses parametrized thresholds to trigger syn flood alerts

Implements build alert of both attacker and victim

Implement HostAlertableEntity

Implements SYN scan attacker/victim alerts

Implements flow flood attacker/victim alerts

Removes a debug flag

Add virtual allocStatus

Add HostAlert disableAutoRelease()

Add Ãexplicit releaseAlert()

Implements SYNFloodHostCallbackStatus

Implements SYNScanHostCallbackStatus

Implements FlowFloodHostCallbackStatus

Change trigger API to handle cli/src score

Implements {DNS,SMTP,NTP}ServerContactsAlert

Reworks ServerContacts host alerts

Implement exclusion bitmaps for host alerts

Implements {SMTP,DNS,NTP}ServerContactsAlert

Adds host_info to the generated alert JSON

Minor cleanup

Optimize access to callback status

Move RepliesRequestsRatio to pro

Rework triggerAlert on host to avoid multiple call and unneeded status data

Compilation fix

Reworked host alerts API (wip)

Cleanup unused host callbacks

Compilation fixes

Finishes backend implementation of host alerts exclusions

Rework host callbacks executor

Implements disable of host alerts

Port SYNFlood to the new api

Cleanup

Reduce duplicated code

Comments

Port ServerContacts to the new api

Clenaup

Adds parsing of configuration for host callbacks

Port SYNScanAlert to the new API

Port FlowFlood to the new API

Cleanup unused HostAlert getName

Reworks DNSRequestsErrorsRatioAlert

Adds JSON for DNSTrafficAlert

Adds FlowsAlert

Adds P2PTrafficAlert

Add RepliesRequestsRatioAlert

Adds ScoreAlert

Adds ThroughputAlert

Adds TrafficAlert

Fixes for scan/flood alerts

DNS ratio alert support

Add HTTP stats getters

Implements deltas for many host callbacks

Host score inc

Adds missing Alert params to host alerts

Release all host alerts on idle

Refactors score classes

Implements class Score to contain scores for hosts, flows, etc

Adds scores to VLANs, Networks, ASes and Countries

Host callbacks can trigger a single alert now

FlowFlood, SYNFloo, SYNScan now inherit from FlowHits

Move severity and score to constructor

Add else branch to hits callbacks

Alert definition update for flows_flood, syn_flood, syn_scan

Update field name

Engaged alert init

Adds score incs/decs for AS, VLAN, country, os and network

Restore network scripts

Restored other alert definitions for floods

Handle decreasing alert score

Removes include

Rename flows_flood to flow_flood for consistency

Restored alert_tcp_syn_flood_victim alert_tcp_syn_scan_victim definitions

Fixes for non-host engaged/release alerts

Cleanup LuaEngineFlow and LuaEngineHost classes

Fixes old calls to host lua during shutdown

Removes AlertCheckLuaEngine instance

Fixes purging of flows

Fixes alerts release upon shutdown causing wrong uses

Removes a debug flag

Fix getNumEngagedAlerts

Cleanup unnecessary host callbacks

Removes array of callback statuses inside host

Bitmap fixes

Refactors Bitmap into Bitmap128

Implements 16-bits bitmaps for host alerts

Adds class HostCallbacksStatus

Moves callback status p2p and DNS inside HostCallbacksStatus

Removes unused callbacks in typedefs

Minor cleanup

Adds trigger/release for DNS/p2p alerts

Reworks UI of hosts user scripts

Rename HostCallbackType to HostCallbackID, getType to getID, others
2021-04-03 09:53:15 +02:00
Luca Deri
fe74fb4f14 Fixed traffic stats chart in flows 2021-04-01 13:50:11 +02:00
Matteo Biscosi
aa565a3c41 Added throughput chart into filtered flow page 2021-04-01 11:51:58 +02:00
Simone Mainardi
ac0ff6fb89 Reworks get fingerprint data 2021-03-24 11:42:08 +01:00
Simone Mainardi
0eeb32bf8a Fixes invalid TLS host pagepage
Fixes #5121
2021-03-24 11:33:01 +01:00
Luca Deri
d7a1a9a38a Added cap to number of elements in the map 2021-03-23 18:13:27 +01:00
Alfredo Cardigliano
06766018c9 Add rest endpoints to enable/disable user scripts 2021-03-23 16:10:07 +01:00
Luca Deri
fb051bb7a9 Line cleanup 2021-03-23 12:58:14 +01:00
gabryon99
86047585e7 fixed arp table 2021-03-22 16:37:04 +01:00
Francesco Carli
60f309ae52
Use datatable for ARP data (#5117)
* Creating datable for arp data

* Delete ntopng-config

* Remove debug tracings

* Add localization
2021-03-22 16:02:00 +01:00
gabryon99
d164d53f97 add bar chart to test picker page 2021-03-17 14:07:58 +01:00
Luca Deri
1f4c8212e6 Added score in hosts map 2021-03-14 23:52:40 +01:00
Timotheus Bachinger
d34eba0f77
Fix table access in REST call (#5103)
... which resulted in alert conts key not beeing transmitted
2021-03-12 17:33:46 +01:00
gabryon99
88609de875 updated style range picker and added arrow buttons 2021-03-12 11:08:15 +01:00
gabryon99
59725e0355 add a test page containing datetimepicker range 2021-03-09 13:50:15 +01:00
gabryon99
fcfba00eff add redirect url to map.lua 2021-03-08 11:29:51 +01:00
gabryon99
be38dfa71c moved map.lua under rest/v1/charts 2021-03-08 11:27:56 +01:00
Alfredo Cardigliano
e86fffcc58 Add message to restart ntopng after importing all conf. Improve max post data check. Remove unnecessary exported modules. 2021-03-08 11:14:44 +01:00
Alfredo Cardigliano
e90597f3e1 Fix export of entire configuration (#5083) 2021-03-08 09:43:25 +01:00
Luca Deri
c80dc8af00 Implemented traffic ratio in hosts map
Completed hosts map localization
2021-03-05 20:00:08 +01:00
gabryon99
9df8afc6cb refactored hosts map data provider (#5080) 2021-03-04 19:58:10 +01:00
Alfredo Cardigliano
4549dfc4ac Add logging of failure reason for import export 2021-03-03 18:02:07 +01:00
Luca Deri
97d1a12661 Removed debug trace 2021-03-02 18:47:40 +01:00
Luca Deri
b47a801447 JA3 TLS fingerprints are not based on AJAX 2021-03-02 18:44:40 +01:00
Simone Mainardi
3659188002 Simplifies widgets backend 2021-03-02 15:06:20 +01:00
Simone Mainardi
174cedcb95 extends get/alert/ts.lua to retrieve per-host counters 2021-03-02 09:03:05 +01:00
Alfredo Cardigliano
fa311e3ade Rework user script working sets (a single configset is supported now) 2021-03-01 15:37:45 +01:00
Simone Mainardi
9ae7f01ccc Fixes REST ts.lua returning errors with just no data available
Fixes #5061
2021-03-01 13:03:53 +01:00
Simone Mainardi
4becc28029 Fixes alert ts shifted by 1-h due to Lua arrays indexed from 1
Fixes #5072
2021-03-01 12:58:19 +01:00
Matteo Biscosi
6a32b6ca6d Changed exclude alert path 2021-02-17 18:25:21 +01:00
Matteo Biscosi
8b890a4411 Implemented filter alert params check done in Ajax 2021-02-17 18:14:33 +01:00
Simone Mainardi
fc2be1fb40 Adds REST API and doc for broadcast domains (necessary for tests) 2021-02-08 18:58:17 +01:00
Simone Mainardi
069148753a Implements heatmap widget 2021-01-26 17:53:39 +01:00
Simone Mainardi
99edf545e5 Implements ability to aggregate widgets data 2021-01-20 16:24:02 +01:00