Doctor Web traced more than 2,000 infected PCs to a campaign that moved from blockchain gaming lures to tools aimed at security professionals. Some projects could start the infection as soon as the user began building them.
A tool that cleans up the output of a network scanner sounds like a small time-saver. That was the pitch behind a fake GitHub project built around Fscan, a real network scanner. The repository offered a companion utility to parse and format scan results. It was one of several projects Doctor Web tied to a malware campaign. By the time Doctor Web investigated, that campaign had already infected more than 2,000 PCs. That number covers the campaign as a whole. Doctor Web did not publish a breakdown by lure or victim type.
From game cheats to security tools
Doctor Web traced the earliest repositories to roughly two years before its November 2026 report. Those repositories offered blockchain game projects, bots and cheats. One was associated with Catizen. Some came with instructions for installing Visual Studio and cloning the repository. Those steps walked users through an ordinary development workflow, even if they had never built a project before. The early lures reached an audience likely to use cryptocurrency wallets.
The later repositories offered scan automation, security testing and log-analysis utilities. The Fscan example borrowed credibility from a real tool. It offered to solve a narrow problem its users might recognize. Doctor Web identified malicious repositories posing as companion tools. It did not find a compromise of GitHub or of the upstream Fscan project. The findings also leave open how victims first found the repositories.
Where the malicious code ran
In some Visual Studio projects, the malicious action lived in a pre-build event in a C# project file. A pre-build event runs before the compiler starts. So starting the build could run the attacker’s code before the project produced the expected program. The structure looks like a normal build step. Only the command inside it is the problem.
<!-- Illustrative only. The command below is harmless.
In the real attack, the body was malicious. -->
<Project>
<Target Name="PreBuild" BeforeTargets="PreBuildEvent">
<Exec Command="powershell.exe -NoProfile -Command "Write-Host 'build starting'"" />
</Target>
</Project>
Doctor Web also found PowerShell in Visual Studio solution user-options files. These are the per-user settings files the IDE processes on its own. The practical lesson is simple. A review limited to the application’s main source files can miss instructions that the development environment runs separately.
Microsoft’s MSBuild security guidance
Later samples also carried malicious code in Python and Go source files. Long runs of whitespace pushed the added code out of view. That made it easy to overlook during a quick review. These samples put the risk in the source itself. The Visual Studio examples show why project metadata matters too. The evidence points to execution during project use. Visiting the repository page or downloading an archive is a different event. Opening an untrusted project in an IDE, building it or running its code is what carries the risk.
The repository started a second download
Once the initial code ran, a PowerShell stage could fetch an encrypted reference to a later download. Doctor Web observed requests to attacker infrastructure. It also saw requests to public services, including YouTube, Telegram, Google Docs, GitCode and Pastebin. In the documented chain, an archive came from GitHub or an attacker server. That archive held an Electron-based loader. The malware unpacked it into a folder styled to resemble a Windows Photos component.
This makes a repository-only scan an incomplete view of the campaign. Some of the content that matters arrives only after execution. A public service can supply a reference while a different host serves the actual archive. For defenders reviewing network logs, the useful signal is the sequence of events. A development tool starts a script. Unexpected outbound requests follow. Then a new executable appears. That sequence carries more context than a single connection to a familiar domain.
What the malware left behind
Doctor Web found that the loader could set up persistence. It could also interfere with endpoint protection and recovery features. The campaign deployed AsyncRAT for remote access. It also used a clipboard clipper that could swap a cryptocurrency wallet address before a user pasted it. An information stealer targeted browser data, VPN settings, file-transfer client configurations and Discord tokens. The malware used a Telegram bot to send the collected data out. For a security team, that splits the problem in two. Host compromise is one incident-response question. Account exposure is another.
Review the project before giving it a build environment
Start by verifying who publishes the tool. Check whether the upstream project recognizes it. Review the project files, build hooks and helper scripts before the first IDE open or build. Visual Studio can require a trust decision before it opens unfamiliar content.
A scan of the project metadata helps here, because the risky part is often a single build hook. A rule that flags a build step launching a script interpreter catches the pattern shown earlier.
rule MSBuild_Exec_Interpreter
{
meta:
description = "Build step launches a script interpreter"
severity = "high"
strings:
$exec = "<Exec" nocase
$ps = "powershell" nocase
$cmd = "cmd.exe" nocase
$mshta = "mshta" nocase
condition:
$exec and any of ($ps, $cmd, $mshta)
}
A flag is only the first step. A disarm pass can then strip the pre-build hooks and inline tasks from the project files, so the code never reaches a build environment. That turns a risky project into an inert one you can inspect safely. This analyze, disarm and reconstruct sequence is the model behind FileDNA, CyberQuay’s Content Security Layer, which neutralizes file-based threats at the point of delivery rather than waiting for a build or a scan to react. A project archive arriving from a repository, an upload or an email attachment is file content like any other. The same pass that strips a malicious macro from a document can strip a hostile pre-build event from a project.
Content disarm addresses the delivered file, and it is worth being clear about where that line sits. It does not replace the controls that watch what happens after execution. The second-stage download and the host changes described earlier still call for endpoint protection and network monitoring. FileDNA lowers the chance that a booby-trapped project reaches a build environment at all. It does not remove the need to watch that environment once a project runs.
If a project still needs hands-on evaluation, use a disposable environment. Give it restricted network access and no work credentials. The same principle applies to CI. GitHub warns that untrusted workflows can leave persistent compromises on self-hosted runners. Doctor Web did not report a CI compromise in this campaign.
Microsoft’s Visual Studio trust settings · GitHub Actions security guidance