← Voltar ao feed

Fake Telegram Desktop RCE PoC on GitHub Spreads Epsilon Stealer via Malicious PyPI Package pyparserdecode

1 fonte(s) · 1 atualização(ões) · publicado 04/12/2026 17:00 · coletado há 1 dia

A GitHub repository, minisolar/telegram-desktop-rce, poses as a proof of concept for a Telegram Desktop RCE, CVE-2026-148392. That CVE does not exist, and the "exploit" is only a Telegram bot. The real trap is the pinned dependency pyparserdecode==3.3.4, a malicious PyPI package that overwrites the pyparsing import name. When pyparsing is imported, it runs a hidden PowerShell command stored in a JPEG and installs Epsilon Stealer on Windows. The stealer takes browser passwords and cookies, crypto wallets, and Discord and Telegram sessions. SafeDep links the account to six malicious npm and PyPI packages since May 2026, including the June axios typosquat wave. The package had 84 downloads and was still on PyPI at the time of writing (safedep.io).

Detalhes técnicos

  • The pyparserdecode wheels contain no pyparserdecode module. They ship a copy of pyparsing 3.3.3 plus pyparsing/_internal/preview/decode.py and stest.jpg. pip overwrites the real pyparsing files, so every Python process in that environment that imports pyparsing re-runs the loader. There is no marker file.
  • decode.py parses the raw JPEG bytes and reads a hidden APP13 segment placed after the image data, with magic JPLD and JSON key c. It writes %TEMP%\relay_<ms><random>.vbs, which launches powershell -EncodedCommand hidden and then deletes itself. The code does not check the OS.
  • Version 3.3.3 (3 December) downloaded the legitimate osu! installer as a test. Version 3.3.4 downloads winhost.exe from hunter-chicago-contributions-meaningful.trycloudflare.com/download/win.
  • winhost.exe is a 93 MB Electron portable app, self-signed as "Microsoft Corporation". Its package.json carries epsilon_key SK-20D9C98C07D6DEF1E4750A086FE3DB77F5CD. The stealer is RC4/Base64-obfuscated and run with new Function. It exfiltrates to the MaaS panel and to the operator's own server, and uses Cloudflare quick tunnels for C2.
  • It targets Chromium browsers and Firefox, 19 wallet extensions, 21 desktop wallets, Discord tokens, Telegram tdata, and GitHub and Discord backup codes. It persists as %LOCALAPPDATA%\Microsoft\Windows\0\svchost.exe with an HKCU Run value, and keeps a WebSocket shell.
  • It bypasses Chrome App-Bound Encryption in two ways: a SYSTEM scheduled task running a PowerShell helper, and Donut shellcode (browser.h) with a rebuilt ChromElevator 0.19.0, injected into dllhost.exe. A clipboard hijacker (clipjack.dll) replaces seven wallet address types. In this deployment the loader script points to localhost:3000, so it cannot work on a victim.
  • Attribution is to a single operator, not a named actor. The GitHub account minisolar (formerly yutomiwana) also published env-nodejs, env-threads, pulse-axios, turbo-axios and faster-axios on npm. OSV lists four of them as MAL-2026-2365, MAL-2026-3759, MAL-2026-4651 and MAL-2026-4695.

Remediação

  • Check for the malware without importing pyparsing: python -m pip show pyparserdecode, and test whether site-packages/pyparsing/_internal exists.
  • On Windows, look for %LOCALAPPDATA%\Microsoft\Windows\0\svchost.exe, a svchost value under HKCU Run, and %TEMP%\epsilon.log.
  • If any check matches, reinstall the host. From a clean device, rotate browser-saved passwords and sign out all sessions. Revoke Discord and Telegram sessions, regenerate GitHub and Discord backup codes, and move wallet funds.
  • Compare the full wallet address before pasting it.
  • Test PoCs only in disposable VMs without profiles or wallets, and review requirements.txt before installing.

Linha do tempo

  1. safedep.io ↗ · pub. 04/12/2026 17:00 · coletado 04/12 20:00 primeiro registro

    Fake Telegram Desktop RCE PoC on GitHub Spreads Epsilon Stealer via Malicious PyPI Package pyparserdecode

    ler a análise desta fonte

    A GitHub repository, minisolar/telegram-desktop-rce, poses as a proof of concept for a Telegram Desktop RCE, CVE-2026-148392. That CVE does not exist, and the "exploit" is only a Telegram bot. The real trap is the pinned dependency pyparserdecode==3.3.4, a malicious PyPI package that overwrites the pyparsing import name. When pyparsing is imported, it runs a hidden PowerShell command stored in a JPEG and installs Epsilon Stealer on Windows. The stealer takes browser passwords and cookies, crypto wallets, and Discord and Telegram sessions. SafeDep links the account to six malicious npm and PyPI packages since May 2026, including the June axios typosquat wave. The package had 84 downloads and was still on PyPI at the time of writing (safedep.io).

    Technical Details

    • The pyparserdecode wheels contain no pyparserdecode module. They ship a copy of pyparsing 3.3.3 plus pyparsing/_internal/preview/decode.py and stest.jpg. pip overwrites the real pyparsing files, so every Python process in that environment that imports pyparsing re-runs the loader. There is no marker file.
    • decode.py parses the raw JPEG bytes and reads a hidden APP13 segment placed after the image data, with magic JPLD and JSON key c. It writes %TEMP%\relay_<ms><random>.vbs, which launches powershell -EncodedCommand hidden and then deletes itself. The code does not check the OS.
    • Version 3.3.3 (3 December) downloaded the legitimate osu! installer as a test. Version 3.3.4 downloads winhost.exe from hunter-chicago-contributions-meaningful.trycloudflare.com/download/win.
    • winhost.exe is a 93 MB Electron portable app, self-signed as "Microsoft Corporation". Its package.json carries epsilon_key SK-20D9C98C07D6DEF1E4750A086FE3DB77F5CD. The stealer is RC4/Base64-obfuscated and run with new Function. It exfiltrates to the MaaS panel and to the operator's own server, and uses Cloudflare quick tunnels for C2.
    • It targets Chromium browsers and Firefox, 19 wallet extensions, 21 desktop wallets, Discord tokens, Telegram tdata, and GitHub and Discord backup codes. It persists as %LOCALAPPDATA%\Microsoft\Windows\0\svchost.exe with an HKCU Run value, and keeps a WebSocket shell.
    • It bypasses Chrome App-Bound Encryption in two ways: a SYSTEM scheduled task running a PowerShell helper, and Donut shellcode (browser.h) with a rebuilt ChromElevator 0.19.0, injected into dllhost.exe. A clipboard hijacker (clipjack.dll) replaces seven wallet address types. In this deployment the loader script points to localhost:3000, so it cannot work on a victim.
    • Attribution is to a single operator, not a named actor. The GitHub account minisolar (formerly yutomiwana) also published env-nodejs, env-threads, pulse-axios, turbo-axios and faster-axios on npm. OSV lists four of them as MAL-2026-2365, MAL-2026-3759, MAL-2026-4651 and MAL-2026-4695.

    Remediation

    • Check for the malware without importing pyparsing: python -m pip show pyparserdecode, and test whether site-packages/pyparsing/_internal exists.
    • On Windows, look for %LOCALAPPDATA%\Microsoft\Windows\0\svchost.exe, a svchost value under HKCU Run, and %TEMP%\epsilon.log.
    • If any check matches, reinstall the host. From a clean device, rotate browser-saved passwords and sign out all sessions. Revoke Discord and Telegram sessions, regenerate GitHub and Discord backup codes, and move wallet funds.
    • Compare the full wallet address before pasting it.
    • Test PoCs only in disposable VMs without profiles or wallets, and review requirements.txt before installing.