Occamy
Overview
Trojan:Win32/Occamy is a highly sophisticated, often fileless trojan framework engineered to evade detection and deliver severe secondary payloads like ransomware and information stealers.
Understanding Occamy
To an end-user, an Occamy infection presents no visible symptoms until the secondary payload executes. For threat intelligence analysts, Occamy represents a modern, evasive loader. It relies heavily on 'Living off the Land' (LotL) techniques, utilizing built-in Windows administrative tools (like PowerShell, WMI, and MSHTA) to download and execute its code entirely in memory, leaving a minimal footprint on the hard drive.
Execution and Evasion Strategies
Occamy is frequently distributed via weaponized Microsoft Office documents containing malicious VBA macros. Upon opening, the macro spawns a hidden PowerShell process that connects to a Command and Control (C2) server. It uses AES encryption and heavy obfuscation to hide its network traffic. The trojan employs Process Hollowing, injecting its malicious payload into legitimate system processes like svchost.exe or explorer.exe to bypass behavioral detection. Persistence is often achieved through WMI event subscriptions or hidden scheduled tasks rather than traditional Registry keys.
Indicators of Compromise & Impact
The impact of Occamy is a complete compromise of the endpoint, often leading to ransomware deployment or lateral movement. Incident responders should monitor for anomalous child processes spawning from Microsoft Office applications (e.g., winword.exe spawning powershell.exe). Hunt for encoded PowerShell commands (-enc) executing from the command line. Memory forensics is crucial to extract the decrypted Occamy payload from the hollowed system processes.
MITRE ATT&CK Techniques
Observed techniques used by this family, mapped to the MITRE ATT&CK framework:
| Technique | Name | Tactic |
|---|---|---|
T1059.001 | Command and Scripting Interpreter: PowerShell | Execution |
T1055.012 | Process Injection: Process Hollowing | Defense Evasion |
T1546.003 | Event Triggered Execution: Windows Management Instrumentation Event Subscription | Persistence |
T1105 | Ingress Tool Transfer | Command and Control |
T1027.005 | Obfuscated Files or Information: Indicator Removal from Tools | Defense Evasion |
Tactical Mitigations
Based on the techniques used by this family, consider the following defensive strategies:
- T1059.001: Restrict execution of PowerShell. Enforce PowerShell Constrained Language Mode and Script Block Logging.
- T1105: Implement network intrusion detection systems (NIDS) and host-based firewalls to block unauthorized inbound or outbound file transfers.
Generated Detections (Boilerplate)
These YARA and Sigma rules are auto-generated based on the family name and aliases. They must be heavily tuned before deployment in a production environment.
YARA Rule
rule MALWARE_WIN_OCCAMY {
meta:
description = "Detects Occamy (trojan_generic)"
author = "SystemHelpdesk Boilerplate Generator"
date = "2026-07-06"
strings:
$s1 = "occamy" ascii wide nocase
condition:
uint16(0) == 0x5a4d and any of them
}Sigma Rule
title: Suspicious Occamy Activity
id: bc25e2c138328789db30787d67c223e6
status: experimental
description: Detects generic indicators of the occamy malware family.
logsource:
category: process_creation
product: windows
detection:
selection:
Image|endswith:
- '\cmd.exe'
- '\powershell.exe'
CommandLine|contains:
- "*occamy*"
condition: selection
level: mediumContainment & Response Steps
Ordered checklist for responders. Adapt to your environment and engage professional support for active incidents.
- Immediately isolate the endpoint from the network to sever the C2 connection and prevent the download of secondary ransomware.
- Capture a full forensic memory dump; because Occamy often operates filelessly, crucial evidence exists only in RAM.
- Analyze PowerShell Script Block Logging (Event ID 4104) to decode the heavily obfuscated commands executed by the trojan.
- Rebuild the operating system entirely, as fileless persistence mechanisms (like WMI subscriptions) are notoriously difficult to fully eradicate.
What to Avoid
Common mistakes during response to this family that can destroy evidence, spread the infection, or worsen recovery.
- Do not rely solely on traditional antivirus scans; fileless threats like Occamy are designed to bypass static, disk-based signatures.
- Avoid rebooting the machine during triage; rebooting clears the RAM and destroys the injected payloads needed for analysis.
References & External Analysis
- Search "occamy" on VirusTotal (External Analysis)
Frequently Asked Questions
How do I remove the Occamy Trojan_Generic from Windows?
Manual removal of Occamy is highly discouraged as it may leave persistence mechanisms intact. We recommend disconnecting the device from the internet and utilizing a professional incident response service or enterprise-grade EDR software to conduct a full forensic sweep.
Is Occamy a virus or a Trojan_Generic?
Occamy is classified as a Trojan_Generic. Unlike traditional viruses that infect files, modern malware like Occamy typically operates as a standalone payload designed to compromise systems, steal data, or deploy secondary stage implants.
What are the main symptoms of a Occamy infection?
Symptoms of Occamy can include unexpected system slowness, unauthorized outbound network traffic to unknown IP addresses, disabled security software, and suspicious background processes running from AppData or Temp directories.
Related Families (Category: trojan_generic)
Explore other malware families in the same category:
Protect Your Network Against Trojan_Generics
Want to prevent Occamy and similar threats from compromising your organization? Read our comprehensive defensive guide: Banking Trojan Protection.
Machine-readable
Get this profile as JSON: https://jordan123234-malware-families-explorer.static.hf.space/api/occamy.json
Ecosystem & Interactive Environments
This profile is part of the Malware Families Catalog, a public dataset of 2,899 malware families. The catalog is also published across our ecosystem: Hugging Face, Kaggle, Zenodo, Replit, StackBlitz, CodeSandbox, and CodePen.