Web Server Error Response Spike Indicates Reconnaissance
A surge in 500-level HTTP error codes on web servers may indicate reconnaissance activities such as vulnerability scanning or fuzzing, where attackers probe for weaknesses by generating numerous error responses.
Triage facts
Revision 2- Evidence
- Unknown
- Severity
- Low
- Sources
- 3 public sources
- Freshness
- Revision 2Jan 9, 12:00 UTC
- Detection
- 2 rules
Revision history 1 entry · Revision 2
- Revision 2
Repaired a legacy canonical identity collision
Changed: slug
This detection focuses on identifying potential reconnaissance activities against web servers by monitoring spikes in HTTP error response codes (500, 502, 503, 504). Attackers often employ vulnerability scanners and fuzzers to probe web applications for weaknesses. These tools generate a high volume of requests, many of which result in server-side errors as they explore various attack vectors. This can also expose fragile code paths or misconfigured proxies. The rule analyzes GET requests specifically, targeting anomalies in error code frequency originating from single source IPs. The monitored web servers include Nginx, Apache, Apache Tomcat, IIS, and Traefik. This activity matters to defenders because successful reconnaissance can precede exploitation, data breaches, or denial-of-service attacks.
Attack Chain
- Attacker initiates a vulnerability scan or fuzzing campaign against a target web server.
- The scanning tool sends a series of GET requests with potentially malicious payloads or malformed URLs.
- The web server encounters errors while processing these requests due to invalid input or resource unavailability.
- The web server responds with HTTP error codes (500, 502, 503, or 504).
- These error responses are logged by the web server, including source IP, requested URL, and status code.
- The attacker analyzes the error responses to identify potential vulnerabilities or misconfigurations.
- The attacker refines their attack strategy based on the information gathered from the error responses.
- The attacker attempts to exploit identified vulnerabilities for unauthorized access or information disclosure.
Impact
An attacker performing active scanning or fuzzing can uncover sensitive information about a web application's configuration and vulnerabilities. Successful reconnaissance can lead to exploitation, data breaches, or denial-of-service attacks. While a spike in error codes alone may not indicate a successful compromise, it serves as an early warning sign of potentially malicious activity. If successful, attackers enumerate routes to find inputs to crash components for follow-on exploitation.
Recommendation
- Deploy the provided Sigma rules to your SIEM to detect unusual spikes in HTTP error responses and tune for your environment.
- Investigate any alerts triggered by the Sigma rules to determine the source of the error responses and the nature of the requests (reference the "Investigation Guide" tag in the original rule).
- Implement rate limiting or blocking at the edge (reverse proxy/WAF) for clients generating excessive error responses (reference the description).
- Harden web server configurations to prevent information leakage in error messages and mitigate potential vulnerabilities (reference the description).
Detection coverage 2
Web Server Unusual Spike in 5XX Errors
lowDetects a spike in 5XX HTTP error codes, indicative of potential scanning or fuzzing attempts
Web Server Fuzzing Attempt via URL
mediumDetects a high number of 5XX HTTP errors from a single source IP targeting various URL paths
Detection queries are available on the platform. Get full rules →