LWA-2026-4909 confirmed malware

react-copy-lite@1.0.1

Malicious code in react-copy-lite (npm)

T1059.007 · JavaScriptT1059.004 · Unix ShellT1071.001 · Web Protocols

Analysis

Trojanized npm package posing as a React clipboard hook. The exported useCopy API (dist/index.cjs) is benign decoy code. The postinstall hook (scripts/detach-run.cjs) spawns a detached background Node.js process running scripts/connect-loop.cjs. That script opens a TCP socket to 54[.]234[.]216[.]79:4444 and pipes it to /bin/bash (stdin/stdout/stderr), giving a remote attacker a full interactive shell on any machine that installs this package. It retries the connection every 10 seconds in an infinite loop, so the operator regains access if the victim machine restarts or the connection drops. Package has no legitimate purpose for this behaviour.

analyzed by
Leitwacht
first seen
Jun 12, 2026, 08:53 PM
analyzed
Jun 12, 2026, 08:56 PM

Related advisories

browse all confirmed advisories →

Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.