Malicious code in init-js-examples (npm)
The npm package 'init-js-examples' version 1.0.0 contains malicious code that executes during the postinstall lifecycle hook. This code opens a TCP connection to a hardcoded remote IP address and connects it to a shell process, effectively granting the remote endpoint interactive shell access. This results in full remote code execution and establishes a persistent backdoor on the host where the package is installed.
AI Analysis
Technical Summary
The 'init-js-examples' npm package version 1.0.0 includes a postinstall script (setup.js) that opens a TCP socket to 130.61.90.45:4443 and connects this socket bidirectionally to a spawned /bin/sh shell process. Because this script runs automatically during 'npm install', it grants the remote server full interactive shell access on the installer's machine, enabling remote code execution and persistent backdoor access.
Potential Impact
Successful installation of this package version results in the remote attacker gaining full interactive shell access on the victim's system. This allows arbitrary command execution and persistent unauthorized control over the affected host.
Mitigation Recommendations
No official patch or remediation is currently available. Users should avoid installing 'init-js-examples' version 1.0.0. Verify package integrity before installation and consider using trusted package sources. Monitor for updates from the package maintainer or npm security advisories for any forthcoming fixes.
Malicious code in init-js-examples (npm)
Description
The npm package 'init-js-examples' version 1.0.0 contains malicious code that executes during the postinstall lifecycle hook. This code opens a TCP connection to a hardcoded remote IP address and connects it to a shell process, effectively granting the remote endpoint interactive shell access. This results in full remote code execution and establishes a persistent backdoor on the host where the package is installed.
Affected software
Run 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
The 'init-js-examples' npm package version 1.0.0 includes a postinstall script (setup.js) that opens a TCP socket to 130.61.90.45:4443 and connects this socket bidirectionally to a spawned /bin/sh shell process. Because this script runs automatically during 'npm install', it grants the remote server full interactive shell access on the installer's machine, enabling remote code execution and persistent backdoor access.
Potential Impact
Successful installation of this package version results in the remote attacker gaining full interactive shell access on the victim's system. This allows arbitrary command execution and persistent unauthorized control over the affected host.
Mitigation Recommendations
No official patch or remediation is currently available. Users should avoid installing 'init-js-examples' version 1.0.0. Verify package integrity before installation and consider using trusted package sources. Monitor for updates from the package maintainer or npm security advisories for any forthcoming fixes.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-10996
- Osv Schema Version
- 1.7.4
- Aliases
- []
- Ecosystems
- ["npm"]
- Database Specific Severity
- null
- Cvss Version
- null
Threat ID: 6a6151149c2644c7f8da4fd8
Added to database: 07/22/2026, 23:24:04 UTC
Last enriched: 07/22/2026, 23:50:24 UTC
Last updated: 07/22/2026, 23:50:24 UTC
Views: 2
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.