Poisoned Pipeline / Incidents / AS540
A fake Telegram CVE proof of concept pinned a PyPI package that contained no module of its own but shipped a copy of pyparsing, so the first import of the library read a PowerShell command hidden in a JPEG segment no image library parses and started a signed-updater Epsilon Stealer build
PyPIGit / GitHubWindows softwareDeveloper workstation
On 4 December 2026 SafeDep published an analysis of pyparserdecode, a PyPI
package whose 3.3.3 release went up on 3 December and whose 3.3.4 release
went up at 13:22 UTC on 4 December. It had 84 downloads and was still on
PyPI when the write-up was published. The package is the only malicious
component in a GitHub repository,
minisolar/telegram-desktop-rce, that presents itself as a proof of concept
for CVE-2026-148392, a remote code execution bug in Telegram Desktop that
does not exist.
The repository's README reads like an advisory: a CVSS 8.8 badge, a vector
string and a call chain from a Telegram Mini App through
QDesktopServices::openUrl to ShellExecuteW. It tells the reader to run
setup.bat, which creates a virtual environment, installs requirements.txt
and starts bot.py. In that requirements file pyparserdecode is the only
dependency pinned to an exact version — ==3.3.4 — and no file in the
repository imports a module of that name. The exploit code imports
pyparsing and calls a preview decoder a second time in case the import hook
did not run. setup.bat then imports the module and checks that pyparsing
resolves; if the malware were missing, the setup would stop with
"dependency check failed". The lure is aimed at people who run exploit
code on purpose — researchers, students and bug bounty hunters testing a
PoC within hours of a disclosure, on the machine that holds their browser
sessions for work tools, cloud consoles and wallets.
The wheels contain no pyparserdecode module. They contain a top-level
pyparsing package: a copy of the real pyparsing 3.3.3 source with Windows
line endings, plus one added directory, pyparsing/_internal/preview/. The
package metadata copies the real project's summary, its author's name and
its project URLs, and the version numbers follow the real project — the
fake 3.3.3 matches the stable release of 20 September 2026, and the fake
3.3.4 arrived twelve hours after the real 3.3.4rc1. pip does not check
whether two distributions write the same files. When the real pyparsing is
already installed the fake one overwrites its files and pip still lists
both packages. Because pyparsing is a dependency of libraries such as
matplotlib and httplib2, every program in that environment that imports it
runs the loader, not only the fake PoC, and a block appended to the copied
__init__.py calls the added module's bootstrap() on each import. The loader
keeps no marker file, so every new Python process downloads and starts the
next stage again.
The bootstrap reads its command from stest.jpg, a valid 1920x1080 wallpaper
of a dark car that ships in the same added directory. JPEG metadata
normally lives in APPn segments before the compressed image data; this file
places an APP13 segment (marker 0xFFED, normally Photoshop data) after the
image data and ends it at the end-of-image marker. Pillow and ImageMagick
stop reading metadata at the start of the image data and report no APP13
segment at all. decode.py does not use an image library: it walks the raw
bytes, skips the stuffed 0xFF00 pairs and restart markers inside the image
data, and reaches the record — magic JPLD, a version byte, a two-byte
length and JSON with one key. Every string a scanner might match is split
in two and joined when Python compiles the file. bootstrap() encodes the
command as Base64 of UTF-16LE text, writes a relay_<milliseconds><11 random
characters>.vbs file to %TEMP% and starts it detached with wscript.exe; the
script deletes itself and starts PowerShell with window style 0. The code
does not check the operating system, so on Linux and macOS the wscript.exe
call fails and the except block hides the error.
The two versions carry different commands in the same image. 3.3.3
downloads the real osu! installer from m1.ppy.sh, which the operator used
to test the chain with a harmless file. 3.3.4 downloads winhost.exe from a
Cloudflare quick tunnel; decode.py is identical in both versions (SHA-256
0fe42620…1742), so the payload is changed by editing the image alone. The
93 MB file is an electron-builder portable executable that unpacks an
Electron app and runs it without an install screen. Both the outer
executable and the inner winhost.exe carry an Authenticode signature from
a certificate named "Microsoft Corporation" that is self-signed, so
Windows does not trust it but the publisher name shows in file properties
and in some security tools. The certificate was created on 28 November at
18:59 UTC and carries a real Sectigo timestamp of 29 November at 15:12:07
UTC, the same second as the payload server's Last-Modified header. The
app's package.json identifies the family: name winhost, author "Microsoft
Corporation" and an epsilon_key.
The decoded stealer is 4,407 lines of JavaScript, reached by Base64, RC4
with the key aer4z4lur3o, Base64 again and new Function. It collects saved
passwords, cookies, autofill and cards from Chromium browsers and Firefox;
data from 19 wallet extensions and 21 desktop wallets including Exodus,
Atomic, Electrum and Ledger Live; Discord tokens, Telegram tdata and GitHub
and Discord backup codes; and files whose names match keywords in English
and French. It copies itself to
%LOCALAPPDATA%\Microsoft\Windows\0\svchost.exe, adds a svchost value under
the HKCU Run key and keeps a WebSocket shell that runs cmd and PowerShell
commands. The archive goes to two places at once: the MaaS panel's
/upload endpoint and the operator's own server, so the operator keeps a
copy the panel does not control. A third channel for wallet data is present
and switched off in this build. To defeat Chrome's App-Bound Encryption the
December build either runs a PowerShell helper as SYSTEM through a
scheduled task or injects 1.6 MB of Donut shellcode read out of a 6.7 MB C
header, with AMSI, WLDP and ETW bypasses and Chaskey encryption. A separate
CLIPPER command loads clipjack.dll, a message-only window registered with
SetClipboardViewer that tests clipboard text against prefix, length and
character-set rules for seven chains and substitutes the operator's
address; the Bitcoin, Litecoin and Solana addresses show small transfers
between 3 and 16 October 2026, and the BNB entry still holds the template
value. In this deployment the clipper cannot work on a victim, because
ret.ps1 still points at http://localhost:3000/download/jack.
SafeDep ties the operation to the June 2026 axios typosquats by the
publishing account: the fake PoC lives in the same GitHub account as the
May lures, now minisolar and earlier yutomiwana. Two weaker signals agree.
pulse-axios 1.16.1 in May and ret.ps1 in December both point at a
development server on localhost:3000, and the December payload server
answers with the banner "localhost:3000 file server". The ChromElevator
copy was compiled on the day of the faster-axios wave, and the December
server still serves the browser.h file it last changed that afternoon. All
five lures switch between 16:00 and 16:04. The June wave is AS98; this
record covers the PyPI package and the PoC repository.
Mapped techniques
- T0110 Advertise malicious artifact
- T0109 Publish malicious artifact
- T0285 Ship another distribution's import name
- T0159 Malicious artifact execution
- T0286 Read the next stage from an image segment the decoder never parses
- T0257 Sign the payload with a certificate that names a vendor but chains to nothing
- T0184 Harvesting sensitive information from files
- T0172 Runtime backdoor
supply-chain A fake advisory repository advertises one pinned dependency
The repository minisolar/telegram-desktop-rce presents a working
proof of concept for a CVE that does not exist, with a CVSS 8.8
badge, a vector string and a plausible call chain. The README's
instructions lead to setup.bat, which installs requirements.txt and
imports the module; the only exact pin in that file is the
malicious package.
pyparserdecode 3.3.3 was published on 3 December 2026 and 3.3.4 at
13:22 UTC on 4 December. SafeDep counted 84 downloads and the
package was still listed when the analysis was published. The
account had already published env-nodejs, env-threads, pulse-axios,
turbo-axios and faster-axios on npm since May 2026.
supply-chain The wheel writes another project's import name
The wheels carry no pyparserdecode module: they contain a top-level
pyparsing package copied from the real 3.3.3 source, with one added
directory, and metadata that copies the real project's summary,
author and URLs. pip does not detect that two distributions write
the same files, so the fake overwrites the real library and both
remain listed; the version numbers track the real project's.
post-supply-chain Importing pyparsing runs a command stored in a JPEG
A block appended to the copied __init__.py imports
pyparsing._internal.preview.decode and calls bootstrap() on every
import of pyparsing. No install hook is used and nothing has to be
called by the application, so any program in the virtual
environment that imports pyparsing — a dependency of matplotlib and
httplib2 — starts the chain.
stest.jpg places an APP13 segment after the image data, ending at the
end-of-image marker, where Pillow and ImageMagick do not look.
decode.py walks the raw bytes past the scan data and reads a JPLD
record holding a Base64 UTF-16LE PowerShell command, then starts a
self-deleting VBS through wscript.exe.
post-supply-chain A vendor-signed updater delivers Epsilon Stealer and a clipper
The 93 MB portable executable and the inner winhost.exe carry a
self-signed Authenticode certificate whose subject is "Microsoft
Corporation". Windows does not trust the chain, but the publisher
name is what file properties and some tools display. The
certificate was created the day before the release and carries a
Sectigo timestamp matching the payload server's Last-Modified
header to the second.
Browser passwords, cookies, autofill and cards; 19 wallet extensions
and 21 desktop wallets; Discord tokens, Telegram tdata and backup
codes; and keyword-matched files in English and French. The archive
is uploaded to the MaaS panel and to the operator's own server in
parallel.
The stealer copies itself to
%LOCALAPPDATA%\Microsoft\Windows\0\svchost.exe, adds a svchost value
under the HKCU Run key, and keeps a WebSocket shell that runs cmd and
PowerShell commands. App-Bound Encryption is attacked either through
a SYSTEM scheduled task or by injecting Donut shellcode.
Framework gaps noted
- 84 downloads is the count SafeDep observed. Installs from internal mirrors, cached wheels and environments where the package was pulled as a transitive dependency are not counted, and the write-up gives no figure for hosts that ran the PoC.
- The package was still listed on PyPI when the analysis was published. No takedown time, yanked-version marker or OSV entry for pyparserdecode is recorded in the write-up; the npm packages from the same operator are listed in OSV.
- The clipper did not work in this deployment: ret.ps1 still points at http://localhost:3000/download/jack, and the BNB address in clipjack.dll is the template value. The transfers on three of the other chains are small and could be tests or stolen payments.
- Attribution to the June axios operator rests on the publishing account and two weaker signals — the shared localhost:3000 development server and the ChromElevator compile date. No code overlap between the npm and PyPI packages is published.
- The Epsilon Stealer build is described from its own source and configuration. The panel behind /upload is not analysed, so the number of victims the operator holds is unknown.
- No technique in the catalogue records a clipboard address swapper; the clipper is described here and mapped to the stealer's execution rather than to a technique of its own.