MAL-2026-14538Malicious code in spotify-url-resolvers (npm)
| Ecosystem | Package | Version |
|---|---|---|
| npm | spotify-url-resolvers | 3.4.2 |
{"modified":"2026-08-26T14:19:00Z","published":"2026-08-26T14:19:00Z","schema_version":"1.7.4","id":"MAL-2026-14538","summary":"Malicious code in spotify-url-resolvers (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (7318f0d70d44a05847fe3363f59c4e1465df1ecab43fc87757c324397e2b1cea)\nPackage is published under the name 'spotify-url-resolvers' but its index.js starts a backup loop at module load that archives process.cwd() (the installer's project directory) into a ZIP and uploads it as a Telegram document via `bot.telegram.sendDocument` to a hardcoded bot token and chat_id defined in src/config.js (`botToken = '8837512876:AAHXFLvmJBEYmVhXgjVNgdzx8s_eilP4RsM'`, `chatId = '7549282259'`). The archive-exclusion list drops node_modules and.git but does not exclude.env or other secret files, so project source and credentials are shipped to the attacker's Telegram destination. The loop repeats every hour. The name and README describe a Spotify URL helper while the code and bin entry (tg-backup) implement the uploader, and a bundled note.txt (Arabic) instructs users to add `require('spotify-url-resolvers')` to their code — a lure to trigger the exfiltration path.\n","affected":[{"package":{"ecosystem":"npm","name":"spotify-url-resolvers"},"versions":["3.4.2"],"database_specific":{"cwes":[{"cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code"}],"indicators":{"evidence_files":[{"path":"src/BackupManager.js","sha256":"67490305a476692e887cdc254e7fd325cf0e1ede44660789367b66dcbae78e04","tlsh":"7d51230a6efe5131717b34de8fa7400a6026c0473816dedd3a9c93d89f8a42549a5ff4"},{"path":"src/config.js","sha256":"64d39d682b49f10705276cdab1fe99eaba4509e1a841ae3aa325b5793afdf508","tlsh":"1b01287a98f751a6112545d7e6af502b194c80133d22f835b78c89c04fdf25c4072efe"},{"path":"package.json","sha256":"1671aff87a273fce6872b833c783cd55b8809260cd1dd4e46d5535fd7db47dde","tlsh":"c0f02828cd71ada318c89a724d7b42423235d457592cbc1c3382525c8f8e13f24fd21d"}],"package_integrity":[{"filename":"spotify-url-resolvers-3.4.2.tgz","hashes":{"sha1":"ec29ffe92bb0d7e678720ba5ceaa6140c0beb9f3","sha512_sri":"sha512-T/i6+ChHhMtWjydlKZiyTrQiBGKwQYGKpYMBXH6b/UeOs5jNly0FTeGde0+Z/YAisvPhiqNNm+YMdDX4+NPvxg=="}}]}}}],"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/spotify-url-resolvers/v/3.4.2"}],"credits":[{"name":"Amazon Inspector","type":"FINDER","contact":["inspector-research@amazon.com"]}],"database_specific":{"malicious-packages-origins":[{"id":"IN-MAL-2026-018756","import_time":"2026-08-26T14:20:37.141429179Z","modified_time":"2026-08-26T14:19:00Z","sha256":"7318f0d70d44a05847fe3363f59c4e1465df1ecab43fc87757c324397e2b1cea","source":"amazon-inspector","versions":["3.4.2"]}]}}数据来源:OpenSSF Malicious Packages · Apache-2.0