{"id":"MAL-2026-17627","summary":"Malicious code in serpacksven2 (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (668c23a809283c521b8cee159ca2f57515729e664029b4fa63c1e1fbef1bd9fc)\nThe tarball ships ten identical files with misleading extensions (1.png, client.doc, json.txt, server.doc, for.you.doc,.txt,.txt.1,.txt.2, and an extensionless 'client'), all sharing the same SHA-256 and all containing the same PowerShell script. The script hides its console window and moves it off-screen via SetWindowPos, concatenates roughly 150 base64 chunks, XOR-decodes them, and passes the resulting bytes to System.Reflection.Assembly.Load().Invoke — an in-memory.NET assembly loader characteristic of RAT/stealer stagers. The package has no index.js, no main entry, and no lifecycle scripts, so `npm install` and `require()` do not themselves run the loader; the package exists purely to deliver and disguise the staged PowerShell/.NET payload for later execution on the host.\n\n## Source: ghsa-malware (698338a866ac3c7c579c999f0c37c7aa2508fef1ffe1d1679d83e71d79fc0145)\nAny computer that has this package installed or running should be considered fully compromised. All secrets and keys stored on that computer should be rotated immediately from a different computer. The package should be removed, but as full control of the computer may have been given to an outside entity, there is no guarantee that removing the package will remove all malicious software resulting from installing it.\n","aliases":["GHSA-4pg5-wvv5-w7fg"],"modified":"2026-10-06T04:30:47.391535635Z","published":"2026-10-05T17:31:00Z","database_specific":{"malicious-packages-origins":[{"sha256":"698338a866ac3c7c579c999f0c37c7aa2508fef1ffe1d1679d83e71d79fc0145","source":"ghsa-malware","id":"GHSA-4pg5-wvv5-w7fg","import_time":"2026-10-05T18:34:10.823235174Z","modified_time":"2026-10-05T17:31:01Z","ranges":[{"events":[{"introduced":"0"}],"type":"SEMVER"}]},{"import_time":"2026-10-06T04:22:56.461278412Z","modified_time":"2026-10-06T03:57:40Z","sha256":"668c23a809283c521b8cee159ca2f57515729e664029b4fa63c1e1fbef1bd9fc","source":"amazon-inspector","versions":["1.0.0"],"id":"IN-MAL-2026-021092"}]},"references":[{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-4pg5-wvv5-w7fg"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/serpacksven2/v/1.0.0"}],"affected":[{"package":{"name":"serpacksven2","ecosystem":"npm","purl":"pkg:npm/serpacksven2"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}],"versions":["1.0.0"],"database_specific":{"cwes":[{"cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code"},{"cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code"}],"indicators":{"evidence_files":[{"sha256":"e9dff49447937f8225a73dc235e067de051240d89523b6846813f7a2cd21a8fa","tlsh":"74a2af3c916097feec69e74549a3940a65257cf2c4a42c072f1ace6f54a7ec4ecbc18b","path":"client"},{"tlsh":"74a2af3c916097feec69e74549a3940a65257cf2c4a42c072f1ace6f54a7ec4ecbc18b","path":"1.png","sha256":"e9dff49447937f8225a73dc235e067de051240d89523b6846813f7a2cd21a8fa"}]},"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/serpacksven2/MAL-2026-17627.json"}}],"schema_version":"1.9.0","credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}