Microsoft Exchange Worker Spawning Suspicious Processes
Identifies suspicious processes being spawned by the Microsoft Exchange Server worker process (w3wp). This activity may indicate exploitation activity or access to an existing web shell backdoor.
Elastic rule (View on GitHub)
1[metadata]
2creation_date = "2021/03/08"
3integration = ["endpoint", "windows", "m365_defender", "sentinel_one_cloud_funnel"]
4maturity = "production"
5updated_date = "2024/10/15"
6min_stack_version = "8.14.0"
7min_stack_comments = "Breaking change at 8.14.0 for the Windows Integration."
8
9[rule]
10author = ["Elastic"]
11description = """
12Identifies suspicious processes being spawned by the Microsoft Exchange Server worker process (w3wp). This activity may
13indicate exploitation activity or access to an existing web shell backdoor.
14"""
15from = "now-9m"
16index = ["logs-endpoint.events.process-*", "winlogbeat-*", "logs-windows.sysmon_operational-*", "endgame-*", "logs-m365_defender.event-*", "logs-sentinel_one_cloud_funnel.*"]
17language = "eql"
18license = "Elastic License v2"
19name = "Microsoft Exchange Worker Spawning Suspicious Processes"
20references = [
21 "https://www.microsoft.com/security/blog/2021/03/02/hafnium-targeting-exchange-servers",
22 "https://www.volexity.com/blog/2021/03/02/active-exploitation-of-microsoft-exchange-zero-day-vulnerabilities",
23 "https://discuss.elastic.co/t/detection-and-response-for-hafnium-activity/266289",
24]
25risk_score = 73
26rule_id = "f81ee52c-297e-46d9-9205-07e66931df26"
27severity = "high"
28tags = [
29 "Domain: Endpoint",
30 "OS: Windows",
31 "Use Case: Threat Detection",
32 "Tactic: Initial Access",
33 "Tactic: Execution",
34 "Data Source: Elastic Endgame",
35 "Data Source: Elastic Defend",
36 "Data Source: Sysmon",
37 "Data Source: Microsoft Defender for Endpoint",
38 "Data Source: SentinelOne",
39]
40timestamp_override = "event.ingested"
41type = "eql"
42
43query = '''
44process where host.os.type == "windows" and event.type == "start" and
45 process.parent.name : "w3wp.exe" and process.parent.args : "MSExchange*AppPool" and
46 (process.name : ("cmd.exe", "powershell.exe", "pwsh.exe", "powershell_ise.exe") or
47 ?process.pe.original_file_name in ("cmd.exe", "powershell.exe", "pwsh.dll", "powershell_ise.exe"))
48'''
49
50
51[[rule.threat]]
52framework = "MITRE ATT&CK"
53[[rule.threat.technique]]
54id = "T1190"
55name = "Exploit Public-Facing Application"
56reference = "https://attack.mitre.org/techniques/T1190/"
57
58
59[rule.threat.tactic]
60id = "TA0001"
61name = "Initial Access"
62reference = "https://attack.mitre.org/tactics/TA0001/"
63[[rule.threat]]
64framework = "MITRE ATT&CK"
65[[rule.threat.technique]]
66id = "T1059"
67name = "Command and Scripting Interpreter"
68reference = "https://attack.mitre.org/techniques/T1059/"
69[[rule.threat.technique.subtechnique]]
70id = "T1059.001"
71name = "PowerShell"
72reference = "https://attack.mitre.org/techniques/T1059/001/"
73
74[[rule.threat.technique.subtechnique]]
75id = "T1059.003"
76name = "Windows Command Shell"
77reference = "https://attack.mitre.org/techniques/T1059/003/"
78
79
80
81[rule.threat.tactic]
82id = "TA0002"
83name = "Execution"
84reference = "https://attack.mitre.org/tactics/TA0002/"
References
Related rules
- Suspicious Explorer Child Process
- Unusual Execution via Microsoft Common Console File
- Windows Script Executing PowerShell
- Command Shell Activity Started via RunDLL32
- Conhost Spawned By Suspicious Parent Process