Auto Secure Login logoAuto Secure LoginPlatform Discord
Menu

What Is an Intrusion Detection System (IDS)? Types, IDS vs IPS and What to Watch

An intrusion detection system watches networks or computers for signs of attack and raises alerts. Learn the main types, how IDS compares with IPS and what a host-based IDS should watch.

Updated October 17, 2026

What is an intrusion detection system? IDS meaning in cyber security

In cyber security, IDS stands for intrusion detection system. NIST's SP 800-94, Guide to Intrusion Detection and Prevention Systems, describes intrusion detection as watching what happens on computers and networks and analyzing those events for signs of possible incidents. The NIST glossary defines an IDS as software that automates that process.

An IDS does not stop an attack by itself. Its job is to notice malicious or suspicious activity, such as a burst of failed sign-ins, a new administrator account or traffic to a known-bad address, and raise an alert with enough evidence for a person to act: when it happened, on which machine, from which address and which rule fired.

IDS vs IPS: detection versus prevention

An intrusion prevention system (IPS) does what an IDS does and can also act: drop traffic, block an address or end a session. NIST covers both under the name IDPS, because many products can run either way.

  • Where it sits: a network IDS usually watches a copy of the traffic, while a network IPS sits in the traffic path. On a single computer, the difference is whether the tool only reports or also changes firewall rules.
  • Cost of a mistake: a false alarm from an IDS wastes time; a false block from an IPS can cut off a customer, a partner or your own administrator.
  • Typical rollout: run in detection-only mode first, review what would have been blocked, then allow blocking for rules you trust, with a quick way to undo blocks.

Types of intrusion detection systems: network-based and host-based

SP 800-94 groups these technologies into four classes: network-based, wireless, network behavior analysis and host-based. Most organizations choose between, or combine, the first and the last.

  • Network-based intrusion detection system (NIDS): a network intrusion detection system monitors network traffic. Sensors at points such as an internet connection inspect packets and connections for many machines at once. They miss traffic that never passes the sensor, and they can see that an encrypted connection happened but not what is inside it. Suricata and Snort are well-known open-source examples.
  • Host-based intrusion detection system (HIDS): an agent on each computer reads its logs, accounts, services, files and connections. It sees what actually happened on that machine, but it has to be installed and kept running everywhere. Wazuh and OSSEC are common open-source examples.
  • Wireless and network behavior analysis: wireless sensors watch Wi-Fi for rogue access points; behavior analysis looks for unusual traffic volumes or new connections.

Signature vs anomaly detection

NIST describes three detection methods, and most tools mix them:

  • Signature-based detection: compare activity with patterns of known attacks or lists of known-bad addresses. It is precise and easy to explain, but blind to anything new or slightly changed.
  • Anomaly-based detection: learn what normal looks like, then flag departures, such as a sign-in at 3 a.m. from a new country or a server that suddenly contacts hundreds of hosts. It can catch new attacks, but it raises more false positives (false alarms) and needs a clean starting point. A sudden flood of traffic from a denial-of-service (DoS) attack is a classic anomaly. Many products now add machine learning to anomaly-based detection; treat those alerts as leads that a person still confirms.
  • Stateful protocol analysis: compare traffic with how a protocol is supposed to behave and flag requests that break its rules.

A simple form of anomaly detection suits small networks: record how each machine looks on the first day, then report what changes.

What a host intrusion detection system watches on Windows and Linux

On Windows, the Security and System event logs record most of what matters. Microsoft's list of events to monitor is a good reference, and it notes that some events are recorded only after you configure the matching audit policy. Watch for:

  • Bursts of failed sign-ins (event 4625) and successful sign-ins from new addresses (4624).
  • New user accounts (4720) and members added to local groups such as Administrators (4732).
  • New services (4697, or 7045 in the System log) and new scheduled tasks (4698).
  • A cleared Security log (1102), a common way to hide tracks.
  • Microsoft Defender detections, and Defender being disabled.

Linux intrusion detection follows the same ideas with different sources: the authentication log or system journal, the audit subsystem and the file system. Watch for:

  • SSH password guessing, and sign-ins from addresses never seen before.
  • sudo and su failures, new users and changes to administrator groups or the sudoers file.
  • New cron and at jobs, timers and service units.
  • Changes to authorized_keys, a common way to keep access, as MITRE ATT&CK documents.
  • Kernel modules loaded after start-up, and new listening ports.

Decoys and honeytokens: alerts worth reading

The NIST glossary describes a honeypot as a system or resource designed to attract attackers. A honeytoken is the small version: a fake credential, file, account or network port that no legitimate person or program has a reason to touch. Because normal work never touches them, a decoy alert is usually worth reading at once.

  • Decoy account names: names that password-guessing tools try first, such as admin or test, that are not real accounts on the machine.
  • Bait files: believable credential files with made-up passwords, watched for opening, changes or deletion.
  • Decoy ports: ports that nothing real listens on, so any connection is suspicious.

Never put real secrets in a decoy, exclude backup and indexing tools that read every file, and write down where the decoys are so your own staff do not trip them. Host tools such as LurkerLock include all three kinds.

Alert fatigue and IDS tuning

An untuned IDS can bury real attacks under thousands of harmless alerts until people stop reading them. NIST's guide stresses tuning to improve accuracy, and tuning is never finished. Practical steps:

  1. Start with a baseline, so what was already on each machine is not reported as new.
  2. Run blocking rules in detection-only or dry-run mode until you trust them.
  3. Route by severity: critical alerts reach a phone right away; low ones go into a daily summary.
  4. Suppress known-good activity with a written reason and an expiry date, not a permanent blanket exception.
  5. Review the noisiest rules each week, then fix or retire them.
  6. Keep logs long enough to investigate, somewhere an attacker on one machine cannot erase them. The event logging best practices that Australia's cyber security centre published with CISA and other partners cover what to collect and protect.

Every alert should have an owner and a next step. If nobody would act on it, it should not wake anyone up.

Where an IDS fits with firewalls, EDR and patching

An IDS is one layer, and each of the others answers a different question:

  • Firewalls decide which traffic is allowed. An IDS tells you what is happening inside what was allowed.
  • Endpoint detection and response (EDR) records detailed activity on computers and can isolate a machine or stop a process. It overlaps with host-based detection; some organizations run both, and others use a HIDS where EDR is not deployed.
  • Antivirus scans files for known malware. An IDS watches the behavior around it, including antivirus being disabled.
  • Patching closes the holes attackers use. CISA's Known Exploited Vulnerabilities Catalog helps you decide what to patch first.
  • Multifactor sign-in and backups limit what a stolen password can do and how much damage a break-in causes.

For a small organization, a reasonable start is host-based detection on the machines that matter most, logs kept off those machines, prompt patching and multifactor sign-in. An IDS tells you something went wrong; it does not make a network secure on its own.

How a signature-based IDS uses rules, feeds and baselines

A signature-based IDS works from a library of rules. Each rule describes one thing to look for. A network rule might match traffic to a certain port that carries a known exploit pattern. A host rule might match a log line, such as a failed sign-in to an account that does not exist. When activity matches, the IDS writes an alert with the rule name, the time and the evidence.

Rules age quickly, because new attacks appear all the time. Most teams use a maintained rule set and add a few rules of their own. Many tools also load threat intelligence feeds: lists of addresses, domains and file hashes linked to known malicious activity. Check where a feed comes from and how often it is refreshed. A stale list causes both missed attacks and false alarms.

Tools also differ in style. Snort and Suricata are best known for rule-based network detection. Zeek, another open-source tool, is best known for detailed logs of connections, DNS lookups and web requests that analysts can search later. Some teams run both kinds side by side.

Anomaly-based detection needs a different kind of care. The tool first learns what normal looks like during a baseline period. If an attacker is already inside during that period, their activity can become part of normal. Rebuild the baseline after big changes, such as a new application, a move to the cloud or new working hours.

Both methods share some blind spots:

  • Small changes: attackers rename files, switch ports or tweak their tools to slip past exact signatures.
  • Built-in tools: attackers often use normal admin tools such as PowerShell or SSH. Rules then need context, such as who ran the tool, when and from where.
  • Slow attacks: one failed sign-in an hour may never cross an alert threshold. Longer look-back windows help.

Where to place IDS sensors and agents

Placement decides what an intrusion detection system can see. NIST's SP 800-94 covers sensor locations in detail. The short version: watch the paths attackers must use and the systems they most want. Common spots for network sensors (NIDS) are:

  • Just inside the internet firewall: sees what got past the firewall, with less noise than a sensor outside it.
  • Between internal segments: catches movement inside the network, such as a laptop probing the server network. This traffic never crosses the internet edge.
  • In front of key servers: such as servers that hold customer data or handle sign-ins.
  • In the cloud: some cloud platforms can mirror virtual network traffic to a sensor. Where they cannot, rely on flow logs and host agents.

A network sensor gets its copy of traffic in one of two ways. A mirror port on a switch, often called a SPAN port, is cheap and easy to set up. But a busy switch can drop copied packets. A network TAP is a small device that copies all traffic on a link. It is more dependable but needs hardware. Size the sensor for peak traffic and watch its drop counters. An overloaded sensor misses attacks.

For host agents (HIDS), start with the machines an attacker would most like to control:

  • Servers that face the internet, such as web, mail and remote-access servers.
  • Systems that control other systems: domain controllers, identity servers, backup servers and management tools.
  • Administrator workstations and laptops used for remote work.
  • Servers that hold sensitive records, such as finance or customer data.

Then expand to the rest. Send agent data to a central server right away, so the evidence survives if a machine is wiped. Alert when an agent stops reporting, because attackers may try to stop it first.

What to do when an IDS alert fires

Most alerts point to potential threats, not confirmed attacks. A short, repeatable routine helps the person on duty sort them quickly. NIST's incident response guide, SP 800-61, explains how detection fits into a wider response plan. For a single alert, a routine like this works:

  1. Read the evidence. Which rule fired, on which machine, for which account or address? Open the raw log or packet data, not just the summary.
  2. Look for a normal explanation. Was there a planned change, a new tool, a vulnerability scan or an administrator working late? Ask the system's owner.
  3. Look for related activity. Search for the same address, account or file on other machines. Check what happened just before and after.
  4. Set the severity. A blocked attack on a patched server is low. A successful sign-in followed by a new administrator account is urgent.
  5. Contain if needed. Disconnect the machine from the network, disable the account or reset passwords. Save evidence before you wipe or rebuild anything.
  6. Write it down. Record what you saw, what you did and when. If it was a false alarm, tune the rule.

Decide ahead of time who may disconnect a server or disable an account, and how to reach them at night. Keep alerts and logs long enough to look back several weeks, because some intrusions are found long after they start. In the United States, organizations can report cybercrime to the FBI's Internet Crime Complaint Center.

Host-based vs network-based IDS: how to choose for a small organization

Few small organizations can run every kind of intrusion detection system, so the real question is which view to start with. Begin with a quick inventory. Count the machines that can run an agent, the devices that cannot, and the work that happens outside your building. The answers usually point to a clear first step.

The two types answer different questions. A network sensor answers “who talked to whom, when and how much.” It covers every device on the link it watches, including printers, cameras, phones and other gear that cannot run an agent. A host agent answers “what happened on this machine”: which account signed in, which program started and what changed. It sees nothing on devices where it is not installed.

Encryption shifts the balance. Most web and email traffic now travels encrypted. A network sensor then sees addresses, timing and volume, not content. It can often read site names in DNS lookups, but newer privacy features can hide those names too.

To read the content, you would have to decrypt traffic at a proxy that every device trusts. That adds cost and certificate upkeep, and it can break some apps. A host agent avoids the problem. It reads the machine’s own logs, and encryption on the wire does not hide them.

Cost and upkeep differ too. A network sensor needs a small server or virtual machine for each link you watch, plus a switch that can mirror traffic. Host agents need no extra hardware. But someone must install them, update them and add them to every new or rebuilt machine. Open-source tools carry no license fee, while commercial tools are often priced per device or per sensor. Either way, the largest cost is the time spent reading alerts.

Remote work and cloud services shrink what an office sensor can see. A laptop on home or hotel Wi-Fi never passes it. Neither does activity inside hosted email, file sharing or accounting services. For those, the useful evidence is each service’s own sign-in and audit logs. Turn them on, keep them as long as your plan allows, and review sign-ins from new places or devices.

For many small organizations, a sensible starting combination has three parts. Put host agents on the priority machines listed in the placement section above. Turn on sign-in and audit logs in your cloud services. Then use logs you may already have, from your firewall or DNS filter, as a basic network view. Add a dedicated network sensor later, when devices without agents or a busy office make that second view worth the upkeep.

Revisit the choice once a year, or after a big change such as a new office, a move to cloud services or more staff working from home. The FTC’s cybersecurity resources for small businesses are a plain-language companion for those reviews. Two tools that nobody reads protect less than one that someone checks every day.

Where LurkerLock fits

LurkerLock is host security for Windows PCs and Linux servers, available now. A sensor on each machine watches many of the events above: sign-ins and password guessing, new accounts, services and scheduled tasks, a cleared audit log, Microsoft Defender detections, cron jobs, SSH authorized keys, kernel modules and new listening ports. It checks outbound connections against public threat lists and your own list, and it sets decoy account names, bait files and decoy ports.

Sensors report to a LurkerLock Server you host yourself, with a web console, or a single machine can run the sensor with no server. Blocking stays off until you enable it, and then it starts as a dry run that only records what it would block. When it acts, it blocks single addresses and never blocks the machine's own addresses, your allowlist or your management addresses. Every finding, block and decision is recorded on the machine and on your server. There is no telemetry, license server or update check.

It does not scan files for malware itself; on Windows it reports what Microsoft Defender detects. Findings can include account names, addresses and command lines, so tell users their computers are monitored where your rules or employment law require it. See how LurkerLock works.

Frequently asked questions

What does IDS mean in cyber security?

IDS means intrusion detection system: software that watches network traffic or computer activity for signs of an attack and alerts a person.

What is the difference between IDS and IPS?

An IDS detects and alerts. An IPS can also act, for example by dropping traffic or blocking an address. Many products do both, and many teams run prevention in detection-only mode first.

What are the main types of IDS?

NIST lists four: network-based, wireless, network behavior analysis and host-based. Network-based and host-based systems are the most common, and they are often used together.

Do I need a host-based IDS if I have a firewall?

A firewall decides what traffic is allowed; it does not tell you that a new administrator account appeared or an audit log was cleared. A host-based IDS covers what happens on the machine after a connection is allowed, including sign-ins with stolen passwords.

What should Linux intrusion detection watch first?

Start with SSH sign-in failures, successful sign-ins from new addresses, sudo use, new user accounts, changes to authorized_keys and cron jobs, and new listening ports. Those cover common ways attackers get in and stay in.

Related guides

Explore the complete product

Read features, current access and limitations

Help / Ayuda