Execution of COM object via Xwizard

Windows Component Object Model (COM) is an inter-process communication (IPC) component of the native Windows application programming interface (API) that enables interaction between software objects or executable code. Xwizard can be used to run a COM object created in registry to evade defensive counter measures.

Elastic rule (View on GitHub)

 1[metadata]
 2creation_date = "2021/01/20"
 3integration = ["endpoint", "windows", "m365_defender", "sentinel_one_cloud_funnel", "system"]
 4maturity = "production"
 5updated_date = "2024/10/17"
 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 = """
12Windows Component Object Model (COM) is an inter-process communication (IPC) component of the native Windows application
13programming interface (API) that enables interaction between software objects or executable code. Xwizard can be used to
14run a COM object created in registry to evade defensive counter measures.
15"""
16from = "now-9m"
17index = [
18    "winlogbeat-*",
19    "logs-endpoint.events.process-*",
20    "logs-windows.forwarded*",
21    "logs-windows.sysmon_operational-*",
22    "endgame-*",
23    "logs-system.security*",
24    "logs-m365_defender.event-*",
25    "logs-sentinel_one_cloud_funnel.*",
26]
27language = "eql"
28license = "Elastic License v2"
29name = "Execution of COM object via Xwizard"
30references = [
31    "https://lolbas-project.github.io/lolbas/Binaries/Xwizard/",
32    "http://www.hexacorn.com/blog/2017/07/31/the-wizard-of-x-oppa-plugx-style/",
33]
34risk_score = 47
35rule_id = "1a6075b0-7479-450e-8fe7-b8b8438ac570"
36severity = "medium"
37tags = [
38    "Domain: Endpoint",
39    "OS: Windows",
40    "Use Case: Threat Detection",
41    "Tactic: Execution",
42    "Data Source: Elastic Endgame",
43    "Data Source: Elastic Defend",
44    "Data Source: System",
45    "Data Source: Microsoft Defender for Endpoint",
46    "Data Source: Sysmon",
47    "Data Source: SentinelOne",
48]
49timestamp_override = "event.ingested"
50type = "eql"
51
52query = '''
53process where host.os.type == "windows" and event.type == "start" and
54 (process.name : "xwizard.exe" or ?process.pe.original_file_name : "xwizard.exe") and
55 (
56   (process.args : "RunWizard" and process.args : "{*}") or
57   (process.executable != null and
58     not process.executable : ("C:\\Windows\\SysWOW64\\xwizard.exe", "C:\\Windows\\System32\\xwizard.exe")
59   )
60 )
61'''
62
63
64[[rule.threat]]
65framework = "MITRE ATT&CK"
66[[rule.threat.technique]]
67id = "T1559"
68name = "Inter-Process Communication"
69reference = "https://attack.mitre.org/techniques/T1559/"
70[[rule.threat.technique.subtechnique]]
71id = "T1559.001"
72name = "Component Object Model"
73reference = "https://attack.mitre.org/techniques/T1559/001/"
74
75
76
77[rule.threat.tactic]
78id = "TA0002"
79name = "Execution"
80reference = "https://attack.mitre.org/tactics/TA0002/"

References

Related rules

to-top