From c563367978ae8d1c459f24fe7dfbab36f7b9f15f Mon Sep 17 00:00:00 2001 From: jbergner Date: Sat, 25 Apr 2026 21:32:19 +0200 Subject: [PATCH] =?UTF-8?q?Anpassungen=20f=C3=BCr=20echte=20Incidents,=20d?= =?UTF-8?q?amit=20diese=20w=C3=A4hrend=20der=20Lernphase=20nicht=20in=20da?= =?UTF-8?q?s=20dauerhafte=20Trainings-Set=20aufgenommen=20werden.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- deploy/mariadb/init/001-schema.sql | 17 ++- main.go | 161 ++++++++++++++++++++++++++++- 2 files changed, 176 insertions(+), 2 deletions(-) diff --git a/deploy/mariadb/init/001-schema.sql b/deploy/mariadb/init/001-schema.sql index 3d0b42e..4c1cccb 100644 --- a/deploy/mariadb/init/001-schema.sql +++ b/deploy/mariadb/init/001-schema.sql @@ -1380,4 +1380,19 @@ CREATE TABLE detection_suppressions ( ); CREATE INDEX idx_suppressions_lookup -ON detection_suppressions (enabled, rule_name, hostname, channel_name, event_id); \ No newline at end of file +ON detection_suppressions (enabled, rule_name, hostname, channel_name, event_id); + +CREATE TABLE baseline_exclusions ( + id BIGINT AUTO_INCREMENT PRIMARY KEY, + hostname VARCHAR(255) NOT NULL DEFAULT '', + channel_name VARCHAR(255) NOT NULL DEFAULT '', + event_id INT NOT NULL DEFAULT 0, + reason TEXT NULL, + created_by VARCHAR(128) NOT NULL DEFAULT '', + created_at TIMESTAMP(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6), + expires_at TIMESTAMP(6) NULL, + enabled TINYINT(1) NOT NULL DEFAULT 1 +); + +CREATE INDEX idx_baseline_exclusions_lookup +ON baseline_exclusions (enabled, hostname, channel_name, event_id, expires_at); \ No newline at end of file diff --git a/main.go b/main.go index 0898cb4..1c7bb6d 100644 --- a/main.go +++ b/main.go @@ -488,6 +488,7 @@ a { +
@@ -502,6 +503,7 @@ a { False Positives Legitim Resolved + Confirmed Incidents
@@ -543,6 +545,7 @@ a { +