Execution of COM object via Xwizard
Adversaries can abuse the legitimate system binary Xwizard to execute Component Object Model (COM) objects, evading defensive countermeasures by running COM objects created in the registry.
Xwizard is a legitimate Windows system binary that can be abused to execute Component Object Model (COM) objects. This technique allows adversaries to bypass security measures and evade detection by leveraging a trusted system tool. By creating a malicious COM object in the registry and then using Xwizard to execute it, attackers can run arbitrary code. This activity can be difficult to detect because it involves the use of a signed, trusted binary. The scope of targeting is broad, as any Windows system is potentially vulnerable if it has Xwizard installed, which is a default component of Windows.
Attack Chain
- The attacker gains initial access to the target system through an unspecified method (e.g., phishing, exploit).
- The attacker creates a malicious COM object and registers it within the Windows Registry. This COM object is designed to execute malicious code when invoked.
- The attacker uses Xwizard to execute the newly created malicious COM object using the
RunWizardcommand and the COM object's GUID. - Xwizard, a legitimate system binary, launches the specified COM object.
- The malicious COM object executes its payload, which could include downloading additional malware, establishing persistence, or performing reconnaissance.
- The attacker leverages the executed code to escalate privileges or move laterally within the network.
- The attacker uses the compromised system to access sensitive data or perform other malicious activities.
- The attacker achieves their objective, which could include data exfiltration or system disruption.
Impact
Successful exploitation allows attackers to execute arbitrary code on the target system, potentially leading to data theft, system compromise, and further lateral movement within the network. While specific victim numbers are unavailable, the widespread presence of Xwizard on Windows systems makes many organizations vulnerable. If successful, attackers can bypass traditional security measures and gain a foothold within the targeted environment.
Recommendation
- Deploy the Sigma rule
Detect Suspicious Xwizard COM Object Executionto your SIEM to detect the execution of Xwizard with theRunWizardcommand and a GUID (rules). - Deploy the Sigma rule
Detect Unusual Xwizard Locationto detect Xwizard executing from a non-standard directory (rules). - Monitor process creation events for executions of
xwizard.exewith command-line arguments containingRunWizard(rules). - Audit and review COM object registrations in the Windows Registry for suspicious or unknown entries (content).
- Implement application control policies to restrict the execution of Xwizard from non-standard locations (content).
Detection coverage 2
Detect Suspicious Xwizard COM Object Execution
mediumDetects the execution of Xwizard with the RunWizard command and a GUID, indicating potential malicious COM object execution.
Detect Unusual Xwizard Location
mediumDetects Xwizard executing from a non-standard directory, potentially indicating malicious activity.
Detection queries are available on the platform. Get full rules →