Malicious code in @ks-radar/radar (npm)
The npm package '@ks-radar/radar' version 22.0.0 contains malicious code in its preinstall lifecycle script. This script decodes and executes a hidden command that sends sensitive system information, including user identity, working directory, hostname, and contents of system files, to an attacker-controlled external server. The malicious behavior is concealed by hex encoding the command, evading casual inspection. This package is identified as malicious by the OpenSSF Package Analysis project and is associated with a domain known for malicious activity.
AI Analysis
Technical Summary
The '@ks-radar/radar' npm package at version 22.0.0 includes a preinstall.js script that reads a hex-encoded command from preinstall.json, decodes it, and executes it via child_process.exec. The executed command uses curl to POST reconnaissance data such as the output of 'whoami', current working directory, hostname, and contents of '/etc/passwd' and '/etc/hosts' to a malicious endpoint hosted on pipedream.net, which is attacker-controlled and unrelated to the package publisher. This behavior is considered malicious as it exfiltrates sensitive system information during installation, hidden by hex encoding to avoid detection.
Potential Impact
The malicious preinstall script exfiltrates sensitive system information from the host machine to an attacker-controlled server. This includes user identity, system hostname, current directory, and contents of critical system files. Such data leakage can facilitate further attacks, compromise system confidentiality, and undermine trust in the software supply chain.
Mitigation Recommendations
Users should avoid installing '@ks-radar/radar' version 22.0.0. Since no patch or remediation is indicated, the safest approach is to remove this package from projects and replace it with a trusted alternative. Monitor for updates from the package maintainer or npm advisories for any official fixes or removals. Until then, do not use this package version.
Malicious code in @ks-radar/radar (npm)
Description
The npm package '@ks-radar/radar' version 22.0.0 contains malicious code in its preinstall lifecycle script. This script decodes and executes a hidden command that sends sensitive system information, including user identity, working directory, hostname, and contents of system files, to an attacker-controlled external server. The malicious behavior is concealed by hex encoding the command, evading casual inspection. This package is identified as malicious by the OpenSSF Package Analysis project and is associated with a domain known for malicious activity.
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 '@ks-radar/radar' npm package at version 22.0.0 includes a preinstall.js script that reads a hex-encoded command from preinstall.json, decodes it, and executes it via child_process.exec. The executed command uses curl to POST reconnaissance data such as the output of 'whoami', current working directory, hostname, and contents of '/etc/passwd' and '/etc/hosts' to a malicious endpoint hosted on pipedream.net, which is attacker-controlled and unrelated to the package publisher. This behavior is considered malicious as it exfiltrates sensitive system information during installation, hidden by hex encoding to avoid detection.
Potential Impact
The malicious preinstall script exfiltrates sensitive system information from the host machine to an attacker-controlled server. This includes user identity, system hostname, current directory, and contents of critical system files. Such data leakage can facilitate further attacks, compromise system confidentiality, and undermine trust in the software supply chain.
Mitigation Recommendations
Users should avoid installing '@ks-radar/radar' version 22.0.0. Since no patch or remediation is indicated, the safest approach is to remove this package from projects and replace it with a trusted alternative. Monitor for updates from the package maintainer or npm advisories for any official fixes or removals. Until then, do not use this package version.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-11066
- Osv Schema Version
- 1.7.4
- Aliases
- []
- Ecosystems
- ["npm"]
- Database Specific Severity
- null
- Cvss Version
- null
Threat ID: 6a6542049c2644c7f808147f
Added to database: 07/25/2026, 23:08:52 UTC
Last enriched: 08/05/2026, 17:55:19 UTC
Last updated: 09/05/2026, 13:44:00 UTC
Views: 57
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.