DET-059 · human · confidence High
Hosts File Tampering
Check the hosts file for entries that point security tool domains to localhost.
The hosts file overrides DNS on the machine. Pointing the update or telemetry servers of an EDR, DLP or logging agent to 127.0.0.1 silently cuts that tool off, while the agent still appears to be running. Insiders sometimes do this to avoid monitoring.
Use file integrity monitoring on the file, or check its modified time and contents during triage. On Windows it is under System32\drivers\etc. On Linux and macOS it is /etc/hosts. Compare against the standard build and look for entries that name vendor cloud domains.
- Data sources
- File integrity monitoringEDR file modification eventsEndpoint configuration management
- Platforms
- WindowsLinuxmacOS
Logic
file_modify | where path in ("C:\\Windows\\System32\\drivers\\etc\\hosts","/etc/hosts") | join (diff of lines containing 127.0.0.1 or 0.0.0.0 and a domain in security_vendor_domains)False positives
Developers add local test names. Ad blocking and some VPN clients also edit the file.