CYS405 · Chapter 10 · Annotated SlidesSniffing, Session Hijacking and DoS Attacks
Original
Overview

Sniffing, Session Hijacking and DoS Attacks

Sniffers and passive vs. active sniffing, protocols vulnerable to sniffing, switch CAM tables and MAC flooding, ARP poisoning and its prevention, session hijacking (prediction, active-session identification, spoofing vs. hijacking), and DoS/DDoS techniques and botnets.

How to read this page

Every original slide is shown unchanged. Yellow marks on a slide point to a numbered note: hover or tap a mark to jump to its note, and hover a note to see its marks. Questions tagged Past exam appeared on a real paper; Prediction questions are likely angles, not confirmed. Pick an answer to each question: a wrong pick tells you why it is wrong, so you can try again.

All 60 slides
  1. 1 Slide 1
  2. 2 Key Concepts
  3. 3 Slide 3
  4. 4 Sniffers
  5. 5 Sniffing Threats
  6. 6 How a Sniffer Works
  7. 7 Types of Sniffing
  8. 8 § Passive sniffing involves sending no packets. It simply captures and
  9. 9 Attackers use the following passive sniffing methods to gain control over a target
  10. 10 Types of Sniffing (cont.)
  11. 11 Types of Sniffing (cont.)
  12. 12 Detectability: Leaving Fingerprints
  13. 13 Protocols Vulnerable to Sniffing
  14. 14 Switch Basics & CAM Table
  15. 15 How CAM Works
  16. 16 ARP Protocol Basics
  17. 17 MAC Flooding attack
  18. 18 Slide 18
  19. 19 How to Defend against MAC Attacks
  20. 20 Slide 20
  21. 21 Slide 21
  22. 22 ARP Poisoning / ARP Spoofing
  23. 23 How does ARP Poisoning Works
  24. 24 How Does ARP Spoofing Work
  25. 25 Why is ARP Poisoning Possible?
  26. 26 ARP Spoofing Prevention
  27. 27 ARP Spoofing Prevention (Cont..)
  28. 28 ARP Spoofing Prevention (cont..)
  29. 29 Detection Tip: Monitor networks for a single MAC address associated with multiple IP addresses or use tools like Wireshark to spot unusual ARP traffic. Here is a simple way to detect that a specific device’s ARP cache has been poisoned, using the command line. Start an operating system shell as an administrator. Use the following command to display the ARP table, on both
  30. 30 Sniffing Tools
  31. 31 Sniffing Countermeasures
  32. 32 Slide 32
  33. 33 What is Session Hijacking?
  34. 34 Slide 34
  35. 35 Why Session Hijacking Is Successful
  36. 36 Example: Linear Algorithm Generating Weak Session IDs
  37. 37 Improvement using secure, random, cryptographic session ID generator
  38. 38 Slide 38
  39. 39 An attacker implements various techniques such as stealing, guessing, and brute forcing to obtain a valid session ID, which helps in acquiring control over a valid user’s session while it is in progress.
  40. 40 Identifying an Active Session
  41. 41 Identifying an Active Session (Cont.)
  42. 42 Identifying an Active Session (Cont.)
  43. 43 Slide 43
  44. 44 Spoofing vs Hijacking
  45. 45 Session Hijacking Tools
  46. 46 Session Hijacking Tools (Cont.)
  47. 47 Thwarting Session Hijacking Attacks
  48. 48 Slide 48
  49. 49 Denial of Service (DoS) Attacks
  50. 50 DoS Attack Techniques :
  51. 51 Bandwidth Attacks
  52. 52 Service Request Floods
  53. 53 ICMP Flood Attack
  54. 54 § ICMP flood — Comes in two variants: Smurf attack and ping
  55. 55 SYN Flooding
  56. 56 Peer-to-Peer Attacks
  57. 57 Application-Level Flood Attacks
  58. 58 What are Distributed Denial of Service Attacks?
  59. 59 Botnet
  60. 60 Summary
Slide 1 / 60

Slide 1

Slide 1: Slide 1
Slide 2 / 60

Key Concepts

Slide 2: Key Concepts
Slide 3 / 60

Slide 3

Slide 3: Slide 3
Slide 4 / 60

Sniffers

Slide 4: Sniffers

Notes

  1. A sniffer captures packets on the network; the NIC runs in promiscuous mode.

Slide 5 / 60

Sniffing Threats

Slide 5: Sniffing Threats
Slide 6 / 60

How a Sniffer Works

Slide 6: How a Sniffer Works
Slide 7 / 60

Types of Sniffing

Slide 7: Types of Sniffing

Notes

  1. Passive sniffing: just listen (works on hubs). Active sniffing: inject traffic to sniff a switched network (MAC flooding, ARP poisoning).

Exam angle

PredictionQ1

Sniffing on a switched network requires:

Slide 8 / 60

§ Passive sniffing involves sending no packets. It simply captures and

Slide 8: § Passive sniffing involves sending no packets. It simply captures and
Slide 9 / 60

Attackers use the following passive sniffing methods to gain control over a target

Slide 9: Attackers use the following passive sniffing methods to gain control over a target
Slide 10 / 60

Types of Sniffing (cont.)

Slide 10: Types of Sniffing (cont.)
Slide 11 / 60

Types of Sniffing (cont.)

Slide 11: Types of Sniffing (cont.)
Slide 12 / 60

Detectability: Leaving Fingerprints

Slide 12: Detectability: Leaving Fingerprints
Slide 13 / 60

Protocols Vulnerable to Sniffing

Slide 13: Protocols Vulnerable to Sniffing

Notes

  1. Plaintext protocols leak credentials: Telnet, FTP, HTTP, POP3, IMAP, SMTP, SNMPv1.

Exam angle

PredictionQ1

Which protocol sends credentials in clear text?

Slide 14 / 60

Switch Basics & CAM Table

Slide 14: Switch Basics & CAM Table
Slide 15 / 60

How CAM Works

Slide 15: How CAM Works
Slide 16 / 60

ARP Protocol Basics

Slide 16: ARP Protocol Basics
Slide 17 / 60

MAC Flooding attack

Slide 17: MAC Flooding attack

Notes

  1. MAC flooding: fill the CAM table with fake MACs so the switch fails open and floods frames like a hub. Defense: port security.

Exam angle

PredictionQ1

Port security on a switch defends against:

Slide 18 / 60

Slide 18

Slide 18: Slide 18
Slide 19 / 60

How to Defend against MAC Attacks

Slide 19: How to Defend against MAC Attacks
Slide 20 / 60

Slide 20

Slide 20: Slide 20
Slide 21 / 60

Slide 21

Slide 21: Slide 21
Slide 22 / 60

ARP Poisoning / ARP Spoofing

Slide 22: ARP Poisoning / ARP Spoofing

Notes

  1. ARP poisoning: send forged ARP replies linking the attacker’s MAC to the gateway’s IP → man in the middle.

Exam angle

PredictionQ1

ARP poisoning works because ARP:

Slide 23 / 60

How does ARP Poisoning Works

Slide 23: How does ARP Poisoning Works
Slide 24 / 60

How Does ARP Spoofing Work

Slide 24: How Does ARP Spoofing Work
Slide 25 / 60

Why is ARP Poisoning Possible?

Slide 25: Why is ARP Poisoning Possible?
Slide 26 / 60

ARP Spoofing Prevention

Slide 26: ARP Spoofing Prevention

Notes

  1. ARP spoofing prevention: static ARP entries, Dynamic ARP Inspection (DAI) with DHCP snooping, encryption.

Slide 27 / 60

ARP Spoofing Prevention (Cont..)

Slide 27: ARP Spoofing Prevention (Cont..)
Slide 28 / 60

ARP Spoofing Prevention (cont..)

Slide 28: ARP Spoofing Prevention (cont..)
Slide 29 / 60

Detection Tip: Monitor networks for a single MAC address associated with multiple IP addresses or use tools like Wireshark to spot unusual ARP traffic. Here is a simple way to detect that a specific device’s ARP cache has been poisoned, using the command line. Start an operating system shell as an administrator. Use the following command to display the ARP table, on both

Slide 29: Detection Tip: Monitor networks for a single MAC address associated with multiple IP addresses or use tools like Wireshark to spot unusual ARP traffic. Here is a simple way to detect that a specific device’s ARP cache has been poisoned, using the command line. Start an operating system shell as an administrator. Use the following command to display the ARP table, on both
Slide 30 / 60

Sniffing Tools

Slide 30: Sniffing Tools
Slide 31 / 60

Sniffing Countermeasures

Slide 31: Sniffing Countermeasures
Slide 32 / 60

Slide 32

Slide 32: Slide 32
Slide 33 / 60

What is Session Hijacking?

Slide 33: What is Session Hijacking?

Notes

  1. Session hijacking: take over an authenticated session by stealing or predicting the session ID.

Slide 34 / 60

Slide 34

Slide 34: Slide 34
Slide 35 / 60

Why Session Hijacking Is Successful

Slide 35: Why Session Hijacking Is Successful
Slide 36 / 60

Example: Linear Algorithm Generating Weak Session IDs

Slide 36: Example: Linear Algorithm Generating Weak Session IDs

Notes

  1. Predictable (linear) session IDs can be guessed; use long, random IDs.

Slide 37 / 60

Improvement using secure, random, cryptographic session ID generator

Slide 37: Improvement using secure, random, cryptographic session ID generator
Slide 38 / 60

Slide 38

Slide 38: Slide 38
Slide 39 / 60

An attacker implements various techniques such as stealing, guessing, and brute forcing to obtain a valid session ID, which helps in acquiring control over a valid user’s session while it is in progress.

Slide 39: An attacker implements various techniques such as stealing, guessing, and brute forcing to obtain a valid session ID, which helps in acquiring control over a valid user’s session while it is in progress.
Slide 40 / 60

Identifying an Active Session

Slide 40: Identifying an Active Session
Slide 41 / 60

Identifying an Active Session (Cont.)

Slide 41: Identifying an Active Session (Cont.)
Slide 42 / 60

Identifying an Active Session (Cont.)

Slide 42: Identifying an Active Session (Cont.)
Slide 43 / 60

Slide 43

Slide 43: Slide 43
Slide 44 / 60

Spoofing vs Hijacking

Slide 44: Spoofing vs Hijacking

Notes

  1. Spoofing pretends to be another user to START a session; hijacking takes over an EXISTING session.

Exam angle

PredictionQ1

Taking over a session that a user has already authenticated is:

Slide 45 / 60

Session Hijacking Tools

Slide 45: Session Hijacking Tools
Slide 46 / 60

Session Hijacking Tools (Cont.)

Slide 46: Session Hijacking Tools (Cont.)
Slide 47 / 60

Thwarting Session Hijacking Attacks

Slide 47: Thwarting Session Hijacking Attacks

Notes

  1. Thwart hijacking: encryption (HTTPS, IPsec), random session IDs, timeouts, re-authentication.

Slide 48 / 60

Slide 48

Slide 48: Slide 48
Slide 49 / 60

Denial of Service (DoS) Attacks

Slide 49: Denial of Service (DoS) Attacks

Notes

  1. DoS: make a resource unavailable. DDoS: from many sources (a botnet).

Slide 50 / 60

DoS Attack Techniques :

Slide 50: DoS Attack Techniques :
Slide 51 / 60

Bandwidth Attacks

Slide 51: Bandwidth Attacks
Slide 52 / 60

Service Request Floods

Slide 52: Service Request Floods
Slide 53 / 60

ICMP Flood Attack

Slide 53: ICMP Flood Attack

Notes

  1. ICMP flood / Smurf (spoofed broadcast pings). Ping of death: oversized packets.

Slide 54 / 60

§ ICMP flood — Comes in two variants: Smurf attack and ping

Slide 54: § ICMP flood — Comes in two variants: Smurf attack and ping
Slide 55 / 60

SYN Flooding

Slide 55: SYN Flooding

Notes

  1. SYN flood: many SYNs without the final ACK fill the half-open connection queue. Defense: SYN cookies.

Exam angle

PredictionQ1

A SYN flood exploits:

PredictionQ2

SYN cookies defend against:

Slide 56 / 60

Peer-to-Peer Attacks

Slide 56: Peer-to-Peer Attacks
Slide 57 / 60

Application-Level Flood Attacks

Slide 57: Application-Level Flood Attacks
Slide 58 / 60

What are Distributed Denial of Service Attacks?

Slide 58: What are Distributed Denial of Service Attacks?
Slide 59 / 60

Botnet

Slide 59: Botnet

Notes

  1. Botnet: compromised "zombie" machines controlled by a command-and-control (C&C) server.

Slide 60 / 60

Summary

Slide 60: Summary