Web Server Reconnaissance via Suspicious User Agents
Attackers use automated tools with suspicious user agents to perform reconnaissance against web servers, attempting to identify vulnerabilities and hidden paths for further exploitation.
Triage facts
Revision 2- Evidence
- Unknown
- Severity
- Low
- Sources
- 1 public source
- Freshness
- Revision 2Jan 3, 14:30 UTC
- Detection
- 2 rules
Revision history 1 entry · Revision 2
- Revision 2
Repaired a legacy canonical identity collision
Changed: slug
This brief focuses on detecting reconnaissance attempts against web servers through the use of suspicious user agents. Attackers often employ automated tools like Dirsearch, Gobuster, WPScan, and SQLMap to scan web applications for vulnerabilities, hidden directories, and sensitive files. These tools send a high volume of requests with specific user-agent strings associated with scanning or brute-force activity. The activity is identified by observing requests from IPs with a high number of requests and distinct URLs, using unusual User-Agent header values. This activity indicates potential reconnaissance, which may lead to more serious attacks if vulnerabilities are discovered. This rule focuses on detecting this behavior across Nginx, Apache, Apache Tomcat, IIS, and Traefik web servers.
Attack Chain
- The attacker deploys a web application scanner such as Dirsearch, WPScan, or Gobuster.
- The scanning tool sends HTTP GET requests to the target web server with a crafted User-Agent header.
- The User-Agent header identifies the scanning tool (e.g., "dirsearch", "wpscan").
- The scanner iterates through a list of common or custom URLs and file paths, looking for accessible resources.
- The web server logs each request, including the source IP, User-Agent, and requested URL.
- The attacker analyzes the server responses, looking for indications of sensitive files, directories, or vulnerabilities.
- Discovery of sensitive resources (e.g., configuration files, admin panels) enables further exploitation.
- The attacker pivots to exploiting identified vulnerabilities or accessing sensitive data.
Impact
Successful reconnaissance can expose sensitive information, such as configuration files, database credentials, or administrative interfaces. This information can be used to gain unauthorized access to the web server or the underlying system. While this activity on its own is low severity, successful exploitation following reconnaissance can lead to data breaches, system compromise, and reputational damage. The broad targeting capabilities of these tools mean that any organization running web servers is potentially at risk.
Recommendation
- Deploy the provided Sigma rules to your SIEM to detect suspicious User-Agent strings in web server logs (e.g., "dirsearch", "sqlmap", "nikto") and tune for your environment.
- Monitor web server logs (Nginx, Apache, IIS) for unusual spikes in requests with suspicious User-Agent headers to activate the Sigma rules.
- Implement rate limiting on web servers to mitigate the impact of high-volume scanning activity, specifically referencing the detection logic in the Sigma rules.
- Block IPs identified as sources of suspicious User-Agent requests at the firewall or WAF based on the source IP identified in the Sigma rules.
Detection coverage 2
Detect Web Server Reconnaissance User Agents
lowDetects requests with User-Agent strings commonly associated with web application scanners.
Detect High Volume Requests from Single IP with Scanner User Agent
mediumDetects unusual spikes in web server requests with scanner User-Agent strings from a single IP address
Detection queries are available on the platform. Get full rules →