Fake Security Tools on GitHub Deploy Backdoors and Infostealers
What Happened – Over the past two years a threat‑actor has been publishing malicious repositories on GitHub that masquerade as legitimate security utilities—scanners, log‑analysis helpers, and even a “lightweight” parser for the Fscan network scanner. Researchers at Dr. Web identified more than 2,000 Windows endpoints that were compromised after users downloaded the fake projects. The malicious code is hidden in Visual Studio project files, Python scripts and Go sources, often concealed behind long stretches of whitespace. When a victim builds the project, a pre‑build event triggers a PowerShell routine that contacts an encrypted URL, downloads an Electron‑based loader named Microsoft.exe, and executes it.
The loader runs in a default “Mode 3” that employs six evasion techniques: it spoofs explorer.exe as its parent, disables Smart App Control via a registry tweak, restores the original ntdll.dll code to erase security hooks, makes direct system calls, patches EtwEventWrite to mute ETW tracing, and patches AmsiScanBuffer to bypass script scanning. If Mode 3 fails, the loader falls back to “Mode 2,” which adds Microsoft Defender exclusions and uses a PowerShell script to decrypt and inject payloads into RegAsm.exe.
The final payloads delivered are the AsyncRAT backdoor, a clipboard‑clipping “clipper” that swaps crypto‑wallet addresses, and a broad‑purpose information stealer. The stealer harvests browser data, VPN configurations, FTP client files, gaming account credentials, and Discord tokens, then exfiltrates the data through a Telegram bot. In addition, the malware attempts to uninstall or disable popular AV products (ESET, McAfee, Malwarebytes), blocks their update channels, and interferes with Windows backup services.
Dr. Web also uncovered an unfinished component that appears designed to keep the loader persistent—re‑downloading it if the binary is removed. This suggests the actor is iterating on the toolset, adding new capabilities while retaining the same delivery mechanism. A full list of Indicators of Compromise (IOCs) was published, giving defenders concrete signatures to hunt for in their environments.
The campaign’s evolution is notable: early lures targeted crypto‑wallet users and blockchain‑related tools, but the recent shift to “security‑automation” projects widens the attack surface to any IT professional who trusts open‑source code on public repositories. Because the malicious projects are presented as legitimate security utilities, they bypass the usual skepticism applied to obvious malware, increasing the likelihood of accidental execution in production environments.
Detection was achieved through a combination of static analysis (identifying the whitespace obfuscation) and dynamic sandboxing that revealed the PowerShell download chain and the Electron loader’s behavior. Dr. Web’s report emphasizes that traditional endpoint AV solutions struggled to flag the payload due to the loader’s in‑memory patching of ETW and AMSI, underscoring the need for deeper telemetry and behavior‑based monitoring.
The incident highlights a broader supply‑chain risk: developers and security teams routinely pull code from public repositories without verifying the provenance or integrity of the source. When malicious actors inject backdoors into seemingly benign tools, they gain a foothold that can be leveraged for espionage, ransomware, or credential theft across any organization that adopts the compromised code.
Why It Matters for Trust & Control Assurance – The campaign demonstrates a failure in third‑party software assurance; organizations must enforce continuous monitoring of open‑source and third‑party code to satisfy the supply‑chain risk‑management control objective that maps across NIST CSF 2.0, ISO 27001, and other frameworks.
Who Is Affected – Software developers, DevSecOps teams, IT security professionals, and any organization that incorporates open‑source security tools—spanning finance, technology, gaming, and critical infrastructure.
Recommended Actions
- Inventory all third‑party and open‑source tools used in production, especially those sourced from public code‑hosting platforms.
- Implement automated SCA (Software Composition Analysis) that scans for hidden or obfuscated code and validates code signatures.
- Enforce a policy that requires code‑review and provenance verification before any external script or binary is executed on corporate endpoints.
- Deploy endpoint detection that monitors for unusual PowerShell download patterns, Electron loaders, and in‑memory patching of ETW/AMSI.
- Update incident‑response playbooks to include “malicious open‑source tool” scenarios and test them regularly.
Technical Notes –
- Attack vector: malicious GitHub repositories masquerading as security utilities.
- Loader: Electron‑based binary named Microsoft.exe, delivered via PowerShell over an encrypted link.
- Evasion: parent‑process spoofing, registry modification to disable Smart App Control, restoration of ntdll.dll, direct syscalls, ETW and AMSI patching.
- Payloads: AsyncRAT backdoor, clipboard clipper, multi‑type infostealer (browser data, VPN, FTP, gaming accounts, Discord tokens).
- Persistence: pre‑build events in Visual Studio projects, PowerShell scheduled tasks, potential self‑re‑download component.
- IOCs: full list published by Dr. Web (see source).
Source: BleepingComputer – Fake security tools on GitHub push backdoors and infostealers