Detection of Web Server Reconnaissance via Error Log Spikes
This brief covers the detection of automated reconnaissance activities, such as vulnerability scanning and fuzzing, which manifest as significant spikes in web server error logs.
Adversaries often perform automated reconnaissance against public-facing web infrastructure to identify weaknesses. This activity frequently involves large-scale scanning or fuzzing attempts targeting sensitive paths such as /admin/, /debug/, /.env, /.git, and various backup archives. Because these probes often target non-existent resources or unauthorized directories, they generate a high volume of HTTP 403 (Forbidden) and 404 (Not Found) error responses. In some cases, the probes may trigger backend application errors resulting in HTTP 5xx responses. Detecting a sudden spike in these error logs from a single source IP provides an early-warning signal that an entity is actively probing an organization's attack surface. While this activity is often automated, it is a precursor to potential exploitation attempts and requires differentiation from legitimate internal QA testing or transient infrastructure failures.
Impact
Successful reconnaissance allows adversaries to map internal application structures, identify exposed configuration files, locate backup files, or uncover unpatched administrative consoles. If left unmonitored, these scan patterns often precede targeted exploitation of identified vulnerabilities, potentially leading to unauthorized access, sensitive data exfiltration, or secondary system compromise.
Recommendation
- Implement the provided detection logic to monitor web server error logs (Nginx, Apache, Tomcat, IIS) for spikes in volume from single source IPs.
- Enrich identified noisy source IPs with geolocation, ASN, and threat intelligence feeds to differentiate between known scanners and authorized testing infrastructure.
- Configure WAF or load balancer rate-limiting rules to automatically throttle or block IPs generating excessive 403/404/500 errors within short time windows.
- Ensure logging configurations capture the true client IP (via X-Forwarded-For or True-Client-IP headers) to prevent misidentification of legitimate traffic behind NAT or load balancers.
- Review and harden web server configurations to disable directory listings, restrict access to sensitive files (.env, .git), and reject unused HTTP methods (e.g., TRACE, OPTIONS).
Immediate actions
Deploy the provided detection rule and monitor for high-volume false positives
Threat Hunt
Analyze top requested paths by IPs flagged for high error counts
Data: Web access logs with requested URI paths
Mitigations
Enable per-IP rate limiting at the WAF or CDN level for 404/403/500 patterns
T1595
Detection coverage 1
Potential Spike in Web Server Error Logs
lowDetects an unusual volume of error responses (4xx/5xx) from a single source IP, indicating potential reconnaissance activity such as scanning or fuzzing.
Detection queries are available on the platform. Get full rules →