[metadata] creation_date = "2020/09/02" maturity = "development" updated_date = "2020/11/03" [rule] author = ["Elastic"] description = """ Identifies probable exploitation of the Web Proxy Auto-Discovery Protocol (WPAD) service. Attackers who have access to the local network or upstream DNS traffic can inject malicious JavaScript to the WPAD service which can lead to a full system compromise. """ from = "now-9m" index = ["logs-endpoint.events.*"] language = "eql" license = "Elastic License" name = "WPAD Service Exploit" risk_score = 21 rule_id = "ec328da1-d5df-482b-866c-4a435692b1f3" severity = "high" tags = ["Elastic", "Host", "Windows", "Threat Detection", "Execution"] type = "eql" query = ''' /* preference would be to use user.sid rather than domain+name, once it is available in ECS + datasources */ /* didn't trigger successfully during testing */ sequence with maxspan=5s [process where event.type in ("start", "process_started") and process.name : "svchost.exe" and user.domain == "NT AUTHORITY" and user.name == "LOCAL SERVICE"] by process.entity_id [network where network.protocol == "dns" and process.name : "svchost.exe" and dns.question.name : "wpad" and process.name : "svchost.exe"] by process.entity_id [network where process.name : "svchost.exe" and network.direction == "outgoing" and destination.port == 80] by process.entity_id [library where event.type == "start" and process.name : "svchost.exe" and file.name : "jscript.dll" and process.name : "svchost.exe"] by process.entity_id [process where event.type in ("start", "process_started") and process.parent.name : "svchost.exe"] by process.parent.entity_id ''' [[rule.threat]] framework = "MITRE ATT&CK" [[rule.threat.technique]] id = "T1068" name = "Exploitation for Privilege Escalation" reference = "https://attack.mitre.org/techniques/T1068/" [rule.threat.tactic] id = "TA0002" name = "Execution" reference = "https://attack.mitre.org/tactics/TA0002/"