Skip to main content
Mallory
Malware2 associated actors

WhirlCoil

Tracked since Nov 25, 2025 · Updated 6 months ago
Trending this weekNot trendingOutside this week’s top 100
Mention activity · 30 daysNo mention activity in the last 30 days.
Vulns0Associated
Actors2Associated
ATT&CK15Techniques
IOCs24Tracked

WhirlCoil is an obfuscated Python loader used by the China-aligned threat actor TA415, which overlaps with activity tracked as APT41 and Brass Typhoon. Proofpoint observed TA415 using WhirlCoil in spear-phishing campaigns from at least September 2024 and again in July and August 2025 against U.S. government, think tank, and academic targets focused on U.S.-China relations, trade, and economic policy; earlier activity also targeted aerospace, chemicals, insurance, and manufacturing organizations. In the observed infection chain, password-protected archives hosted on services such as Zoho WorkDrive, Dropbox, and OpenDrive contained an LNK file and hidden files in a MACOS folder. The LNK executed a batch script such as logon.bat, which launched the WhirlCoil loader as update.py via a bundled pythonw.exe interpreter. Earlier variants reportedly downloaded the loader from paste sites such as Pastebin and obtained Python from the official Python website. WhirlCoil installs the VS Code CLI to %LOCALAPPDATA%\Microsoft\VSCode, checks administrative privileges via ctypes.windll.shell32.IsUserAnAdmin(), and creates scheduled-task persistence, commonly using names such as GoogleUpdate, GoogleUpdated, or MicrosoftHealthcareMonitorNode, typically configured to run every two hours and, when possible, with SYSTEM privileges. It then executes "code.exe tunnel user login --provider github --name <COMPUTERNAME>" to establish a Visual Studio Code Remote Tunnel, writes the returned verification code to output.txt, harvests system information including Windows version, locale, computer name, username, domain, and contents of multiple user directories, and exfiltrates the collected data plus the tunnel verification code via HTTP POST as base64-encoded data to free request-logging services such as requestrepo.com. With the verification code, the attacker can authenticate the VS Code Remote Tunnel and remotely access the victim filesystem and terminal for persistent backdoor access and arbitrary command execution.

Is this in your environment?See whether this family's indicators match your telemetry and which of your assets are exposed to the CVEs associated with it.
Check your exposure
Threat actors

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.

View more details →
APT41

The batch script executes the WhirlCoil Python loader (update.py) via pythonw.exe, which is bundled within an embedded Python package also located in the _MACOS_ folder of the archive.

via proofpoint threat insight blogproofpoint.com
APT17

The batch script executes the WhirlCoil Python loader (update.py) via pythonw.exe, which is bundled within an embedded Python package also located in the _MACOS_ folder of the archive.

via proofpoint threat insight blogproofpoint.com
MITRE ATT&CK

Techniques & procedures

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

Initial Access

2 techniques
T1078Valid AccountsEvidence1

The WhirlCoil script then runs the command code.exe tunnel user login --provider github --name <COMPUTERNAME>; to establish a VS Code remote tunnel authenticated via GitHub.

T1566.002Spearphishing LinkEvidence2

Throughout July and August 2025, TA415 conducted spearphishing campaigns targeting United States government, think tank, and academic organizations utilizing U.S.-China economic-themed lures.

Execution

4 techniques
T1053.005Scheduled TaskEvidence2

A scheduled task, typically named GoogleUpdate, GoogleUpdated, or MicrosoftHealthcareMonitorNode, is created for persistence which runs the WhirlCoil Python script every two hours.

T1059.003Windows Command ShellEvidence2

The function of the LNK file is to execute a batch script named logon.bat contained within the hidden folder and display a corrupt PDF hosted on OpenDrive to the user as a decoy document.

T1059.006PythonEvidence2

The batch script executes the WhirlCoil Python loader (update.py) via pythonw.exe, which is bundled within an embedded Python package also located in the _MACOS_ folder of the archive.

T1204.002Malicious FileEvidence1

The primary function of the LNK file is to execute a batch script within the hidden folder, and display a PDF document as a decoy to the user.

Persistence

2 techniques
T1053.005Scheduled TaskEvidence2

A scheduled task, typically named GoogleUpdate, GoogleUpdated, or MicrosoftHealthcareMonitorNode, is created for persistence which runs the WhirlCoil Python script every two hours.

T1078Valid AccountsEvidence1

The WhirlCoil script then runs the command code.exe tunnel user login --provider github --name <COMPUTERNAME>; to establish a VS Code remote tunnel authenticated via GitHub.

Privilege Escalation

2 techniques
T1053.005Scheduled TaskEvidence2

A scheduled task, typically named GoogleUpdate, GoogleUpdated, or MicrosoftHealthcareMonitorNode, is created for persistence which runs the WhirlCoil Python script every two hours.

T1078Valid AccountsEvidence1

The WhirlCoil script then runs the command code.exe tunnel user login --provider github --name <COMPUTERNAME>; to establish a VS Code remote tunnel authenticated via GitHub.

Stealth

2 techniques
T1027Obfuscated Files or InformationEvidence2

The WhirlCoil loader is a Python script obfuscated by repeated use of variable and function names like IIIllIIIIlIlIIlIII.

T1078Valid AccountsEvidence1

The WhirlCoil script then runs the command code.exe tunnel user login --provider github --name <COMPUTERNAME>; to establish a VS Code remote tunnel authenticated via GitHub.

Discovery

3 techniques
T1033System Owner/User DiscoveryEvidence1

Following this, the script collects system information (including Windows version, locale, computer name, username, and domain) and the contents of a range of user directories.

T1082System Information DiscoveryEvidence2

Following this, the script collects system information (including Windows version, locale, computer name, username, and domain) and the contents of a range of user directories.

T1083File and Directory DiscoveryEvidence1

Following this, the script collects system information (including Windows version, locale, computer name, username, and domain) and the contents of a range of user directories.

Collection

2 techniques
T1005Data from Local SystemEvidence1

The Python loader subsequently... harvests system information and the contents of various user directories.

T1560Archive Collected DataEvidence2

The phishing emails typically contained links to password-protected archives hosted on public cloud sharing services such as Zoho WorkDrive, Dropbox, and OpenDrive.

Command and Control

2 techniques
T1105Ingress Tool TransferEvidence1

The script first downloads the VSCode Command Line Interface (CLI) zip from legitimate Microsoft sources and extracts the zip to %LOCALAPPDATA%\Microsoft\VSCode.

T1219Remote Access ToolsEvidence2

The WhirlCoil script then runs the command code.exe tunnel user login --provider github --name <COMPUTERNAME>; to establish a VS Code remote tunnel authenticated via GitHub.

Exfiltration

1 technique
T1041Exfiltration Over C2 ChannelEvidence2

This information is sent via POST request to a free request logging service (such as requestrepo[.]com).

Indicators of compromise

Observables

24 indicators attributed across vendor reports, sandbox runs, and researcher write-ups. Values are masked here and available in full in Mallory.

View all in app →
Indicator values are available in Mallory. Pivot on every hash, domain, URL, and IP, or pipe them straight into your SIEM.View all in Mallory
Activity feed

Recent activity

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

View more in app →
+1 more in the timeline. Sign up to see them
Is this in your environment?See whether this family's indicators match your telemetry and which of your assets are exposed to the CVEs associated with it.
Check your exposure
Mallory platform

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 matching24Match every observed IP, domain, and hash against your live telemetry.
Associated threat actors2Groups linked to this family, with evidence pinned to each claim.
Associated vulnerabilitiesCVEs linked to this family, with the reporting behind each link.
Detection signaturesYARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
MITRE ATT&CK mapping15Every documented technique, ranked by evidence weight.
Researcher chatterReddit, Mastodon, and CTI community discussion around this family.