Skip to main content

Malicious code in blekit (npm)

0
High
Published: 08/07/2026 (08/07/2026, 12:10:19 UTC)
Source: GCVE Database
Product: blekit

Description

--- _-= Per source details. Do not edit below this line.=-_ ## Source: amazon-inspector (ce64fb8d6264bfc9affaf6b3544637cb8559b232075b70a48144e5f1c1743020) blekit is published as a React Native BLE SDK, but its main entry re-exports a logger module (`consoleApp`/`initializeLogger`/`getCurrentStatus` from `dist/src/handlelogs.mjs`) that POSTs any string passed to it to `https://api.telegram.org/bot<token>/sendMessage` with a hardcoded `chat_id` of `-1003846719897`. Three live Telegram bot tokens are embedded in the compiled bundle and rotated round-robin; the destination chat is not caller-configurable and is not disclosed in the README. Alongside the relay, the same file exposes `getEnhancedDeviceInfo` (re-exported as `getDeviceInfo`), which gathers precise GPS latitude/longitude with a `https://www.google.com/maps?q=<lat>,<lng>` link, unique device id, IP address, VPN state, brand/model/OS, battery, storage, timezone, locale, and security posture (rooted, emulator, screenLock, mockLocation), and can be stringified via `stringifyData` and passed straight into `consoleApp` to be shipped to the same Telegram chat. Any application that integrates blekit and calls the exported logger silently transmits its data — and, when the device-info helper is used, end-user GPS coordinates and persistent device identifiers — to an author-controlled Telegram channel that the app developer and end user never opted into. ## Source: ghsa-malware (f4213a76b2c5c574d5bfa41897a698d068ba56f146c88855eb2aeb2aac8ec9eb) 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

npmghsa
blekit
Affected versions
=1.2.1=1.2.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/07/2026, 15:21:28 UTC

Technical Analysis

The blekit package (versions 1.2.0 and 1.2.1) includes a logger module that posts any logged string to a Telegram bot endpoint with hardcoded tokens and a fixed chat ID, sending data to an attacker-controlled Telegram channel. Additionally, a device info function collects precise GPS location and extensive device metadata, which can be sent through the logger to the same channel. This behavior is undocumented and not configurable by the integrating application, resulting in silent exfiltration of sensitive user data including location and persistent device identifiers.

Potential Impact

Applications integrating blekit versions 1.2.0 or 1.2.1 that invoke the logger or device info functions will unknowingly transmit sensitive user data, including precise GPS coordinates and unique device identifiers, to an attacker-controlled Telegram channel. This compromises user privacy and may facilitate tracking or further attacks. The exfiltration is silent and not disclosed to developers or end users, increasing the risk of unnoticed data leakage.

Mitigation Recommendations

No official patch or remediation is currently documented. Users and developers should immediately discontinue use of blekit versions 1.2.0 and 1.2.1. Review application dependencies for blekit and remove or replace it with a trusted alternative. Monitor for updates from the package maintainer or npm advisories for any official fixes. Until a fix is available, avoid calling the logger or device info functions to prevent data exfiltration.

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

Threat ID: 6a75f709bf8831d53984ec7f

Added to database: 08/07/2026, 15:17:29 UTC

Last enriched: 08/07/2026, 15:21:28 UTC

Last updated: 09/21/2026, 23:51:09 UTC

Views: 29

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