Malware Hidden in Visual Studio Pre-Build Events Targets Security Pros

Google News

GOOGLE NEWS
Follow AsumeTech on Google

Want more of our technology, AI and gaming stories? Add AsumeTech as your Preferred Source on Google.


Add as Preferred Source ↗

A sophisticated malware campaign is targeting cybersecurity professionals by distributing infected security tools through GitHub. According to research from Dr. Web, the operation has already compromised more than 2,000 Windows systems using a modular backdoor designed to bypass traditional security hooks and human code reviews.

The threat actors are leveraging the trust within the infosec community by posing as developers of legitimate utilities. One primary lure identified is a script advertised as a lightweight parser for Fscan, a popular network scanning tool. When researchers or system administrators download these projects, they are often unknowingly executing a complex infection chain hidden within the development environment itself.

Stealth Through Whitespace

The campaign distinguishes itself through highly effective obfuscation techniques that specifically target the habits of technical users. Malicious code is frequently hidden behind massive stretches of whitespace within Python scripts, Go source files, and Visual Studio projects. Because many code editors—such as VS Code or Notepad++—do not visualize whitespace or enable word wrap by default, a human reviewer may only see what appears to be a legitimate, clean script unless they scroll thousands of columns to the right.

Technical Analysis of Trojan.Loader.3261

The payload delivered in this campaign is identified as Trojan.Loader.3261, a modular, Electron-based loader that has evolved through version 1.4.5. The malware often masquerades as a legitimate system file named “Microsoft.exe.” Once active, the loader employs several advanced evasion techniques to maintain persistence and avoid detection by EDR (Endpoint Detection and Response) solutions.

Analysis of the loader’s “Mode3” evasion reveals two critical defensive bypasses:

  • Registry Manipulation: The loader attempts to disable Windows Smart App Control by modifying specific registry values, preventing the operating system from blocking untrusted applications.
  • NTDLL Restoration: To bypass security software that monitors system calls, the malware can read the original ntdll.dll from the disk and restore it in memory. This “unhooking” process effectively strips away the monitoring hooks that antivirus and EDR tools use to detect malicious activity.

A Strategic Shift in Targeting

Evidence suggests this threat actor has undergone a significant tactical pivot over the last two years. While the campaign originally focused on retail cryptocurrency enthusiasts, it has transitioned toward targeting high-value infrastructure and the cybersecurity practitioners who defend it. This shift is highlighted by the development of specialized secondary components, such as a package named “Lodge.7z” containing a component identified as WUDFHost.exe, which researchers believe is intended for deeper network penetration.

Security professionals are advised to scrutinize GitHub repositories, even those appearing to provide useful security scripts. Checking for unusual file sizes or hidden characters in source code can help mitigate the risk of these “poisoned” development environments.

More From Category

More Stories Today