This vulnerability is trending on Twitter; this may indicate a growing threat.
Snyk has reported that there have been attempts or successful attacks targeting this vulnerability.
In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.
Test your applicationsAvoid using all malicious instances of the @shadanai/openclaw package.
Affected versions of this package are vulnerable to Embedded Malicious Code that conceals a cross-platform remote access trojan by injecting a hidden dependency named plain-crypto-js.
The injected plain-crypto-js dependency automatically executes an obfuscated postinstall script (setup.js) that establishes communication with an external command-and-control server. The RAT checks the operating system and drops platform-specific payloads:
macOS: Drops a binary to /Library/Caches/com.apple.act.mond.
Windows: Drops a persistent executable to %PROGRAMDATA%\wt.exe and runs a PowerShell script.
Linux: Executes a Python script saved to /tmp/ld.py.
After execution, the malware deletes its setup.js script and replaces its own package.json with a clean stub to actively conceal evidence of the attack from post-infection inspection. If you find any of these persistent files or the node_modules/plain-crypto-js directory, you have been compromised and should no longer trust the system to be safe.