A host-based intrusion detection system (HIDS) is software installed on a server or endpoint that monitors local files, logs, processes, system calls and configuration for signs of intrusion. It compares activity against rules and a known-good baseline, then alerts when files change, new persistence is added, or suspicious logins and processes appear.
Key takeaways
- A HIDS sees inside the host — file changes, persistence and logins that network sensors miss, including activity inside encrypted traffic.
- Its core methods are file integrity monitoring, log and rule analysis, and system-call monitoring, often combined in one agent.
- A HIDS detects and alerts; it does not replace EDR, a SIEM or patching, and it must be protected because a root attacker can disable it.
A firewall watches the door. A network sensor watches the corridor. But neither can tell you what happened inside the room — which file changed, which login succeeded at 3 a.m., or which new scheduled task now runs every hour. That is the job of a host-based intrusion detection system.
What is a host-based intrusion detection system?
A host-based intrusion detection system (HIDS) is software installed on a single server or endpoint that monitors local activity — files, logs, processes, system calls and configuration — and alerts when it finds signs of intrusion or policy violations.
The word "host" is the key. A HIDS does not watch the network as a whole. It lives inside one machine and sees what that machine sees: who logged in, what ran, what connected out, and which files changed. NIST groups intrusion detection systems into network-based, host-based, wireless and network behaviour analysis types in SP 800-94, its guide to intrusion detection and prevention systems.
That inside view matters because most serious attacks end on a host. An attacker may arrive through a phishing email or an exposed service, but persistence, privilege escalation and data theft all happen on a machine. A HIDS is designed to catch exactly those steps.
How does a HIDS work?
A HIDS agent collects data from the operating system, compares it with rules and a known-good baseline, and sends an alert to a central manager when something does not fit. Most tools combine several data sources at once.
File integrity monitoring
File integrity monitoring (FIM) is the oldest and most distinctive HIDS method. The agent computes a cryptographic hash of each important file, stores it as a baseline, and alerts when the current hash differs.
Typical files include system binaries in /usr/bin, SSH configuration and authorized keys, sudoers files, cron jobs, systemd units and, on Windows, registry keys used for persistence. A changed binary or a new cron entry is a strong sign that someone has tampered with the host.
Log and rule analysis
The agent reads system and application logs — the systemd journal and syslog on Linux, the Windows Event Log, authentication logs and web server logs — and matches events against rules. Examples include repeated failed SSH logins, a new user account, sudo use at an unusual hour, or Windows Event ID 1102, which records audit log clearing.
Good rules carry a severity level and, in modern tools, a MITRE ATT&CK technique tag, so analysts can tell at a glance whether an alert is routine noise or a known attack step.
System-call and process monitoring
Some HIDS agents watch system calls and process creation directly, using the Linux Audit framework (auditd), eBPF probes, or Sysmon on Windows. This catches behaviour that files and logs alone miss, such as a web server process suddenly spawning a shell, or a program running from /tmp.
On Linux, eBPF has become the standard way to observe syscalls safely without a custom kernel module. It is the same technique behind Falco, the open-source runtime detector created by Sysdig.
HIDS vs NIDS: what is the difference?
A HIDS watches one host from the inside, while a network intrusion detection system (NIDS) watches traffic passing a point on the network. They see different things, and neither replaces the other.
| HIDS | NIDS | |
|---|---|---|
| Where it runs | Agent on each host | Sensor on a tap, mirror port or gateway |
| What it sees | Files, logs, processes, registry, syscalls | Packets, flows and protocol behaviour |
| Encrypted traffic | Sees activity after decryption | Mostly blind inside TLS |
| Best at catching | Persistence, privilege escalation, log tampering, insider actions | Scanning, exploits in transit, command-and-control traffic |
| Blind spot | Only its own host; can be disabled by root | Cannot see host internals or local file changes |
| Deployment cost | An agent on every host | A few sensors for a whole segment |
NIST recommends using more than one type of intrusion detection, because each class covers the others' blind spots. A practical small-business setup pairs a HIDS on servers with a NIDS or a firewall with intrusion detection at the network edge. For the network side, see our guide on how to secure your Wi-Fi.
HIDS vs EDR vs SIEM vs antivirus: how do they compare?
These tools overlap, and vendors blur the lines. The simplest way to keep them straight is by what each one does with an alert.
| Tool | What it watches | What it does | Best for |
|---|---|---|---|
| HIDS | One host: files, logs, processes | Detects and alerts | Servers, compliance file integrity |
| EDR | Endpoints: behaviour, telemetry | Detects, investigates, responds | Laptops and servers needing response |
| SIEM | Logs from many sources | Correlates and stores centrally | Whole-estate visibility and retention |
| Antivirus | Files on an endpoint | Matches and removes known malware | Basic malware defence |
| NIDS | Network traffic | Detects and alerts | Network-wide attack traffic |
Think of it as a stack. The HIDS agent is the sensor on the host. The SIEM is the central store that correlates its alerts with firewall, identity and cloud logs. Modern EDR is, in effect, a HIDS extended with behavioural analytics, threat intelligence and response actions such as isolating a host or killing a process.
If you can only buy one thing, EDR usually wins for laptops. For servers that must prove file integrity to an auditor, a HIDS is still the direct answer — and many EDR products include file integrity monitoring as a module.
What does a HIDS actually detect?
A HIDS is strongest against the quiet, persistent steps of an attack — the ones that happen after the initial break-in and before data leaves. Here are the patterns it catches best.
- Persistence: a new cron job, systemd service, scheduled task or registry Run key that restarts malware after reboot.
- Privilege escalation: a new sudoers entry, a changed setuid binary, or a user added to an admin group.
- File tampering: a system binary, library or configuration file whose hash no longer matches the baseline.
- Credential abuse: repeated failed logins followed by success, logins from unusual places or hours, or a new SSH authorized key.
- Log tampering: audit logs cleared or stopped, which MITRE ATT&CK lists as a defence-evasion technique under T1562.001, impair defences.
- Policy violations: software installed outside the approved list, a listening port that should not exist, or a configuration drift from the approved baseline.
What it does not do well is catch an attack that never touches the host's files or logs, such as a purely network-based scan, or malware that runs only in memory and leaves no file behind. That is why HIDS alerts are most valuable when correlated with network and identity data in a SIEM.
Which HIDS tools should you consider?
The open-source tools below are the standard starting points. Commercial EDR and cloud workload products add managed rules, response and support, but the detection ideas are the same.
Wazuh
Wazuh is the most capable open-source HIDS in 2026. It grew out of OSSEC and adds a central manager, an indexer and a dashboard, plus vulnerability detection, compliance mapping and cloud log collection. You run the server side yourself, which is the main cost.
OSSEC
OSSEC is the original open-source HIDS: log analysis, file integrity checking, rootkit detection and active response on Linux, Windows and macOS. It is mature and still released, and it is a good fit for a small fleet of servers where you want a light agent.
AIDE and Samhain
AIDE (Advanced Intrusion Detection Environment) does one thing well: it builds a database of file attributes and reports changes. Samhain adds central management and stealth features to the same idea. Both are file integrity tools rather than full HIDS platforms.
Tripwire and Falco
Tripwire is the commercial file integrity product that defined the category, now sold as Tripwire Enterprise. Falco is different: it watches Linux system calls in real time and is the standard runtime detector for containers and Kubernetes. Our guide to Sysdig alternatives covers Falco-based commercial options in more depth.
How do you deploy a HIDS in 5 steps?
Deploying a HIDS is a short project, but the baseline step is the one teams rush — and a rushed baseline means alerts you cannot trust.
- Inventory your hosts. List every server, virtual machine and container host that matters, starting with internet-facing and data-bearing systems.
- Install the agent and a central manager. The agent watches the host; the manager collects, correlates and stores alerts off the host.
- Build a clean baseline. Hash files on a freshly built, fully patched host before it carries production data. Store the baseline off the host.
- Tune the rules for two weeks. Expect noise at first. Silence known-good changes, such as package updates, and raise the severity of persistence and log-clearing rules.
- Send alerts somewhere a human reads them. A HIDS that only writes to a local log file is a diary, not a detector. Forward alerts to a SIEM, a ticket queue or at least a monitored inbox.
What are the limits and common mistakes?
A HIDS is only as trustworthy as the host it runs on. An attacker with root access can stop the agent, edit its rules, or alter the logs it reads — which is why alerts must leave the host immediately and the manager must alert when an agent goes silent.
The other common mistakes are operational. Teams install agents and never tune them, so analysts learn to ignore the flood. Teams build a baseline on a host that is already compromised, so the HIDS learns that the compromise is normal. And teams treat a HIDS as a replacement for patching, backups and MFA — it is none of those. It tells you something went wrong; it does not stop the vulnerability that let the attacker in.
Cloud and containers add a twist. Short-lived containers may vanish before an agent can report, and serverless functions have no persistent host at all. For those workloads, use runtime and cloud-native detection instead — see our guide to the best serverless security tools.
The bottom line
A host-based intrusion detection system answers one question no firewall can: what actually happened on this server? File integrity monitoring, log analysis and system-call watching together catch persistence, tampering and credential abuse that network sensors miss.
Start with Wazuh or OSSEC on your most important servers, build a clean baseline, tune the rules, and send alerts to a central store.
Then check the rest of your baseline with our free security headers checker.
Frequently asked questions
What is a host-based intrusion detection system in simple terms?
It is security software that lives on one computer or server and watches what happens inside it. It checks files, logins, running programs and logs, and raises an alert when something changes or behaves suspiciously.
What is the difference between HIDS and NIDS?
A HIDS runs on a host and sees local activity such as file changes and logins. A NIDS watches network traffic at a tap or gateway and sees packets and flows. A HIDS works inside encrypted traffic because it sees activity after decryption, while a NIDS cannot.
Is a HIDS the same as antivirus or EDR?
No. Antivirus mainly matches known malware files. A HIDS watches system behaviour and integrity over time. Modern EDR extends the HIDS idea with behavioural analytics, threat intelligence and response actions such as isolating a host.
What is file integrity monitoring?
File integrity monitoring computes a cryptographic hash of important files, stores it as a baseline, and alerts when a file changes. It is the classic HIDS check for system binaries, configuration files, SSH keys, cron jobs and scheduled tasks.
Do I still need a HIDS if I have a firewall?
Yes. A firewall controls traffic at the boundary. It cannot tell you that a system binary changed, a new cron job appeared, or an attacker cleared the logs on a server that is already inside your network.
What are the best open-source HIDS tools?
Wazuh and OSSEC are the best-known open-source options, both using an agent on each host and a central manager. AIDE and Samhain focus mainly on file integrity. Falco is a popular open-source runtime detector for Linux and containers.
Can an attacker disable a HIDS?
Yes. An attacker with root or administrator access can stop the agent, change its rules or edit the logs it reads. That is why HIDS alerts should be sent to a central server, and why the agent and its baseline should be protected.
Does PCI DSS require a HIDS?
PCI DSS requires file integrity monitoring for systems that store, process or transmit cardholder data, and intrusion detection for the cardholder data environment. A HIDS is the usual way to meet the file integrity part of that requirement.
Sources
The engineers and analysts who build Cysoro's domain scanner, email-authentication checks and free security tools. We test what we write about every day — SPF, DKIM, DMARC, certificates, look-alike domains and phishing — and check each guide against the relevant standards, government guidance and vendor documentation.
Checked against NIST SP 800-94, CISA intrusion detection guidance, MITRE ATT&CK and Wazuh and OSSEC documentation.
How we write and fact-check →