MAL-2026-20339: Malicious code in @iky-zan/baileys (npm)
--- -= Per source details. Do not edit below this line.=-
Source: amazon-inspector (e01a7dc5ccaed485aa64e740a0efaa42ed9397e7b5ad407e7595c727a2b37fcf) package.json declares libsignal as github:tenka-san/libsignal-node — a bare GitHub repository reference with no commit SHA, branch, or tag pin. On npm install, npm fetches whatever HEAD of that repository returns at install time, installs it as a dependency, and runs any lifecycle scripts inside it, with no integrity check and no version pinning. The referenced GitHub account tenka-san is unrelated to the package's declared publisher scope @iky-zan, so the code that executes on the installer's machine is controlled by a third party outside the publishing identity. The content of the referenced repository can change at any time without any update to this package, so the code installed today may differ from the code installed tomorrow.
Affected Software
Event History
Frequently Asked Questions
What systems are exposed to this risk?
Systems that run npm install for @iky-zan/baileys may fetch and execute code from the unpinned GitHub dependency github:tenka-san/libsignal-node. The fetched code can vary between installations because npm retrieves the repository's current HEAD.
What does an attacker need to exploit this?
An attacker would need the ability to change the contents of the tenka-san/libsignal-node repository. A changed repository HEAD could then be fetched during a subsequent npm installation and its lifecycle scripts could run on the installer's machine.
Is a normal installation affected, or does this require a special configuration?
A normal npm install is affected because the dependency is declared as a bare GitHub repository reference with no commit, branch, or tag pin. No integrity check or version pin is specified for the fetched dependency.
What can be done if the package cannot be removed immediately?
Avoid fresh or repeated npm installs that could retrieve a changed repository HEAD. Pin the libsignal dependency to a specific reviewed commit SHA and ensure installation does not execute unreviewed lifecycle scripts.
How can I determine whether an environment may be affected?
Check whether @iky-zan/baileys is present in the dependency tree or package manifests, and inspect its resolved libsignal dependency. Environments that installed it at different times may have received different repository contents.