Math_Symbol.js
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.
Stage 2 – Payload (Math_Symbol.js, ~728 KB) ... Vol de credentials ... Autopropagation (worm) ... Malware / Outils # Math_Symbol.js (stealer)
Techniques & procedures
26 distinct techniques documented for this family, organized by ATT&CK tactic.
Initial Access
4 techniques
Initial Access
Republiant via npm OIDC trusted publishing avec des attestations Sigstore/Fulcio/Rekor valides
Ricercatori di sicurezza hanno recentemente identificato una campagna di compromissione della supply chain software presente nell’ecosistema npm - denominata “ ChainDrop ” - che ha interessato oltre 400 pacchetti appartenenti a maintainer e organizzazioni differenti.
Le evidenze finora disponibili per la campagna in oggetto, suggeriscono l’utilizzo, da parte degli attaccanti, di credenziali e/o token di accesso npm già compromessi in precedenza per perpetrare la pubblicazione di pacchetti npm opportunamente predisposti, consentendo agli attaccanti la capacità di distribuire versioni contenenti codice malevolo attraverso il registro ufficiale.
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.
Execution
3 techniques
Execution
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.
an obfuscated dropper that quietly pulls down the Bun runtime and uses it to execute a 728 KB payload called Math_Symbol.js
в package.json появлялся preinstall-скрипт node setup.mjs. В результате вредонос запускался автоматически при выполнении npm install, еще до завершения установки пакета.
Persistence
3 techniques
Persistence
Republiant via npm OIDC trusted publishing avec des attestations Sigstore/Fulcio/Rekor valides
L’esecuzione del contenuto malevolo avviene durante la fase di installazione del pacchetto, prima del completamento della procedura npm.
Le credenziali ottenute vengono successivamente utilizzate per accedere a repository, servizi cloud e account npm, consentendo la pubblicazione automatizzata di ulteriori pacchetti compromessi per la diffusione della campagna verso nuovi bersagli.
Privilege Escalation
2 techniques
Privilege Escalation
Republiant via npm OIDC trusted publishing avec des attestations Sigstore/Fulcio/Rekor valides
L’esecuzione del contenuto malevolo avviene durante la fase di installazione del pacchetto, prima del completamento della procedura npm.
Stealth
3 techniques
Stealth
The loader downloads the Bun runtime, executes a heavily obfuscated second-stage payload ( Math_Symbol.js ), and sweeps the system for sensitive credentials.
Republiant via npm OIDC trusted publishing avec des attestations Sigstore/Fulcio/Rekor valides
в package.json появлялся preinstall-скрипт node setup.mjs. В результате вредонос запускался автоматически при выполнении npm install, еще до завершения установки пакета.
Defense Impairment
1 technique
Defense Impairment
Le credenziali ottenute vengono successivamente utilizzate per accedere a repository, servizi cloud e account npm, consentendo la pubblicazione automatizzata di ulteriori pacchetti compromessi per la diffusione della campagna verso nuovi bersagli.
Credential Access
9 techniques
Credential Access
It harvests npm registry authentication tokens from .npmrc files ... and AWS access keys and session tokens directly from the ~/.aws/credentials file.
The worm self-propagated to more than 400 packages in under four hours by stealing npm tokens and republishing infected versions. Credential harvesting The payload performs a broad sweep of the infected environment, targeting: npm tokens from ~/.npmrc, environment variables (NPM_TOKEN), and CI runner contexts. GitHub credentials such as PATs, GITHUB_TOKEN, and OIDC tokens from runner memory.
The loader downloads the Bun runtime, executes a heavily obfuscated second-stage payload ( Math_Symbol.js ), and sweeps the system for sensitive credentials.
Vol de credentials... Kubernetes service account tokens, npm tokens, GitHub Actions OIDC... Sweep regex style TruffleHog sur le disque pour clés génériques, bearer tokens, blocs de clés privées
The malware also attempts to capture HashiCorp Vault client tokens by reading the VAULT_TOKEN environment variable
Vol de credentials : AWS (IMDS, credential chains, Secrets Manager)
The payload performs a broad sweep of the infected environment, targeting: AWS credentials from ~/.aws/credentials... Kubernetes credentials from ~/.kube/config... SSH keys from ~/.ssh/.
Le credenziali ottenute vengono successivamente utilizzate per accedere a repository, servizi cloud e account npm, consentendo la pubblicazione automatizzata di ulteriori pacchetti compromessi per la diffusione della campagna verso nuovi bersagli.
Una volta eseguito, il malware raccoglie informazioni e credenziali presenti sul sistema locale, incluse variabili d’ambiente, token npm, token GitHub, chiavi SSH, credenziali cloud e segreti utilizzati nelle pipeline di automazione.
Discovery
1 technique
Discovery
Query the npm registry to enumerate all packages that are owned or writable by that token.
Lateral Movement
1 technique
Lateral Movement
Researchers also observed worm-like behavior designed to infect additional npm packages belonging to maintainers who installed compromised dependencies, allowing the campaign to expand rapidly across the ecosystem.
Command and Control
2 techniques
Command and Control
DomainSender : résout des destinations via DNS et envoie les données chiffrées
The loader downloads the Bun runtime, executes a heavily obfuscated second-stage payload ( Math_Symbol.js ), and sweeps the system for sensitive credentials.
Exfiltration
3 techniques
Exfiltration
The stolen information is sent out of the victim environment, after which publishing access is used to alter package archives, raise their version numbers, and release them again.
The malware encrypted collected data before exfiltrating it to a public GitHub repository.
Primary - GitHub dead-drop repositories: The worm uses the victim’s own GitHub token to create a new public repository under their identity.
Impact
1 technique
Impact
🪱 Autopropagation (worm) # Le payload se propage en : Découvrant les packages du maintainer via l’API npm... injectant le hook malveillant et les fichiers payload
Observables
5 indicators attributed across vendor reports, sandbox runs, and researcher write-ups. Values are masked here and available in full in Mallory.
Recent activity
2 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.