Threat Actors Weaponize GitHub Repositories Targeting Security Professionals
A cybercrime campaign spanning approximately two years has shifted its focus from cryptocurrency enthusiasts to cybersecurity professionals by publishing fake security tools on GitHub that deploy backdoors and information-stealing malware. Researchers at Dr. Web discovered the operation, which has compromised more than 2,000 Windows systems to date.
Campaign Evolution and Lure Strategy
The threat actor initially targeted cryptocurrency wallet users and gaming enthusiasts with lures including blockchain games, bots, and cheat tools. Recently, the campaign pivoted to publishing malicious repositories disguised as legitimate security utilities for automating scans, security testing, and log analysis. One notable example is a fake script advertised as a lightweight solution to parse, clean, and format output from the Fscan network scanner.
Malicious Code Concealment Techniques
Dr. Web's investigation revealed malicious code embedded across multiple file types including Visual Studio project files, Python scripts, and Go source files. The threat actor employs an old but effective technique of hiding payloads behind long stretches of whitespace. In some Visual Studio projects, a pre-build event routine executes the malicious code before compilation occurs, allowing the infection to trigger during the development workflow.
Multi-Stage Infection Chain and Electron-Based Loader
The infection chain leverages PowerShell to retrieve an encrypted download link that fetches a modular Electron-based loader named Microsoft.exe. This loader establishes persistence on the infected host, elevates privileges, disables Windows security and recovery features, and injects next-stage malware into legitimate processes.
Mode3: Primary Evasion Arsenal
Dr. Web documented six evasion techniques employed in the loader's default operational mode, Mode3:
- Makes
explorer.exeappear to be the malware's parent process - Changes a Windows registry value to disable Smart App Control
- Restores original
ntdll.dllcode from disk to remove hooks added by security software - Makes direct Windows system calls that are harder for security tools to intercept
- Patches
EtwEventWritein memory to suppress event tracing in the affected process - Patches
AmsiScanBufferin memory to interfere with antivirus scanning of scripts
Mode2: Fallback Mechanism
If Mode3 fails to launch, the loader switches to Mode2, which adds Microsoft Defender exclusions and uses a PowerShell script to decrypt and inject payloads into RegAsm.exe.
Final Payloads: AsyncRAT, Clipper, and Comprehensive Infostealer
The campaign delivers three primary payloads to compromised hosts:
- AsyncRAT backdoor — provides remote access and control capabilities
- Clipper malware — replaces cryptocurrency wallet addresses in the clipboard with attacker-controlled addresses
- Information stealer — collects browser data, VPN settings, FTP client configuration files, gaming account data, and Discord tokens, exfiltrating details through a Telegram bot
Aggressive Antivirus Removal and System Tampering
The malware actively attempts to remove ESET, McAfee, and Malwarebytes antivirus tools from infected computers, tries to disconnect them from their update servers, and interferes with Windows backup functionality. This aggressive posture aims to maintain long-term access and prevent remediation.
Ongoing Development and Indicators of Compromise
Dr. Web researchers also discovered a seemingly unfinished component designed to keep the loader running and re-download it if removed from the host's disk. This finding suggests the threat actor continues to enhance the malware with new persistence features. The researchers have published a complete list of indicators of compromise observed in this campaign to aid detection and response efforts.
Source: BleepingComputer