Skip to main content
Meet us at Black Hat USA 2026— Las Vegas, August 1–6Book a Meeting
Mallory
MalwareRansomwareUsed by 13 actorsExploits 1 CVE

ValleyRAT

Also known aswinos40

ValleyRAT is a modular, full-featured remote access trojan (RAT) written in C++ and built on the Winos4.0 framework, which multiple sources describe as rebuilt from or derived from Gh0stRAT. The payloads generated by Winos4.0 are referred to by Proofpoint as ValleyRAT, and the malware is also referenced as Winos4.0 or Winos 4.0 in reporting. It provides operators with broad remote access functionality and has been observed in cyber-espionage and financially motivated campaigns.

Reported capabilities include command-and-control communications, system reconnaissance, persistence, command execution, file upload and download, payload injection, credential harvesting, keylogging, and on-demand module delivery. Specific behaviors documented for ValleyRAT_S2, described as a second-stage ValleyRAT payload, include reconnaissance of OS, locale, architecture, environment variables, registry settings, installed software, drives, file systems, and running processes; persistence via Task Scheduler COM APIs; process injection using SetThreadContext, WriteProcessMemory, and CreateRemoteThread; keystroke monitoring via SetWindowsHookEx; dynamic API resolution via LoadLibrary and GetProcAddress; watchdog recovery using %TEMP%\target.pid and %TEMP%\monitor.bat; staging under %APPDATA%\Promotions\Temp.aps; execution through cmd.exe; and retry/delay logic to reduce detection. Proofpoint additionally states ValleyRAT supports DDoS functionality and can download additional modules on demand.

Observed delivery and execution methods include fake Chinese-language software installers, DLL side-loading with malicious DLLs such as steam_api64.dll and apphelp.dll placed beside legitimate signed applications, phishing attachments, compressed archives with disguised executables, abuse of software update channels, and downloader activity using Winos4.0. One analyzed sample masqueraded as an AI spreadsheet tool and used a malicious steam_api64.dll. Reporting also describes broader campaigns using DLL sideloading through files such as QQMusicCommon.dll, tedutil.dll, msys-2.0.dll, gxc_x64.dll, and VsGraphicsCore.dll, as well as WhatsApp- and phishing-driven delivery in some ecosystems associated with ValleyRAT or Winos4.0 activity.

ValleyRAT has been linked in reporting to Chinese-speaking threat activity and is commonly associated with the Silver Fox cluster, although some specific campaigns with infrastructure overlap were not confidently attributed. Proofpoint reports TA4922 using ValleyRAT/Winos4.0 in financially motivated campaigns targeting organizations across East Asia, Europe, and South Africa, while other reporting notes targeting of Chinese-speaking regions including mainland China, Hong Kong, Taiwan, and Southeast Asia. Additional reporting describes Indonesia-focused tax-themed phishing delivering malware identified as ValleyRAT/Winos4.0/Backdoor SilverFox.

High-confidence infrastructure and indicators mentioned in the content include command-and-control endpoints 27.124.3.175:14852 for ValleyRAT_S2 and 143.92.37.168:10086 using the Gh0stKCP protocol; IP 202.61.160.201 previously observed as infrastructure associated with ValleyRAT and Gh0st RAT activity; downloader activity to 154.201.68.57; and a sample hash d6387be78d258a820e4cb35ec53c65d52a813b63147488629b56269f6648adc1 for valleyrat_s2. Additional artifacts include %TEMP%\target.pid, %TEMP%\monitor.bat, %APPDATA%\Promotions\Temp.aps, and benign-looking names such as Telegra.exe and WhatsApp.exe used in memory or staging.

Share:
For your environment

Hunt this family in your stack

Mallory pivots from this family to the IOCs, detections, and named campaigns that touch your stack, and pages you when something new lands.

EXPLOITED CVES

Vulnerabilities exploited

1 CVE Mallory has correlated with this family across public research and vendor advisories. Each row links to the full Mallory page for that vulnerability.

1 CVES
CVE-2025-68947Improper authorization in NSecsoft NSecKrnl driver allows arbitrary process terminationExploited in the wild

"It's worth noting that the NSecKrnl driver is susceptible to a known security flaw (CVE-2025-68947, CVSS score: 5.7) that could be exploited to terminate arbitrary processes."

via the hacker newsthehackernews.com
THREAT ACTORS

Groups observed using it

13 distinct threat actors attributed by public researchers. Open in Mallory to see the full evidence chain and overlapping campaigns.

View more details
Silver Fox

202.61.160[.]201 had previously been observed as command-and-control infrastructure associated with ValleyRAT and Gh0st RAT activity.

via netresec blognetresec.com
SilverFox

The results of the IDS-rules detection are compatible with Win32/ProcessKiller, Winos4.0 and Backdoor SilverFox which both have the alias ValleyRAT.

via osint team blogosintteam.blog
APT Silver Fox

The results of the IDS-rules detection are compatible with Win32/ProcessKiller, Winos4.0 and Backdoor SilverFox which both have the alias ValleyRAT.

via osint team blogosintteam.blog
APT41

The threat actor also attempted to use a downloader built using the advanced malicious framework Winos4.0. The downloader, placed under drivers\etc masquerading as hosts.exe, attempted to connect to the IP address 154.201.68[.]57. After a successful connection, it downloads the payload and saves it into the registry key d33f351a4aeea5e608853d1a56661059. It then executes the payload.

via palo alto networks unit 42 blogunit42.paloaltonetworks.com
TA4922

Finally, this Proofpoint cybercrime analysis notes that the threat group continues to abuse the open-source Winos4.0 framework. In early 2026, researchers spotted a heavily modified variant featuring a massive codebase expansion.

via security online infosecurityonline.info
SilverFox APT

Our investigation revealed that the delivered payload leverages a DLL sideloading chain via a legitimate executable (GameBox.exe) developed by Tencent, ultimately deploying a ValleyRAT variant.

MITRE ATT&CK

Techniques & procedures

41 distinct techniques documented for this family, organized by ATT&CK tactic.

Initial Access

4 techniques
T1195.002Compromise Software Supply ChainEvidence1

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

T1566.001Spearphishing AttachmentEvidence3

Deployed through targeted phishing operations: Malicious document attachments (.doc, .xls, .pdf) Compressed archives (.zip, .rar) containing disguised executables

T1566.002Spearphishing LinkEvidence1

T1566.002 | Initial Access | Phishing: Spearphishing Link | 1 | Phishing via email containing tax invoices directing victims to typosquatting domains.

T1566.003Spearphishing via ServiceEvidence1

T1566.003 | Initial Access | Phishing: Spearphishing via Service | 2 | Phishing via WhatsApp messages urging Coretax account activation (with .ZIP attachments).

Execution

6 techniques
T1053.005Scheduled TaskEvidence2

Task Scheduler Integration : Uses COM API for automatic startup

T1059.001PowerShellEvidence1

Defender exclusion commands launched through ShellExecuteA and powershell.exe

T1059.003Windows Command ShellEvidence1

T1059.003 | Execution | Command and Scripting Interpreter: Windows Command Shell | 1 | Usage of LOLBins (cmd.exe, conhost.exe) during the dropping/installation process.

T1059.005Visual BasicEvidence2

The malware campaign embedded malicious code in VBScripts, which were distributed through WhatsApp DMs. The VBScript then dropped the legitimate Remote Monitoring and Management (RMM) tool ManageEngine Endpoint Central.

T1106Native APIEvidence1

T1106 | Execution | Native API | 2 | Execution of GetProcAddress and LoadLibrary APIs by the EXE to load DLL functions.

T1204.002Malicious FileEvidence2

Fake Software Installers ValleyRAT commonly disguises itself within: Fake productivity tools (e.g., “AI表格生成工具” — AI-based spreadsheet generator) Cracked or unofficial software downloads

Persistence

3 techniques
T1053.005Scheduled TaskEvidence2

Task Scheduler Integration : Uses COM API for automatic startup

T1112Modify RegistryEvidence1

Static review of rundll32.dat!Edge shows Sauron service behavior: Uses HKCU\SOFTWARE\Sauron

T1543.003Windows ServiceEvidence2

Static review of rundll32.dat!Edge shows Sauron service behavior: Uses HKCU\SOFTWARE\Sauron Copies itself to C:\Windows\svchost.exe when the Sauron key is absent Creates and starts service Sauron

Privilege Escalation

4 techniques
T1053.005Scheduled TaskEvidence2

Task Scheduler Integration : Uses COM API for automatic startup

T1055.002Portable Executable InjectionEvidence1

Memory Injection : WriteProcessMemory and CreateRemoteThread for payload delivery

T1055.003Thread Execution HijackingEvidence1

Thread Context Manipulation : Uses SetThreadContext for process hijacking

T1543.003Windows ServiceEvidence2

Static review of rundll32.dat!Edge shows Sauron service behavior: Uses HKCU\SOFTWARE\Sauron Copies itself to C:\Windows\svchost.exe when the Sauron key is absent Creates and starts service Sauron

Stealth

12 techniques
T1027.007Dynamic API ResolutionEvidence1

The heap payload brings the real loader behavior: PEB/export walking for dynamic API resolution

T1036MasqueradingEvidence1

ainstaller-86533005.exe is wearing a Panasonic jacket, and the fit is almost too good. Inspect the file metadata and everything points at PPcNotif.Provider.RequiredApp.exe, Panasonic PC Notification, version 1.10510.0.0.

T1036.004Masquerade Task or ServiceEvidence1

T1036.004 | Defense Evasion | Masquerading: Masquerade Task or Service | 2 | Renaming executable files (.EXE) using the Indonesian language with taxation contexts.

T1036.005Match Legitimate Resource Name or LocationEvidence1

T1036.005 | Defense Evasion | Masquerading: Match Legitimate Name or Location | 1 | Executing a rogue svchost.exe process outside of its legitimate C:\Windows\System32 directory.

T1055.002Portable Executable InjectionEvidence1

Memory Injection : WriteProcessMemory and CreateRemoteThread for payload delivery

T1055.003Thread Execution HijackingEvidence1

Thread Context Manipulation : Uses SetThreadContext for process hijacking

T1070.004File DeletionEvidence1

Triage process telemetry during this phase recorded: cmd.exe /c vssadmin delete shadows /all /quiet

T1140Deobfuscate/Decode Files or InformationEvidence1

The staged buffer goes through two decoder layers. The second decoder starts with key 0x38, walks 0xce0d bytes, XORs each byte, and feeds the decoded byte back into the key. The fully decoded stage then copies 0xae05 bytes from offset 0x2d and XOR-decodes them with: 4@e!c!bSL2AeimnwyD4x.

T1218.011Rundll32Evidence1

thumbs.db decodes to rundll32.dat, whose Edge export implements Sauron behavior.

T1497Virtualization/Sandbox EvasionEvidence1

Timing and environment checks through QueryPerformanceCounter, Sleep, rdtsc, VirtualAllocExNuma, mutex probes, process checks, heap pressure, and COM/object probes

T1497.001System ChecksEvidence2

Sandbox Detection : Heuristic analysis to detect analysis environments ... custom SEH handler ... known evasion technique in advanced malware

T1620Reflective Code LoadingEvidence1

On execution, the binary allocates a new RWX buffer, copies an encoded stage from its own image, decodes it twice, peels a heap payload with a 19-byte XOR key, and jumps into the loader.

Defense Impairment

2 techniques
T1112Modify RegistryEvidence1

Static review of rundll32.dat!Edge shows Sauron service behavior: Uses HKCU\SOFTWARE\Sauron

T1222.001Windows File and Directory Permissions ModificationEvidence1

T1222.001 | Defense Evasion | Windows File and Directory Permissions Modification | 1 | Modifying file permissions utilizing cmd.exe to ensure seamless malware installation.

Credential Access

1 technique
T1056.001KeyloggingEvidence1

Windows Hook Integration : SetWindowsHookEx for keystroke monitoring and control

Discovery

7 techniques
T1012Query RegistryEvidence1

Registry Analysis : Policy settings, installed software detection

T1057Process DiscoveryEvidence1

Process Enumeration : Running processes via snapshot APIs

T1082System Information DiscoveryEvidence1

Operating System Information : Version, locale, architecture, environment variables

T1083File and Directory DiscoveryEvidence1

File System Scanning : Hidden drives, removable media, network shares

T1497Virtualization/Sandbox EvasionEvidence1

Timing and environment checks through QueryPerformanceCounter, Sleep, rdtsc, VirtualAllocExNuma, mutex probes, process checks, heap pressure, and COM/object probes

T1497.001System ChecksEvidence2

Sandbox Detection : Heuristic analysis to detect analysis environments ... custom SEH handler ... known evasion technique in advanced malware

T1614System Location DiscoveryEvidence1

Geolocation Data : Collection through locale APIs

Lateral Movement

1 technique
T1021.003Distributed Component Object ModelEvidence1

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

1 technique
T1056.001KeyloggingEvidence1

Windows Hook Integration : SetWindowsHookEx for keystroke monitoring and control

Command and Control

6 techniques
T1071.001Web ProtocolsEvidence2

Traffic Mimicry : HTTP tunneling and benign traffic patterns

T1095Non-Application Layer ProtocolEvidence1

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.

T1105Ingress Tool TransferEvidence2

Modular Commands : File upload/download, shell execution, payload injection, credential harvesting

T1219Remote Access ToolsEvidence1

TA4922 might use a remote access Trojan (RAT), like ValleyRAT or Atlas RAT, to access targeted systems, or legitimate remote monitoring and management (RMM) software, like AnyDesk. In the latter case, it'll use a loader called RomulusLoader to bring the RMM onto the host system.

T1572Protocol TunnelingEvidence1

Gh0stKCP, which is a UDP-based protocol that ValleyRAT sometimes uses to transport its C2 traffic.

T1573Encrypted ChannelEvidence1

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;)

Impact

1 technique
T1490Inhibit System RecoveryEvidence1

Volume Shadow Copy Manipulation : WMI and COM APIs for potential ransomware staging

Other

2 techniques
T1562.001Disable or Modify ToolsEvidence1

ntdll.dll!NtTraceEvent patched with a single 0xc3 byte Defender exclusion commands launched through ShellExecuteA and powershell.exe

T1562.009Safe Mode BootEvidence1

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.

INDICATORS OF COMPROMISE

IOCs tracked for this family

534 indicators attributed across vendor reports, sandbox runs, and researcher write-ups. Full values are available in Mallory.

View more in app
Network
269 tracked

IPs, domains, and DNS infrastructure linked to this family.

Hashes
249 tracked

File hashes (MD5, SHA-1, SHA-256) from samples and reports.

Other
16 tracked

Other indicator types observed in public reporting.

TypeValueLatest sighting
hash.md5●●●●●●●●●●●●View more in app2 days ago
ip.v4●●●●●●●●●●●●View more in app2 days ago
ip.v4●●●●●●●●●●●●View more in app3 days ago
ip.v4●●●●●●●●●●●●View more in app3 days ago
ip.v4●●●●●●●●●●●●View more in app3 days ago
hash.md5●●●●●●●●●●●●View more in app3 days ago
What this page doesn’t show

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets match these IOCs, which detections are missing, which campaigns to expect next, and what to do in the next 30 minutes.
IOC matching534

Match every observed IP, domain, and hash against your live telemetry.

Threat actor attribution13

Named campaigns wielding this family, with evidence pinned to each claim.

Exploited vulnerabilities1

CVEs this family uses for access and lateral movement.

Detection signatures

YARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.

MITRE ATT&CK mapping41

Every documented technique, ranked by evidence weight.

Researcher chatter

Reddit, Mastodon, and CTI community discussion around this family.