Qhost
Overview
Executive Summary
Qhost is a malicious Trojan specifically engineered to tamper with endpoint network routing and DNS configurations. It is designed to covertly hijack web traffic by altering the local Windows `HOSTS` file, redirecting users from legitimate websites (like banking portals, search engines, or antivirus update servers) to attacker-controlled phishing domains or malicious ad networks. By operating at the local file level, it bypasses network-level DNS sinkholes.Infection Vector and Technical Capabilities
Qhost typically infiltrates systems silently, bundled as a secondary payload alongside "freeware" software, fake browser updates, or delivered via exploit kits that capitalize on unpatched browser vulnerabilities. Once active, it manipulates local network settings:- HOSTS File Modification: The primary capability of Qhost is forcefully modifying the Windows `HOSTS` file (`C:\Windows\System32\drivers\etc\hosts`). It maps high-traffic, legitimate domains to rogue external IP addresses controlled by the attacker.
- Traffic Interception: By controlling local DNS resolution, the attackers can perform Man-in-the-Middle (MitM) attacks, serving highly convincing fake login pages to capture credentials before the user ever reaches the real website.
- Security Evasion: Qhost frequently targets security vendors, mapping the domains of major antivirus companies (like Symantec, McAfee, or Microsoft) to `127.0.0.1` (localhost), effectively preventing the infected machine from downloading critical security updates.
Threat Assessment
A Qhost infection represents a severe compromise of network integrity and data confidentiality. It exposes the user to immediate credential theft via phishing (as the browser URL appears correct) and severely degrades the machine's ability to defend itself by blocking AV updates.Incident Response and Remediation
- HOSTS File Restoration: The immediate technical fix is to inspect the Windows `HOSTS` file for unauthorized entries. Delete all rogue mappings and restore the file to its default, clean state.
- File Permissions: After cleaning, restrict permissions on the `HOSTS` file, setting it to Read-Only to prevent standard users or low-privileged malware from modifying it again.
- Antivirus and Service Sweep: Standard AV must be used to identify and remove the executable that initially altered the file. Simply "fixing" the HOSTS file without removing the malware will result in immediate re-infection upon reboot.
Known aliases
Threat reports may refer to this family under multiple names:
MITRE ATT&CK Techniques
This family has been observed using the following ATT&CK techniques: T1562.002 T1564.001 T1112
Generated Detections (Boilerplate)
These YARA and Sigma rules are auto-generated based on the family name and aliases. They must be heavily tuned before deployment in a production environment.
YARA Rule
rule MALWARE_WIN_QHOST {
meta:
description = "Detects Qhost (trojan_generic)"
author = "SystemHelpdesk Boilerplate Generator"
date = "2026-07-06"
strings:
$s1 = "qhost" ascii wide nocase
$s2 = "trojan.qhost" ascii wide nocase
$s3 = "dnschanger.qhost" ascii wide nocase
$s4 = "win32/qhost" ascii wide nocase
condition:
uint16(0) == 0x5a4d and any of them
}Sigma Rule
title: Suspicious Qhost Activity
id: 25bcfa586cd9ff43f0aa0cb39b1382b6
status: experimental
description: Detects generic indicators of the qhost malware family.
logsource:
category: process_creation
product: windows
detection:
selection:
Image|endswith:
- '\cmd.exe'
- '\powershell.exe'
CommandLine|contains:
- "*qhost*"
- "*trojan.qhost*"
- "*dnschanger.qhost*"
- "*win32/qhost*"
condition: selection
level: mediumReferences & External Analysis
- Search "qhost" on VirusTotal (External Analysis)
Frequently Asked Questions
Where can I learn more about qhost?
Refer to the linked MITRE ATT&CK technique pages, which document the behaviors associated with this family.
How do I remove the Qhost Trojan_Generic from Windows?
Manual removal of Qhost is highly discouraged as it may leave persistence mechanisms intact. We recommend disconnecting the device from the internet and utilizing a professional incident response service or enterprise-grade EDR software to conduct a full forensic sweep.
Is Qhost a virus or a Trojan_Generic?
Qhost is classified as a Trojan_Generic. Unlike traditional viruses that infect files, modern malware like Qhost typically operates as a standalone payload designed to compromise systems, steal data, or deploy secondary stage implants.
What are the main symptoms of a Qhost infection?
Symptoms of Qhost can include unexpected system slowness, unauthorized outbound network traffic to unknown IP addresses, disabled security software, and suspicious background processes running from AppData or Temp directories.
Related Families (Category: trojan_generic)
Explore other malware families in the same category:
Protect Your Network Against Trojan_Generics
Want to prevent Qhost and similar threats from compromising your organization? Read our comprehensive defensive guide: Banking Trojan Protection.
Machine-readable
Get this profile as JSON: https://jordan123234-malware-families-explorer.static.hf.space/api/qhost.json
Ecosystem & Interactive Environments
This profile is part of the Malware Families Catalog, a public dataset of 2,899 malware families. The catalog is also published across our ecosystem: Hugging Face, Kaggle, Zenodo, Replit, StackBlitz, CodeSandbox, and CodePen.