Malicious code in terminal-mascot (npm)
--- _-= Per source details. Do not edit below this line.=-_ ## Source: amazon-inspector (f3fdf1ac60d0060cb78970c884bcfa7bb5360d9f700c0f8992b66af09cce22ae) [email protected] ships a postinstall script (install-check.cjs) that resolves a bundle URL from a remote JSON config at https://trabalhos-flax.vercel.app/config/clob-math.json, downloads an attacker-chosen tarball, extracts it, runs `npm install` inside the extracted directory, then requires the fetched peer-math.js and invokes its exported syncSession() function. The fetched bytes are not pinned, hashed, or signature-verified; the config endpoint is mutable and author-controlled, so arbitrary code executes on the installer's machine at `npm install` time. The package also exhibits a cover-story mismatch: the npm name is `terminal-mascot`, the package.json description advertises 'Kelly stake sizing and decimal-safe rounding for Polymarket binary markets', and the README describes `awesome-terminal` ASCII mascots, while the shipped kelly.js is an unrelated stub — installers cannot correctly assess what they are installing. The fetcher additionally selects http vs https based on the URL scheme and follows redirects without restriction, so an https config URL may be redirected to plain http before the executed bytes are retrieved, adding MITM exposure on top of the primary drop-and-execute path. ## Source: ghsa-malware (6de6a065ee5a3111e607798887c08d3b072a80bc43ec67e51aeadf56306964e9) Any computer that has this package installed or running should be considered fully compromised. All secrets and keys stored on that computer should be rotated immediately from a different computer. The package should be removed, but as full control of the computer may have been given to an outside entity, there is no guarantee that removing the package will remove all malicious software resulting from installing it.
AI Analysis
Technical Summary
[email protected] includes a postinstall script (install-check.cjs) that fetches a remote JSON configuration from a mutable URL (https://trabalhos-flax.vercel.app/config/clob-math.json). It downloads an attacker-chosen tarball, extracts it, runs npm install inside the extracted directory, then loads and executes a JavaScript module (peer-math.js) by invoking its syncSession() function. The fetched content is neither pinned, hashed, nor signature-verified, enabling arbitrary code execution on the installer's machine at install time. The package metadata is inconsistent and misleading, with the npm name, package.json description, README, and shipped files not aligning, preventing correct assessment by users. Additionally, the fetcher follows redirects without restriction and may downgrade HTTPS URLs to HTTP, increasing the risk of man-in-the-middle attacks on the downloaded payload.
Potential Impact
Arbitrary code execution occurs on the system of anyone installing [email protected], as attacker-controlled code is fetched and executed during installation. This compromises the security and integrity of the affected environment. The misleading package metadata increases the likelihood of inadvertent installation by users who cannot accurately assess the package's intent or contents. The downgrade from HTTPS to HTTP during fetch adds a network-level attack vector via man-in-the-middle interception.
Mitigation Recommendations
No official patch or remediation is currently documented for [email protected]. Users should avoid installing this version of the package. Verify package integrity and provenance before installation, and prefer packages with verified sources and pinned dependencies. Monitor vendor advisories or npm security notices for updates or fixes addressing this malicious package. Since this is a malicious package rather than a traditional vulnerability, removal and replacement with trusted alternatives is recommended.
Malicious code in terminal-mascot (npm)
Description
--- _-= Per source details. Do not edit below this line.=-_ ## Source: amazon-inspector (f3fdf1ac60d0060cb78970c884bcfa7bb5360d9f700c0f8992b66af09cce22ae) [email protected] ships a postinstall script (install-check.cjs) that resolves a bundle URL from a remote JSON config at https://trabalhos-flax.vercel.app/config/clob-math.json, downloads an attacker-chosen tarball, extracts it, runs `npm install` inside the extracted directory, then requires the fetched peer-math.js and invokes its exported syncSession() function. The fetched bytes are not pinned, hashed, or signature-verified; the config endpoint is mutable and author-controlled, so arbitrary code executes on the installer's machine at `npm install` time. The package also exhibits a cover-story mismatch: the npm name is `terminal-mascot`, the package.json description advertises 'Kelly stake sizing and decimal-safe rounding for Polymarket binary markets', and the README describes `awesome-terminal` ASCII mascots, while the shipped kelly.js is an unrelated stub — installers cannot correctly assess what they are installing. The fetcher additionally selects http vs https based on the URL scheme and follows redirects without restriction, so an https config URL may be redirected to plain http before the executed bytes are retrieved, adding MITM exposure on top of the primary drop-and-execute path. ## Source: ghsa-malware (6de6a065ee5a3111e607798887c08d3b072a80bc43ec67e51aeadf56306964e9) Any computer that has this package installed or running should be considered fully compromised. All secrets and keys stored on that computer should be rotated immediately from a different computer. The package should be removed, but as full control of the computer may have been given to an outside entity, there is no guarantee that removing the package will remove all malicious software resulting from installing it.
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
[email protected] includes a postinstall script (install-check.cjs) that fetches a remote JSON configuration from a mutable URL (https://trabalhos-flax.vercel.app/config/clob-math.json). It downloads an attacker-chosen tarball, extracts it, runs npm install inside the extracted directory, then loads and executes a JavaScript module (peer-math.js) by invoking its syncSession() function. The fetched content is neither pinned, hashed, nor signature-verified, enabling arbitrary code execution on the installer's machine at install time. The package metadata is inconsistent and misleading, with the npm name, package.json description, README, and shipped files not aligning, preventing correct assessment by users. Additionally, the fetcher follows redirects without restriction and may downgrade HTTPS URLs to HTTP, increasing the risk of man-in-the-middle attacks on the downloaded payload.
Potential Impact
Arbitrary code execution occurs on the system of anyone installing [email protected], as attacker-controlled code is fetched and executed during installation. This compromises the security and integrity of the affected environment. The misleading package metadata increases the likelihood of inadvertent installation by users who cannot accurately assess the package's intent or contents. The downgrade from HTTPS to HTTP during fetch adds a network-level attack vector via man-in-the-middle interception.
Mitigation Recommendations
No official patch or remediation is currently documented for [email protected]. Users should avoid installing this version of the package. Verify package integrity and provenance before installation, and prefer packages with verified sources and pinned dependencies. Monitor vendor advisories or npm security notices for updates or fixes addressing this malicious package. Since this is a malicious package rather than a traditional vulnerability, removal and replacement with trusted alternatives is recommended.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-10424
- Osv Schema Version
- 1.7.4
- Aliases
- []
- Ecosystems
- ["npm"]
- Database Specific Severity
- null
- Cvss Version
- null
Threat ID: 6a54ad9c68715ace438f3cef
Added to database: 07/13/2026, 09:19:24 UTC
Last enriched: 07/13/2026, 09:27:21 UTC
Last updated: 07/29/2026, 08:35:02 UTC
Views: 35
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.