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, used primarily to monetize compromised web servers through search engine optimization fraud and traffic redirection. It intercepts IIS request and response processing to hijack website content, inject backlinks and JavaScript, reverse-proxy attacker-controlled content, and redirect legitimate visitors to illicit gambling and other fraudulent websites.
BadIIS selectively changes website behavior according to HTTP User-Agent and Referer headers, distinguishing search crawlers from human visitors. Observed variants inject SEO backlinks into pages served to crawlers and replace selected HTTP 404 responses with attacker-supplied content returned as successful responses. Qualifying visitors arriving from search engines receive JavaScript-based redirects. Some variants additionally filter by mobile-device identifiers and server IP subnets, limiting exposure of malicious behavior and tailoring content by region. Configuration infrastructure supplies redirect destinations, backlink content, and content-generation endpoints; variants use encrypted configuration data or obfuscated infrastructure strings.
Operators install BadIIS after compromising web servers, including through vulnerable web applications and web-shell access. Installation scripts and IIS administration utilities register the malicious modules within the IIS request pipeline, including as global modules. Both 32-bit and 64-bit versions have been observed. BadIIS variants are shared among multiple Chinese-speaking cybercrime groups, including through a malware-as-a-service model. Documented operators include REF4033, also tracked as UAT-8099, and UAT-10147.
BadIIS campaigns have affected government, education, healthcare, technology, telecommunications, financial services, media, and e-commerce organizations. Distribution has been particularly prominent in Asia, with compromises also identified elsewhere. One REF4033 campaign affected more than 1,800 Windows servers worldwide, with the largest concentrations in China and Vietnam.
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.
The business model is dual: SEO fraud monetisation through BadIIS and a custom ASHX SEO engine, alongside straightforward data theft.
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.
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
82 indicators attributed across vendor reports, sandbox runs, and researcher write-ups. Values are masked here and available in full in Mallory.
Recent activity
48 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.