Malicious code in gear-composer (npm)
The npm package gear-composer version 1.0.126 contains malicious code that executes during installation. It includes a postinstall lifecycle script that performs host identification and outbound network communication. The package implements secret scanning and exfiltration mechanisms, decoding base64-encoded content and credentials, and sending collected data to external services such as Discord and HuggingFace. This behavior indicates an active credential harvesting and covert data relay operation embedded within what appears to be a normal build tool.
AI Analysis
Technical Summary
The gear-composer npm package version 1.0.126 contains multiple components consistent with an install-time credential harvesting and exfiltration pipeline. A postinstall script (postinstall-agent.mjs) triggers host identification and outbound network activity. Several modules (contentScanner.js, agentStartupAudit.js) perform secret scanning by reading and base64 decoding content, then issuing fetch requests to huggingface.co endpoints. Other modules (discordRelayUpload.js) handle base64 blobs and upload collected data to Discord via ping and POST requests. An embedded relay server repeatedly sends beaconing pings. Credentials are base64-encoded and decoded at load time, with configuration and credentials hidden using encode/decode pairs. The combination of these behaviors matches an active malicious exfiltration and covert relay pattern rather than legitimate functionality.
Potential Impact
This malicious package can harvest sensitive credentials and other secrets from the host environment during installation and exfiltrate them to external services controlled by the attacker. This compromises confidentiality and potentially enables further attacks using stolen credentials. The covert nature of the relay and encoding mechanisms increases the difficulty of detection.
Mitigation Recommendations
No official patch or remediation is currently documented. Users should avoid using gear-composer version 1.0.126 and remove it from their environments if installed. Monitor for any suspicious network activity related to Discord or HuggingFace endpoints. Check vendor advisories or trusted sources for updates or official fixes. Patch status is not yet confirmed — check the vendor advisory for current remediation guidance.
Malicious code in gear-composer (npm)
Description
The npm package gear-composer version 1.0.126 contains malicious code that executes during installation. It includes a postinstall lifecycle script that performs host identification and outbound network communication. The package implements secret scanning and exfiltration mechanisms, decoding base64-encoded content and credentials, and sending collected data to external services such as Discord and HuggingFace. This behavior indicates an active credential harvesting and covert data relay operation embedded within what appears to be a normal build tool.
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 gear-composer npm package version 1.0.126 contains multiple components consistent with an install-time credential harvesting and exfiltration pipeline. A postinstall script (postinstall-agent.mjs) triggers host identification and outbound network activity. Several modules (contentScanner.js, agentStartupAudit.js) perform secret scanning by reading and base64 decoding content, then issuing fetch requests to huggingface.co endpoints. Other modules (discordRelayUpload.js) handle base64 blobs and upload collected data to Discord via ping and POST requests. An embedded relay server repeatedly sends beaconing pings. Credentials are base64-encoded and decoded at load time, with configuration and credentials hidden using encode/decode pairs. The combination of these behaviors matches an active malicious exfiltration and covert relay pattern rather than legitimate functionality.
Potential Impact
This malicious package can harvest sensitive credentials and other secrets from the host environment during installation and exfiltrate them to external services controlled by the attacker. This compromises confidentiality and potentially enables further attacks using stolen credentials. The covert nature of the relay and encoding mechanisms increases the difficulty of detection.
Mitigation Recommendations
No official patch or remediation is currently documented. Users should avoid using gear-composer version 1.0.126 and remove it from their environments if installed. Monitor for any suspicious network activity related to Discord or HuggingFace endpoints. Check vendor advisories or trusted sources for updates or official fixes. Patch status is not yet confirmed — check the vendor advisory for current remediation guidance.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-14299
- Osv Schema Version
- 1.7.4
- Aliases
- []
- Ecosystems
- ["npm"]
- Database Specific Severity
- null
- Cvss Version
- null
Threat ID: 6a85b4a3acd9273b4925076c
Added to database: 08/19/2026, 13:50:27 UTC
Last enriched: 08/19/2026, 13:57:25 UTC
Last updated: 08/19/2026, 21:58:13 UTC
Views: 3
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.