Skip to main content

Malicious code in bt2-api-gateway-node-js (npm)

0
Critical
Published: 09/01/2026 (09/01/2026, 17:16:24 UTC)
Source: GCVE Database
Product: bt2-api-gateway-node-js

Description

The npm package 'bt2-api-gateway-node-js' versions 999.0.0 and 999.0.1 contains malicious code that executes during post-installation. This code collects sensitive secrets from the user's environment, including private keys and credentials from various cloud and development tools, environment variables with tokens and passwords, then exfiltrates this data encoded to a Telegram Bot API endpoint and a suspicious IP address over plain HTTP. The malicious behavior includes evasion techniques to avoid detection in CI environments and sandboxes. This package is identified as a dependency confusion lure targeting an internal package name.

Affected software

npmghsa
bt2-api-gateway-node-js
Affected versions
=999.0.1=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/07/2026, 22:38:55 UTC

Technical Analysis

The 'bt2-api-gateway-node-js' npm package at versions 999.0.0 and 999.0.1 contains a postinstall-triggered immediately-invoked function expression (IIFE) in its index.js that reads a wide range of installer-owned secrets from disk and environment variables. It collects SSH keys, AWS, Azure, Google Cloud, Kubernetes, Docker, GitHub, and other credentials, serializes and base64-encodes them, then sends the data via POST requests to two hardcoded destinations: a Telegram Bot API endpoint and an IP address (2.26.82.63) over unencrypted HTTP. The code delays execution randomly between 5 and 15 seconds and aborts if it detects test or CI environments or containerized environments to evade automated analysis. The package name and version suggest it is a dependency confusion attack vector targeting internal packages. The OpenSSF Package Analysis project and Amazon Inspector have flagged this package as malicious.

Potential Impact

Users who install this package risk having sensitive credentials and secrets from their development and cloud environments exfiltrated to attacker-controlled endpoints. This can lead to unauthorized access to cloud accounts, source code repositories, databases, and other critical infrastructure. The exfiltration over plain HTTP exposes the data to network interception. The evasion techniques reduce the chance of detection during automated testing or sandboxing, increasing the likelihood of successful compromise in real environments.

Defensive Guidance

No official patch or remediation is indicated for this malicious package. The best mitigation is to avoid installing 'bt2-api-gateway-node-js' versions 999.0.0 and 999.0.1. Users should audit their dependency trees to detect and remove this package if present. Additionally, users should rotate any potentially exposed credentials and secrets that may have been compromised. Monitor for suspicious network activity related to the described endpoints. Since this is a malicious package, no vendor fix exists; remediation involves removal and credential rotation.

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

Threat ID: 6a98455dacd9273b496ab857

Added to database: 09/02/2026, 15:48:45 UTC

Last enriched: 09/07/2026, 22:38:55 UTC

Last updated: 10/03/2026, 13:37:47 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