Poisoned Pipeline / Incidents / AS526
A fake WinUI take-home restored two packages from a folder committed to its own repository, so the build staged a copy of osk.exe beside a downloaded DLL and the first window launched the pair, while a button control still listed on NuGet downloads and runs an executable from its constructor
npmNuGetGit / GitHubWindows softwareDeveloper workstation
Socket published this on 23 November 2026: thirteen malicious NuGet
packages, published from four accounts between 23 July and 4 November,
most posing as WinUI 3 and WPF button controls. NuGet removed twelve of
them; WinUI.Button 1.0.0 was still listed and installable at the time of
writing, with about 160 downloads according to the search API. The
operation did not start on NuGet — six npm packages ran from 14 to 23 July
— and almost nothing in it is hosted anywhere but GitHub and Telegram.
The most recent lure is a take-home test. The repository
stevenleedig-ux/WinUI3_Home_Assessment was created on 4 November 2026 and
its README presents "[Home Assessment] WinUI 3 - Mini File Vault &
Tracker", a three to four hour exercise on a starter Visual Studio
solution, to be built and tested on native Windows with Visual Studio
2026. Two tasks are set, both about a list of file paths the starter
window renders, and both are styled through a button control supplied
through NuGet. The README asks candidates not to alter that control's
inner workings, only its exposed colour and radius properties. The window
pre-loads two sample entries, so opening it creates the control.
The first commit, bfb103a at 12:41 UTC on 4 November, added a Packages
folder holding VS_Builder.MSBuildAnalyzer.1.2.7.nupkg and
VS_Builder.WinUI3Controls.1.0.7.nupkg and set
RestoreAdditionalProjectSources to that folder; the second commit,
d45e9f3, corrected the path. Neither package has a NuGet catalog entry or
the repository signature NuGet adds to everything it serves, and the DLLs
inside them are timestamped minutes before the commit and about 36 hours
after NuGet deleted the VS_Builder account's packages. The project file
also sets DisableFastUpToDateCheck to true, which makes Visual Studio skip
its own up-to-date check and let MSBuild decide whether to rebuild.
NuGet imports a package's build/<package_id>.targets file into every
project that references it, and matches the name case-insensitively, so
build/VS_Builder.MsBuildAnalyzer.targets loads for the package ID
VS_Builder.MSBuildAnalyzer. Its first target fails the build unless the
target framework is net8.0-windows or net10.0; the second,
ExecuteInlineCSharpTarget, runs after Build and starts dotnet on
MSBuildAnalyzer.dll from the package's own lib folder. Its Outputs value
names ForceExecuteNonExistenFile.txt, a file nothing creates, so MSBuild
never treats the target as up to date and runs it after every build;
IgnoreExitCode and ContinueOnError keep a failure from failing the build.
The reference sets PrivateAssets to all and ExcludeAssets to runtime, so
the DLL never reaches the application's output.
The DLL describes itself as an "MSBuild Compatibility Analyzer" with
"Microsoft" as its company, and wraps its entry point in an empty catch.
It makes seventeen decoy calls — parsing a hard-coded build log, checking
toolset and SDK versions, listing the local package cache without using
the result — before the real work: a key and an encrypted blob rebuilt
from eight-character Base64 fragments spread across classes named
ToolsetRegistry, SolutionConfig and PlatformConfig, XORed and decrypted
with AES-256-CBC under the same key. Decrypted statically, those values
are a raw[.]githubusercontent[.]com URL under
stevenleedig-ux/fantastic-giggle, the paths osk/OskSupport.dll and
osk/osk.exe, and the source System32\osk.exe. The stager fetches the URL,
writes the bytes to %LOCALAPPDATA%\osk\OskSupport.dll, copies the Windows
On-Screen Keyboard into the same folder, and runs nothing. The repository
in that URL returned 404 during the analysis, so what it served is
unknown.
The second half is the control. FileButton in VS_Builder.WinUI3Controls
1.0.7 names "Microsoft" as its author and does what it says when clicked;
its constructor also ends by calling
TryInitializeEnvironmentCompatibilityProbe(), which rebuilds the path
osk/osk.exe from its own fragment arrays with the same Base64, XOR and
AES scheme and starts it under %LOCALAPPDATA%, hidden, once per process,
skipping the launch when that path is already running. Its diagnostic
logging builds messages and discards them. Neither package works alone:
the build package only stages files, and the control only launches a file
that must already exist. Together they are the documented osk.exe and
osksupport.dll side-loading pair — HijackLibs lists it — assembled from
public documentation, though the researchers did not test whether a copied
osk.exe starts from that folder on current Windows builds.
The lure outlived a takedown. VS_Builder published 1.0.1 on 2 November
without a targets file, added the first build hook in 1.0.2 about ten
minutes later, and followed with four more versions and the controls
package the same day. NuGet unlisted all of them at 20:15 UTC and deleted
them at 23:57. About 39 hours later HappyOne published
HappyOne.MSBuildAnalyzer 1.2.8, which still carried the targets file under
its old name — a name NuGet does not import for the new package ID —
and fixed it in 1.2.9 twenty-six minutes later. Twelve minutes after that,
commit 9e9384a moved the assessment from its bundled packages to
HappyOne.MSBuildAnalyzer 1.2.9 and HappyOne.WinUI3Controls 1.0.9; the
final commit, 0bb379c, kept only 1.1.0 and removed
DisableFastUpToDateCheck. NuGet deleted every HappyOne package on 6
November, so the assessment no longer restores as committed — but its
first two commits still carry the bundled copies.
WinUI.Button is the package that is still there, and it needs no build
hook. Its WUIButton constructor starts a background task that takes a
named mutex, then asks the GitHub contents API for
Carol-White-Super/cloud db/avast.exe?ref=Main with a 93-character
fine-grained token stored in plain text in the DLL, saves the response as
%TEMP%\Launcher.exe and runs it. Every exception is swallowed, and a
failure waits one to four seconds and retries with no limit. On later
starts the download is skipped and Launcher.exe is started again if it is
not running. WinUI creates controls through the generated XAML type
provider, so placing a WUIButton in markup is enough to run the
constructor; most of the rest of the DLL is a working calculator key. The
account returned 404 during the analysis, so the second stage is
unrecoverable, and an application built with the control keeps sending
authenticated requests to GitHub while it runs.
Behind the controls sit the payloads. Two repositories —
jason-code-super/axios, created on 23 July 2026 seventy-eight seconds
after its account, and stevenleedig-ux/axios-http, created on 10 August —
are the operator's copies of the axios JavaScript library, renamed
axios-test-one, each serving a Windows executable at lib/env/axios.csproj:
a file that begins with an MZ header rather than MSBuild XML. Both started
with the same unmodified, Microsoft-signed copy of Sysinternals Autoruns
13.96 as a placeholder. Between them the two histories hold nine binaries,
swapped through GitHub's web interface and deleted and re-uploaded in
cycles: a loader whose export directory is named msedgewebview2.exe, two
builds of a PyInstaller Chrome profile stealer that each lived under 90
minutes, two builds of a loader named updater.exe, a payload whose build
path names it WeapF, and three Themida-protected builds.
updater.exe is the command channel. Its strings are Base64 and a per-string
single-byte XOR, and they decode to a passphrase, a GitHub contents API
path and a host-profile template. It checks first that the machine has at
least 4 GiB of RAM and 60 GiB of disk, is not under a hypervisor, carries
no VM drivers and has no Wireshark, Process Monitor, x64dbg, Ghidra, IDA
Pro or Burp Suite installed, finishing within two seconds and deleting
itself on any failure. It then confirms connectivity through Google's
generate_204 endpoint, looks up its external IP through api.ipify.org and
talks to the repository with an embedded token: <victim id>/log1.dat
created with the commit message "downloading new version" and the host
profile, then <victim id>/log2.dat, whose first 16 bytes are the IV for an
AES-256-CBC payload keyed by the SHA-256 of the passphrase. The decrypted
PE is mapped in memory, its exported Start called, and the loader deletes
itself with a batch file. Each victim is a folder, so each can be given a
different next stage.
The PyInstaller stealer takes a Volume Shadow Copy through the WMI
Win32_ShadowCopy class, collects Chrome's Profile* folders and the
User Data files that hold the key to saved passwords and cookies, zips
them, splits the archives into .part files and uploads each part with a
GitHub contents API PUT and the commit message "Backup <name>" to
gabsantosbus-star/EngineeringRepository. WeapF, the 10 August payload,
carries an Authenticode signature from a self-signed certificate whose
subject and issuer are both CN=Microsoft Windows Publisher, adds itself to
the Run key, fetches an AES-GCM configuration from the README of another
repository and reports the computer name, user name, time zone and CPU
model through the Telegram Bot API. The three Themida builds cannot be
recovered statically.
On 13 November the account behind the shared git identity published a
GitHub release of "Crypto Wallet Analyzer", a single-file .NET app that
inventories eight crypto wallet extensions in Chrome profiles and, in its
decompiled MainWindow constructor, also loads a bundled native DLL named
vcruntime146_cor2.dll — an imitation of the WPF runtime's
vcruntime140_cor3.dll — that is a new build of the same loader, with
affine mod-127 string encoding, a new passphrase and a new repository,
Best-Seller-Dev/dexTrader. Closing the window only hides it. On 7 November
a client account created two days earlier on LaborX, a freelance
marketplace that pays in cryptocurrency, posted an $8,500 to $10,000 job
for a C# WPF "Crypto Wallet Analyzer" requiring complete source through
GitHub at each stage, and LaborX's Telegram channel promoted it on 9
November.
The npm half is older and smaller. Six packages ran from 14 to 23 July —
axios-test-one, telemetry-metrics, telemetry-axios, axios-native,
fs-extra-core and vitest-axios — documented individually by OSV from
Amazon Inspector reports: two download a Windows executable from a
repository and run it, one saves it as msedgewebview2.exe, and the axios
clones pull them in. All six were gone from npm by 23 July, and during the
67 minutes fs-extra-core was live the URL it fetched served only the
benign Autoruns placeholder. The same accounts also hosted a ClickFix
page on GitHub Pages: a fake "reCAPTCHA Verification" that turns into a
"Security Handshake Error" and offers a button copying a PowerShell
DownloadString from cloudservicebase[.]ddns[.]net, a No-IP hostname whose
Let's Encrypt certificate was issued on 29 August, the day passive DNS
shows it resolving to 172[.]86[.]119[.]233 at RouterHosting (Cloudzy). It
did not resolve during the analysis.
Socket does not attribute the campaign. It notes that the take-home lures
resemble those of North Korea-linked job-interview operations including
Contagious Interview, that Unit 42 has reported an Iranian-nexus cluster
sending a Visual Studio project disguised as a coding assessment with
GitHub C2 and an embedded token, and that MITRE lists RouterHosting among
Contagious Interview's VPS providers while public reporting also places
other groups there. No indicator or code is shared with a published
Contagious Interview campaign, and none of the families publicly tied to
it — BeaverTail, InvisibleFerret, OtterCookie — appears in the stages
recovered. What ties the five paths together is infrastructure: a shared
git identity, the account gabsantosbus-star that authored the first commit
in all three axios repositories and released the wallet app, a publisher
that republished the stager, a naming pattern across four NuGet owners,
and two email addresses.
Mapped techniques
- T0109 Publish malicious artifact
- T0136 Brandjacking
- T0253 Restore the package from a folder inside the repository
- T0197 Use code from untrusted source
- T0198 Malicious Build Time Dependencies
- T0159 Malicious artifact execution
- T0255 Plant a signed Microsoft binary beside a malicious DLL in a user-writable folder
- T0254 Split the payload so the build stages and the app launches
- T0172 Runtime backdoor
- T0256 Run command and control through a code repository the token can write
- T0168 Exfiltration to code repositories
- T0184 Harvesting sensitive information from files
- T0257 Sign the payload with a certificate that names a vendor but chains to nothing
- T0156 Exfiltration over webhooks
- T0110 Advertise malicious artifact
- T0250 Turn a verification check into a command the visitor runs
supply-chain Thirteen packages dressed as WinUI and WPF button controls
Thirteen package IDs and 28 versions across four NuGet owners —
HappyOne, Carol-White-Super, Steven-White-Super and VS_Builder —
published from 23 July to 4 November 2026. Most are button
controls for WinUI 3 or WPF, with nuspec authors that include
"Microsoft" alongside invented names. NuGet's removal log lists
Web3TotalButton, VS_Builder.MSBuildAnalyzer and
VS_Builder.WinUI3Controls as malware and Socket flags three more;
WinUI.Button 1.0.0 was still listed at the time of writing.
The names borrow Microsoft's UI framework and the descriptions
borrow Microsoft's own wording: WinUI.Button, WinUI3IconButton,
WinUI3Controls, Web3TotalButton, with "Microsoft" as author and
metadata that reads as documentation for a controls library. The
package a candidate is steered towards is the one that looks most
official.
supply-chain The assessment restores its own packages from the repository
Commit bfb103a added Packages/ with two .nupkg files and set
RestoreAdditionalProjectSources to that folder; d45e9f3 fixed the
path. Neither version has a NuGet catalog entry or the repository
signature NuGet adds, so no registry ever saw these packages, no
registry scan can match them, and NuGet's deletion of the
publisher's packages left the copies in the assessment restoring.
A .nupkg in a folder is a binary a reviewer cannot read.
The candidate is asked to clone a stranger's repository, open a
Visual Studio solution and build it, which is what makes restore
run at all. The README's requirement to develop and test on native
Windows with Visual Studio 2026 is also what puts the build on a
developer machine rather than a container.
supply-chain A build hook that runs after every build
build/VS_Builder.MsBuildAnalyzer.targets is imported by NuGet into
every project that references the package and runs after Build.
Its Outputs value names ForceExecuteNonExistenFile.txt, which
nothing creates, so MSBuild never considers the target up to date
and runs it after every build; IgnoreExitCode and ContinueOnError
keep the step from failing the build, and PrivateAssets all with
ExcludeAssets runtime keeps the DLL out of the output. The same
targets content shipped under the HappyOne package ID as
build/HappyOne.MsBuildAnalyzer.targets with an identical SHA-256.
The target starts dotnet on MSBuildAnalyzer.dll from inside the
package's lib folder, and the DLL writes OskSupport.dll to
%LOCALAPPDATA%\osk and copies osk.exe beside it. Seventeen decoy
calls precede the work and the entry point catches everything; the
URL, the paths and the file names are rebuilt from Base64
fragments spread across three classes, XORed and AES-256-CBC
decrypted under a key assembled the same way.
post-supply-chain The control launches the staged pair when the window opens
osk.exe and osksupport.dll are a documented side-loading pair. The
stager copies C:\Windows\System32\osk.exe into
%LOCALAPPDATA%\osk next to the downloaded OskSupport.dll, and the
control starts that copy with a hidden window and UseShellExecute,
once per process, skipping when the path is already running. The
signature on the launched binary is Microsoft's and valid; whether
a copied osk.exe starts from that folder on current Windows builds
was not tested.
The build package stages and the runtime control launches, and
neither is malware alone: an analyst reading the analyzer finds a
downloader and a file copy, an analyst reading the control finds a
hidden launch of a path it did not create. The README protects the
seam — candidates may set four colour properties and are told not
to alter the control's inner workings — so the half that completes
the chain is the half the instructions forbid changing.
post-supply-chain A control still on NuGet downloads and runs from its constructor
WinUI.Button 1.0.0 needs no build hook. Its WUIButton constructor
starts a background task, takes a named mutex and asks the GitHub
contents API for avast.exe with a 93-character fine-grained token
embedded in the DLL, saving it as %TEMP%\Launcher.exe and running
it, with a one-to-four second retry and no limit and every
exception swallowed. Placing the control in XAML is enough to run
the constructor, and later starts relaunch Launcher.exe if it is
not running. Most of the rest of the DLL is a working calculator
key.
supply-chain Fake axios repositories hold the payloads and the command channel
updater.exe creates <victim id>/log1.dat through the GitHub
contents API with the commit message "downloading new version" and
a host profile derived in part from the MachineGuid, then reads
<victim id>/log2.dat, takes its first 16 bytes as an IV, decrypts
the rest with AES-256-CBC under the SHA-256 of a passphrase, maps
the PE in memory and calls its exported Start. Each victim is a
folder and each folder can hold a different payload. Requests
carry a Chrome Client Hints User-Agent over a WinHTTP session named
CppHttp/1.0, and the repository answers 404 without the token.
The payload store is also the drop. Two operator copies of the
axios library serve a Windows executable at lib/env/axios.csproj —
MZ header, not MSBuild XML — over raw[.]githubusercontent[.]com,
with an unmodified Sysinternals Autoruns 13.96 as the placeholder
and nine binaries rotated through the history by delete and
re-upload. fs-extra-core fetched the same kind of URL from npm
during the 67 minutes it was live.
post-supply-chain The Chrome stealer uploads profiles as repository commits
A shadow copy taken through the WMI Win32_ShadowCopy class, then
Chrome's Profile* folders and the top-level User Data files that
hold the key protecting saved passwords and cookies, zipped and
split into .part archives. No Default string appears in the main
script, so the default profile may be skipped, and a shadow copy
normally needs administrator rights.
Each part is uploaded with a contents API PUT and the commit
message "Backup <name>" to a repository under the account that
authored the lures, using a classic ghp_ token. Two builds of the
stealer were removed from the payload repository within 90 minutes
of upload.
post-supply-chain WeapF wears a Microsoft signature and reports to Telegram
The payload carries an Authenticode signature from a self-signed
certificate whose subject and issuer are both CN=Microsoft Windows
Publisher. The signature matches the file and chains to no trusted
root, so a presence check records a vendor name and Windows reports
an unknown publisher. Its build path, D:\Work\Codes\WeapF, is
shared with the LGA.exe lure wrappers.
The program fetches an AES-GCM configuration from the README of a
repository, which supplies a bot token and URL, and reports the
computer name, user name, time zone and CPU model through the
Telegram Bot API sendMessage method. It adds itself to the Run key
and checks for a debugger first; the configuration repository
returned 404, so the bot token is unknown.
supply-chain A wallet analyzer sold as a paid job ships the loader in a DLL
An $8,500 to $10,000 contract for a C# WPF "Crypto Wallet
Analyzer" was posted on LaborX on 7 November by a client account
two days old, promoted through LaborX's Telegram channel on 9
November, and asks for complete source through GitHub at each
stage. The client profile uses the same company brand as an
earlier lead-generation lure, and the app was released on GitHub
on 13 November.
The visible app inventories eight wallet extensions and makes no
network requests. Its MainWindow constructor also loads a bundled
native DLL named vcruntime146_cor2.dll — one character from the
WPF runtime's vcruntime140_cor3.dll, and absent from the dependency
manifest — which starts a thread on load and is a new build of the
GitHub loader with affine mod-127 string encoding and a new
repository. Closing the window only hides it.
post-supply-chain The ClickFix page on GitHub Pages
The page shows a fake "reCAPTCHA Verification" box that becomes a
"Security Handshake Error", offers a "Copy Security Token" button
and tells the visitor to press Win+R and paste. The copied command
is a PowerShell IEX DownloadString from
cloudservicebase[.]ddns[.]net/update/CVE-2026-44747_patch.dat. The
hostname took a Let's
Encrypt certificate on 29 August, the day passive DNS shows it
resolving to 172[.]86[.]119[.]233 at RouterHosting, and did not
resolve during the analysis.
Framework gaps noted
- The side-load is staged, not confirmed. The build half writes OskSupport.dll to %LOCALAPPDATA%\osk and copies osk.exe beside it, and the control starts that copy hidden, but the researchers state they did not test whether a copied osk.exe starts from that folder on current Windows builds. The staging and the launch are documented; the load is not.
- Four first-party hosts were gone during the analysis. The stager's fantastic-giggle URL, the WinUI.Button account and its avast.exe payload, the Telegram configuration repository and the new command repository all returned 404, so the second stages for paths B, E and the wallet app are unknown, and none of the embedded GitHub tokens was used.
- Three payloads cannot be read. The Themida-protected builds in stevenleedig-ux/axios-http are not recoverable statically, so their behaviour is unrecorded, and the HappyOne 1.1.0 and 1.3.0 versions were deleted before analysis.
- How the Home Assessment lures reached candidates is not established. No recruiter message, email or job post was found for them, unlike the wallet app, whose LaborX posting is documented.
- Attribution is open. Socket records no shared indicator or code with a published Contagious Interview campaign and none of its known families in the recovered stages, and the cluster boundary rests on a git identity, a publisher, a naming pattern, two email addresses and two accounts that no longer exist.
- Download counts are not victim counts. The ~160 figure for WinUI.Button comes from the NuGet search API and includes mirrors and scanners, and no victim is reported.
- Whether the first half's never-produced Outputs file is what kept it running on every build is the researchers' reading of the targets file. No build was instrumented, and Visual Studio's own up-to-date check was separately disabled in the project file.