Malicious Code Injection in nodetokyo: A Stealthy Threat to User Privacy
Summary
MAL-2026-16388: Malicious code in nodetokyo (npm). Affects nodetokyo versions 1.0.8. No fix is published. How to fix ↓
Check if this vulnerability affects your application
Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.
No signup required · Results in about 60 seconds
Background
nodetokyo is an npm package designed to provide a 'Stealth Assistant' functionality. It is intended to assist users in various tasks while remaining unobtrusive. However, this package has been found to contain malicious code that compromises user privacy by capturing sensitive information from the clipboard and screen.
Vulnerability Detail
The vulnerability originates from the package's main file (launcher.js), which executes a function that installs Python 3.12 and various libraries without user consent. It creates a background process that monitors the OS clipboard every 300ms and captures full-screen screenshots every 30 seconds. This data is sent to a hardcoded endpoint, exposing sensitive user information such as passwords and private messages. The malicious code also registers global keyboard hooks, allowing it to capture keystrokes without user awareness.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall nodetokyo
If it arrived as a transitive dependency, remove the package that pulled it in, then reinstall.
Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →
Workaround
As a temporary measure, users can monitor their system for any unusual activity and ensure that no unauthorized processes are running. Additionally, using security software to detect and remove malicious scripts can help mitigate risks.
Conclusion
The nodetokyo package poses a significant threat to user privacy due to its embedded malicious code. Users are advised to uninstall the package and remain vigilant against potential data breaches. Utilizing tools like Vulert can help in monitoring for such vulnerabilities in real-time.
See every vulnerability recorded for nodetokyo →
FAQ
nodetokyo is an npm package that claims to provide a stealthy assistant functionality for users.
The malicious code installs Python and various libraries, monitors the clipboard, captures screenshots, and sends this data to a hardcoded endpoint.
Sensitive information such as passwords, tokens, and private messages can be captured and transmitted without user consent.
You can use Vulert's playground at Vulert Scanner to check if your application is affected by this vulnerability without requiring any signup.
Uninstall the nodetokyo package immediately and monitor your system for any unusual activity.