Skip to main content

Malicious code in streak-metric-test (npm)

0
High
Published: 08/19/2026 (08/19/2026, 03:01:38 UTC)
Source: GCVE Database
Product: streak-metric-test

Description

The npm package [email protected] contains malicious code that executes a dropper payload upon import or require. The package writes a binary file to a hidden cache directory, sets executable permissions, and launches it as a detached background process. Although the current payload is inert, the mechanism is fully implemented and could be activated by populating the payload data. The package appears to be a staging artifact with no legitimate purpose for this behavior.

Affected software

npmghsa
streak-metric-test
Affected versions
=1.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: 08/19/2026, 14:38:18 UTC

Technical Analysis

The streak-metric-test package version 1.0.0 includes a top-level asynchronous function that, when the package is imported or required, decodes a base64 string array into a binary buffer, writes this binary to a hidden cache directory (~/.cache/streak-metric/h), sets the file permissions to executable (chmod 755), and then launches the binary as a detached background process using child_process.spawn. The supporting functions mislabel this behavior as benign caching, but the full decode-write-execute chain is present. The current payload array is empty (inert), but the code is fully wired to execute arbitrary binaries if the payload is populated. There is no declared legitimate purpose or native addon that would justify this behavior, indicating malicious intent consistent with a staging or test artifact.

Potential Impact

If the payload were activated, this could lead to arbitrary code execution on the host system when the package is imported, potentially allowing an attacker to run malicious binaries stealthily in the background. Currently, the payload is inert, so no active exploitation is occurring. However, the presence of this fully implemented dropper mechanism poses a significant risk if the payload is populated or modified.

Mitigation Recommendations

Since this is a malicious package, the primary mitigation is to avoid using [email protected] and remove it from any environments where it is installed. No official patch or fix is available. Users should audit their dependencies and ensure they do not include this package. Monitor for any unexpected binaries in the ~/.cache/streak-metric directory and remove them if found.

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-14224
Osv Schema Version
1.7.4
Ecosystems
["npm"]

Threat ID: 6a85b4c7acd9273b49252835

Added to database: 08/19/2026, 13:51:03 UTC

Last enriched: 08/19/2026, 14:38:18 UTC

Last updated: 10/04/2026, 00:22:06 UTC

Views: 23

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