IDS, IPS and Next-Generation Firewalls
Context: Firewalls and Packet Filtering Β· going beyond header filtering β detect and react to attacks, and inspect applications Β· closes the app-layer gap of packet filters
Quick Revision
- π― Objective: IDS monitors + alerts + logs; IPS adds active blocking; NGFs proxy all traffic (even encrypted) to inspect apps/roles/users β detect attacks a packet filter misses.
- β‘ Key Constraint: to inspect encrypted traffic an NGF proxies TLS, which breaks end-to-end security and creates a single point of attack holding all decrypted data.
π IDS vs IPS
- IDS (Intrusion Detection System) β monitors network/system activity, alerts on potentially malicious activity, logs it. Passive.
- IPS (Intrusion Prevention System) β IDS + active functionality: attempts to block/stop malicious activity.
- Monitoring examples β detect port scans, OS fingerprinting, known-vulnerability exploits (CVE list), known malware, behavioural anomalies.
- Reactions β drop malicious packets + alarm, block IPs, correct fragmentation in packet streams, raise alerts β may trigger a human incident response team.
βοΈ Signature vs anomaly detection
| Method | Strength | Weakness |
|---|---|---|
| Signature-based | Fast, few false positives, no learning phase | Only catches known attacks (needs a signature) |
| Anomaly-based | Can detect previously unknown attacks | More false positives; needs a learning baseline |
π§± Next-generation firewalls (NGF)
- Promise β integrated security: proxy for all traffic (even encrypted), inspect applications, logical segments, roles, services, users.
- Problems β policy rules get too complex; the TLS proxy breaks end-to-end security β a single point of attack with full access to decrypted data; encapsulated encryption can still hide traffic; privacy concerns; still canβt detect new (disguised) malware.
β οΈ Common Mistakes
- π‘ IPS = IDS + action β the only difference is that an IPS actively blocks; an IDS merely detects and alerts.
- π‘ HTTPS interception is a double-edged sword β proxying TLS (a 2017 study showed weakened downgraded cipher suites) lets the NGF inspect content but undermines the very end-to-end guarantee of TLS.
π§ Active Recall
Signature-based detection is fast and accurate β why do IDS/IPS also run anomaly-based detection?
Answer
- Short answer: signature-based detection can only match already-known attacks; a brand-new (zero-day) attack has no signature and slips past, so anomaly-based detection is needed to flag previously unknown behaviour.
- Why: Coverage vs precision β signatures give speed and low false positives for known threats; anomaly detection trades more false positives for the ability to catch novel attacks β the two are complementary.