Skip to main content
Mallory
Malware1 associated actor

setup.mjs

Tracked since Apr 26, 2026 · Updated 7 months ago
Trending this weekNot trendingOutside this week’s top 100
Mention activity · 30 daysNo mention activity in the last 30 days.
Vulns0Associated
Actors1Associated
ATT&CK19Techniques
IOCs5Tracked
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

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.

View more details →
Shai-Hulud

Stage 1 – Loader (setup.mjs) : Télécharge un runtime Bun standalone ... Exécute le second stage via Bun ... La compromission repose sur un hook preinstall ( setup.mjs ) ajouté au package.json .

via cyberveillecyberveille.ch
MITRE ATT&CK

Techniques & procedures

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

Initial Access

5 techniques
T1195Supply Chain CompromiseEvidence1

Version 7.0.4 introduced three files and a single added line in package.json that turned every npm install into remote code execution.

T1195.001Compromise Software Dependencies and Development ToolsEvidence3

Because the attacker pushed malicious files straight to each repository’s main branch and then immediately cut a new release, the poisoned versions were published to npm carrying valid provenance signatures generated by GitHub Actions

T1195.002Compromise Software Supply ChainEvidence1

Le compte maintainer Jaredwray a été compromis et utilisé pour publier des versions malveillantes... La compromission repose sur un hook preinstall (setup.mjs) ajouté au package.json.

T1566.002Spearphishing LinkEvidence1

in an attempt to infect users who open the repo in Claude Code or VSCode

T1566.003Spearphishing via ServiceEvidence1

dual social engineering layers impersonating both Claude AI and Dependabot at the code review level

Execution

7 techniques
T1053Scheduled Task/JobEvidence1

If the malware executed on a developer machine (via npm install), it drops several persistence mechanisms: .vscode/tasks.json with a folderOpen task that re-executes the malware on every VS Code workspace open.

T1059Command and Scripting InterpreterEvidence6

Execution: Used a preinstall hook to download the Bun runtime and execute the obfuscated Math_Symbol.js payload. | Downloads the Bun JavaScript runtime v1.3.13 directly from its official GitHub release page. Launches the second-stage payload via Bun.

T1059.001PowerShellEvidence1

The implementation also follows HTTP redirects without validating the destination and uses PowerShell with -ExecutionPolicy Bypass on Windows, increasing the risk for affected developer and CI/CD environments.

T1059.004Unix ShellEvidence1

Stage 1 – Loader (setup.mjs) : Télécharge un runtime Bun standalone... Exécute le second stage via Bun

T1059.007JavaScriptEvidence13

La compromission repose sur un hook preinstall (setup.mjs) ajouté au package.json... Stage 2 – Payload (Math_Symbol.js, ~728 KB)

T1574Hijack Execution FlowEvidence2

в package.json появлялся preinstall-скрипт node setup.mjs. В результате вредонос запускался автоматически при выполнении npm install, еще до завершения установки пакета.

T1574.001DLLEvidence1

In the SAP wave, the compromised packages added a preinstall hook that ran setup.mjs... This wave uses a slightly different route... That Git dependency contains a prepare script: "scripts" : { "prepare" : "bun run tanstack_runner.js && exit 1" } This is the trick. npm runs lifecycle scripts for Git dependencies during installation.

Persistence

3 techniques
T1053Scheduled Task/JobEvidence1

If the malware executed on a developer machine (via npm install), it drops several persistence mechanisms: .vscode/tasks.json with a folderOpen task that re-executes the malware on every VS Code workspace open.

T1546Event Triggered ExecutionEvidence6

L’esecuzione del contenuto malevolo avviene durante la fase di installazione del pacchetto, prima del completamento della procedura npm.

T1546.016Installer PackagesEvidence1

package.json was modified to add: "scripts" : { "preinstall" : "node setup.mjs" } That means the malicious code runs automatically during npm install, before the install has even completed.

Privilege Escalation

3 techniques
T1053Scheduled Task/JobEvidence1

If the malware executed on a developer machine (via npm install), it drops several persistence mechanisms: .vscode/tasks.json with a folderOpen task that re-executes the malware on every VS Code workspace open.

T1546Event Triggered ExecutionEvidence6

L’esecuzione del contenuto malevolo avviene durante la fase di installazione del pacchetto, prima del completamento della procedura npm.

T1546.016Installer PackagesEvidence1

package.json was modified to add: "scripts" : { "preinstall" : "node setup.mjs" } That means the malicious code runs automatically during npm install, before the install has even completed.

Stealth

5 techniques
T1027Obfuscated Files or InformationEvidence3

a file named setup.mjs, an obfuscated dropper

T1036MasqueradingEvidence1

The payload creates a new branch named dependabout/github_actions/format/setup-formatter ... The commit impersonates Dependabot ... The commit author and message are carefully chosen: claude <claude@users.noreply.github.com>

T1497.001System ChecksEvidence2

Checks for a Russian-language system locale; if found, it exits without executing. This is a common evasion technique used to avoid targeting certain regions.

T1574Hijack Execution FlowEvidence2

в package.json появлялся preinstall-скрипт node setup.mjs. В результате вредонос запускался автоматически при выполнении npm install, еще до завершения установки пакета.

T1574.001DLLEvidence1

In the SAP wave, the compromised packages added a preinstall hook that ran setup.mjs... This wave uses a slightly different route... That Git dependency contains a prepare script: "scripts" : { "prepare" : "bun run tanstack_runner.js && exit 1" } This is the trick. npm runs lifecycle scripts for Git dependencies during installation.

Discovery

1 technique
T1497.001System ChecksEvidence2

Checks for a Russian-language system locale; if found, it exits without executing. This is a common evasion technique used to avoid targeting certain regions.

Lateral Movement

1 technique
T1570Lateral Tool TransferEvidence3

The below files are placed in the repo, in an attempt to infect users who open the repo in Claude Code or VSCode

Command and Control

1 technique
T1105Ingress Tool TransferEvidence12

Загрузчик скачивал официальный рантайм Bun с GitHub, запускал с его помощью инфостилер, а затем удалял временную директорию.

Indicators of compromise

Observables

5 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
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 matching5Match every observed IP, domain, and hash against your live telemetry.
Associated threat actors1Groups 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 mapping19Every documented technique, ranked by evidence weight.
Researcher chatterReddit, Mastodon, and CTI community discussion around this family.