{"id":"MAL-2026-16291","summary":"Malicious code in @shared-runtime/modules (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (bc6095cf4766c948193c22d8c0e775010fc3ab47733a1020fb8fd5367d88e5e9)\n@shared-runtime/modules@9.9.10 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.\u003cuser\u003e.\u003chost\u003e.\u003ccwd\u003e.\u003cts\u003e.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.\n","modified":"2026-09-18T20:45:06.531194296Z","published":"2026-09-18T20:25:02Z","database_specific":{"malicious-packages-origins":[{"modified_time":"2026-09-18T20:25:02Z","sha256":"bc6095cf4766c948193c22d8c0e775010fc3ab47733a1020fb8fd5367d88e5e9","source":"amazon-inspector","versions":["9.9.10"],"id":"IN-MAL-2026-020187","import_time":"2026-09-18T20:38:13.751622937Z"}]},"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/@shared-runtime/modules/v/9.9.10"}],"affected":[{"package":{"name":"@shared-runtime/modules","ecosystem":"npm","purl":"pkg:npm/%40shared-runtime/modules"},"versions":["9.9.10"],"database_specific":{"cwes":[{"name":"Embedded Malicious Code","cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature."}],"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/@shared-runtime/modules/MAL-2026-16291.json","indicators":{"evidence_files":[{"sha256":"4070258a961f709343b8e24e65b570daee851b33aa3b48dd5c38ebc58bbcbf19","tlsh":"57f02d69b393c48fa7e096d0361a53d18859c3c0e7cf4195fb7c4a87904e7d1cb85959","path":"lib/core.js"},{"tlsh":"73f0595166a3d19f77d69ac35f4190a0acb60a40b60ed0d5fa2c1bde00eeb13e9c54b0","path":"lib/f63c0e.js","sha256":"f7942b52b33a05f44ce43c1cc581fa1140cbbef03acdba961ade9f4a44cb03e1"},{"sha256":"42bd797ba1aa9f714c91816c77fe1082406ebc2de3bf76c3cae318268c39603a","tlsh":"8b018e321d7668371ec477d3f9a2148577a248db4410a8495a9f423842ce53371ff33e","path":"package.json"}],"package_integrity":[{"filename":"modules-9.9.10.tgz","hashes":{"sha1":"d398cfdd6dfb6c7e9bb917c9ecfbc05d4746bd97","sha512_sri":"sha512-fpgjU+mj24R9GJLUQjKSBocGKp6ZZL9LJ/rP7LPZffxdAdQGTKA8THNVjWcduCJ7EOVyayXifyc8kNU+9wvIBA=="}}]}}}],"schema_version":"1.9.0","credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}