{"id":"MAL-2026-20311","summary":"Malicious code in @kropaku/baileys (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (e634fd115885f8cb0a2e2ab98b78bdc26d5f0cb37865cea6d848296478ace3d4)\nThis package is a fork of the Baileys WhatsApp library that embeds code which decodes a hidden HTTPS destination from a String.fromCharCode byte array at lib/Socket/messages-send.js lines 425 and 436. The decoded host is https://fiora.nixel.my.id/, a third-party endpoint unrelated to the upstream Baileys project, reached from within the message-send path. The host string is concealed via char-code arithmetic rather than appearing as a plain literal, which is an obfuscation technique used to hide network destinations from casual inspection. The package also ships lib/Utils/license-guard.js as a heavily obfuscated module (hex-mangled identifiers such as _0x1e6253, _0x1d5468, etc., consistent with javascript-obfuscator output), hiding the logic that gates the library's behavior and its interactions with the hidden endpoint. The combination of (a) an obfuscated license/guard module loaded by a WhatsApp session library that handles authentication credentials and message contents, and (b) a char-code-concealed outbound HTTPS destination wired into the outgoing message pipeline, is the fingerprint of covert data relay or credential/session exfiltration from an upstream-impersonating fork, not of legitimate WhatsApp protocol code.\n","modified":"2026-11-20T20:15:05.945162414Z","published":"2026-11-20T19:42:30Z","database_specific":{"malicious-packages-origins":[{"id":"IN-MAL-2026-022967","import_time":"2026-11-20T20:11:29.787413592Z","modified_time":"2026-11-20T19:43:02Z","sha256":"000ee18abd7189f91e848581d2931bc14636b7f624218ab56ce0072064845c26","source":"amazon-inspector","versions":["6.7.23"]},{"versions":["6.7.22"],"id":"IN-MAL-2026-022970","import_time":"2026-11-20T20:11:29.921889873Z","modified_time":"2026-11-20T19:43:24Z","sha256":"5db9ebf68a92baab0d0500598ce8910f496db0f958b33fd2c6552452f1b5bcb2","source":"amazon-inspector"},{"modified_time":"2026-11-20T19:43:32Z","sha256":"7f21c39cccccc192ea43e43dbcf21efd1ac9c273a325f7001288ccdc115748c8","source":"amazon-inspector","versions":["6.7.21"],"id":"IN-MAL-2026-022971","import_time":"2026-11-20T20:11:30.001016469Z"},{"import_time":"2026-11-20T20:11:29.604786653Z","modified_time":"2026-11-20T19:42:30Z","sha256":"e634fd115885f8cb0a2e2ab98b78bdc26d5f0cb37865cea6d848296478ace3d4","source":"amazon-inspector","versions":["6.7.24"],"id":"IN-MAL-2026-022963"},{"sha256":"ef350901d7e283ceea2892392567e98883f225d74eaf3242d952a698b4868475","source":"amazon-inspector","versions":["6.7.20"],"id":"IN-MAL-2026-022969","import_time":"2026-11-20T20:11:29.885448448Z","modified_time":"2026-11-20T19:43:17Z"}]},"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/@kropaku/baileys/v/6.7.23"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/@kropaku/baileys/v/6.7.22"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/@kropaku/baileys/v/6.7.21"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/@kropaku/baileys/v/6.7.24"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/@kropaku/baileys/v/6.7.20"}],"affected":[{"package":{"name":"@kropaku/baileys","ecosystem":"npm","purl":"pkg:npm/%40kropaku/baileys"},"versions":["6.7.23","6.7.22","6.7.21","6.7.24","6.7.20"],"database_specific":{"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/@kropaku/baileys/MAL-2026-20311.json","cwes":[{"cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code"},{"description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code","cweId":"CWE-506"},{"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"},{"name":"Embedded Malicious Code","cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature."}],"indicators":{"package_integrity":[{"hashes":{"sha512_sri":"sha512-MTKFIx0+/lskE4b8pjGYnhnJ0v6x7ZaAWRHN2B20S5hzTmGHDMlcCLYBWxkaUJBaXl85SJCE923ZB9zLA8r/yw==","sha1":"fe62d216fa3e3e03267cb7c8653c6e98581e1bdc"},"filename":"baileys-6.7.23.tgz"}],"evidence_files":[{"path":"lib/Socket/messages-send.js","sha256":"a62ea8d3d1172824095369efa66412a189a70812354a8d5790b4e9d50004a376","tlsh":"ee63926508fb192a4623b0b57e6bb401b134d0077148ec69ff8c86e85f8a464e6f7bdd"},{"path":"lib/Utils/license-guard.js","sha256":"0ad5e08bfb7239dcc3227de43936237e2eef83df56934e47284edd22d0fdba4f","tlsh":"3332d8056ec0a8c4679beff73112a1e4e6251caea6f31c4fb600b528ed5c915dac5b31"}]}}}],"schema_version":"1.9.2","credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}