☼
⌃
☰

Intrusion Prevention System

Table of Contents

An Intrusion Prevention System (IPS) is a network security tool that continuously monitors network traffic for malicious activity and takes action to prevent it — blocking, dropping, or resetting the connection when a match occurs. The defining distinction from an Intrusion Detection System (IDS) is that an IPS sits inline in the traffic path and can actively stop an attack in progress; an IDS only observes and alerts, it cannot intervene.

Related: Intrusion Detection System Web Application Firewall Data Breach Incident Response Compliance Defense in Depth

IDS vs IPS — The Core Distinction

Aspect IDS IPS
Placement Out-of-band (monitors a copy of traffic, e.g. via SPAN/mirror port) Inline (sits directly in the traffic path)
Action Alert only — detection, no intervention Can block, drop, or reset the connection
Failure mode Fails open — traffic keeps flowing if the IDS goes down Fails open or closed depending on config — an inline device going down can take the network path with it
Risk profile Lower — false positives cost analyst time only Higher — a false positive can actively block legitimate traffic

The inline placement is the whole tradeoff: an IPS can actually stop an attack, but a misconfigured or overly aggressive one can also cause a self-inflicted denial of service by blocking legitimate traffic that trips a signature.

Detection Methods

  • Signature-based: Matches traffic against known attack patterns. Fast and low false-positive rate for known threats, but blind to anything novel or slightly obfuscated.
  • Anomaly-based: Establishes a baseline of normal traffic and flags deviations. Can catch novel attacks but has a higher false-positive rate.
  • Policy-based: Enforces explicit rules (e.g. "no Telnet traffic") regardless of whether the traffic looks malicious.

Key Features

  • Real-time monitoring of network traffic
  • Detection of malicious activity and attacks
  • Prevention of attacks through blocking or dropping malicious traffic
  • Generation of alerts and reports
  • Integration with other security tools (SIEM, firewall, EDR)

Evasion Considerations (Pentest-Relevant)

An IPS is signature/pattern-matching-dependent, which creates specific bypass angles worth knowing during an engagement:

  • Fragmentation: Splitting an attack payload across multiple packets can prevent a signature that expects the full payload in one packet from matching
  • Encoding/obfuscation: URL encoding, case variation, or alternate syntax for the same underlying payload (relevant to Cross-Site Scripting and SQL Injection payloads specifically) can slip past a signature written for the literal/common form
  • Timing: Slow, low-and-slow attacks can fall below anomaly-based thresholds tuned for burst detection
  • Encrypted channels: An IPS inspecting unencrypted traffic is blind to anything over TLS unless it's doing TLS inspection/termination — worth checking whether that's in place before assuming HTTPS traffic is being inspected at all

None of this is a substitute for testing — always confirm whether evasion actually worked by checking if the payload had its intended effect, not just whether the IPS failed to alert.

Use Cases

Tips

  • On an engagement, an IPS reset/blocking a connection can look identical to a network issue or a crashed service at first — if a working payload suddenly stops connecting, consider IPS interference before assuming the exploit itself broke
  • If you have any visibility into the target's security stack (recon, job postings, exposed dashboards), knowing whether it's signature-based or anomaly-based changes your evasion approach — signature evasion is about payload variation, anomaly evasion is about timing and volume
  • Fail-open vs fail-closed matters for availability testing specifically — an aggressive IPS is itself a potential DoS vector worth noting in a report if it can be tripped into blocking legitimate traffic