The defining feature of an IPS is its inline position: all traffic between segments passes through it. So instead of merely detecting an attack, as an IDS does when watching a copy of the traffic from a mirror port, the system cuts it off at once. IPS functionality is built into many next-generation firewalls (NGFW); standalone sensors are also available.
How it works
An IPS inspects packets more deeply than a classic firewall — down to application-layer content — and checks traffic against a database of signatures of known attacks, a profile of normal network behaviour and reputation lists of addresses. When a match is found, the configured action is carried out.
| Action | What happens |
|---|---|
| Drop the packet | the malicious packet is not allowed through, while the rest of the connection’s flow keeps going |
| Reset the connection | the IPS sends a TCP reset to both parties or tears down the entire flow |
| Block the source | the offender’s address is added to a blocklist for a set period |
| Allow and alert | the event is passed to the SIEM — this is how detection mode works |
IPS and IDS
The difference lies not in what they notice but in where they sit and what they can do with the traffic. An IDS watches a copy of the traffic from a mirror port and cannot block anything; an IPS sits inline and can therefore terminate connections. The flip side of that activity is risk: a false positive from an IPS cuts off legitimate traffic, so new rules are first trialled in detection mode and only then switched to blocking.
| Property | IPS | IDS |
|---|---|---|
| Position | inline with the traffic | a copy of the traffic from a mirror port |
| Response to an attack | blocks automatically | alerts only |
| Main risk | a false positive interrupts legitimate traffic | a missed attack |
| Typical location | a module in an NGFW or a standalone sensor at the segment boundary | a sensor next to the monitoring point |
Types and implementations
By what they protect, IPSes are divided into network IPS (NIPS) at segment boundaries, host-based ones — an agent on the server itself — and wireless (WIPS), which monitor the Wi-Fi airwaves. The open source engines Snort and Suricata run in both modes: traffic is either copied to them (IDS) or passed inline, for example through the NFQUEUE queue in Linux (IPS).
Sources
the term is written from these pages- NIST SP 800-94 — Guide to Intrusion Detection and Prevention Systemscsrc.nist.gov/pubs/sp/800/94/final(opens in a new tab)
- NIST Computer Security Resource Center — глоссарийcsrc.nist.gov/glossary/term/intrusion_prevention_system(opens in a new tab)
- Suricata — документация проекта, IPS Modedocs.suricata.io/en/latest/ips/ips-concept.html(opens in a new tab)
Verified 9 Nov