plain-crypto-js
- Type
- Dropper
- Capabilities
- Credential theftExfiltrationPersistencePost exploitationDefense evasionReconnaissance
- Delivery
- Fake update
- Platforms
- WindowsmacOSLinux
plain-crypto-js is a malicious npm package used as a cross-platform remote access trojan dropper in the March 2026 Axios software supply-chain compromise. Attackers hijacked an Axios maintainer’s npm account and published malicious Axios versions 1.14.1 and 0.30.4 containing plain-crypto-js 4.2.1 as an added runtime dependency. The dependency was never imported by Axios; its npm postinstall hook automatically executed the dropper during installation. A preceding benign release and copied crypto-js metadata helped disguise the package as legitimate.
The obfuscated Node.js dropper detects the operating system, contacts attacker-controlled infrastructure, and downloads and launches platform-specific RAT payloads: PowerShell on Windows, a native Mach-O binary on macOS, and Python on Linux. The payloads provide remote command and script execution, filesystem access, additional payload deployment, and reconnaissance of host information, directories, and running processes. They communicate through HTTP POST requests carrying Base64-encoded JSON. The campaign also supported theft of credentials and development-environment secrets, including npm tokens, cloud keys, SSH keys, and CI/CD secrets. The Windows payload establishes persistence through a registry autorun mechanism.
Defense-evasion measures include layered string obfuscation, abuse of legitimate system utilities, hidden or detached execution, and anti-forensic cleanup. After payload launch, the dropper deletes its installation script and replaces the malicious package manifest with a clean decoy. Exposure affected developer workstations and automated build environments across numerous industries. Microsoft attributed the Axios campaign to Sapphire Sleet, while Google attributed it to UNC1069, both North Korea-linked threat actors.
Associated threat actors
1 distinct threat actor Mallory has associated with this family across public reporting. Open in Mallory to see the full evidence chain and overlapping campaigns.
The threat actor compromised the lead maintainer of axios, injecting a backdoored dependency (plain-crypto-js) into the package manifest.
Techniques & procedures
45 distinct techniques documented for this family, organized by ATT&CK tactic.
Reconnaissance
1 technique
Reconnaissance
A clean v4.2.0 of plain-crypto-js was published 18 hours before the malicious v4.2.1. This staged the package name in the registry so it would not trigger new-package alerts when the malicious version shipped.
Initial Access
5 techniques
Initial Access
threat actors believed to be linked to North Korea hijacked the npm account of an Axios library maintainer and pushed malicious updates
two malicious versions of Axios were published to npm after an attacker hijacked the lead maintainer's account... Both versions introduce a hidden dependency ( plain-crypto-js )
Attackers published malicious Axios versions 1.14.1 and 0.30.4 after compromising a maintainer's npm account; rather than modifying Axios directly, they added a malicious dependency, plain-crypto-js.
MITRE ATT&CK TTPs ID Technique Description T1195.002 Compromise Software Supply Chain Hijacked npm maintainer account published poisoned Axios versions bypassing OIDC Trusted Publisher
any environment that ran npm install and resolved to axios@1.14.1 or axios@0.30.4 during the approximately three-hour exposure window may have executed the malicious payload automatically with no user interaction required.
Execution
15 techniques
Execution
On Linux and macOS, the malware waited 60 seconds and then contacted a remote server to retrieve commands for execution.
macOS: The dropper uses AppleScript... launches it silently via /bin/zsh. Windows: ... uses VBScript to fetch and execute a secondary PowerShell RAT script... Linux: The dropper uses the Node.js execSync command to download a Python RAT script...
Windows: The dropper searches for and copies the legitimate Windows PowerShell binary to %PROGRAMDATA%\wt.exe. It then uses VBScript to fetch and execute a secondary PowerShell RAT script, which is subsequently executed by wt.exe.
macOS: The dropper uses AppleScript to download a C++ compiled Mach-O binary, saves it to /Library/Caches/com.apple.act.mond, makes it executable and launches it silently via /bin/zsh.
macOS: ... launches it silently via /bin/zsh.
Windows: ... It then uses VBScript to fetch and execute a secondary PowerShell RAT script...
Linux: The dropper uses the Node.js execSync command to download a Python RAT script to /tmp/ld.py, running it in the background using the nohup command.
They added a phantom dependency called plain-crypto-js that ran a postinstall hook deploying cross-platform malware.
Once installed, npm automatically ran post-install scripts tied to the dependency.
A developer or CI job runs npm install axios (or a dependency install/update that resolves to the affected versions). The package manager resolves and installs the injected dependency.
The only change in both malicious Axios versions was a single new dependency: "plain-crypto-js": "^4.2.1" . This package is never imported in the Axios source - it exists solely to run a postinstall hook
This triggers npm's postinstall lifecycle hook, executing a heavily obfuscated Node.js dropper script named setup.js in the background.
the axios source code wasn’t even altered; instead a malicious dependency, plain-crypto-js, was injected
Its sole purpose is to execute a postinstall script that acts as a cross-platform remote access trojan (RAT) dropper
This triggers npm's postinstall lifecycle hook, executing a heavily obfuscated Node.js dropper script named setup.js in the background.
Persistence
5 techniques
Persistence
On Linux and macOS, the malware waited 60 seconds and then contacted a remote server to retrieve commands for execution.
threat actors believed to be linked to North Korea hijacked the npm account of an Axios library maintainer and pushed malicious updates
Tämä hyökkääjän hallinnoima paketti lisäsi asentuessaan järjestelmään takaoven, joka ryhtyi välittömästi ottamaan yhteyttä hyökkääjän hallintapalvelimeen.
This package was never imported or referenced anywhere in the Axios source code — across all 86 files — and existed purely to trigger npm’s automatic postinstall hook during installation.
Windows: ... It also establishes persistence via a registry Run key.
Privilege Escalation
6 techniques
Privilege Escalation
On Linux and macOS, the malware waited 60 seconds and then contacted a remote server to retrieve commands for execution.
The C2 server accepts the same four commands from the attacker: kill (self-terminate) runscript (execute shell/script commands) peinject (drop and execute binary payloads) rundir (enumerate directories)
threat actors believed to be linked to North Korea hijacked the npm account of an Axios library maintainer and pushed malicious updates
Tämä hyökkääjän hallinnoima paketti lisäsi asentuessaan järjestelmään takaoven, joka ryhtyi välittömästi ottamaan yhteyttä hyökkääjän hallintapalvelimeen.
This package was never imported or referenced anywhere in the Axios source code — across all 86 files — and existed purely to trigger npm’s automatic postinstall hook during installation.
Windows: ... It also establishes persistence via a registry Run key.
Stealth
15 techniques
Stealth
a malicious dependency named "plain-crypto-js", an obfuscated dropper that deploys the WAVESHAPER.V2 backdoor
To make this outbound traffic look like benign npm registry requests, it appends platform-specific paths: packages.npm[.]org/product0 for macOS ... All the RAT variants use a hard-coded... user-agent string spoofing Internet Explorer 8 on Windows XP
The C2 server accepts the same four commands from the attacker: kill (self-terminate) runscript (execute shell/script commands) peinject (drop and execute binary payloads) rundir (enumerate directories)
After launching the payload, the dropper erases all evidence - deleting itself, removing the malicious package.json , and swapping in a pre-staged clean manifest.
T1070.004 Indicator Removal: File Deletion setup.js self-deletes, removes package.json, swaps in clean package.md stub
threat actors believed to be linked to North Korea hijacked the npm account of an Axios library maintainer and pushed malicious updates
On macOS it disguises itself as a system daemon...
The embedded malware, for its part, is launched via an obfuscated Node.js dropper ("setup.js") and is designed to branch into one of three attack paths based on the operating system
After launching the second-stage payload, the installer logic removes its own loader ( setup.js ) and removes the manifest ( package.json ) that contained the install trigger. It then renames package.md to package.json , leaving behind a clean-looking manifest
The only change in both malicious Axios versions was a single new dependency: "plain-crypto-js": "^4.2.1" . This package is never imported in the Axios source - it exists solely to run a postinstall hook
This triggers npm's postinstall lifecycle hook, executing a heavily obfuscated Node.js dropper script named setup.js in the background.
the axios source code wasn’t even altered; instead a malicious dependency, plain-crypto-js, was injected
Its sole purpose is to execute a postinstall script that acts as a cross-platform remote access trojan (RAT) dropper
This triggers npm's postinstall lifecycle hook, executing a heavily obfuscated Node.js dropper script named setup.js in the background.
MITRE ATT&CK TTPs ID Technique Description T1620 Reflective Code Loading PowerShell [scriptblock]::Create() from C&C response content executed in-process without disk write
Credential Access
2 techniques
Credential Access
MITRE ATT&CK Mapping Tactic Technique Description Credential Access Credential Dumping (T1003) Stealing tokens, SSH keys, env secrets
The RAT allowed them to remotely execute commands, inject new binaries, or capture cloud API tokens.
Discovery
4 techniques
Discovery
On every compromised host, the RAT performed immediate system reconnaissance: enumerating user directories, filesystem drive roots, and running processes
The malware was designed to perform reconnaissance... WAVESHAPER also... collects the returned system information, which is sent to the C2 server in an HTTP POST request.
The C2 server accepts the same four commands from the attacker: kill (self-terminate) runscript (execute shell/script commands) peinject (drop and execute binary payloads) rundir (enumerate directories)
The embedded malware, for its part, is launched via an obfuscated Node.js dropper ("setup.js") and is designed to branch into one of three attack paths based on the operating system
Collection
1 technique
Collection
File System Targets: Linux/macOS: ~/Documents, ~/Desktop, ~/.config, home directory Windows: Documents, Desktop, OneDrive, AppData\Roaming, all drive roots
Command and Control
4 techniques
Command and Control
During execution, the malware contacts command-and-control (C2) infrastructure at sfrclak[.]com to deliver platform-specific payloads, then deletes itself and replaces its package.json with a clean version to evade detection.
The full C2 URL is: http://sfrclak.com:8000/6202033
The dropper queries the operating system and sends an HTTP POST request to a command-and-control (C2) server at sfrclak[.]com:8000... The C2 server delivers a different payload depending on the victim's operating system.
The code was heavily obfuscated and built to stay unnoticed long enough to deploy a remote access trojan across Linux, macOS, and Windows systems.
Exfiltration
1 technique
Exfiltration
MITRE ATT&CK Mapping Tactic Technique Description Exfiltration Exfiltration Over Web (T1041) Data sent via curl POST requests
Impact
1 technique
Impact
The malware was designed to perform reconnaissance and establish persistence, with an added feature to self-destruct for evasion.
Observables
34 indicators attributed across vendor reports, sandbox runs, and researcher write-ups. Values are masked here and available in full in Mallory.
Recent activity
19 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.