MAL-2026-16291 Malicious code in @shared-runtime/modules (npm)
Malicious package
Published
MAL-2026-16291 is a malicious package: @shared-runtime/modules (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-16291/ (Markdown: https://insights.sbomify.com/MAL-2026-16291/index.md)
- Package
- @shared-runtime/modules
- Registry
- npm
What is MAL-2026-16291?
MAL-2026-16291 is a malicious package in @shared-runtime/modules, published on 18 Sep 2026.
Official description
@shared-runtime/[email protected] collects the installer's OS username (os.userInfo().username), hostname (os.hostname()) and current working-directory basename, then issues a dns.resolve4() query against a subdomain assembled as srmods.<user>.<host>.<cwd>.<ts>.oob.algamil7x.xyz, leaking those values via authoritative DNS logs at the attacker-controlled domain oob.algamil7x.xyz. The destination hostname, the OS/DNS API names, and the module names are stored as hex byte arrays in lib/a74d1f.js and lib/f63c0e.js and reconstructed at runtime via String.fromCharCode, with os and dns loaded through module.constructor._load to avoid literal require() strings. Execution is triggered both at install (package.json scripts.install="node index.js") and on require() (index.js top-level require('./lib/core.js')), with a swallowed try/catch so npm install still reports success. The README claims no hidden network calls in module scope while module scope performs exactly that.
What should I do about MAL-2026-16291?
Remove the package from your dependencies and lockfiles, then rotate any secrets on machines where it was installed.