Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

Malicious code in hunsterx-package (npm)

0
Critical
Published: 06/23/2026 (06/23/2026, 19:33:15 UTC)
Source: GCVE Database
Product: hunsterx-package

Description

The hunsterx-package version 7.0.1 on npm contains malicious code that executes during installation. It collects extensive sensitive information including host identity, environment variables, npm tokens, AWS EC2 metadata, and configuration files, then exfiltrates this data to an attacker-controlled domain. The package also confirms successful execution via DNS callbacks. Any system installing this package risks full compromise, requiring immediate secret and key rotation and package removal.

Affected software

npmghsa
hunsterx-package
Affected versions
=7.0.1

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

AILast updated: 06/29/2026, 22:40:32 UTC

Technical Analysis

The hunsterx-package version 7.0.1 includes a preinstall.js script that runs obfuscated payloads decoding base64-encoded commands to collect host information (hostname, user info, current directory, network interfaces), full environment variables (including sensitive API keys and credentials), npm tokens from .npmrc files, AWS EC2 instance metadata via IMDSv2, and recursively reads configuration files (*.env, *.config, *.yaml, *.toml). This data is exfiltrated using HTTPS and DNS requests to a domain controlled by the attacker. A postinstall.js script performs a DNS callback to confirm execution of installation lifecycle phases. The obfuscation via base64 and eval is intended to evade static code review. The impact includes leakage of sensitive secrets and potential full system compromise.

Potential Impact

Systems that run npm install on hunsterx-package 7.0.1 leak sensitive environment variables, npm publish tokens, AWS account identifiers, and configuration files to an attacker. This can lead to unauthorized access to cloud resources, code repositories, and CI/CD pipelines. The attacker may gain persistent control over the compromised system. Removal of the package alone does not guarantee elimination of all malicious artifacts or backdoors. Immediate secret and key rotation is required to mitigate ongoing risk.

Mitigation Recommendations

No official patch or fix is currently documented. Users should immediately remove hunsterx-package version 7.0.1 from their projects and environments. All secrets, API keys, npm tokens, and cloud credentials exposed on affected systems must be rotated from a secure, uncompromised environment. Consider rebuilding compromised systems to ensure removal of any persistent malicious components. Monitor for any suspicious network activity related to the exfiltration domains described. Avoid using this package until a trusted, clean version is available.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Gcve Source
db.gcve.eu
Osv Id
MAL-2026-6337
Osv Schema Version
1.7.4
Aliases
["GHSA-29mh-6rgm-mmfw"]
Ecosystems
["npm"]
Database Specific Severity
null
Cvss Version
null

Threat ID: 6a42ed7627e9c79719939575

Added to database: 06/29/2026, 22:11:02 UTC

Last enriched: 06/29/2026, 22:40:32 UTC

Last updated: 07/31/2026, 14:29:57 UTC

Views: 11

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses