Fake security tools on GitHub infect machines with a backdoor and an infostealer

Translated by a model; the original is in Russian.

· Security
Attackers are publishing bogus network-scanning and log-analysis projects on GitHub aimed at cybersecurity professionals. According to Dr. Web, more than 2,000 Windows systems have already been compromised.

cover.svg

Cybersecurity professionals have become the target of a campaign that spreads infected projects on GitHub posing as security tools. Instead of helping, they install a backdoor and information-stealing malware.

According to researchers at Dr. Web, the campaign has been running for about two years. It initially targeted crypto wallet owners, using blockchain games, bots, and cheat tools as lures. Recently, the threat actor switched audiences and began publishing malicious repositories for automating scans, security testing, and log analysis. More than 2,000 Windows systems have been compromised so far.

One of the repositories found poses as a lightweight script for parsing, cleaning, and formatting the output of the Fscan network scanner.

How the infection works

The malicious code was found in Visual Studio project files, Python scripts, and Go source files. It is hidden behind long stretches of whitespace, an old trick that still works. In some Visual Studio projects, the code runs before compilation via a pre-build event.

PowerShell then retrieves an encrypted link and downloads a modular Electron-based loader named "Microsoft.exe." The loader establishes persistence, elevates privileges, disables Windows security and recovery features, and injects the next stage into legitimate processes.

In its default operating mode, Mode3, Dr. Web identified six evasion techniques:

  • spoofing explorer.exe as the malware's parent process;
  • disabling Smart App Control by changing a registry value;
  • restoring the original ntdll.dll code from disk to remove security software hooks;
  • making direct Windows system calls that are harder to intercept;
  • patching EtwEventWrite in memory to suppress event tracing;
  • patching AmsiScanBuffer in memory to interfere with antivirus script scanning.

If Mode3 fails, the loader falls back to Mode2: it adds Microsoft Defender exclusions and uses a PowerShell script to decrypt the payloads and inject them into RegAsm.exe.

What the victim ends up with

The final payloads are the AsyncRAT backdoor, a clipper that swaps crypto wallet addresses in the clipboard, and an infostealer. The latter collects browser data, VPN settings, FTP client configuration files, gaming account data, and Discord tokens, then exfiltrates them through a Telegram bot.

The malware also tries to remove ESET, McAfee, and Malwarebytes antivirus tools, disconnect them from their update servers, and interferes with Windows backups.

The researchers also found what appears to be an unfinished component meant to keep the loader running and download it again if it is deleted from disk. This suggests the threat actor is still developing the toolkit. Dr. Web has published a full list of indicators of compromise for the campaign.


Source: BleepingComputer

Comments

Sign in, to comment.

  • No comments yet.