ValleyRAT
- Type
- RAT
- Capabilities
- KeyloggingExfiltrationPersistenceDefense evasionDLL sideloadingByovdProcess injection
- Delivery
- PhishingSeo poisoningLure
- Platforms
- Windows
ValleyRAT, also known as Winos 4.0, is a modular Windows remote-access trojan and backdoor implemented in C/C++ and derived from the Gh0st RAT code lineage. It provides remote system control, keystroke logging, data exfiltration, and extensible functionality through plugins. It is a principal tool associated with the Silver Fox intrusion cluster, although public availability of its builder and code means that a ValleyRAT infection alone does not establish Silver Fox attribution.
Distribution methods include tax-themed phishing, malicious PDF attachments linking to payload archives, and SEO-poisoned downloads impersonating gaming applications, AI tools, VPN software, and legitimate business applications. Infection chains frequently pair genuine signed executables with malicious libraries for DLL sideloading. Observed deployments use encrypted or compressed payloads, registry-based payload storage, in-memory execution, injection into legitimate Windows processes, and scheduled-task persistence. Command-and-control implementations vary, with both Gh0stKCP-based transport and WebSocket-based communications documented.
ValleyRAT's driver plugin supports stealth installation, protected-process management, forced file deletion, and APC injection. Its ecosystem includes abuse of signed vulnerable kernel drivers to interfere with security products and evade detection. Campaigns have targeted Chinese-speaking users and organizations across Asia, including Taiwanese entities and Japanese businesses, with tax and financial-document lures directed at enterprise personnel. Its association with both financially motivated and suspected espionage-oriented activity does not establish a single motive or state sponsor for every deployment.
Associated vulnerabilities
2 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
13 distinct threat actors Mallory has associated with this family across public reporting. Open in Mallory to see the full evidence chain and overlapping campaigns.
Silver Fox relies on ValleyRAT (aka Winos), which can be considered as its primary modular backdoor.
We investigated an operation, seen from August to October 2026, that spread the Windows backdoor ValleyRAT. We analysed 44 loader builds and decrypted every configuration.
тројанци за далечински пристап (RAT) како ValleyRAT (познат и како Winos 4.0), DcRAT и потенцијално Venom RAT
However, we have observed ValleyRAT and AtlasRAT using the same C2 servers on different ports, suggesting a shared operator.
Silver Fox has a track record of using spoofed vendor download pages to distribute Gh0st RAT and ValleyRAT. A malicious QN Wallpaper installer also delivers ValleyRAT through a DLL sideloading chain.
Silver Fox has a track record of using spoofed vendor download pages to distribute Gh0st RAT and ValleyRAT. A malicious QN Wallpaper installer also delivers ValleyRAT through a DLL sideloading chain.
+7 more in the app. View in Mallory
Techniques & procedures
137 distinct techniques documented for this family, organized by ATT&CK tactic.
Reconnaissance
3 techniques
Reconnaissance
"Targeting of specific regions (Taiwan, Japan, Malaysia, Southeast Asia) and sectors (finance, government) indicates pre-campaign reconnaissance."
"Adversaries use web-based templates hosted on multiple domains (.vip, .sbs, .xin, etc.) likely after reconnaissance of regional trust sources."
all while using convincing tax authority impersonation lures to gain initial entry.
Resource Development
8 techniques
Resource Development
The repository had typosquatted OpenAI's legitimate Privacy Filter release, copied its model card nearly verbatim, and shipped a loader.py file that fetches and executes infostealer malware on Windows machines.
Every IP in that list, with the exception of 95.173.197.195, is Alibaba Cloud Hong Kong (AS45102). The actor picked one cloud provider, one region, one registrar, and one personal Gmail account for the entire setup.
The C2 server sits on 137.220.153[.]175... hosted on AS4907 BGPNET PTE. LTD. in Hong Kong... The delivery domain resolves to a second Hong Kong host on a different ASN.
以下の 4 つの正規サイトの悪用が確認されました。 github[.]com myqcloud[.]com gofile[.]io limewire[.]com
"Reused or compromised hosting platforms (.sbs, .lol, .cn) to deploy phishing kits."
MITRE ATT&CK Mapping ... Resource Development Compromise Infrastructure: Server T1584.004 Compromised Cardiff GovRoam endpoint as relay
MITRE ATT&CK Mapping... Resource Development Stage Capabilities: Upload Malware T1608.001
SEO poisoning (T1608.006) For this campaign, Void Arachne set up a web infrastructure that is used for SEO poisoning
Initial Access
8 techniques
Initial Access
The campaign is using bogus software-download websites to impersonate trusted vendors and distribute malicious installers. | CuboidalCanine... targets the gambling industry and uses watering holes to distribute the malware.
“newly observed initial access vector: compromised PHP servers exposed to remote code execution.”
A fake repository impersonating OpenAI’s Privacy Filter tool climbed to the top of Hugging Face’s trending list last week... Attackers cloned its documentation almost word-for-word, creating a mirror repository that looked credible enough to fool experienced developers at first glance.
Software Update Abuse Exploitation of legitimate update mechanisms: Compromise of update channels in popular local Chinese software Injection into software distribution networks Abuse of trusted software vendors’ infrastructure
Distribution methods include phishing emails, fake software installers, and malicious websites.
ValleyRAT campaign uses fake GSTR-3B overdue notice targeting Indian taxpayers
For this campaign, Void Arachne set up a web infrastructure that is used for SEO poisoning that deployed spear-phishing links (T1566.002) disguised as legitimate software installers to lure potential victims.
T1566.003 | Initial Access | Phishing: Spearphishing via Service | 2 | Phishing via WhatsApp messages urging Coretax account activation (with .ZIP attachments).
Execution
16 techniques
Execution
CleverSoar employs a persistence mechanism by executing a scheduled task upon user login (T1053).
Persistence is achieved via three Scheduled Tasks masquerading as native Windows Update maintenance jobs.
MITRE ATT&CK Coverage ... Execution Command and Scripting Interpreter T1059 In-memory shellcode execution
During execution, the script uses the PowerShell Add-MpPreference cmdlet to create a Microsoft Defender exclusion for the target folder where additional malicious files are staged.
The malware also uses the netsh command to set up port forwarding and configure firewall rules named “Safe<integer>” on the victim’s machine
the malware drops a Visual Basic Script (VBScript) designed to automate the creation of a scheduled task within Windows Task Scheduler
The package's postinstall hook silently executes an obfuscated JavaScript loader that spawns a base64-encoded PowerShell command, which in turn fetches and executes a second-stage PowerShell script from attacker-controlled infrastructure.
The Main function performs initial operations ... using GetCurrentThreadId, PostThreadMessageA, GetInputState, and CreateThread APIs.
If the first payload is extracted from the sample, we find a shellcode, followed by a SafeRAT binary. The shellcode used to load the binary is DONUT.
MITRE ATT&CK ... Persistence BITS Jobs T1197 SilverFox loader persistence
The attack chain employs social engineering and counterfeit domains to trick users into downloading malicious ZIP archives.
2. Initial Access - Drive-by Compromise (T1189) + Malicious Link (T1204.001) Пользователь находит отравленный результат в поиске и переходит по ссылке.
Initial Access Trojanized software / Masquerading as legitimate installer T1204.002
Finally, a kernel rootkit is installed, supporting more than 65 command codes and taking instructions from the RAT through named pipes... Additional plugins can be pushed to victims after infection, again delivered through named pipes
The malware also employs NTDLL unhooking to bypass endpoint security software.
The infection begins with DLL sideloading, where a malicious file is smuggled in alongside a legitimate, signed application.
Persistence
12 techniques
Persistence
After launching the second-stage executable, the malware starts cmd.exe and executes the watchdog script. The script repeatedly uses native Windows utilities... If the process is no longer present, the script relaunches the executable
CleverSoar employs a persistence mechanism by executing a scheduled task upon user login (T1053).
Persistence is achieved via three Scheduled Tasks masquerading as native Windows Update maintenance jobs.
When the 0x0A command is received ... the specified value is deleted using RegDeleteValueW ... [and] stored as REG_BINARY using RegSetValueExW.
MITRE ATT&CK ... Persistence BITS Jobs T1197 SilverFox loader persistence
Annotations ID Technique Tactic T1543 Create or Modify System Process Persistence
Additionally, the malware creates a Windows service that starts with CreateSvc_ to execute the VBScript file.
“implements the watchdog by injecting code into Explorer.exe and UserAccountBroker.exe… designed to restart the infection if it is interrupted.”
The library keeps QnWallpaper.exe active after reboot by creating a file association.
The installer deployed a modified QN Wallpaper application and added it to autostart.
When the parameter is 0, it retrieves the path of the current executable and copies itself to the Programs directory under the Windows Start Menu using the name GFIRestart32.exe. When the parameter is 1, it opens the HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run Registry key and checks whether an autorun value named GFIRestart32.exe exists.
By operating at the kernel level, these attacks effectively blind standard security software, allowing the malware to execute without raising any alerts.
Privilege Escalation
20 techniques
Privilege Escalation
After launching the second-stage executable, the malware starts cmd.exe and executes the watchdog script. The script repeatedly uses native Windows utilities... If the process is no longer present, the script relaunches the executable
CleverSoar employs a persistence mechanism by executing a scheduled task upon user login (T1053).
Persistence is achieved via three Scheduled Tasks masquerading as native Windows Update maintenance jobs.
injects it into a legitimate svchost.exe process, which then establishes a WebSocket-based C2 channel
Memory Injection : WriteProcessMemory and CreateRemoteThread for payload delivery
...fetch shellcode that's injected into a new "svchost.exe" process using a technique called thread-context hijacking.
“user-mode shellcode injection via APCs…”
Téléchargement et exécution de modules supplémentaires (DLL ou shellcode via process hollowing sur svchost).
The Chinese cybercrime group known as Silver Fox has been observed using new drivers as part of bring your own vulnerable driver (BYOVD) attacks... not before leveraging the BYOVD technique to obtain kernel access and impair security controls on the compromised host to evade detection.
MITRE ATT&CK Mapping ... Privilege Escalation Access Token Manipulation: Token Impersonation T1134.001 AdjustTokenPrivileges import
Access Token Manipulation: Create Process with Token - T1134.002 5 out of 18 malware families manipulate the process token to gain greater control over other processes on the system.
Annotations ID Technique Tactic T1543 Create or Modify System Process Persistence
Additionally, the malware creates a Windows service that starts with CreateSvc_ to execute the VBScript file.
“implements the watchdog by injecting code into Explorer.exe and UserAccountBroker.exe… designed to restart the infection if it is interrupted.”
The library keeps QnWallpaper.exe active after reboot by creating a file association.
The installer deployed a modified QN Wallpaper application and added it to autostart.
When the parameter is 0, it retrieves the path of the current executable and copies itself to the Programs directory under the Windows Start Menu using the name GFIRestart32.exe. When the parameter is 1, it opens the HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run Registry key and checks whether an autorun value named GFIRestart32.exe exists.
By operating at the kernel level, these attacks effectively blind standard security software, allowing the malware to execute without raising any alerts.
If the user lacked administrator rights, the malware attempted to obtain them using the runas utility.
Le malware vérifie les privilèges administrateur (utilise runas si nécessaire).
Stealth
39 techniques
Stealth
These drivers, embedded within a malicious DLL, form a modular BYOVD framework for defense evasion.
Import DLL name strings are deliberately corrupted : ././KerNEl32 , ./OLe32 , .\./MsVcrt .
These include a legitimately signed Google Chrome installer and several archived and encrypted components used to carry out malicious activity in the background... Password-protected 7-Zip archive... RC4-encrypted PE file.
Once running, the malware disables logging tools and antivirus scanning before hiding its next payload inside the pixel data of ordinary looking PNG images. That image based hiding technique, known as steganography, repeats at multiple points in the chain.
"This shellcode is stored in the registry value d33f... on key HKEY_CURRENT_USER\Console\1"
The heap payload brings the real loader behavior: PEB/export walking for dynamic API resolution
The malicious DLL extracts an encrypted ValleyRAT payload from a PeLoader file or from the DLL resources; both variants are encrypted with AES.
“[A] malicious installer disguised as a KakaoTalk installer” and “Malicious file names and creation paths consisted of random strings.”
T1036.004 | Defense Evasion | Masquerading: Masquerade Task or Service | 2 | Renaming executable files (.EXE) using the Indonesian language with taxation contexts.
These masquerade as native Windows Update maintenance tasks.
injects it into a legitimate svchost.exe process, which then establishes a WebSocket-based C2 channel
Memory Injection : WriteProcessMemory and CreateRemoteThread for payload delivery
...fetch shellcode that's injected into a new "svchost.exe" process using a technique called thread-context hijacking.
“user-mode shellcode injection via APCs…”
Téléchargement et exécution de modules supplémentaires (DLL ou shellcode via process hollowing sur svchost).
On top of that, the malware uses NTDLL unhooking to remove user-mode inline hooks placed by endpoint security software to keep tabs on native Windows API activity.
After completing the attack chain, man.exe creates a batch file named delete_self.bat to remove all files it had dropped during execution.
During analysis, a call to SetFileAttributes was observed with the value 7 which made the copied folder hidden.
MITRE ATT&CK Mapping ... Privilege Escalation Access Token Manipulation: Token Impersonation T1134.001 AdjustTokenPrivileges import
Access Token Manipulation: Create Process with Token - T1134.002 5 out of 18 malware families manipulate the process token to gain greater control over other processes on the system.
Sélectionne l’un de deux payloads AES-chiffrés ... valide les en-têtes PE, charge le payload en mémoire et transfère le contrôle via DllMain.
MITRE ATT&CK ... Persistence BITS Jobs T1197 SilverFox loader persistence
Previous campaigns involving ValleyRAT have also been known to employ advanced techniques such as Bring Your Own Vulnerable Driver (BYOVD).
Defense Evasion Signed Binary Proxy Execution T1218
The MSI sets ARPSYSTEMCOMPONENT=1 to hide from Add/Remove Programs and runs its VBScript custom action at sequence 4001 (right after file extraction) as SYSTEM via type 7238 (deferred, no impersonation).
"Using DllRegisterServer(), intel.dll is run..." and scheduled task command: "regsvr32.exe ... intel.dll"
В других кампаниях Silver Fox... ValleyRAT использовал Signed Binary Proxy Execution через rundll32.exe (T1218.011, Defense Evasion) - загрузка вредоносной DLL через легитимный системный процесс.
"it attempts to create a mutex named TEST to ensure that only one instance of the malware process is running"
Once launched, it performs checks to avoid executing within analysis and sandboxed environments
The malware uses the PathIsDirectoryA API to check whether the C:\Program Files\VMware\VMware Tools\ directory exists... If total RAM is below approximately 1.1 GB... [or] disk capacity is below approximately 110 GB, the program assumes that the environment may be a virtual machine and terminates itself.
the malware calls the GetTickCount() API both before and after invoking the Sleep() function... If the measured duration is less than or equal to 0x1c3 (451 milliseconds), the malware does not proceed
The dropper hides the directory with attrib +s +h
Depending on the v10[1] value, the process can be started on the normal desktop or with a hidden window.
Rundll32 также может использоваться для сокрытия данных в NTFS-атрибутах (T1564.004).
Resource Forking T1564.009 Payload embedded in PE resource section (.rsrc)
The malware also employs NTDLL unhooking to bypass endpoint security software.
The infection begins with DLL sideloading, where a malicious file is smuggled in alongside a legitimate, signed application.
This function uses sub_DD78E0 to validate the PE structure of the received data, uses VirtualAlloc to allocate the required memory regions, maps the PE image into memory, and prepares the relevant sections.
MITRE ATT&CK Mapping ... Defense Evasion Debugger Evasion T1622 TLS callback PEB.BeingDebugged + NtGlobalFlag checks
Defense Impairment
9 techniques
Defense Impairment
When the 0x0A command is received ... the specified value is deleted using RegDeleteValueW ... [and] stored as REG_BINARY using RegSetValueExW.
T1222.001 | Defense Evasion | Windows File and Directory Permissions Modification | 1 | Modifying file permissions utilizing cmd.exe to ensure seamless malware installation.
The use of code-signing certificates to bypass Windows SmartScreen is an important part of malware campaigns distributing EXE files.
CuboidalCanine... uses watering holes to distribute the malware by abusing code-signing certificates to bypass security controls.
The killer module, S.dll , terminates 192 security processes, among them 360sd.exe , ZhuDongFangYu.exe and MsMpEng.exe .
ValleyRAT... [can] wipe logs.
we have observed the creation and configuration of firewall rules via the OnFwConfig and OnFwInstall functions from NetFirewall.dll, which are designed to whitelist both inbound and outbound traffic associated with the malware
T1562.009 | Defense Evasion | Impair Defenses: Safe Mode Boot | 1 | Modifying SafeBoot\Minimal and Network registry keys to ensure MANC.exe executes in Safe Mode.
Impair Defenses T1562.010 VulnerableDriverBlocklistEnable = 0
Credential Access
4 techniques
Credential Access
Once deployed, ValleyRAT enables the actor to take remote control of the compromised machine, harvest sensitive information, monitor user activity, and maintain persistence in the targeted environment.
It then initializes the DirectInput API to configure the keyboard device and enables key capture. The captured keystrokes are written to the sys.key file.
The malware also targets Telegram data stored on infected machines, giving attackers access to private conversations and account details.
The malware then connected to a command-and-control server and began harvesting browser-stored credentials, session tokens, cryptocurrency wallet data, and system details.
Discovery
17 techniques
Discovery
System Service Discovery T1007 OpenServiceW, service enumeration
The application uses the GetForegroundWindow and GetWindowTextW APIs to retrieve the title of the user's active window.
The malware obtains the processor model information by reading the ProcessorNameString value under the HARDWARE\DESCRIPTION\System\CentralProcessor\0 Registry key.
That includes the hostname, IP addresses, Windows version, CPU information...
During our investigation, we found the following external and custom plugins for Winos 4.0 in the wild: ... 内网主机扫描.dll Internal Network Host Scan.dll
The malware checks a predefined list of process names ... running processes are enumerated using the CreateToolhelp32Snapshot, Process32FirstW, and Process32NextW APIs.
The resulting information is used for profiling the victim system and transmitting the data to the C2 server.
Winos has features that include file management, distributed denial of service (DDoS) using TCP/UDP/ ICMP/HTTP, full disk search
Behavioral Analysis MITRE ATT&CK Mapping Technique ID Observed Behavior Peripheral Device Discovery T1120 Drive enumeration (B: through Z:)
The malware uses the GetLocalTime API to retrieve the system's local date and time information.
Once launched, it performs checks to avoid executing within analysis and sandboxed environments
The malware uses the PathIsDirectoryA API to check whether the C:\Program Files\VMware\VMware Tools\ directory exists... If total RAM is below approximately 1.1 GB... [or] disk capacity is below approximately 110 GB, the program assumes that the environment may be a virtual machine and terminates itself.
the malware calls the GetTickCount() API both before and after invoking the Sleep() function... If the measured duration is less than or equal to 0x1c3 (451 milliseconds), the malware does not proceed
The malware checks a predefined list of process names (360Safe.exe, avp.exe, etc.) to identify security software running on the system.
Geolocation Data : Collection through locale APIs
System Location Discovery T1614.001 ip-api.com countryCode check
MITRE ATT&CK Mapping ... Defense Evasion Debugger Evasion T1622 TLS callback PEB.BeingDebugged + NtGlobalFlag checks
Lateral Movement
1 technique
Lateral Movement
Huorong documented the same s.jpg pattern: shellcode, compressed DLL, RPC Task Scheduler logic, and NdrClientCall3... Cover Task Scheduler RPC alongside command-line schtasks.exe: 86D35949-83C9-4044-B424-DB363231FD0C ncacn_np \pipe\atsvc NdrClientCall3
Collection
10 techniques
Collection
“Once installed, ValleyRAT grants the operator full control over the compromised machine, capable of collecting sensitive data.”
Once deployed, ValleyRAT enables the actor to take remote control of the compromised machine, harvest sensitive information, monitor user activity, and maintain persistence in the targeted environment.
It then initializes the DirectInput API to configure the keyboard device and enables key capture. The captured keystrokes are written to the sys.key file.
This suggests that the RAT maintains a local buffer of collected data before exfiltration to its command and control server.
All collected data is saved to a file on disk.
The MITRE ATT&CK mapping lists Screen Capture (T1113) among the malware capabilities.
Fonctionnalités espion : ... Capture du presse-papiers.
Additionally, it supports many functionalities including process injection and microphone recording
Even so, the surveillance features in its malware, including audio, webcam and keylogging capture, could be sold to or used by espionage actors.
Combined with the zlib 1.2.13 strings, this confirms the RAT’s C2 channel is implemented as a WebSocket connection with compression
Command and Control
17 techniques
Command and Control
MITRE ATT&CK Mapping ... Command and Control Fallback Channels T1008 Three fallback ports on Cardiff relay
...communicates with an external server ("43.128.26[.]132") to fetch shellcode... The resulting final-stage implant is ValleyRAT... including command-and-control (C2) communication...
this confirms the RAT’s C2 channel is implemented as a WebSocket connection with compression , not a raw custom TCP protocol as initially hypothesized from the dynamic analysis alone.
MITRE ATT&CK Historical (ValleyRAT C2 phase) T1071 · T1090 · T1571 · T1583.003
The malware also uses the netsh command to set up port forwarding... Specifically, it designates port 443 as the listening port on the local machine
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.
When I examined the ValleyRAT C2 traffic from the Triage sandbox execution I noticed that CapLoader as well as FlowCarp identified it as Gh0stKCP, which is a UDP-based protocol that ValleyRAT sometimes uses to transport its C2 traffic.
"Centralized infrastructure serving multilingual phishing pages with shared script logic."
MITRE ATT&CK Tactic Technique ID ... Command and Control Multi-Stage Channels T1104
“[D]eploy.Dll was loaded as a malicious DLL and then connected to a C2 server to download ValleyRAT.”
Command and Control Data Encoding / Compression T1132 / T1560
Winos has features that include file management... webcam control, and screen capturing. Additionally, it supports many functionalities including ... remote shell access
The two random-string companions trnebaiek.cn and eijmdixci.cn are the classic Silver Fox random-string C2 domain shape.
The C2 server sits on 137.220.153[.]175 , TCP port 886 . No TLS handshake, no HTTPS — a custom binary protocol... Port 886 is non-standard and a ValleyRAT family signature.
ValleyRAT に関しては独自プロトコルを用いて Socket 通信で特定のポート(1234、6666、8888など)を使用するため
alert tcp-pkt $EXTERNAL_NET any -> $HOME_NET any (msg:"ET MALWARE Winos4.0 Framework CnC Login Message CnC Server Response"; ... mitre_tactic_id TA0011, mitre_tactic_name Command_And_Control, mitre_technique_id T1573, mitre_technique_name Encrypted_Channel; target:src_ip;)
Sélectionne l’un de deux payloads AES-chiffrés selon le processus hôte ; la liste des TTPs identifie T1573.001.
Exfiltration
1 technique
Exfiltration
MITRE ATT&CK (ValleyRAT общий профиль): ... Exfiltration Over C2 Channel (T1041, Exfiltration)... Финальный импакт для жертвы - ... exfiltration данных...
Impact
2 techniques
Impact
Volume Shadow Copy Manipulation : WMI and COM APIs for potential ransomware staging
On operator command, the backdoor can reboot and shut down the infected machine.
Observables
1,020 indicators attributed across vendor reports, sandbox runs, and researcher write-ups. Values are masked here and available in full in Mallory.
Recent activity
200 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.