#!/usr/bin/env python3 """ Ghaymah Lightweight SIEM Engine Author: AbdulRhman Ewais Description: Consolidated Log Analyzer for Auth, Nginx, and API services. """ import os import re import json from collections import defaultdict # مسارات السجلات الافتراضية المربوطة بالـ Volume LOG_SOURCES = { "auth": "/var/log/siem_logs/auth.log", "web": "/var/log/siem_logs/nginx_access.log", "api": "/var/log/siem_logs/ghaymah_api.log" } # أنماط الكشف (Detection Signatures) BRUTE_FORCE_THRESHOLD = 5 XSS_PATTERN = re.compile(r'(