react-copy-lite@1.0.1
Malicious code in react-copy-lite (npm)
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
- prisma-callback@1.0.0
- martinez-polygon-clipping-tony@0.9.0
- @klapp-sca/routes@99.0.1
- @klapp-login-platform/routes@99.0.2
- ai-sdk-helpers@1.2.0
- ai-sdk-helpers@1.4.2
- ai-sdk-helpers@0.1.0
- ai-sdk-helpers@0.1.1
Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.