Malicious code in gehneb (npm)
Description
The npm package 'gehneb' version 1.0.1 contains malicious code that executes arbitrary code on any system installing it. This occurs because the package.json overrides a legitimate dependency 'consolefy' with a GitHub repository URL controlled by an attacker, without pinning to a specific commit, allowing the attacker to change the code at any time. The malicious code executes during installation and runtime, potentially compromising the entire system and exposing all stored secrets and keys.
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 'gehneb' npm package (version 1.0.1) declares its 'consolefy' dependency as a GitHub repository URL controlled by an attacker, lacking commit SHA, tag, or branch pinning. This allows the attacker to modify the code at the repository's HEAD, which is cloned during 'npm install'. The package's library files require 'consolefy' at the module top level, causing any malicious code pushed by the attacker to execute on every installation and runtime. Indicators include empty description and author metadata, a short opaque package name, and republished dependencies under unrelated branding. This creates a silent remote code execution (RCE) channel on the installer's environment.
Potential Impact
Any system with 'gehneb' version 1.0.1 installed or running is considered fully compromised. The attacker gains remote code execution capabilities during installation and runtime, potentially accessing all secrets and keys stored on the system. Removal of the package does not guarantee full remediation, as the attacker may have established persistent control or installed additional malicious software.
Mitigation Recommendations
Remove the 'gehneb' package version 1.0.1 immediately from all affected systems. Rotate all secrets and keys from a separate, trusted environment. Since the attacker may have full control, conduct a thorough investigation and consider rebuilding affected systems. No official patch or fix is available; avoid using this package and monitor for any updates from the vendor or npm advisories.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-4570
- Osv Schema Version
- 1.7.4
- Aliases
- ["GHSA-q9pf-x337-xr68"]
- Ecosystems
- ["npm"]
Threat ID: 6a870a50acd9273b49b58586
Added to database: 08/20/2026, 14:08:16 UTC
Last enriched: 08/20/2026, 14:17:31 UTC
Last updated: 10/03/2026, 11:22:05 UTC
Views: 20
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.