EventLens: publish v1.1.0 application and standalone Compose

Includes campaign summaries, expanded Windows event correlation, worker-based redaction, updated demo assets and a local-only Compose example.

Publish curated EventLens source from 6a2ca12f81a2dcf816c61a86bd8811fcc95e8d8d
This commit is contained in:
Public Source Publisher committed 2026-11-20 13:15:35 +01:00
1 parent c0ade21029
commit 4e282639a4
63 files changed
+7381 -1420

No files matched your search

+36 -2
View File
@@ -3,7 +3,11 @@ from typing import Literal
from pydantic import BaseModel, Field, field_validator, model_validator
Category = Literal["system", "service", "network", "authentication", "application", "crash", "other"]
Category = Literal[
"system", "service", "network", "authentication", "security", "application", "crash", "other"
]
Severity = Literal["critical", "error", "warning", "info"]
AuditOutcome = Literal["success", "failure"]
ParseStatus = Literal["complete", "partial", "failed"]
TimestampSource = Literal["event", "record", "missing", "invalid"]
@@ -20,6 +24,7 @@ class NormalizedEvent(BaseModel):
computer: str = Field(default="", max_length=256)
category: Category = "other"
summary: str = Field(default="", max_length=512)
outcome: AuditOutcome | None = None
fields: dict[str, str] = Field(default_factory=dict, max_length=200)
@field_validator("timestamp")
@@ -49,11 +54,31 @@ class IncidentCluster(BaseModel):
end: datetime | None = None
title: str = Field(max_length=256)
category: Category
severity: str = Field(max_length=32)
severity: Severity
reasons: list[str] = Field(max_length=8)
evidence_event_ids: list[str]
original_count: int = Field(ge=1)
compressed_count: int = Field(ge=1)
campaign_id: str | None = Field(default=None, max_length=128)
class Campaign(BaseModel):
"""Consecutive incidents of one rule and grouping key, linked for summary only.
Incident windows stay bounded by their rule span; a campaign only states
that the same rule fired for the same known dimensions in adjacent windows.
"""
id: str = Field(max_length=128)
rule_id: str = Field(max_length=128)
title: str = Field(max_length=256)
category: Category
severity: Severity
start: datetime
end: datetime
incident_ids: list[str] = Field(min_length=2)
event_count: int = Field(ge=2)
reasons: list[str] = Field(max_length=8)
class ParseIssue(BaseModel):
@@ -74,10 +99,19 @@ class ParseStats(BaseModel):
truncation_reason: str | None = Field(default=None, max_length=64)
duration_ms: int = Field(ge=0)
issues: list[ParseIssue] = Field(default_factory=list)
issues_truncated: bool = False
issue_counts: dict[str, int] = Field(default_factory=dict)
class SourceInfo(BaseModel):
sha256: str = Field(pattern=r"^[0-9a-f]{64}$")
size_bytes: int = Field(ge=0)
class AnalysisResponse(BaseModel):
source: str
events: list[NormalizedEvent]
incidents: list[IncidentCluster]
campaigns: list[Campaign] = Field(default_factory=list)
parse: ParseStats | None = None
source_info: SourceInfo | None = None