Profile recommendations

This commit is contained in:
larssand
2026-06-30 08:55:15 +02:00
parent d99fe24b84
commit f2385a00a9
5 changed files with 158 additions and 12 deletions

View File

@@ -2,6 +2,7 @@ from __future__ import annotations
from .logs import THREAT_ACTIONS
from .models import LogEvent
from .normalization import canonical_value
DETECTOR_MINIMUMS = {
@@ -14,7 +15,7 @@ DETECTOR_MINIMUMS = {
def event_detector_categories(event: LogEvent) -> tuple[str, ...]:
fields = event.fields
action = event.action
event_id = fields.get("eventid", fields.get("event_id", fields.get("winlog_event_id", "")))
event_id = canonical_value(fields, "eventid")
categories: list[str] = []
if action in {"fail", "failed", "failure", "login_failed", "logon_failed", "authentication_failed"} or event_id == "4625":
categories.append("auth_failure")