MAL-2026-12135 Malicious code in accounts-offers (npm)
Malicious package
Published
MAL-2026-12135 is a malicious package: accounts-offers (npm). Every version was published to cause harm.
Task:
1. Search this repository's dependency manifests and lockfiles for the package, including transitive dependencies.
2. If it is present, remove it, regenerate the lockfile with the project's package manager, and replace whatever it was used for.
3. List any CI runners, developer machines or containers that installed it, so their secrets can be rotated.
4. If the package is not used anywhere, say so and change nothing.
Reference: https://insights.sbomify.com/MAL-2026-12135/ (Markdown: https://insights.sbomify.com/MAL-2026-12135/index.md)
- Package
- accounts-offers
- Registry
- npm
What is MAL-2026-12135?
MAL-2026-12135 is a malicious package in accounts-offers, published on 5 Aug 2026.
Official description
The package advertises itself as an 'Accounts offers library' but on require() index.js silently loads setup.js, which via process.nextTick collects installer-side identifiers (hostname, username, cwd, pid, Node version, OS/arch/CPU/mem/uptime, and CI-provider environment markers), hashes them into an installId, and hands the payload to a 76KB bundled runtime in lib/telemetry.js. Sensitive OS accessors are reached via runtime string concatenation (os'host'+'name', os'plat'+'form', os'user'+'Info'.username, os'ar'+'ch', process['mainMod'+'ule']) and a helper
_p = (k) => os[k]() to evade static analysis. lib/telemetry.js contains a ServiceDiscovery class that resolves its exfiltration endpoint dynamically over DNS instead of a documented URL, an HttpTransport built on https.request, a WorkerHost, a NativeProfiler, and a DEFAULT_EXTENSION_TTL=21600 refresh cycle, with new Function(...) and Buffer.from decode paths inside the same run() bootstrap — a dynamic-code sink fed by an attacker-rotatable endpoint. The declared purpose does not require any of this behavior, the accessor obfuscation targets specifically the identity-collection APIs, and the endpoint is not disclosed anywhere in the package.What should I do about MAL-2026-12135?
Remove the package from your dependencies and lockfiles, then rotate any secrets on machines where it was installed.