Malicious code in gaarf-bq (npm)
Description
The npm package gaarf-bq version 1.0.0 contains malicious code that executes during installation. Its postinstall script collects host identifiers such as hostname, platform, architecture, Node.js version, and package metadata, then sends this data to a hardcoded external server without user consent. This behavior is unrelated to the package's documented functionality and resembles dependency confusion tactics. No official patch or remediation guidance is provided.
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 npm package gaarf-bq version 1.0.0 includes a postinstall lifecycle script that collects installer host identifiers (os.hostname(), process.platform, process.arch, Node version, and package metadata) and transmits them via HTTPS POST to a hardcoded endpoint (vpx0x956.instances.poc.jchunt.top/gaarf-bq). This endpoint is not configurable by the user and is unrelated to the package's intended purpose. The package name mimics Google's ads-api-report-fetcher BigQuery component, suggesting it is designed to exploit dependency confusion to infiltrate internal builds and exfiltrate host fingerprints. Despite a self-description as a security-research canary, the behavior constitutes unauthorized data exfiltration.
Potential Impact
The malicious postinstall script leaks sensitive host environment information to an attacker-controlled server without user consent. This can lead to privacy violations and potentially aid attackers in profiling or targeting affected systems. There is no indication of direct code execution beyond the data exfiltration, and no known exploits in the wild have been reported.
Mitigation Recommendations
No official patch or remediation is currently available. Users should avoid installing version 1.0.0 of the gaarf-bq package from untrusted sources. Review and verify package authenticity before installation, and consider using package integrity verification tools or private registries to prevent dependency confusion attacks.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-14237
- Osv Schema Version
- 1.7.4
- Ecosystems
- ["npm"]
Threat ID: 6a85b4c2acd9273b492524d7
Added to database: 08/19/2026, 13:50:58 UTC
Last enriched: 08/19/2026, 14:31:12 UTC
Last updated: 10/02/2026, 13:52:16 UTC
Views: 22
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.