Malicious code in ksp-client-registry (npm)
Description
The npm package ksp-client-registry versions 100.100.100 and 100.100.101 contain a malicious prebuilt native addon that, when loaded, collects environment information and sends it via a raw TCP socket to a hardcoded external IP address. This behavior occurs on package require and post-install, indicating a dependency confusion attack aimed at exfiltrating host and package details.
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 ksp-client-registry npm package at versions 100.100.100 and 100.100.101 includes a prebuilt native addon (addon.node) loaded by the main module. Upon loading, the addon reads environment variables HOSTNAME, npm_package_name, and npm_config_registry, then opens a raw TCP socket to IP 64.181.165.115. It sends an HTTP POST request containing these values, effectively beaconing host and package information to an external server. The package's postinstall script runs 'node postinstall.js', leaving an install-time footprint. The addon exposes no legitimate N-API functions beyond module registration. The package's high version number and generic name suggest it is a dependency confusion probe designed to be resolved instead of an internal package, leaking sensitive environment details to the operator.
Potential Impact
This malicious package can exfiltrate sensitive environment information including the host's hostname, the internal package name, and the configured npm registry URL to an attacker-controlled server. This can lead to exposure of internal infrastructure details and potentially facilitate further targeted attacks. There is no indication of remote code execution or direct system compromise beyond information leakage.
Mitigation Recommendations
No official patch or remediation is currently documented. Users should avoid installing or requiring the ksp-client-registry package at versions 100.100.100 and 100.100.101. Verify internal package names and registry configurations to prevent dependency confusion attacks. Monitor for unexpected network connections to IP 64.181.165.115. Patch status is not yet confirmed — check the vendor advisory for current remediation guidance.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-17771
- Osv Schema Version
- 1.7.4
- Ecosystems
- ["npm"]
Threat ID: 6acc00a32cdf04f656fecb06
Added to database: 10/11/2026, 21:33:23 UTC
Last enriched: 10/11/2026, 21:43:12 UTC
Last updated: 10/11/2026, 21:43:12 UTC
Views: 1
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.