Skip to main content
Live Webinar with SANS (June 25)— Agentic CTI Automation for Fun & ProfitRegister Free
Mallory
Back to malware
Malware

ValleyRAT_S2

ValleyRAT_S2 is a second-stage malware payload in the ValleyRAT family and is described as a modular, highly evasive C++ remote access trojan used for cyber-espionage and long-term covert access. It functions as the core backdoor component after an initial Stage 1 infection. Reported targeting includes organizations in mainland China, Hong Kong, Taiwan, and Southeast Asia, with reporting also describing theft of sensitive financial information.

Observed delivery vectors include fake Chinese-language productivity tools marketed as "AI表格生成工具," cracked software, trojanized installers and utilities, targeted phishing emails with malicious .doc, .xls, and .pdf attachments, compressed archives with disguised executables, and abuse of legitimate software update mechanisms. A prominent execution technique is DLL side-loading, in which legitimate signed applications load malicious DLLs from the same directory. Reported masqueraded DLL names include steam_api64.dll and apphelp.dll, and an example drop path is C:\Users\Admin\AppData\Local\Temp\AI自动化办公表格制作生成工具安装包\steam_api64.dll.

Capabilities described in the content include system reconnaissance and host profiling, such as collecting operating system information, locale settings, registry data, installed software details, process listings, and scanning file systems for hidden drives, removable media, and network shares. ValleyRAT_S2 is also reported to support file upload and download, shell command execution, local data exfiltration, credential theft, financial data collection, and keystroke monitoring via Windows hooks. Evasion and post-exploitation behaviors include sandbox detection, process injection using WriteProcessMemory and CreateRemoteThread, thread context manipulation, and use of trusted-looking process names such as Telegra.exe and WhatsApp.exe.

Persistence mechanisms described include Windows Task Scheduler abuse via COM APIs, possible registry run keys, staged files in %TEMP% and AppData paths, and a watchdog mechanism implemented with batch scripts. Reported artifacts include %TEMP%\target.pid, monitor.bat, and a configuration path under %APPDATA%\Promotions\Temp.aps. The malware is said to create temporary staging artifacts in %TEMP% and restart itself if terminated. Command-and-control uses hardcoded infrastructure over a custom TCP-based protocol; a reported C2 endpoint is 27.124.3.175:14852. Additional reported behaviors include initialization that masquerades as Steam-related activity and use of callbacks disguised as legitimate Steam events.

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.

MITRE ATT&CK

Techniques & procedures

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

Initial Access

1 technique
T1566.001Spearphishing AttachmentEvidence1

“Additional distribution vectors include targeted phishing email campaigns with malicious document attachments (.doc, .xls, .pdf) and compressed archives…”

Execution

1 technique
T1053Scheduled Task/JobEvidence1

“The malware implements advanced persistence techniques through Task Scheduler integration via COM APIs…”

Persistence

1 technique
T1053Scheduled Task/JobEvidence1

“The malware implements advanced persistence techniques through Task Scheduler integration via COM APIs…”

Privilege Escalation

2 techniques
T1053Scheduled Task/JobEvidence1

“The malware implements advanced persistence techniques through Task Scheduler integration via COM APIs…”

T1055Process InjectionEvidence2

Behavioral Analysis MITRE ATT&CK Mapping Technique ID Observed Behavior ... Process Injection T1055 WriteProcessMemory into explorer.exe

Stealth

3 techniques
T1036MasqueradingEvidence1

“Attackers disguise ValleyRAT_S2 within fake productivity tools… alongside cracked software downloads and legitimate-looking Chinese-language utilities.”

T1055Process InjectionEvidence2

Behavioral Analysis MITRE ATT&CK Mapping Technique ID Observed Behavior ... Process Injection T1055 WriteProcessMemory into explorer.exe

T1497Virtualization/Sandbox EvasionEvidence1

“…sandbox detection heuristics identify analysis environments to evade security researchers.”

Credential Access

2 techniques
T1056Input CaptureEvidence1

“…Windows Hook integration for keystroke monitoring.”

T1056.001KeyloggingEvidence1

Behavioral Analysis MITRE ATT&CK Mapping Technique ID Observed Behavior ... Input Capture: Keylogging T1056.001 SetWindowsHookEx (keyboard/message hooks)

Discovery

7 techniques
T1012Query RegistryEvidence1

Behavioral Analysis MITRE ATT&CK Mapping Technique ID Observed Behavior ... Query Registry T1012 Processor info, BIOS info (3 queries)

T1057Process DiscoveryEvidence1

“…enumerating running processes using Windows snapshot APIs.”

T1082System Information DiscoveryEvidence2

Behavioral Analysis MITRE ATT&CK Mapping Technique ID Observed Behavior ... System Information Discovery T1082 System fingerprinting (3 queries)

T1083File and Directory DiscoveryEvidence1

“The malware scans file systems for hidden drives, removable media, and network shares…”

T1120Peripheral Device DiscoveryEvidence1

Behavioral Analysis MITRE ATT&CK Mapping Technique ID Observed Behavior Peripheral Device Discovery T1120 Drive enumeration (B: through Z:)

T1135Network Share DiscoveryEvidence1

“…scans file systems for… network shares…”

T1497Virtualization/Sandbox EvasionEvidence1

“…sandbox detection heuristics identify analysis environments to evade security researchers.”

Collection

4 techniques
T1056Input CaptureEvidence1

“…Windows Hook integration for keystroke monitoring.”

T1056.001KeyloggingEvidence1

Behavioral Analysis MITRE ATT&CK Mapping Technique ID Observed Behavior ... Input Capture: Keylogging T1056.001 SetWindowsHookEx (keyboard/message hooks)

T1074Data StagedEvidence1

“constructs temporary environment staging in system %TEMP% directories… Environmental path resolution targets AppData\Roaming directories for staging malware data…”

T1115Clipboard DataEvidence1

Behavioral Analysis MITRE ATT&CK Mapping Technique ID Observed Behavior ... Clipboard Data T1115 AddClipboardFormatListener

Command and Control

1 technique
T1095Non-Application Layer ProtocolEvidence1

“…custom TCP-based protocols…” | “hardcoded endpoints… 27.124.3.175:14852, using custom TCP-based protocols that mimic benign traffic patterns.”

Impact

1 technique
T1490Inhibit System RecoveryEvidence1

“…persistence techniques through… Volume Shadow Copy manipulation.”

INDICATORS OF COMPROMISE

IOCs tracked for this family

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

View more in app
Network
1 tracked

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

TypeValueLatest sighting
ip.v4●●●●●●●●●●●●View more in app5 months ago
ACTIVITY FEED

Recent activity

3 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.

scworldNews
Jan 13, 2026
Second stage ValleyRAT payload emerges | SC Media

Second-stage ValleyRAT payload used for post-compromise activity including extensive system reconnaissance, persistence via Steam event-masquerading callbacks, process injection/DLL sideloading evasion, keystroke logging, and local data exfiltration with staging in %TEMP% directories.

Read more
gbhackersNews
Jan 12, 2026
ValleyRAT_S2: Stealth Intrusions Aimed at Financial Data Exfiltration

Second-stage modular C++ remote access trojan used for cyber-espionage. Provides backdoor access, persistence (Task Scheduler/COM APIs, watchdog scripts), system reconnaissance (OS/locale/registry/software, drives/shares, processes), code injection (WriteProcessMemory/CreateRemoteThread, thread context manipulation), possible keystroke monitoring (Windows hooks), and data exfiltration over custom TCP C2 (e.g., 27.124.3.175:14852). Commonly delivered via fake Chinese-language utilities/cracked software and DLL side-loading using masqueraded DLL names (e.g., steam_api64.dll, apphelp.dll).

Read more
cyber security newsNews
Jan 12, 2026
ValleyRAT_S2 Attacking Organizations to Deploy Stealthy Malware and Extract Financial Details

Second-stage ValleyRAT payload (C++), functioning as a full remote access trojan/backdoor. Provides long-term remote control, system discovery, credential theft, keylogging, file upload/download, command execution, payload injection, and exfiltration of financial data. Uses DLL side-loading, spearphishing attachments, and abused update channels for delivery; maintains persistence via Task Scheduler (COM APIs), possible Run keys, and a watchdog loop (monitor.bat + watch.vbs) that restarts the malware if terminated.

Read more
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 matching1

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

Threat actor attribution

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

Exploited vulnerabilities

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 mapping17

Every documented technique, ranked by evidence weight.

Researcher chatter

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