Windows Hosts File

Windows hosts file mapping IP addresses to hostnames; modified by malware for C2 redirection.

WindowsSystem and configurationParser: windows_hosts_file3 fieldsCollected by offline triage

What Windows Hosts File is

Windows hosts file mapping IP addresses to hostnames; modified by malware for C2 redirection. It is one of 90 system and configuration artifacts Arcsentry reads. System and configuration artifacts describe how a host is set up: accounts, policies, installed software, network settings and system identity.

Forensic value

System and configuration artifacts help answer questions like these:

  • What is this host and who uses it?
  • Which settings or accounts changed?

Where it is stored

Arcsentry looks for Windows Hosts File at this location inside a collection, disk image or mounted volume:

Windows/System32/drivers/etc/Hosts

What Arcsentry records

Each Windows Hosts File record is written to Arcsentry's common schema with these fields, alongside the host, timestamp and provenance every record carries:

FieldTypeMeaning
ip_addressIP address (IPv4 or IPv6)
hostnamePrimary hostname mapping
aliasesAdditional hostname aliases

Time

File modification time only. Arcsentry keeps each record's own time and labels its time zone when the source does not state one. A record with no time of its own stays untimed; Arcsentry never substitutes the collection time.

Collecting Windows Hosts File with Arcsentry Collector

Arcsentry Collector gathers Windows Hosts File in this triage profile: windows::profile::triage::offline. It is read straight from the file system, on a live host or inside a disk image, without mounting.

The collection targets that pick it up: windows::network::windows_network, windows::system_state::drivers, windows::system_state::hosts_file.

.\arcsentry-collect.exe collect --local -t windows::profile::triage::offline `
  -o E:\IR -f host.arcx --password-file E:\IR\pw.txt

Every file lands in one AES-256 archive with a SHA-256 recorded for it, and the collection log notes which target collected it. See everything each profile collects.

Already collected with something else? Arcsentry also reads KAPE, Velociraptor and UAC collections, so Windows Hosts File can come from the tools you already use.

Analysing Windows Hosts File in Arcsentry

Ask in plain English, for example "show Windows Hosts File records from the incident window, newest first", and Arcsentry shows the query before it runs.

Mark a record malicious or suspicious and it joins the timeline in its kill-chain lane. Add its values as indicators and Arcsentry matches them across every host. When the AI investigator works the case, it reads Windows Hosts File records with the same tools and cites them by event ID.

Frequently asked

Does Arcsentry parse Windows Hosts File?

Yes. Arcsentry's Windows Hosts File parser (windows_hosts_file) reads it from Windows evidence and records 3 fields per record, with provenance back to the source file.

How do I collect Windows Hosts File?

Arcsentry Collector gathers it with the offline triage profile (windows::profile::triage::offline), live or from a disk image, sealed in an AES-256 archive with a SHA-256 for every file.

Parse Windows Hosts File on your own evidence.

Tell us what you want to investigate. A person replies within one business day with the download and a trial licence.

Request a trial