12973423ef
FEATURES ADDED: - Bot fingerprinting: Multi-signal detection (UA, headers, referer, admin access, timing) - Domain attack breakdown: Shows attack types, top IPs, subnets per domain - Top URLs analysis: Shows what endpoints are being targeted - Baseline storage: 30-day historical data for anomaly detection - Attack progression: Chronological attack sequences LOGIC IMPROVEMENTS: - Fingerprint scoring: 0-100 scale with proper normalization - Signal combination: +25 bonus for 3+ signals (reduces false positives) - Risk classification: CRITICAL/HIGH/MEDIUM/LOW based on score - IP validation: Regex check for proper IP format BUGS FIXED: - Removed UUOC pattern (grep|awk) - replaced with awk -v - Added IP format validation in subnet extraction - Fixed empty file handling (shows 'no data' message) - Removed dead code from domain targeting function - Fixed hardcoded URL limits (shows all, not truncated) - Corrected execution order (detect_threats before fingerprinting) TESTING: - Verified syntax: bash -n ✓ - Logic review: All logic sound, dependencies satisfied ✓ - File safety: All existence checks in place ✓ - Report sections: HIGH-CONFIDENCE BOT FINGERPRINTS, DOMAIN ATTACK BREAKDOWN, TOP TARGETED URLs ✓ Total lines: 4,652 (+511 lines) Status: Ready for testing with real logs