Skip to main content

Malicious code in token-prices-cron (npm)

0
High
Published: 06/15/2026 (06/15/2026, 15:09:45 UTC)
Source: GCVE Database
Product: token-prices-cron

Description

The npm package 'token-prices-cron' version 999.0.0 contains malicious code that executes during the preinstall lifecycle. It collects environment variables matching credential-related patterns along with system metadata and sends this data unencrypted to a hardcoded IP address. The package is designed as a hollow shell to trigger credential exfiltration on corporate build machines by exploiting dependency confusion. No CVSS score is available for this threat.

Affected software

npmghsa
token-prices-cron
Affected versions
=999.0.0

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: 09/08/2026, 14:37:45 UTC

Technical Analysis

The 'token-prices-cron' npm package version 999.0.0 includes a preinstall script (postinstall.js) that enumerates environment variables, filters keys matching a broad credential regex (including terms like key, secret, token, pass, private, ssh, deploy, auth, api, rpc, wallet, sentry, docker, graph, slack, host), and collects these along with hostname, username, current working directory, and npm registry/prefix metadata. This collected information is sent via an HTTP POST request to a hardcoded IP address (185.130.46.35) on port 8443 without TLS or domain verification. The package itself exports an empty module and uses a high version number (999.0.0) to win resolution against private registry packages, facilitating credential harvesting on corporate continuous integration environments. A source comment explicitly states the intent to exfiltrate CI environment variables on install.

Potential Impact

This malicious package can lead to the exfiltration of sensitive environment variables and credentials from build or development environments where it is installed. The stolen data includes secrets, tokens, passwords, private keys, and other sensitive information that could compromise corporate infrastructure, CI/CD pipelines, and connected services. The attack leverages dependency confusion to increase the chance of installation in targeted environments.

Mitigation Recommendations

No official patch or remediation is available for this malicious package. The package should be removed and blocked from use in all environments. Organizations should audit their dependency sources to prevent dependency confusion attacks by using strict package name controls and private registries. Monitoring for unexpected packages with suspicious versioning or empty module exports can help detect similar threats. Avoid installing packages from untrusted sources and verify package authenticity before use.

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-5782
Osv Schema Version
1.7.4
Aliases
["GHSA-qp5c-f568-8r3h"]
Ecosystems
["npm"]

Threat ID: 6a96f316acd9273b49e4939c

Added to database: 09/01/2026, 15:45:26 UTC

Last enriched: 09/08/2026, 14:37:45 UTC

Last updated: 10/02/2026, 00:23:48 UTC

Views: 32

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