bs-bs-corenpm
bs-bs-core is a confirmed malicious npm package (MAL-2026-12519) that executes malicious code on install (malicious version 35.1.6). Do not install it — remove it immediately and rotate any exposed credentials.
Malicious code in bs-bs-core (npm)
What this malware does
On require('bs-bs-core'), index.js loads compat.js, which at module load time assembles Cloudflare Workers hostnames from split string arrays (oob-worker.cf99-9b3.workers.dev, oob-worker.cf102-baf.workers.dev, oob-worker.cf103-070.workers.dev, with a DNS TXT-record fallback under *.dl.wel1.ru), downloads a platform-specific executable via https.get, writes it to /tmp as '.cache<hex>' or to Windows TEMP as 'dotnet_diag_<hex>.exe', chmods 755 on Unix, and spawns it detached via /bin/sh -c or cmd. A stamp file named '.analytics_state' is used to gate re-execution. lib/telemetry.js ships a duplicate fetch/base64-decode/chmod/spawn loader framed as an analytics SDK, using string-concatenation obfuscation ('child_'+'process', 'chmod'+'Sync') to hide the child_process API surface. Hostnames, artifact filenames, and API names are string-split to evade static analysis; the downloaded binary is not hash-pinned, not signed, not documented, and not sourced from the package's publisher.
Malicious versions
Indicators of compromise (SHA-256)
Detection & response playbook
Malicious packageFind it
Scan your lockfiles (package-lock.json, pnpm-lock.yaml, yarn.lock, requirements.txt, poetry.lock, etc.) and build artifacts for bs-bs-core (version 35.1.6). O3 Security's supply-chain scanner checks every dependency against known-malicious package intelligence at install time and in CI, flagging bs-bs-core across your stack and pipelines.
If you installed it — respond
Remove bs-bs-core from your project and lockfile, then assume any secrets accessible to the build or runtime were exposed: rotate API keys, tokens, and credentials, and audit for unexpected outbound activity or persistence.
Did it already run?
If bs-bs-core was ever installed, its post-install/runtime payload may have already executed. O3's L7 egress monitoring and runtime eBPF sensors detect the credential exfiltration or command-and-control callback after install and block the malicious outbound channel, so you catch and contain the actual compromise — not just the presence of the package.
How O3 protects you
O3 blocks bs-bs-core before install through its supply-chain scanner, and if it has already run, detects and severs the exfiltration or C2 callback at runtime through L7 egress monitoring and eBPF.
Frequently asked questions
Campaign
References
Credits
- Amazon Inspector · finder
Detect & block this
O3 blocks bs-bs-core-class packages before install and in CI — and if it already ran, its runtime egress monitoring catches the malicious outbound activity and severs the channel.