Hosts File
Static IP-to-hostname mappings from the system hosts file, used according to the system name-service configuration.
What Hosts File is
Static IP-to-hostname mappings from the system hosts file, used according to the system name-service configuration. 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 Hosts File at these locations inside a collection, disk image or mounted volume:
etc/hosts
usr/local/etc/hosts What Arcsentry records
Each Hosts File record is written to Arcsentry's common schema with these fields, alongside the host, timestamp and provenance every record carries:
| Field | Type | Meaning |
|---|---|---|
ip_address | Address the names on this line resolve to (IPv4, IPv6, IPv4-mapped IPv6, or IPv6 with a scope id), verbatim from the file | |
hostname | Canonical hostname for this address | |
aliases | Remaining hostnames on the line, whitespace-separated as written; each resolves identically to the canonical name, so a redirect can hide here | |
comment | Trailing same-line comment after the '#', often the provenance of a hand-added or tool-added entry |
Time
No embedded time; file modification time applies to the whole file and does not date individual entries. 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 Hosts File with Arcsentry Collector
Arcsentry Collector gathers Hosts File in these triage profiles: linux::profile::triage::priority, linux::profile::triage::offline, linux::profile::triage::full, linux::profile::triage::server. 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: linux::execution::docker_ondisk, linux::filesystem::bodyfile, linux::system_state::etc.
sudo ./arcsentry-collect collect --local -t linux::profile::triage::priority \
-o /mnt/ir -f host.arcx --password-file /mnt/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 Hosts File can come from the tools you already use.
Analysing Hosts File in Arcsentry
Ask in plain English, for example "show Hosts File records from the incident window, newest first", and Arcsentry shows the query before it runs. Or write it in AQL:
filter event_type == "system_hosts_file"
sort {-timestamp}
take 100 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 Hosts File records with the same tools and cites them by event ID.
Frequently asked
Does Arcsentry parse Hosts File?
Yes. Arcsentry's Hosts File parser (system_hosts_file) reads it from Linux evidence and records 4 fields per record, with provenance back to the source file.
How do I collect Hosts File?
Arcsentry Collector gathers it with the priority triage profile (linux::profile::triage::priority), live or from a disk image, sealed in an AES-256 archive with a SHA-256 for every file.
Parse 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