{"id":"MAL-2026-6906","summary":"Malicious code in xnder-sdk-js (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (0aeeac149a5afa4797eea935b2a54b66fcf2cfd939fce855655208245ba9e5a7)\nThe package's index.js is heavily obfuscated (string-array shift/rotate pattern with hex-encoded indices and a `while(!![])` decoder loop). Obfuscation of the main module hides intent and prevents automated tracing of behavior at require time. No concrete installer-harm mechanism (exfiltration endpoint, dropper, credential read, lifecycle script) was identified in the available evidence, so the obfuscation alone is not sufficient to confirm an attack, but it is also inconsistent with the typical shape of a legitimate SDK that is shipped readable or as a standard minified bundle with source maps. Manual de-obfuscation of index.js is required before installer trust can be granted.\n\n## Source: ghsa-malware (c6567b629ffa139dd85841adb50d445999ca9c8ee606902c148083e6b0c234ab)\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-wwv8-px7f-vfq4"],"modified":"2026-07-08T20:47:13.375815343Z","published":"2026-07-06T19:04:06Z","database_specific":{"malicious-packages-origins":[{"id":"GHSA-wwv8-px7f-vfq4","modified_time":"2026-07-06T19:04:07Z","versions":["0.1.0"],"source":"ghsa-malware","sha256":"c6567b629ffa139dd85841adb50d445999ca9c8ee606902c148083e6b0c234ab","import_time":"2026-07-06T19:53:47.993630296Z"},{"modified_time":"2026-07-08T19:35:33Z","versions":["0.1.0"],"source":"amazon-inspector","sha256":"0aeeac149a5afa4797eea935b2a54b66fcf2cfd939fce855655208245ba9e5a7","import_time":"2026-07-08T20:32:09.650407468Z","id":"IN-MAL-2026-008288"}]},"references":[{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-wwv8-px7f-vfq4"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/xnder-sdk-js/v/0.1.0"}],"affected":[{"package":{"name":"xnder-sdk-js","ecosystem":"npm","purl":"pkg:npm/xnder-sdk-js"},"versions":["0.1.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":[{"path":"index.js","sha256":"a00860eab180952dff69a77cc70774d8eb5c5104bc0774ee668866ee9dc4a50f","tlsh":"0c9288c83bc5b0a05733b0fbaa1bb0a6e1691c8db34d4848f797f498f968314d585b9c"}]},"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/xnder-sdk-js/MAL-2026-6906.json"}}],"schema_version":"1.7.5","credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}