{"id":"MAL-2026-20292","summary":"Malicious code in @kingorwot/my-baileys (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (e1139544c4c6b9006f15627d80ecbecd930289cdd1532307bc9777e8f32490e3)\nThis Baileys fork declares a production dependency `whatsapp-rust-bridge-baron` sourced from `git+https://github.com/7ucg/whatsapp-rust-bridge.git` with no commit SHA or tag pin. `npm install` resolves this to whatever HEAD of that third-party repo contains at install time, including any lifecycle scripts inside it, and the repo owner (`7ucg`) is not the publisher of this package. In addition, the ESM entry (`lib/index.js`) schedules a 120-second-delayed task on socket creation that fetches a channel-ID list from `https://raw.githubusercontent.com/DGXeon13/strings/refs/heads/main/strings.json` and issues WhatsApp newsletter FOLLOW mutations for each ID using the installer's authenticated session, with errors swallowed and no README disclosure. The JSON file is under the author's personal GitHub account and mutable at any time, allowing the author to retarget the installer's account to follow arbitrary channels. The CJS main (`lib/index.cjs`) does not contain the auto-follow path.\n","modified":"2026-11-20T05:15:04.528903541Z","published":"2026-11-20T04:55:06Z","database_specific":{"malicious-packages-origins":[{"id":"IN-MAL-2026-022950","import_time":"2026-11-20T05:12:18.046409069Z","modified_time":"2026-11-20T04:55:06Z","sha256":"e1139544c4c6b9006f15627d80ecbecd930289cdd1532307bc9777e8f32490e3","source":"amazon-inspector","versions":["2.0.0"]}]},"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/@kingorwot/my-baileys/v/2.0.0"}],"affected":[{"package":{"name":"@kingorwot/my-baileys","ecosystem":"npm","purl":"pkg:npm/%40kingorwot/my-baileys"},"versions":["2.0.0"],"database_specific":{"indicators":{"package_integrity":[{"hashes":{"sha512_sri":"sha512-zEo90XXSkAKPgE68Nf0XR3CdIQxsePjwPfceiBVZ/aywz3nvWcJYLbhk6GgL3XcWIsjVF0OgAeo5jkiqZFVEjg==","sha1":"64c632cb419ec59bcaf8807fce3062f9a6619300"},"filename":"my-baileys-2.0.0.tgz"}],"evidence_files":[{"sha256":"3a32eaa12a71134bb148931058632f290bdbd3456c1e7ac8525ab835f71246cb","tlsh":"5a317921c5689db301ca76a868ae6003a6710d479c95fc2c339d439c8f5d19f327e6bd","path":"package.json"},{"tlsh":"aae1f15a59b687a106b37468542fb0d1f22561433e2aac47ffcc91610f0a29ce9f37c8","path":"lib/Socket/newsletter.js","sha256":"d9c0739d08afca605fe1d63bbf71f35fec1d1c8a5842a2f9af780d1239e8cd2e"}]},"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/@kingorwot/my-baileys/MAL-2026-20292.json","cwes":[{"description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code","cweId":"CWE-506"}]}}],"schema_version":"1.9.2","credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}