Skip to main content

Malicious code in bb-twl-k7x2 (npm)

0
High
Published: 08/12/2026 (08/12/2026, 15:40:45 UTC)
Source: GCVE Database
Product: bb-twl-k7x2

Description

The npm package bb-twl-k7x2 versions 1.0.0 and 1.0.1 contains malicious install and postinstall scripts that perform reconnaissance on the installer's machine. These scripts collect system information such as hostnames, network interfaces, directory listings, environment variables, and sensitive credential files including npm and AWS credentials. The collected data is exfiltrated via an unencrypted HTTP GET request to a hardcoded third-party server. Despite the package's self-description as a bug-bounty canary, it performs unauthorized credential-path reconnaissance and host enumeration during installation.

Affected software

npmghsa
bb-twl-k7x2
Affected versions
=1.0.0=1.0.1

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/12/2026, 20:27:36 UTC

Technical Analysis

The bb-twl-k7x2 npm package (versions 1.0.0 and 1.0.1) includes install and postinstall lifecycle scripts (canary.js) that execute automatically upon npm install. These scripts gather detailed reconnaissance data from the host environment, including OS hostname, output of shell commands (id, hostname -I, ip addr, directory listings), environment variables (HOME, npm registry), and checks for presence and contents of credential files such as ~/.npmrc and AWS credentials. Additionally, it probes the AWS instance metadata service to retrieve IAM role information. All collected data is transmitted over plain HTTP to a fixed external URL (http://whstool.brkd.no/cb53e6db-e043-4383-89e9-853c9088ee5d/), exposing sensitive information to a third party. The package's naming and description do not mitigate or alter this behavior.

Potential Impact

This malicious behavior can lead to unauthorized disclosure of sensitive environment and credential information from the installer's machine. Exposure of npm authentication tokens, AWS credentials, and host network details can facilitate further compromise or unauthorized access to cloud resources and developer environments. The use of unencrypted HTTP for data exfiltration increases the risk of interception. There is no indication of active exploitation in the wild at this time.

Mitigation Recommendations

Users should avoid installing the bb-twl-k7x2 package versions 1.0.0 and 1.0.1. Since no patch or fix is indicated, removal of the package and auditing of any credentials potentially exposed during installation is recommended. Consider rotating any npm or AWS credentials that may have been compromised. Use trusted and verified packages from official sources and monitor for suspicious network activity during package installations.

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

Threat ID: 6a7cd443bf8831d53918705b

Added to database: 08/12/2026, 20:14:59 UTC

Last enriched: 08/12/2026, 20:27:36 UTC

Last updated: 09/23/2026, 12:38:08 UTC

Views: 57

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