BrowserModifier:Win32/Hosts (or simply 'Hosts file hijacker') is a generic heuristic detection for malware or adware that maliciously modifies the Windows HOSTS file to redirect web traffic, block security updates, or facilitate phishing.
What is a HOSTS Hijack?
For general consumers, a modified HOSTS file results in bizarre browsing behavior: attempting to visit google.com might redirect to a fake search engine, or attempting to visit microsoft.com simply times out. For incident responders, HOSTS hijacking is a rudimentary but highly effective DNS override technique. The Windows OS checks the local HOSTS file (C:\Windows\System32\drivers\etc\hosts) before querying external DNS servers. Malware exploits this to sinkhole security traffic or redirect banking URLs to attacker-controlled phishing infrastructure.
Infection Vectors & Threat Hunting
Malware variants (ranging from simple adware to severe banking trojans) require local Administrator privileges to modify the HOSTS file. Upon execution, the malware appends hundreds of entries to the file. Commonly, it maps AV update domains (like liveupdate.symantec.com or update.microsoft.com) to 127.0.0.1 (localhost), effectively blinding the endpoint's security software. Alternatively, it maps financial domains (chase.com) to malicious IP addresses. Threat hunters can trivially detect this by monitoring the integrity and size of the HOSTS file.
Forensic Analysis & Impact
The impact ranges from simple annoyance (adware redirection) to severe financial loss (banking phishing) and compromised security posture. Incident responders should immediately open the HOSTS file in Notepad and review the entries. EDR tools frequently trigger alerts when processes other than svchost.exe or authorized admin tools attempt to write to the \drivers\etc\ directory.
Observed techniques used by this family, mapped to the MITRE ATT&CK framework:
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.
rule MALWARE_WIN_HOSTS {
meta:
description = "Detects Hosts (trojan_generic)"
author = "SystemHelpdesk Boilerplate Generator"
date = "2026-07-06"
strings:
$s1 = "hosts" ascii wide nocase
condition:
uint16(0) == 0x5a4d and any of them
}title: Suspicious Hosts Activity
id: 85cf4e6d42a71e693fd780c8b29accdd
status: experimental
description: Detects generic indicators of the hosts malware family.
logsource:
category: process_creation
product: windows
detection:
selection:
Image|endswith:
- '\cmd.exe'
- '\powershell.exe'
CommandLine|contains:
- "*hosts*"
condition: selection
level: mediumOrdered checklist for responders. Adapt to your environment and engage professional support for active incidents.
Common mistakes during response to this family that can destroy evidence, spread the infection, or worsen recovery.
Explore other malware families in the same category:
Get this profile as JSON: https://jordanricky1604-ship-it.github.io/malware-families-catalog/api/hosts.json
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, Replit, StackBlitz, CodeSandbox, and CodePen.