ff3a1e22d7
ISSUE: RCE (Remote Code Execution) attacks were being DETECTED and LOGGED but NOT BLOCKED, allowing the attacks to proceed even with Score:100. ROOT CAUSE: The ET-based blocking only triggered if: 1. Both record_request AND detect_rate_anomaly functions exist AND 2. Combined score >= 90 If either function failed or didn't exist, RCE wasn't immediately blocked. SOLUTION: Add explicit, immediate blocking for RCE attacks: - Detect RCE|WEBSHELL|ECOMMERCE_EXPLOIT in attack types - Block IMMEDIATELY regardless of score calculation - Don't wait for rate anomaly detection - Log as INSTANT_BLOCK_RCE for clear visibility AFFECTED ATTACKS (Now immediately blocked): - RCE (Remote Code Execution) - WEBSHELL (Web shell uploads/access) - ECOMMERCE_EXPLOIT (Commerce site exploits) IMPACT: - 0-second blocking for RCE attempts (previously delayed) - Prevents exploitation of PHP shells and upload endpoints - Eliminates time window for attackers to interact with shells Applied to both live-attack-monitor.sh and live-attack-monitor-v2.sh Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>