FakeM
- Type
- RAT
- Capabilities
- Credential theftKeyloggingExfiltrationPersistencePost exploitationDefense evasionReconnaissance
- Delivery
- SpearphishingLure
- Platforms
- Windows
FakeM is a Windows remote access Trojan family first publicly documented in 2013. It disguises command-and-control communications as legitimate Windows Messenger, Yahoo! Messenger, or HTML traffic to evade network detection. The original variant encrypts communications using a custom XOR-and-bit-rotation cipher; other variants use RC4 or SSL, including modified SSL implementations that hinder conventional SSL inspection and decryption.
FakeM supports shell command execution, in-memory code execution, file and directory browsing, host-information collection, process management, registry and service access, screenshot capture, password access, keylogging, and file exfiltration. It establishes persistence through Windows registry-based automatic execution. Initial communications can transmit the compromised host’s username, computer name, and system information to its controller.
Observed delivery mechanisms include spearphishing emails containing malicious Microsoft Word or Excel attachments and directly attached executables. Document-based attacks have exploited CVE-2010-3333, CVE-2012-0158, and CVE-2009-3129, using tailored social-engineering lures to encourage recipients to open the attachments.
FakeM, including its Custom SSL variant, has been used extensively in Scarlet Mimic espionage operations targeting Tibetan and Uyghur communities, activists, journalists, nongovernmental organizations, and government agencies in Russia and India.
Associated vulnerabilities
3 CVEs Mallory has correlated with this family across public research and vendor advisories. Each card links to the full Mallory page for that vulnerability.
Associated threat actors
1 distinct threat actor Mallory has associated with this family across public reporting. Open in Mallory to see the full evidence chain and overlapping campaigns.
The malware primarily used in this series of attacks was FakeM.
Techniques & procedures
12 distinct techniques documented for this family, organized by ATT&CK tactic.
Initial Access
1 technique
Initial Access
A common technique is the use of document-based malware... Carefully crafted email lures are sent to targets carrying exploits that leverage well-known vulnerabilities... The malicious attachment installs the file pshvb.exe
Execution
2 techniques
Execution
Binaries Filename: iph.bat MD5: d2e9412428c3bcf3ec98dba8a78adb7b
Carefully crafted email lures are sent to targets carrying exploits that leverage well-known vulnerabilities (e.g., CVE-2012-0158, CVE-2010-3333)
Stealth
1 technique
Stealth
The email was sent to the internal mailing list for a steering committee of a Tibetan NGO... The message spoofed the e-mail of the NGO’s director... The email masquerades as sent by a Tibetan activist
Credential Access
1 technique
Credential Access
[FakeM](https://attack.mitre.org/software/S0076) contains a keylogger module.(Citation: Scarlet Mimic Jan 2016)
Collection
1 technique
Collection
[FakeM](https://attack.mitre.org/software/S0076) contains a keylogger module.(Citation: Scarlet Mimic Jan 2016)
Command and Control
7 techniques
Command and Control
Many entries describe XOR, XOR/ADD, bitwise NOT and XOR, ROR plus XOR, hexadecimal encoding after encryption, and custom encoding/obfuscation of HTTP traffic or beacons.
[FakeM](https://attack.mitre.org/software/S0076) C2 traffic attempts to evade detection by resembling data generated by legitimate messenger applications, such as MSN and Yahoo! messengers. Additionally, some variants of [FakeM](https://attack.mitre.org/software/S0076) use modified SSL code for communications back to C2 servers, making SSL decryption ineffective.(Citation: Scarlet Mimic Jan 2016)
The attack group primarily uses well-known vulnerabilities and the “FakeM” malware family... which attempts to disguise its malicious traffic as commonly used protocols.
Some variants of [FakeM](https://attack.mitre.org/software/S0076) use SSL to communicate with C2 servers.(Citation: Scarlet Mimic Jan 2016)
A cluster of Scarlet Mimic attacks used the FakeM Custom SSL variant and were deployed on C2 infrastructure that relied on free domains provided by Securepoint, a German dynamic DNS service.
The content is a catalog of malware and threat groups that encrypt command-and-control communications using algorithms such as DES, AES, RC4, XOR, Blowfish, RSA, Camellia, RC2, RC6, and custom ciphers.
The original variant of [FakeM](https://attack.mitre.org/software/S0076) encrypts C2 traffic using a custom encryption cipher that uses an XOR key of “YHCRA” and bit rotation between each XOR operation. Some variants of [FakeM](https://attack.mitre.org/software/S0076) use RC4 to encrypt C2 traffic.(Citation: Scarlet Mimic Jan 2016)
Observables
11 indicators attributed across vendor reports, sandbox runs, and researcher write-ups. Values are masked here and available in full in Mallory.
Recent activity
12 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.