PseudoManuscrypt
- Type
- Spyware
- Capabilities
- Credential theftKeyloggingExfiltrationPersistenceDefense evasionReconnaissanceProcess injection
- Delivery
- Cracked softwareSeo poisoning
- Platforms
- Windows
PseudoManuscrypt is a Windows spyware family identified in June 2021 and distributed through malware-as-a-service infrastructure using counterfeit pirated-software installers, cracks, key generators, and activation tools. Malicious download sites are promoted through search-engine optimization, and some installers impersonate industrial and engineering software. Distribution has also involved Glupteba, PrivateLoader, and NullMixer. Its broad, opportunistic campaigns have affected government agencies, industrial enterprises, military-industrial organizations, and research laboratories worldwide. Between January and November 2021, Kaspersky blocked it on more than 35,000 computers across 195 countries; at least 7.2% of attacked computers were associated with industrial control systems.
PseudoManuscrypt supports keylogging, clipboard collection, credential and VPN configuration theft, microphone recording, screen capture, and host and network reconnaissance. Variants can steal QQ and WeChat authentication credentials, collect Windows event logs, download and execute files, and execute attacker-supplied shell commands. It stores encrypted payload data in the Windows registry, injects payloads into service-host processes, and establishes persistence through automatically started Windows services. Defense-evasion functions include adding Windows Defender exclusions, terminating security processes, removing security-service configuration, and clearing event logs.
Command-and-control communications use KCP over UDP with TCP fallback, together with a custom protocol employing compression and XOR obfuscation. A domain-generation algorithm supplies fallback command-and-control destinations, and the malware supports remote updates. Its loader resembles Manuscrypt, associated with Lazarus, and its KCP implementation has technical overlap with tooling used by APT41; neither overlap establishes attribution to those groups.
Associated threat actors
2 distinct threat actors Mallory has associated with this family across public reporting. Open in Mallory to see the full evidence chain and overlapping campaigns.
We dubbed the newly-identified malware PseudoManuscrypt. The PseudoManuscrypt loader makes its way onto user systems via a MaaS platform that distributes malware in pirated software installer archives.
We dubbed the newly-identified malware PseudoManuscrypt. The PseudoManuscrypt loader makes its way onto user systems via a MaaS platform that distributes malware in pirated software installer archives.
Techniques & procedures
48 distinct techniques documented for this family, organized by ATT&CK tactic.
Resource Development
2 techniques
Resource Development
The PseudoManuscrypt loader makes its way onto user systems via a MaaS platform that distributes malware in pirated software installer archives.
The PseudoManuscrypt loader makes its way onto user systems via a MaaS platform that distributes malware in pirated software installer archives.
Initial Access
1 technique
Initial Access
Resources used to distribute such installers can be found in top positions on search engine results pages. This indicates that the attackers are actively performing search-engine optimization for these resources.
Execution
4 techniques
Execution
One specific case of the PseudoManuscrypt downloader’s distribution is its installation via the Glupteba botnet
the file key.bat is extracted from a fake installer, key.bat executes Keygen-step-4.exe
These chains are diverse, but they all begin with fake pirated software installer archives.
Le malware est majoritairement diffusé via de faux installateurs de logiciels, souvent présentés comme des versions piratées des programmes populaires et distribués via des réseaux de diffusion malveillants.
Persistence
4 techniques
Persistence
Finally, the malware adds itself to the exclusions list of the Windows Defender antivirus solution by modifying the registry key HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows Defender\Exclusions\Paths. | the malware used in the attack loads its payload from the system registry and decrypts it. The payload’s location in the registry is unique for each infected system.
To ensure that the payload is automatically executed after system startup, the Trojan creates a service, which has the loader component as its executable file.
Afin d’assurer sa persistance, "PseudoManuscrypt" stocke du code chiffré dans le registre Windows...
Writing data received from the malware command-and-control server to the system file %System32%\drivers\etc\hosts, thereby enabling the attackers to redirect the user to malicious web resources or block access to selected sites.
Privilege Escalation
4 techniques
Privilege Escalation
it checks the process id of services that include “-k netsvcs” in their arguments, then injects the decoded “install.dat” in the process.
The malware attempts to gain the SeDebugPrivilege privileges
To ensure that the payload is automatically executed after system startup, the Trojan creates a service, which has the loader component as its executable file.
Afin d’assurer sa persistance, "PseudoManuscrypt" stocke du code chiffré dans le registre Windows...
Stealth
7 techniques
Stealth
The encoded “install.dat” data is then saved to the registry key. – HKLM\SOFTWARE\Classes\CLSID\MachineGuid(“Global”):1
PseudoManuscrypt is disguised as an installer that is similar to a form of Cryptbot... The top-level file disguised as an illegal program is in the form of NSIS (Nullsoft Scriptable Install System) Installer
it checks the process id of services that include “-k netsvcs” in their arguments, then injects the decoded “install.dat” in the process.
One of the PseudoManuscrypt functions removes a file named “TestDown”
The malware attempts to gain the SeDebugPrivilege privileges
rundll32.exe "C:\Users\X\AppData\Local\Temp\sqlite.dll",global
rundll32.exe "C:\Users\X\AppData\Local\Temp\sqlite.dll",global
Defense Impairment
4 techniques
Defense Impairment
Finally, the malware adds itself to the exclusions list of the Windows Defender antivirus solution by modifying the registry key HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows Defender\Exclusions\Paths. | the malware used in the attack loads its payload from the system registry and decrypts it. The payload’s location in the registry is unique for each infected system.
Writing data received from the malware command-and-control server to the system file %System32%\drivers\etc\hosts, thereby enabling the attackers to redirect the user to malicious web resources or block access to selected sites.
Disabling antivirus solutions. The malware attempts to gain the SeDebugPrivilege privileges and terminate the following processes of security solutions
Clearing Windows Application, Security, and System event logs.
Credential Access
6 techniques
Credential Access
It steals various user credentials including the data below via this process and sends them to the attacker’s server.
Keylogger. Enables the malware to intercept the codes of keys pressed by the user on the keyboard.
PseudoManuscrypt is a MaaS (malware as a service) used to steal cookies from multiple applications, including Firefox, Chrome, Edge, Opera, and Yandex.
Stealing VPN connection data. The malware gets the contents of the Windows service files used to store data on VPN connections configured on the infected system
Writing data received from the malware command-and-control server to the system file %System32%\drivers\etc\hosts, thereby enabling the attackers to redirect the user to malicious web resources or block access to selected sites.
it can be used (in conjunction with other bits of the PseudoManuscrypt functionality) to steal authentication data for RDP.
Discovery
6 techniques
Discovery
Collecting network connection data. The malware collects the names of network adapters, as well as connection type information
the malware also records the name of the application window in which the data was entered
Collecting information on processes that accept network connections on TCP and UDP ports.
Collecting detailed system information: Windows version, build number, Service Pack, information on installed updates and the Windows edition, as well as the system’s role
int32 sz_firmware_table; BYTE firmware_table [sz_firmware_table];
List of shared network folders
Collection
5 techniques
Collection
reading Windows Application, System, and Security event logs
Keylogger. Enables the malware to intercept the codes of keys pressed by the user on the keyboard.
Capturing videos from the computer’s screen.
Stealing data from the clipboard. Enables the attackers to intercept information copied by the user who works on an infected system.
Recording sound from microphones connected to an infected system. This feature is activated upon command from the malware command-and-control server.
Command and Control
10 techniques
Command and Control
compression_type can be one of the following... 0x3F -> zlib compression, then L1 xored with 0x88
Data collected by the malware is sent to the malware command-and-control server... The KCP protocol is used to connect to the server.
The intricate ARQ handshake routine does, however, allow for hole punching in firewalls, aka “NAT traversal”, which enables the protocol to be used for peer-to-peer communication. This p2p-enabling property could potentially be used to relay C2 communication through one or several bots, even if those bots are behind separate NAT firewalls.
this family communicates using KCP over UDP, and TCP as a fallback.
The file 2.exe uses the link hxxps://google[.]diragame[.]com/userf/3002/gogonami.exe to download the main PseudoManuscrypt module
Essentially, the functionality of PseudoManuscrypt provides the attackers with virtually full control of the infected system.
there was a main (possibly hardcoded) C2 domain (toa.mygametoa[.]com) and a fallback DGA that would trigger on specific conditions... if it is not able to communicate with it, the infected machine will fallback to the DGA.
The infected client will try to connect to each of the sequentially generated domains, and everytime it fails it will generate a new one.
"Gh0stKCP is a transport protocol based on KCP, which runs on top of UDP... used to carry command-and-control (C2) traffic"
the data exfiltration channel of the malware uses an implementation of the KCP protocol
Exfiltration
2 techniques
Exfiltration
Data collected by the malware is sent to the malware command-and-control server.
the data exfiltration channel of the malware uses an implementation of the KCP protocol
Impact
1 technique
Impact
...et de modification du fichier hosts.
Observables
149 indicators attributed across vendor reports, sandbox runs, and researcher write-ups. Values are masked here and available in full in Mallory.
Recent activity
14 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.