{"id":"MAL-2026-5923","summary":"Malicious code in @welcome-onboarding-web/mobile-focus-account-beta-merging (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (5587680c29332345c8dd87172c03e0ba20f858c968d16c5a6c34717b8e95bcf5)\nscripts/postinstall.js is heavily obfuscated (obfuscator.io with rotated base64-RC4 string array and a self-defending regex tamper check that infinite-loops on debuggers/beautifiers). On `npm install`, the postinstall hook walks up from process.cwd() to fingerprint the parent project, selects a remote URL based on os.platform() (linux/darwin/win32), fetches the response body via http(s).get into a Buffer, writes it to a file under os.tmpdir(), then spawns it via child_process.spawn(process.execPath, [tmpFile], {detached: true, stdio: 'ignore', env: {...process.env,...}}).unref() — a classic detached install-time remote code dropper that ships the installer's full environment to the spawned process. The package's library surface is non-functional (declared main `dist/index.js` only re-exports `../src/index.js`, but no `src/` directory ships in the tarball), and the publisher identity (`welcome-onboarding-web.io` with fabricated jira/docs/github/npm subdomains) does not correspond to a real organization. The package's only effect on install is execution of the obfuscated dropper.\n","modified":"2026-06-16T21:16:47.475718956Z","published":"2026-06-16T19:59:43Z","database_specific":{"malicious-packages-origins":[{"import_time":"2026-06-16T21:06:47.272952437Z","modified_time":"2026-06-16T19:59:43Z","sha256":"5587680c29332345c8dd87172c03e0ba20f858c968d16c5a6c34717b8e95bcf5","source":"amazon-inspector","versions":["4.28.7"],"id":"IN-MAL-2026-006830"}]},"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/@welcome-onboarding-web/mobile-focus-account-beta-merging/v/4.28.7"}],"affected":[{"package":{"name":"@welcome-onboarding-web/mobile-focus-account-beta-merging","ecosystem":"npm","purl":"pkg:npm/%40welcome-onboarding-web%2Fmobile-focus-account-beta-merging"},"versions":["4.28.7"],"database_specific":{"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/@welcome-onboarding-web/mobile-focus-account-beta-merging/MAL-2026-5923.json","indicators":{"evidence_files":[{"sha256":"4bc5e05d09e3656ba6759916eab4d0f3b6b81e415d0279a3ac2e77507c5acddf","tlsh":"155265017f84d942631bcbbb6a2771d0e06e1c5a7644088ef225f7b9fd94726e6d0e31","path":"scripts/postinstall.js"},{"tlsh":"d121ee31c6289e3756c45989ffa8560978360c5b0948fc0c2ac7016c4bce15724bf73e","path":"package.json","sha256":"2b99b5be5c19e877ca14363ca204d64cef1277fee1346859611ff8895f99f6f0"}],"package_integrity":[{"filename":"mobile-focus-account-beta-merging-4.28.7.tgz","hashes":{"sha1":"87d2afd43d61111a93b5b9232079a46fb0023080","sha512_sri":"sha512-KRoVS9dmiJYz+IJAj64m3GRj48ifcNQRxHyPOYfeW4kqgfhP5sBLb43jv+tulgAB/ZM/rou6LVkRMMUei1OjvA=="}}]},"cwes":[{"cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code"}]}}],"schema_version":"1.7.5","credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}