Malicious code in ksp-app (npm)
Description
The ksp-app npm package version 100.100.100 is a malicious dependency-confusion package that contains a prebuilt Linux x64 native addon. Upon installation, it executes a postinstall script that loads the native addon, which exfiltrates environment variables including HOSTNAME, npm_package_name, and npm_config_registry to a hardcoded IP address. The package exports no functional JavaScript code, indicating its sole purpose is to confirm installation in victim environments and disclose internal npm registry URLs to a third party.
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-app package at version 100.100.100 is a malicious npm package designed for dependency confusion attacks. It contains an opaque prebuilt ELF native addon for Linux x64 that is loaded during the postinstall phase via a script declared in package.json. This native addon reads environment variables related to the host and npm configuration and sends them via an HTTP POST request to a hardcoded IP address (64.181.165.115). The package has no source code or build tooling, and its JavaScript stub exports an empty object, indicating that all malicious behavior is embedded in the native binary. This behavior is consistent with exfiltration of internal environment details and npm registry URLs to an attacker-controlled endpoint.
Potential Impact
The malicious package can leak sensitive environment information such as the hostname, package name, and npm registry URL configured in the victim's environment. This can lead to exposure of internal infrastructure details and potentially facilitate further targeted attacks. The package does not appear to execute arbitrary code beyond data exfiltration, but the disclosure of internal registry URLs can aid attackers in reconnaissance and supply chain compromise.
Mitigation Recommendations
No official patch or remediation is indicated for this package. Users should avoid installing the ksp-app package at version 100.100.100 from untrusted sources. Review and restrict npm package sources to trusted registries to prevent dependency confusion attacks. Monitor for and remove any installations of this package. Since this is a malicious package rather than a vulnerability in legitimate software, remediation involves removing the package and preventing its installation.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-17770
- Osv Schema Version
- 1.7.4
- Ecosystems
- ["npm"]
Threat ID: 6acc00a32cdf04f656fecb2f
Added to database: 10/11/2026, 21:33:23 UTC
Last enriched: 10/11/2026, 21:44:03 UTC
Last updated: 10/11/2026, 21:44:03 UTC
Views: 4
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.