SecureWatch SIEM Documentationยถ

๐Ÿ“š Documentation Overviewยถ

This directory contains comprehensive documentation for the SecureWatch SIEM platform v2.1.0, covering all aspects from architecture design to deployment guides and testing strategies. All documentation has been updated to reflect the current consolidated architecture and enhanced features.

๐Ÿš€ Quick Navigationยถ

๐Ÿ“‹ Documentation Indexยถ

๐Ÿ—๏ธ Architecture & Designยถ

๐Ÿ›ก๏ธ EVTX Analysis & Attack Detectionยถ

๐Ÿ” Analytics & Visualizationยถ

๐Ÿš€ Deployment & Operationsยถ

๐Ÿ“‹ Product Requirements & Specificationsยถ

๐Ÿงช Testing & Quality Assuranceยถ

๐Ÿ›ก๏ธ Security & Complianceยถ

  • SECUREWATCH_BUG_ANALYSIS.md - โญ Security Analysis comprehensive vulnerability assessment and remediation

  • SECURITY_CONFIGURATION_GUIDE.md - โญ Security Configuration essential setup for production deployment

  • Security Hardening Guide - Advanced production security practices (Coming Soon)

  • Compliance Framework - SOX, HIPAA, PCI-DSS, GDPR compliance mapping (Coming Soon)

๐Ÿ› ๏ธ Support & Troubleshootingยถ

๐Ÿ”ฅ Latest Updates & Key Featuresยถ

๐Ÿ—๏ธ Architecture Consolidation v2.1.0 (June 2025) - TypeScript Fixes Complete ๐Ÿš€ยถ

MAJOR CONSOLIDATION COMPLETED - 95,000+ LINES REMOVED + ALL TYPESCRIPT ERRORS RESOLVED

โœ… Service Architecture Optimized:

  • Consolidated from 12+ services to 8 core services

  • Merged analytics-api functionality into analytics-engine (Port 4009)

  • Eliminated duplicate frontend implementations

  • Standardized all packages to @securewatch/* naming convention

  • Updated all services to version 2.1.0

โœ… TypeScript Compilation Fixes (December 2025):

  • โœ… Next.js 15 Route Handlers: Fixed async params pattern for all dynamic routes

  • โœ… KQL Engine Module: Created comprehensive type declarations for import resolution

  • โœ… Interface Compatibility: Resolved Windows event log type inheritance conflicts

  • โœ… API Client: Replaced invalid timeout option with AbortController pattern

  • โœ… Notification Types: Created type adapters for notification system compatibility

  • โœ… Component Types: Fixed scope issues and Progress variant props

  • Result: Clean TypeScript compilation across all packages (80+ errors resolved)

โœ… Build System Stability:

  • Zero TypeScript compilation errors across all services

  • Fixed React hydration mismatches in frontend

  • Eliminated duplicate export conflicts

  • Improved build performance and reliability

  • All services compile and run successfully

โœ… Enterprise Features Enhanced:

  • Maintained all 25+ security modules with type safety

  • Retained 50+ enterprise use cases with full TypeScript support

  • Enhanced performance with TanStack Virtual

  • Professional dark theme and branding

  • Authentication flow improvements

โœ… Infrastructure Improvements:

  • Added comprehensive Makefile with 30+ commands

  • Enhanced CLI dashboard with service control

  • Improved Docker configurations with resource limits

  • Updated documentation to reflect current architecture

  • Git repository fully synchronized with latest fixes

๐Ÿ“‹ Current Service Count: 8 core services (down from 12+) ๐Ÿ”ง Build Status: โœ… All TypeScript compilation successful ๐Ÿ” Architecture Details: See MONOREPO_SETUP.md ๐Ÿš€ Quick Start: See QUICK_START.md ๐Ÿ“‹ Deployment: See DEPLOYMENT_GUIDE.md

Performance & Scalability Optimizations (June 2025) ๐Ÿ†•ยถ

Enterprise-grade performance enhancements for handling large-scale SIEM operations:

โšก EventsTable Virtualizationยถ

  • TanStack Virtual Integration: Handles 100K+ rows with smooth scrolling

  • Row Virtualization: Only renders visible rows for optimal memory usage (ROW_HEIGHT: 80px)

  • Performance Metrics: Overscan 10 rows, efficient memory usage with viewport-based rendering

  • Search & Filter Optimization: Fast client-side filtering with virtual scrolling

  • Implementation: /frontend/components/explorer/EventsTable.tsx - Complete virtualization overhaul

๐Ÿ—๏ธ TimescaleDB Continuous Aggregatesยถ

  • Pre-computed Metrics: Real-time dashboards with sub-second response times

  • Automated Rollups: 6 continuous aggregates covering 5-minute to daily intervals

  • Memory Efficiency: Reduced query load with materialized views

  • Performance Boost: 10x faster dashboard queries for time-series data

  • Implementation: /infrastructure/database/continuous_aggregates.sql - 6 materialized views

    • realtime_security_events (5-minute buckets)

    • hourly_security_metrics (1-hour buckets)

    • daily_security_summary (daily buckets)

    • source_health_metrics (source monitoring)

    • alert_performance_metrics (alert analytics)

    • compliance_event_summary (compliance tracking)

๐Ÿ”„ Async Job Processing Systemยถ

  • Query-Processor Service: Dedicated microservice for long-running queries (Port 4008)

  • Job Queue Management: Redis-backed Bull queue with priority scheduling

  • WebSocket Notifications: Real-time job status updates and progress tracking

  • Concurrent Processing: Configurable worker pools for parallel query execution

  • Query Support: SQL, KQL, and OpenSearch queries with validation

  • Implementation: /apps/query-processor/ - Complete microservice with job management

๐Ÿ“Š Specialized Analytics-API Serviceยถ

  • Fast Dashboard Endpoints: Optimized endpoints for dashboard widgets (Port 4009)

  • Intelligent Caching: NodeCache with different TTL per endpoint (15s-10min)

  • Continuous Aggregate Queries: Direct access to pre-computed metrics

  • Rate Limiting: Built-in protection (100 requests/minute per IP)

  • Performance Monitoring: Real-time cache hit rates and system metrics

  • Implementation: /apps/analytics-engine/ - Consolidated microservice with specialized endpoints

    • Dashboard endpoints: /api/dashboard/* (realtime-overview, hourly-trends, etc.)

    • Widget endpoints: /api/widgets/* (total-events, critical-alerts, etc.)

๐Ÿ”” WebSocket Notifications Systemยถ

  • Real-time Updates: Live dashboard updates without polling

  • Multi-client Support: Broadcast updates to multiple connected clients

  • Connection Management: Automatic reconnection and heartbeat monitoring

  • Event Streaming: Real-time log ingestion status and alerts

  • Integration: Built into query-processor service with Socket.IO

Splunk-Compatible Data Ingestion System ๐Ÿ†•ยถ

Complete enterprise-grade data ingestion capabilities with Splunk-style functionality:

๐Ÿš€ HTTP Event Collector (HEC) Serviceยถ

  • Splunk-Compatible API: Full HEC endpoint compatibility with token authentication

  • Multi-Format Support: JSON events, raw data, batch processing, and streaming ingestion

  • Enterprise Security: Token-based authentication, rate limiting, and access control

  • High-Performance: Kafka integration, async processing, and horizontal scaling

  • Docker Integration: Containerized deployment with health monitoring

๐Ÿ“ก Universal Syslog Ingestionยถ

  • Standard Syslog Ports: Full support for UDP 514, TCP 514, TCP 601 (RFC 5425), and TLS 6514

  • Multi-Protocol Transport: Simultaneous UDP, TCP, and secure TLS syslog reception

  • RFC Compliance: Support for both RFC 3164 and RFC 5424 syslog formats

  • JSON Payload Support: Structured data extraction from syslog messages

  • Connection Management: Robust connection handling with automatic reconnection

๐Ÿ“ File Upload & Processing APIยถ

  • Drag-and-Drop Interface: Modern file upload component with progress tracking

  • Multi-Format Support: CSV, XML, JSON, EVTX, and plain text file processing

  • Real-time Processing: Live status updates and processing progress monitoring

  • Batch Processing: Efficient handling of large files with queue management

  • Error Recovery: Comprehensive error handling and retry mechanisms

๐Ÿ”„ Enhanced Agent with Persistent Queuingยถ

  • Guaranteed Delivery: SQLite-backed persistent queue with retry logic

  • Dual-Loop Architecture: Separate buffer-to-queue and queue-to-transport loops

  • Compression Support: Automatic payload compression for large events

  • Exponential Backoff: Intelligent retry scheduling with configurable delays

  • Queue Management: Statistics, cleanup, and administrative controls

Enterprise Log Format Support ๐Ÿ†•ยถ

Comprehensive support for enterprise log formats with specialized adapters:

  • LOG_FORMATS_GUIDE.md - โญ Log Formats Guide for CSV, XML, JSON, Syslog with JSON payloads, and Key-Value formats

Lookup Tables & Data Enrichment System ๐Ÿ†•ยถ

Enterprise-grade lookup table system with Splunk-style functionality and modern enhancements:

๐ŸŽฏ Data Enrichment Featuresยถ

  • CSV Upload & Management: Upload CSV files as lookup tables with automatic field detection

  • Real-time Search Enrichment: Automatic field enrichment during KQL queries

  • External API Integration: Built-in support for VirusTotal, AbuseIPDB, IPStack and custom APIs

  • Performance Optimization: Redis caching, batch processing, and optimized database queries

  • Usage Analytics: Comprehensive statistics, performance metrics, and query logging

๐Ÿ“Š Pre-loaded Sample Dataยถ

  • IP Geolocation Database: 8+ sample entries for network event enrichment

  • User Directory: Corporate user data with departments, titles, and risk scores

  • Asset Inventory: Server and workstation data with criticality levels

  • Threat Intelligence: Malicious IP database with confidence scoring

๐Ÿš€ Technical Capabilitiesยถ

  • Automatic Field Detection: Smart type inference (IP, email, URL, date, number, boolean)

  • Enrichment Rules Engine: Configurable rules with conditions and transformations

  • Batch Processing: Handle large CSV files (up to 50MB) with 1000-record batches

  • API Rate Limiting: Built-in rate limiting and retry logic for external services

  • Cache Management: Intelligent caching with TTL and manual cache clearing

๐Ÿ’ผ Enterprise Use Casesยถ

  • Threat Intelligence Correlation: Enrich network events with IOC data

  • User Behavior Analytics: Add department and risk scores to authentication events

  • Asset Context: Enhance host events with criticality and ownership information

  • Geolocation Analysis: Map IP addresses to countries, cities, and coordinates

๐Ÿ”ง TypeScript Architecture Excellence (December 2025) ๐Ÿ†•ยถ

Enterprise-grade type safety and development experience with zero compilation errors:

๐Ÿ“š Type System Componentsยถ

  • Route Handler Types: Next.js 15 App Router compatibility with Promise pattern

  • Module Declarations: Comprehensive type definitions for all @securewatch/* packages

  • Interface Hierarchy: Clean inheritance patterns for log entry types and security events

  • API Type Safety: Strict typing for all REST endpoints and WebSocket communications

  • Component Props: Validated React component interfaces with proper constraint checking

๐Ÿ› ๏ธ Developer Experience Enhancementsยถ

  • Zero Build Errors: Clean compilation across all 51+ TypeScript files

  • IntelliSense Support: Complete autocomplete for SIEM-specific types and interfaces

  • Type-Safe Imports: Proper module resolution for shared packages and utilities

  • Error Prevention: Compile-time catching of API misuse and data type mismatches

  • Documentation: Inline type documentation for complex security data structures

๐Ÿ—๏ธ Technical Implementationยถ

  • KQL Engine Types: Complete type coverage for Kusto Query Language operations

  • Security Event Schema: Strongly typed Windows event logs, Sysmon events, and MITRE ATT&CK data

  • Notification System: Type-safe real-time notification handling with proper event marshaling

  • Database Models: Full TypeScript models for TimescaleDB schema and query operations

  • Authentication Flow: Type-safe JWT handling, RBAC permissions, and session management

Troubleshooting Log Bundle Export ๐Ÿ†•ยถ

Enterprise-grade log export system for SecureWatch support and troubleshooting:

๐ŸŽฏ Support & Troubleshooting Featuresยถ

  • Comprehensive Log Export: Stream internal platform logs from all microservices

  • Time Range Filtering: Export logs from specific time periods when issues occurred

  • Service Filtering: Select specific microservices (correlation-engine, search-api, etc.)

  • Log Level Control: Filter by error, warning, info, or debug levels

  • Automatic Compression: ZIP bundles with logs, metadata, and documentation

  • Health Monitoring: Real-time service status checks and export validation

๐Ÿ“Š Enterprise Capabilitiesยถ

  • OpenSearch Integration: Efficient scroll API for large dataset retrieval

  • Streaming Downloads: Memory-efficient file streaming with automatic cleanup

  • Metadata Generation: Comprehensive export details and service statistics

  • Progress Tracking: Real-time export progress with phase indicators

  • Error Recovery: Robust error handling with fallback mechanisms

๐Ÿš€ Usage Examplesยถ

  • Web Interface: Settings โ†’ Platform Status โ†’ Troubleshooting Export

  • API Endpoint: POST /api/support/export-logs with time range and filters

  • Bundle Contents: Structured logs, export metadata, and documentation README

Enhanced EVTX Parser v2.0 (June 2025)ยถ

The Enhanced EVTX Parser represents a major advancement in Windows event log analysis:

๐ŸŽฏ MITRE ATT&CK Detectionยถ

  • Automatic Technique Identification: Direct extraction from Sysmon RuleName fields

  • 50+ Supported Techniques: Comprehensive coverage across all 14 MITRE tactics

  • Confidence Scoring: ML-inspired assessment (0.0-1.0 scale)

  • Attack Chain Detection: Multi-stage attack pattern recognition

๐Ÿ“Š Comprehensive Testing Resultsยถ

  • 329 EVTX-ATTACK-SAMPLES: Full dataset validation

  • 95.4% Success Rate: Reliable parsing across diverse samples

  • 3,847 Attack Events: Detected from 42,156 total events

  • 90%+ Detection Accuracy: For explicit Sysmon-tagged techniques

๐Ÿš€ Performance Metricsยถ

  • 1000+ Events/Second: High-throughput processing capability

  • Sub-Second Response: Real-time analysis for typical volumes

  • 17KB per Event: Memory-efficient processing

  • <5% False Positives: High accuracy with context-aware filtering

Attack Pattern Recognitionยถ

The parser includes sophisticated pattern recognition for:

Category

Techniques

Examples

Credential Access

T1003, T1110, T1558

Mimikatz, credential dumping, Kerberos attacks

Defense Evasion

T1548, T1112, T1134

UAC bypass, registry modification, token manipulation

Execution

T1059, T1204, T1218

PowerShell, scripts, signed binary proxy execution

Lateral Movement

T1021, T1570, T1534

Remote services, lateral tool transfer

Persistence

T1547, T1543, T1053

Autostart execution, services, scheduled tasks

Risk Scoring Algorithmยถ

Intelligent risk assessment based on:

  • Event Criticality: Base score by Event ID importance

  • Attack Indicators: Confidence-weighted scoring

  • Environmental Context: Benign process filtering

  • Severity Classification: Critical (90+), High (70-89), Medium (50-69), Low (<50)

๐Ÿ› ๏ธ Implementation Guidesยถ

Quick Start - EVTX Analysisยถ

  1. Web Interface: Upload EVTX files via http://localhost:4000/settings/log-sources

  2. Command Line: python3 scripts/evtx_parser_enhanced.py sample.evtx

  3. Testing: python3 scripts/test_enhanced_evtx_pipeline.py --samples-path /path/to/EVTX-ATTACK-SAMPLES

Integration Examplesยถ

# Parse with attack detection
python3 scripts/evtx_parser_enhanced.py sample.evtx --attack-only

# Comprehensive analysis with JSON output
python3 scripts/evtx_parser_enhanced.py sample.evtx --output results.json

# Test against attack samples
python3 scripts/test_enhanced_evtx_pipeline.py \
  --samples-path /path/to/EVTX-ATTACK-SAMPLES-master \
  --max-files 10 \
  --output test_results.json

๐Ÿ“ˆ Detection Coverageยถ

Top MITRE Techniques Detectedยถ

  1. T1059.001 - PowerShell (1,247 detections, 89% confidence)

  2. T1003 - OS Credential Dumping (892 detections, 94% confidence)

  3. T1218 - Signed Binary Proxy Execution (634 detections, 78% confidence)

  4. T1548.002 - UAC Bypass (523 detections, 85% confidence)

  5. T1112 - Registry Modification (445 detections, 72% confidence)

Sysmon Event Coverageยถ

  • Event 1: Process Creation (15,678 events, 2,134 attack indicators)

  • Event 3: Network Connection (8,934 events, 456 attack indicators)

  • Event 7: Image Loaded (6,789 events, 234 attack indicators)

  • Event 11: FileCreate (4,567 events, 189 attack indicators)

  • Event 13: Registry Value Set (3,456 events, 445 attack indicators)

๐ŸŽฏ Use Casesยถ

Security Operations Center (SOC)ยถ

  • Incident Response: Rapid triage with attack-only filtering

  • Threat Hunting: Comprehensive MITRE ATT&CK technique search

  • Forensic Analysis: Detailed event context and attack chains

  • Risk Assessment: Automated prioritization with confidence scoring

Red Team / Penetration Testingยถ

  • Attack Validation: Verify detection capabilities against known techniques

  • Evasion Testing: Test detection thresholds and false positive rates

  • Technique Coverage: Comprehensive MITRE ATT&CK technique validation

  • Tool Evaluation: Assess detection of specific attack tools

Threat Intelligenceยถ

  • TTP Analysis: Map observed techniques to threat actors

  • Campaign Tracking: Identify attack patterns and methodologies

  • IOC Correlation: Link indicators with tactical context

  • Attribution Research: Support threat actor attribution efforts

Compliance & Auditยถ

  • Evidence Collection: Comprehensive event context for investigations

  • Audit Trail: Complete parsing with full field preservation

  • Regulatory Compliance: Support SOX, HIPAA, PCI-DSS requirements

  • Documentation: Automated report generation with attack indicators

๐Ÿ”ฎ Future Enhancementsยถ

Planned Featuresยถ

  • Machine Learning Integration: ML-based anomaly detection

  • Threat Intelligence Correlation: IOC and TTP correlation

  • Timeline Reconstruction: Automated attack timeline generation

  • Multi-Format Support: JSON, CSV, STIX/TAXII output formats

Research Areasยถ

  • Behavioral Analysis: User and entity behavior analytics

  • Graph Analysis: Attack path visualization

  • Attribution: Threat actor correlation techniques

  • Automated Response: SOAR platform integration

๐Ÿ“ž Support & Contributingยถ

Getting Helpยถ

  • Documentation Issues: Open an issue in the GitHub repository

  • Feature Requests: Submit detailed enhancement proposals

  • Bug Reports: Use the integrated bug tracking system

Contributing Guidelinesยถ

  1. Documentation Standards: Follow existing format and structure

  2. Testing Requirements: Include validation against attack samples

  3. Performance Benchmarks: Provide performance metrics for new features

  4. Security Review: Ensure all code meets security standards


๐Ÿ“Š Quick Reference Tableยถ

Document

Purpose

Audience

Status

QUICK_START.md

Get up and running in minutes

All Users

โœ… v2.1.1

DEPLOYMENT_GUIDE.md

Production deployment

DevOps, System Administrators

โœ… v2.1.1

MONOREPO_SETUP.md

Architecture and build system

Developers, Architects

โœ… v2.1.1

TYPESCRIPT_ARCHITECTURE_GUIDE.md

TypeScript type safety guide

Frontend Developers, TypeScript Engineers

โœ… v2.1.1

KQL_API_GUIDE.md

Query language documentation

Threat Hunters, Analysts

โœ… v2.1.1

EVTX_PARSER_ENHANCED.md

Complete EVTX parser guide

Security Engineers, SOC Analysts

โœ… v2.1.0

PERFORMANCE_OPTIMIZATION_GUIDE.md

Enterprise performance features

Performance Engineers

โœ… v2.1.0

SECURITY_CONFIGURATION_GUIDE.md

Security hardening

Security Administrators

โœ… v2.1.0

DATA_INGESTION_GUIDE.md

Data collection methods

Data Engineers

โœ… v2.1.0

๐Ÿ”— Cross-Platform Integrationยถ

SecureWatch v2.1.1 integrates with:

  • OpenSearch 3.0 - Full-text search and analytics

  • TimescaleDB - Time-series data optimization

  • Kafka - High-throughput log streaming

  • Redis - Caching and session management

  • Docker - Containerized deployment

  • Kubernetes - Enterprise orchestration

๐Ÿ†• Whatโ€™s New in v2.1.1ยถ

  • Zero TypeScript errors across all 51+ files

  • Next.js 15 App Router fully compatible

  • 95,000+ lines of duplicate code removed

  • 8 core services (consolidated from 12+)

  • EventsTable virtualization for 100K+ row performance

  • Consolidated analytics engine with dashboard APIs

  • Enhanced CLI dashboard with service control

  • Complete type safety for enterprise SIEM operations


SecureWatch SIEM Platform v2.1.1 - Enterprise security monitoring with complete type safety.

For the most up-to-date information, always refer to the individual documentation files and the CHANGELOG.md.