Commit graph

1447 commits

Author SHA1 Message Date
gabryon99
6ae469ff98 initial work for new dashboard 2021-04-12 09:10:20 +02:00
gabryon99
efbf5e599f auto width for the actions columns 2021-04-11 23:15:50 +02:00
Simone Mainardi
c076648286 Disable alerts modal fixes 2021-04-09 15:54:02 +02:00
gabryon99
32a2778f28 removed console.log 2021-04-08 09:52:18 +02:00
gabryon99
3220badb14 fixed download button in nindex_query 2021-04-08 09:52:18 +02:00
Matteo Biscosi
69724f8cdd Implements download link for nindex records 2021-04-08 09:37:35 +02:00
Matteo Biscosi
15c669daa9 Implemented nindex flows download 2021-04-07 19:25:38 +02:00
gabryon99
3de0d4a6f9 Moved records inside rsp.records (#5151) 2021-04-07 15:29:41 +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
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
gabryon99
4b794a8d6b add visible_columns paramater and removed columns from get request 2021-04-02 14:21:58 +02:00
gabryon99
8fa4433fb3 fixed duplicated filter bug in nindex page 2021-04-02 11:34:09 +02:00
Matteo Biscosi
7a5869f729 Updated minify and changed top talkers rest path 2021-04-01 12:20:53 +02:00
Matteo Biscosi
aa565a3c41 Added throughput chart into filtered flow page 2021-04-01 11:51:58 +02:00
gabryon99
2ca309900d add permanent link button 2021-03-30 11:34:03 +02:00
gabryon99
f96b651100 add filter in permalink 2021-03-30 11:30:50 +02:00
gabryon99
a431e57d68 fixed bug on range picker 2021-03-30 11:09:36 +02:00
gabryon99
5970fdc02f add operators in nindex_stats 2021-03-29 12:56:27 +02:00
gabryon99
5f27fb037b changed , to . 2021-03-26 18:44:02 +01:00
gabryon99
7f389412f4 fixed typo 2021-03-26 18:31:55 +01:00
gabryon99
e30230bfe2 added <1 seconds text 2021-03-26 18:30:15 +01:00
gabryon99
13a7808978 minor fixes for tags 2021-03-26 18:20:01 +01:00
gabryon99
9e01ba70ee added new tags 2021-03-26 18:14:18 +01:00
gabryon99
382957457a set pagingType to simple (removes the fast forward button) 2021-03-25 17:49:32 +01:00
gabryon99
e993152112 extended rest_utils api for datatable serverSide rendering 2021-03-25 10:24:07 +01:00
gabryon99
ccf71a8522 disabled search, ordering and set paginType to full 2021-03-25 09:56:12 +01:00
Simone Mainardi
cfbf301e28 Allows builtin recipients to be edited 2021-03-25 09:44:51 +01:00
gabryon99
201e450b7f renamed loading_time into query_duration_msec 2021-03-25 09:41:53 +01:00
gabryon99
25b9d99cd0 minor improvements on nindex_flows.lua 2021-03-25 09:40:21 +01:00
Luca Deri
d216d5573a Added server side datatable handling 2021-03-24 18:10:35 +01:00
Simone Mainardi
6a1600b2eb Adds datatable for HASSH fingerprints 2021-03-24 12:35:20 +01:00
Simone Mainardi
ac0ff6fb89 Reworks get fingerprint data 2021-03-24 11:42:08 +01:00
Luca Deri
728ee37f4c Selected menu item is not highlighted in bold 2021-03-23 22:45:24 +01:00
Luca Deri
a82c4979b9 nIndex query fixes 2021-03-23 19:10:38 +01:00
gabryon99
8467c056b4 prevent tag editing 2021-03-23 14:33:45 +01:00
Matteo Biscosi
5df71d236e Fixes remove all filters into the new nindex page not working 2021-03-23 13:24:20 +01:00
gabryon99
13596ea4e0 updated nindex page template 2021-03-23 12:49:48 +01:00
gabryon99
fb46b93042 added tags inside nindex-search-template 2021-03-23 11:19:15 +01:00
gabryon99
6ead87d958 added chips inside range-picker 2021-03-23 11:19:15 +01:00
Matteo Biscosi
b703f9d65d Updated new nindex raw flows table 2021-03-23 09:51:21 +01:00
gabryon99
3113fb4d29 minor improvements on range picker 2021-03-22 17:24:58 +01:00
gabryon99
10db9565cb improved overlay dark theme 2021-03-22 17:12:43 +01:00
gabryon99
aefcb6d83e added overlay to hide loading 2021-03-22 16:57:08 +01:00
gabryon99
86047585e7 fixed arp table 2021-03-22 16:37:04 +01:00
gabryon99
0c2d4c01e9 changed btn-warning to btn-primary 2021-03-22 16:13:35 +01:00
gabryon99
684d662dd3 fix arp for sorting datatable 2021-03-22 16:04:51 +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
93cbd4c418 fixed ja3 fingerprint sorting 2021-03-22 16:01:36 +01:00