Malicious code in @yuva2210/okx-poc-rce-impact (npm)
Description
The npm package @yuva2210/okx-poc-rce-impact version 2.0.0 contains a preinstall script that executes arbitrary system commands during installation. This script collects host and user information and writes it to a file on the installer's machine. The package acts as a proof-of-concept for dependency confusion targeting OKX's internal namespace, causing unsolicited command execution when installed.
Affected software
pkg:npm/%40yuva2210/okx-poc-rce-impactRun on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
@yuva2210/[email protected] is a malicious npm package designed as a dependency-confusion proof-of-concept targeting OKX's internal namespace. Its package.json includes a preinstall script that runs automatically on npm install, executing system commands (whoami, hostname, pwd, id) via child_process.execSync. The output is collected and saved to /tmp/okx-poc-rce-proof.json on the installer's host. The package contains no functional code beyond this reconnaissance payload, resulting in arbitrary code execution at install time if the package is resolved and installed inadvertently.
Potential Impact
Installation of this package results in arbitrary code execution on the host machine during npm install, specifically running system commands that collect sensitive host and user environment information. This can lead to unauthorized data collection and potential further exploitation depending on attacker intent. The package does not contain additional payloads beyond this reconnaissance behavior.
Mitigation Recommendations
No official patch or remediation is available for this package. The best mitigation is to avoid installing or resolving the @yuva2210/okx-poc-rce-impact package, especially in environments where dependency confusion with OKX internal namespaces is possible. Verify package sources and use scoped/internal registries to prevent accidental resolution of malicious public packages. Monitor and audit dependency resolutions to detect unexpected packages.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-15687
- Osv Schema Version
- 1.7.4
- Ecosystems
- ["npm"]
Threat ID: 6a9ad4f4acd9273b49b679a8
Added to database: 09/04/2026, 14:25:56 UTC
Last enriched: 09/07/2026, 16:07:59 UTC
Last updated: 10/04/2026, 09:11:21 UTC
Views: 28
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.