What is a host-based intrusion detection system (HIDS)?

What a HIDS watches on a server, how it differs from network detection, EDR and a SIEM, and the Linux options worth knowing.

A host-based intrusion detection system (HIDS) is software that runs on the server itself and watches for signs that someone has broken in or is trying to. Where a network intrusion detection system watches traffic passing a point on the network, a HIDS sees what actually happens on the machine: who logged in, what ran, what connected out and which files changed.

What a HIDS watches

  • Logins: successful and failed SSH logins, new users, sudo use, logins from places or at times that don’t fit.
  • Processes: new or unusual programs, especially ones started by a web server or running from /tmp.
  • Network connections: listening ports that appear, and outbound connections to addresses that have no business being contacted.
  • File integrity: changes to system binaries, SSH keys, cron jobs, systemd units and other places attackers use to stay in.
  • Logs: authentication, kernel and application logs, matched against known attack patterns.

Most real intrusions on Linux servers leave traces in several of these at once: a brute-forced login, then a download, then a new cron entry or SSH key so the attacker can come back. A HIDS is useful because it can connect those steps on the host where they happen.

HIDS vs NIDS

Host-based (HIDS)Network-based (NIDS)
Runs onEach serverA network tap, span port or gateway
SeesLogins, processes, files, local logsPackets and flows between machines
Encrypted trafficSees what happens after it is decrypted on the hostMostly sees metadata only
Blind spotHosts without an agentWhat happens inside a host
FitsCloud and VPS servers you don’t control the network forNetworks you own end to end

For servers rented from a cloud or VPS provider you usually can’t put a sensor on the network at all, so host-based detection is the practical option.

HIDS vs EDR vs SIEM

  • HIDS: detects and alerts on activity on one host. Classic examples are OSSEC and file integrity checkers like AIDE.
  • EDR (endpoint detection and response): a HIDS plus the ability to respond, such as killing a process or isolating a machine, usually with a central console. Many EDR products were built for laptops and Windows first.
  • SIEM: collects logs from everything into one place to search and correlate. It depends on agents or log shippers on the hosts to feed it, and someone has to read what it finds.

Options for Linux servers

ToolWhat it isGood to know
OSSECThe original open-source HIDS: log analysis, file integrity, rootkit checksMature and still actively released
WazuhOpen-source platform that grew out of OSSEC, with agents, a manager, an indexer and a dashboardVery capable; you run and maintain the server side
AIDEFile integrity checker that compares files against a stored databaseDetects changes only; needs scheduling and someone to read reports
auditdThe Linux kernel audit frameworkRecords almost anything; turning records into alerts is up to you
FalcoRuntime detection from system calls, aimed at containers and KubernetesRules engine; alerts need routing somewhere
osqueryExposes system state as SQL tablesGreat for asking questions; not an alerting product on its own
VigilholdHosted agent and console from Al’s-OpsDetection plus limited response you approve; from $39/month for five servers

Tools like fail2ban, SSHGuard and CrowdSec are often mentioned in the same breath. They block addresses that attack a service, which is prevention for one kind of attack rather than intrusion detection, but they pair well with a HIDS. Compare fail2ban alternatives →

What to look for

  1. Alerts a person will read: grouped repeats and plain explanations, not one message per log line.
  2. Coverage you can check: a way to see that every server is reporting, and a warning when one goes quiet.
  3. Response you control: automatic actions limited to safe ones, with anything disruptive waiting for approval.
  4. Setup time that matches your team: an open-source stack is free to download but someone has to run it.

Where Vigilhold fits

Vigilhold is a host agent for Linux servers, including Docker hosts, with one web console for all of them. It watches logins, processes, connections and file changes, explains critical and warning alerts in two sentences, and asks before anything disruptive. When a response playbook bans an address, the ban reaches every server in the account. It installs with one command per host. How Vigilhold works →