|
| 1 | + |
| 2 | + |
| 3 | +[metadata] |
| 4 | +creation_date = "2025/05/23" |
| 5 | +integration = ["network_traffic"] |
| 6 | +maturity = "production" |
| 7 | +updated_date = "2025/05/23" |
| 8 | + |
| 9 | +[rule] |
| 10 | +author = ["Elastic"] |
| 11 | +description = """ |
| 12 | +Identifies potential exploitation of CVE-2025-53770 and CVE-2025-53771 in IIS web servers on SharePoint sites. |
| 13 | +Toolshell is an exploit chain that leverages vulnerabilities in SharePoint/IIS to gain unauthorized access |
| 14 | +and execute commands. This rule detects HTTP requests that match specific patterns indicative of the exploit attempt. |
| 15 | +""" |
| 16 | +from = "now-9m" |
| 17 | +index = ["logs-network_traffic.http*"] |
| 18 | +language = "kuery" |
| 19 | +license = "Elastic License v2" |
| 20 | +max_signals = 10 |
| 21 | +name = "Potential Toolshell Initial Exploit (CVE-2025-53770 & CVE-2025-53771)" |
| 22 | +risk_score = 47 |
| 23 | +rule_id = "6e4f6446-67ca-11f0-a148-f661ea17fbcd" |
| 24 | +setup = """ |
| 25 | +### Network Traffic Setup |
| 26 | +
|
| 27 | +This rule requires network traffic logs to be collected from HTTP endpoints, specifically focusing on IIS web servers. Ensure that your network traffic logging is configured to capture HTTP request and response details, including request and response headers. Additionally, request bodies are necessary for content-type `application/x-www-form-urlencoded` to detect potential exploit attempts. |
| 28 | +""" |
| 29 | +severity = "medium" |
| 30 | +tags = [ |
| 31 | + "Domain: Network", |
| 32 | + "Tactic: Initial Access", |
| 33 | + "Use Case: Exploit Detection", |
| 34 | + "Data Source: Network Traffic", |
| 35 | + "Data Source: Network Traffic HTTP Logs", |
| 36 | +] |
| 37 | +timestamp_override = "event.ingested" |
| 38 | +type = "query" |
| 39 | +query = ''' |
| 40 | +data_stream.dataset : "network_traffic.http" and |
| 41 | + url.path: /_layouts*ToolPane.aspx and |
| 42 | + http.request.referrer: *SignOut.aspx and |
| 43 | + http.request.headers.content-type: "application/x-www-form-urlencoded" and |
| 44 | + network.direction: "ingress" and |
| 45 | + http.request.method: "POST" and |
| 46 | + request: (*MSOTlPn_Uri* and *DisplayMode*) and |
| 47 | + http.request.body.bytes > 5000 |
| 48 | +''' |
| 49 | + |
| 50 | +[[rule.threat]] |
| 51 | +framework = "MITRE ATT&CK" |
| 52 | + |
| 53 | +[[rule.threat.technique]] |
| 54 | +id = "T1190" |
| 55 | +name = "Exploit Public-Facing Application" |
| 56 | +reference = "https://attack.mitre.org/techniques/T1190/" |
| 57 | + |
| 58 | +[rule.threat.tactic] |
| 59 | +id = "TA0001" |
| 60 | +name = "Initial Access" |
| 61 | +reference = "https://attack.mitre.org/tactics/TA0001/" |
0 commit comments