Malicious code in node-telegram-sockets (npm)
Exact source revision recorded 29 Oct 2026 15:12:22 UTC. It does not establish the source's current position. Latest evidence.
osv · MAL-2026-17845
Published--- _-= Per source details. Do not edit below this line.=-_ ## Source: amazon-inspector (222b22669330f75e779595b40bac9e2a842ef38fad691aaa46a0f4a615a55fc1) Package presents as a Telegram bot API client library (node-telegram-bot-api family). a static rule fired on keyword co-occurrence in lib/telegram.js and src/telegram.js (the literal token 'ping' on multiple lines, consistent with Telegram bot 'ping'-related API methods or test fixtures, not a child_process invocation of the ping command) and on lib/telegramWebHook.js / src/telegramWebHook.js for the combination of require('fs') + require('http') + require('https') + fs.readFileSync — the canonical shape of a webhook HTTPS server reading a TLS cert/key from disk (the readFileSync pair at adjacent lines is the standard cert+key load before https.createServer). No hardcoded attacker C2, no env-var scraping, no read of installer-secret paths (~/.aws, ~/.ssh, ~/.npmrc, browser profiles), no lifecycle scripts performing remote fetch+execute, no shell-history or messaging-session theft, and no install-time destructive action are evidenced. The static signals are pattern-matches on benign primitives (HTTPS webhook server, Telegram bot client methods); contextual code tracing did not run, so intent cannot be confirmed from the structured findings alone. Routing to human review per the default for empty the analysis + non-fingerprint static hits. ## Source: ghsa-malware (eaa0928c7e6cf97f1059c7c8ec8ea2c1ffe53c127480bfe8f5081b489676d26d) 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.
- Source published
- 12 Oct 2026 16:27:03 UTC
- Source modified
- 29 Oct 2026 14:30:42 UTC
- Observed here
- 29 Oct 2026 15:12:22 UTC
- Source terms
- OSV · upstream source license applies
Original source record · Cite this exact observation · Complete original publisher JSON
This view projects the publisher's source fields for reading; the original JSON retains additional fields and CVE enrichment containers. Attribution: osv · OSV · upstream source license applies. Source text is retained; field grouping and change labels are provided by ChangeIntel.