Use it when attacks must actually be stopped, not just logged, and when deciding fail-open or fail-closed behaviour.
Prevention
Prevention means the IPS sits inline and actively drops, resets or blocks malicious traffic, rather than only generating alerts as an IDS does.
1. Policy mode shows inline/drop actions, not "detect only".
2. Test with known attack signatures in a lab or with vendor test traffic.
3. Bypass/fail-open behaviour documented and tested.
4. Blocked events visible in the SIEM with correct source/destination.
sensor inline → policy action drop → signature matches → packet dropped or session reset → event logged → fail mode known
Context & applicabilityCommon mistakes · platform/version boundaries
- Rules in alert mode forever, so nothing is prevented.
- Blocking actions without logging, making troubleshooting impossible.
- Not testing that drops really happen (generate safe test traffic).
Operational reference
Fast context before you go deeper.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Verifying prevention Verify boundary
- Policy mode shows inline/drop actions, not "detect only".
- Test with known attack signatures in a lab or with vendor test traffic.
- Bypass/fail-open behaviour documented and tested.
- Blocked events visible in the SIEM with correct source/destination.
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
- Prevention means blocking malicious traffic inline instead of only alerting.
- Inline placement adds latency and a failure point.
- Decide fail-open or fail-closed behaviour.
- Check the IPS is inline and in blocking mode.
- Check block events for the flow.
- Check fail-open/fail-closed behaviour.
ReferenceWhat it is1 section · depth on demand
Inline vs passive
| Mode | Placement | Can block | Risk |
|---|---|---|---|
| IPS (inline) | In the traffic path | Yes: drop, reset, block source | A false positive blocks real traffic; failure must be fail-open or fail-closed by design |
| IDS (passive) | On a SPAN/TAP copy | No, only alerts | Attack reaches the target before anyone reacts |
Start new signatures in alert-only mode, tune false positives, then enable blocking.
ReferenceWhy it matters1 section · depth on demand
How it works
Prevention means the IPS sits inline and can drop packets or reset connections when a rule fires. An IDS only alerts on a copy of the traffic. Inline sensors must be sized for throughput and have a fail-open or fail-closed decision for when the engine is overloaded.
ReferenceImportant terms & boundaries1 section · depth on demand
In depth
Prevention: what an IPS does when it detects an attack
NIST SP 800-94 groups prevention capabilities into three kinds: stopping the attack (ending the connection or session, blocking an account or address), changing the security environment (reconfiguring a firewall, router or switch), and changing the attack's content (removing malicious parts, normalising requests).
Prevention actions
| Action | Effect | Caution |
|---|---|---|
| Drop packet | The offending packet never reaches the target | Only possible inline |
| Reset connection | TCP resets to one or both ends | The attacker can retry |
| Block source | Address blocked for a period | Shared or spoofed addresses can cause collateral blocking |
| Quarantine host | Switch port or VLAN change, often through NAC | Business impact if wrong |
| Rewrite content | Strip or normalise the malicious part | Can break applications |
Inline versus passive
| Deployment | Can prevent? |
|---|---|
| Inline (in the traffic path) | Yes: drops before delivery |
| Passive (SPAN or tap) | Only indirectly: resets, or instructing other devices |
Avoiding self-inflicted outages
NIST notes many products offer a learning or simulation mode that logs when a prevention action would have fired, so administrators can tune before blocking. It also explains that reducing false negatives usually increases false positives, which is why blocking rules need tuning.
ips# show policy CORP-EDGE | include mode|action
Inspection mode: prevention
Default action for high-confidence signatures: drop
Default action for medium-confidence signatures: alert
ips# show events blocked last 2
2026-11-28T10:41:22Z drop 1:58722 path traversal attempt 198.51.100.77 -> 10.30.0.15:443
2026-11-28T11:04:51Z drop 1:61003 C2 beacon 10.110.0.90 -> 192.0.2.200:80
Fail-open or fail-closed
| Choice | Behaviour if the IPS fails |
|---|---|
| Fail-open (bypass) | Traffic flows uninspected; availability first |
| Fail-closed | Traffic stops; security first |
Decide per link: Internet edges often fail open with redundant devices, high-security zones fail closed.
Rollout
Start new policies in detection mode, block high-confidence signatures first, then widen blocking as tuning removes false positives.
Documented example, not captured output.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in Network Devices → IPS → Prevention. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://www.cisco.com/c/en/us/support/ios-nx-os-software/ios-xe-17/series.html · confidence 94%