BADIIS
- Type
- Backdoor
- Capabilities
- PersistenceDefense evasion
- Delivery
- Seo poisoningCloaking
- Platforms
- Windows
BadIIS is a family of malicious native modules for Microsoft Internet Information Services (IIS) on Windows servers, used primarily for search engine optimization fraud and traffic monetization. It integrates into the IIS request-processing pipeline to intercept requests, modify HTTP responses, inject backlinks and JavaScript, replace legitimate content, and redirect visitors to attacker-controlled destinations. Its reverse-proxy functionality serves externally generated SEO content through compromised websites, exploiting the reputation of legitimate sites to promote illicit gambling, adult content, and fraudulent services.
BadIIS distinguishes search crawlers from human visitors using HTTP User-Agent and Referer headers. Variants selectively return manipulated content to crawlers while redirecting qualifying visitors through JavaScript landing pages. Additional filtering can depend on mobile-device identifiers, browser language, geographic configurations, and server subnets, concealing malicious behavior from visitors who do not meet the targeting criteria. Some variants replace selected HTTP 404 responses with attacker-generated content returned as successful responses. Configuration and destination information can be retrieved from external infrastructure and protected with encryption.
Operators typically deploy BadIIS after compromising vulnerable web applications or obtaining access through web shells and other remote-access mechanisms. Installation can involve scripts, multi-stage installers, Windows services, and registration as an IIS global module. Some deployment packages masquerade as legitimate system components and maintain hidden backup copies, allowing a persistent service to restore removed modules after a server restart.
BadIIS is used by multiple Chinese-speaking cybercrime groups, including REF4033, also tracked as UAT-8099, and UAT-10147. Commodity variants have customer-customization and graphical-builder tooling. Campaigns have affected IIS servers worldwide, with substantial concentrations in Asia, across government, education, technology, telecommunications, healthcare, finance, media, and e-commerce organizations.
Associated vulnerabilities
5 CVEs Mallory has correlated with this family across public research and vendor advisories. Each card links to the full Mallory page for that vulnerability.
Associated threat actors
7 distinct threat actors Mallory has associated with this family across public reporting. Open in Mallory to see the full evidence chain and overlapping campaigns.
Deploys custom BadIIS malware to facilitate SEO poisoning.
In 2024, we observed a substantial distribution of malware known as "BadIIS" in Asia. BadIIS targets Internet Information Services (IIS) and can be used for SEO fraud or to inject malicious content into the browsers of legitimate users.
On Windows systems, UAT-10147 ... deploys malware including BadIIS, QuasarRAT, Gh0stCringe and SPECTRE.
The comparison table lists DragonRank's custom implants as “Yes (BadIIS, PlugX).”
REF4033 is a Chinese-speaking cybercrime group responsible for a massive, coordinated SEO poisoning campaign that has compromised more than 1,800 Windows web servers worldwide using a malicious IIS module called BADIIS.
"...alters SEO rankings using web shells, open-source hacking tools, Cobalt Strike, and various BadIIS malware..."
+1 more in the app. View in Mallory
Techniques & procedures
32 distinct techniques documented for this family, organized by ATT&CK tactic.
Resource Development
3 techniques
Resource Development
T1588.002 — Obtain Capabilities: Tool (Resource Development)
"BadIIS Malware Spreads via SEO Poisoning"; "HiddenGh0st, Winos and kkRAT Exploit SEO"
"UAT-8099 manipulates search rankings..."; "Threat actors are leveraging SEO poisoning and malicious advertisements to trick users into downloading backdoored versions of Microsoft Teams..."
Initial Access
1 technique
Initial Access
Elastic Security Labs observed post-compromise activity from a Windows IIS server from an unknown attack vector; the ATT&CK mapping includes Exploit Public-Facing Application.
Execution
5 techniques
Execution
Persistance via tâche planifiée nommée Google Chrome Start
The attack uses multiple Windows batch scripts to carry out its objectives.
the script modifies the Windows Registry and uses PowerShell to add specific directories to the Windows Defender exclusion list
File name back.bat Alternate name for the main Windows deployment script File name bai.bat Secondary batch script used for backdoor execution and persistence File name user.bat Script used to create a privileged local account
BadIIS works by planting a malicious module inside the IIS server software that runs quietly in the background.
Persistence
6 techniques
Persistence
Persistance via tâche planifiée nommée Google Chrome Start
uses PowerShell to add specific directories to the Windows Defender exclusion list ... reg add "HKLM\SOFTWARE\Microsoft\Windows Defender\Exclusions\Paths"
This SEO hijacking web handler silently takes over an IIS application's request pipeline via reflection.
Select instances entail the deployment of a web shell, which then paves the way for BadIIS and additional backdoors for persistent access.
The malicious DLL stages the BADIIS IIS native modules and alters the IIS configuration to load them into the request pipeline of the DefaultAppPool.
If an antivirus solution flags and removes the active hooking module, the persistent Windows service automatically extracts a fresh copy from a hidden backup directory (C:\Windows\Logs) upon the next server restart, ensuring durable, long-term survival.
Privilege Escalation
3 techniques
Privilege Escalation
Persistance via tâche planifiée nommée Google Chrome Start
Content Hijacking: Modifying target title, description, and keyword (TDK) metadata at a configurable percentage rate to silently piggyback off the victim site’s domain authority.
If an antivirus solution flags and removes the active hooking module, the persistent Windows service automatically extracts a fresh copy from a hidden backup directory (C:\Windows\Logs) upon the next server restart, ensuring durable, long-term survival.
Stealth
8 techniques
Stealth
The malware uses custom Base64 encoding and single-byte XOR obfuscation to conceal command-and-control server addresses from security scanners.
These installers copy the payloads straight into native IIS resource trees—impersonating trusted core processes like svchost.exe or FaxService.
During this attack, the threat actor stages three files masquerading within the System32\drivers folder.
Content Hijacking: Modifying target title, description, and keyword (TDK) metadata at a configurable percentage rate to silently piggyback off the victim site’s domain authority.
the script attempts to delete its initial staging files and scripts to cover its tracks and hinder forensic analysis
The tool employs a custom parsing routine to segment the file based on these tags... Using this extracted data, the malware dynamically assembles command-line instructions... These fully-formed commands are then executed...
the persistent Windows service automatically extracts a fresh copy from a hidden backup directory (C:\Windows\Logs) upon the next server restart
BadIIS works by planting a malicious module inside the IIS server software that runs quietly in the background.
Defense Impairment
2 techniques
Defense Impairment
uses PowerShell to add specific directories to the Windows Defender exclusion list ... reg add "HKLM\SOFTWARE\Microsoft\Windows Defender\Exclusions\Paths"
They also used scripts to raise privileges, weaken endpoint scanning around IIS folders, create high-privilege access, and retain control after the original break-in.
Credential Access
2 techniques
Credential Access
For search engine crawlers, BadIIS acts as a reverse proxy, fetching illicit content from the attacker’s command-and-control backend and serving it as though it belongs to the legitimate website.
"UAT-8099... theft of high-value credentials, configuration files, and certificate data."
Discovery
1 technique
Discovery
Webroot enumeration: dir C:\inetpub\wwwroot\ -Name reveals deployed applications
Collection
1 technique
Collection
For search engine crawlers, BadIIS acts as a reverse proxy, fetching illicit content from the attacker’s command-and-control backend and serving it as though it belongs to the legitimate website.
Command and Control
6 techniques
Command and Control
the web shell is transmitted to “up.ashx” via an HTTP POST request
Upon initialization, the module downloads content from URLs defined in its configuration... Each URL in the configuration points to a static .txt file that contains a second-stage resource.
Reverse Proxying: Intentionally intercepting search engine crawlers. When a crawler arrives, the malware acts as a reverse proxy, silently pulling black-hat SEO spam data from the attacker’s backend and rendering it to the search engine to manipulate public rankings.
enabling capabilities including traffic redirection to illicit sites, reverse proxying for search engine crawler manipulation, content hijacking, and backlink injection for malicious search engine optimization (SEO) fraud
The builder allows threat actors to input target URLs, typically JavaScript-based redirectors, designed to be injected into the victim's browser. This feature forcibly redirects legitimate user traffic to spam infrastructure, such as illegal gambling, adult content, or other malicious websites.
Using a batch script that employs certutil to download a privilege escalation tool ("EfsPotato"), a secondary batch script, and Quasar RAT from a remote server
Impact
1 technique
Impact
The builder facilitates a diverse menu of illicit capabilities: Traffic Redirection: Forcibly hijacking legitimate consumer browser traffic and routing it directly to underground spam infrastructure, illegal gambling arenas, or adult content platforms.
Observables
81 indicators attributed across vendor reports, sandbox runs, and researcher write-ups. Values are masked here and available in full in Mallory.
Recent activity
47 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.