Researchers Detail Enterotoxin Backdoor in Analysis of Malicious npm Packages

Summary
Analysis links [email protected] to a retrieved credential stealer and Enterotoxin, a Windows backdoor with remote Python/batch execution and surveillance capabilities. Its hook does not execute the fetched code; [email protected] runs only a no-op.
Key points
- [email protected] has a preinstall hook that fetches JavaScript from pastebin[.]com and calcal[.]ru, but this version reads the response without saving or executing it.
- The recovered JavaScript stealer targets developer and cloud credentials, archives collected files, and exfiltrates them through Telegram.
- The article’s static analysis traces the stealer’s payload to Enterotoxin, a Windows backdoor that accepts controller-supplied Python and batch tasks.
- Enterotoxin supports Run-key and scheduled-task persistence, shortcut hijacking, keylogging, clipboard monitoring, and full-desktop screenshots.
- The recovered [email protected] artifact launches a 14-byte no-op script; analysis found no credential theft, network destination, or Enterotoxin payload path in that version.
- The researchers analyzed samples as inert data and did not execute them or contact the controller; actor attribution remains unknown.
Article Details
- Attack Vectors
- [email protected] registers a preinstall hook that retrieves the same obfuscated JavaScript from two URLs. The article notes that this package version reads the response but does not write or execute it; the recovered JavaScript itself contains credential-stealing and payload-download behavior.
- The JavaScript stealer searches for developer and cloud credentials, archives collected files, and sends the archive through the Telegram Bot API. It also downloads and launches the Enterotoxin Windows executable.
- Enterotoxin communicates with a hard-coded HTTPS controller, retrieves server-supplied Python or batch tasks, executes them with the infected user's privileges, and uploads task results.
- Enterotoxin establishes persistence through a current-user Run key and scheduled tasks, can modify supported Windows shortcuts to launch its payload, and collects keystrokes, clipboard contents, and full-desktop screenshots.
- [email protected] is a related staged artifact, but its recovered child script is a 14-byte no-op. The article does not support attributing Clampony's malicious behavior to this Safeclamp3 build.
- Defensive Notes
- Investigate installations of [email protected], related [email protected] artifacts, and Node.js preinstall activity, while validating the exact package contents rather than assuming related packages share behavior.
- Hunt for Node.js requests to the reported payload URLs, traffic to 195.123.6.29:443, Enterotoxin protocol markers, and Telegram sendDocument activity following broad credential-file access.
- Check for the reported Microsoft Store-themed installation paths, Run-key value, scheduled tasks, task and surveillance spool files, keylogger artifacts, and shortcuts whose targets or arguments contain --payload.
- The article says the embedded Telegram bot secret was redacted and recommends treating the complete token as compromised and revoking it.
- The researchers handled the samples as inert data and did not execute them or contact the controller.
Indicators of compromise
| Type | Indicator | Context |
|---|---|---|
| IPV4 | 195[.]123[.]6[.]29 | Hard-coded Enterotoxin HTTPS controller and payload host. |
| SHA256 | 10a47e65e492bda12bb634439976fd3c63df62d4ff6cb2297df3bcefe7cfbdff | SHA-256 of the reported Clampony setup.js artifact. |
| SHA256 | 48cf14560a8c2c5eaa984078cb345a81bc6d49d6695a06851499a3a31260aa91 | SHA-256 of the Enterotoxin Windows executable. |
| SHA256 | 831ad680ca2bf13e94ed4ff0a3bcfeb031b183a2ad88024ceb2ebdf0326d7d24 | SHA-256 of the reported Clampony package.json artifact. |
| SHA256 | ca2b7eced5937817b2aca2d50542d2e171bc95593be72a94c158616ed17a5334 | SHA-256 of the obfuscated JavaScript credential-stealer second stage. |
| URL | hxxps[:]//195[.]123[.]6[.]29/enterotoxin.exe | Payload URL used by the JavaScript stage to download the Enterotoxin executable. |
| URL | hxxps[:]//calcal[.]ru/p/t5edjvR/raw | Mirrored resource that returned the same obfuscated JavaScript second stage associated with Clampony. |
| URL | hxxps[:]//pastebin[.]com/raw/z6K1Rg8J | Specific Pastebin resource that returned the obfuscated JavaScript second stage associated with Clampony. |
MITRE ATT&CK
T1036.005 · Match Legitimate Resource Name or LocationEnterotoxin uses Microsoft Store and Windows Update-like filenames and installation paths to masquerade as legitimate software.T1041 · Exfiltration Over C2 ChannelEnterotoxin uploads task results to its controller's results endpoint.T1053.005 · Scheduled TaskEnterotoxin creates persistence through several reported Windows scheduled-task identities.T1056.001 · KeyloggingEnterotoxin installs a low-level keyboard hook and stores captured keystroke data.T1059.001 · PowerShellThe JavaScript stealer can invoke hidden, non-interactive PowerShell to create an archive when tar.exe is unavailable.T1059.003 · Windows Command ShellEnterotoxin writes server-supplied batch tasks to temporary .bat files and launches them through cmd.exe.T1059.006 · PythonEnterotoxin executes server-supplied Python tasks using exec and compile.T1059.007 · JavaScriptThe Clampony install chain uses Node.js to run JavaScript, including the credential-stealing stage.T1071.001 · Web ProtocolsEnterotoxin uses HTTPS and WinHTTP to communicate with its controller.T1105 · Ingress Tool TransferThe JavaScript stage retrieves remote content and downloads enterotoxin.exe from the reported payload URL.T1113 · Screen CaptureEnterotoxin captures screenshots of the full virtual desktop, including multiple monitors.T1115 · Clipboard DataEnterotoxin monitors and reads clipboard contents through a hidden window and clipboard APIs.T1547.001 · Registry Run Keys / Startup FolderEnterotoxin persists through the current user's Run key using the MicrosoftStoreUpdaterV value.T1547.009 · Shortcut ModificationEnterotoxin can rewrite supported Windows shortcuts to route application launches through its --payload mode.T1552.001 · Credentials In FilesThe JavaScript stealer searches files and directories containing cloud, developer, and other stored credentials.
Malware
Products
Microsoft Windowscloud and developer credentials, exfiltrates the collection through Telegram, and downloads a custom Windows backdoor named enterotoxin.exe.npmThe OpenSourceMalware team has identified two closely related npm packages, [email protected] and [email protected]. Clampony uses an installation hook to retrieve a JavaScript credential stealer from two mirroredTelegramendpoints. That second stage targets cloud and developer credentials, exfiltrates the collection through Telegram, and downloads a custom Windows backdoor named enterotoxin.exe.
