Packet Pirates Slides Packet Pirates
Unpacking the OSI Model
Lesson 1: Network Traffic Security
The Network Parcel
Imagine sending a gift across the world. You don't just throw a toy in the mail.
You wrap it (Encryption/Presentation)
You put it in a box (Session/Transport)
You write an address (Network)
Encapsulation in Action
The OSI Standard
The Open Systems Interconnection model is a conceptual framework used to understand how data moves through a network.
7. Application
6. Presentation
5. Session
4. Transport
3. Network
2. Data Link
1. Physical
Mnemonic: "All People Seem To Need Data Processing"
Anatomy of a Packet
HEADER Control Info
Payload The Actual Data
TRAILER Error Checking
Header
Contains Source IP, Destination IP, Protocol type, and sequencing numbers.
Payload
The "meat" of the message—could be a piece of an email, an image file, or a web request.
Trailer
Often includes a Cyclic Redundancy Check (CRC) to ensure data wasn't corrupted in flight.
Encapsulation Flow
App Layer
DATA
Transport
L4 HDR
DATA
"Segment"
Network
L3 HDR
L4 HDR
DATA
"Packet"
If packets travel through hundreds of routers, who can read them?
"Trust is a luxury we can't afford on the open web."
Layer Lab Worksheet Layer Lab
OSI Model & Packet Dissection
Agent Name:
Date:
1
The OSI Tower
The OSI Model describes how data moves. Fill in the missing layers and identify which layer handles the specific hardware/software function described.
# Layer Name 7 Application 6 _________________________ 5 Session 4 _________________________ 3 Network 2 _________________________ 1 Physical
Identify the Layer Number (1-7):
IP Addressing & Routing: _____
Ethernet Cables & Hubs: _____
Encryption & Data Formatting: _____
MAC Addressing & Switches: _____
2
Packet Dissection
Below is a simplified representation of a network packet. Label the three main sections (Header, Payload, Trailer) and answer the questions below.
SRC: 192.168.1.15
DST: 172.217.1.1
PORT: 443
"GET /login.php HTTP/1.1\r\nHost: accounts.bank.com..."
CRC: 0xFD29A1
A: ___________________
B: ___________________
C: ___________________
1. In which section is the actual user data (like the website request) stored?
2. If an attacker intercepts this packet, which section provides them with the "To" and "From" information?
3
Scenario: The Sniffer
🚨 Alert: Security Breach
You are using a public Wi-Fi network at a coffee shop. You send an unencrypted HTTP packet. Explain what a person running a "packet sniffer" on the same network could see. Be specific about the layers and packet sections.
Encapsulation Expedition Teacher Guide Encapsulation Expedition
Teacher Facilitation Guide | Lesson 1
CYBERSECURITY UNIT
Learning Objectives
Define the 7 layers of the OSI model.
Explain the process of data encapsulation and de-encapsulation.
Identify source/destination info in a packet header.
Materials Needed
• "Pass the Parcel" kit (see below)
• Packet Pirates Slides
• Layer Lab Worksheet
The Hook: Pass the Parcel
Setup:
Prepare a small "message" (a piece of paper that says "HELLO"). Wrap it in 7 different layers of envelopes or boxes. On each layer, write a specific piece of "protocol" information:
Layer 7: "This is a Web Message"
Layer 6: "Language: English"
Layer 5: "Session ID: 12345"
Layer 4: "Port 80 (Open)"
Layer 3: "To: 192.168.1.1"
Layer 2: "To: Router-MAC-AA"
Layer 1: "Medium: Copper Wire"
Procedure:
Hand the parcel to a student at the back of the room. This is the "Destination."
They must unwrap one layer at a time, reading the "Header" aloud.
Explain that each layer provides specific instructions for the computer to understand how to handle the data inside.
Pacing & Instruction
10 min
Hook: Pass the Parcel
See activity above. Focus on how the "data" is hidden until all headers are removed.
20 min
Direct Instruction: Packet Anatomy
Use Packet Pirates Slides. Emphasize Header vs. Payload. Introduce the mnemonic for OSI: All People Seem To Need Data Processing.
20 min
Independent Practice: Layer Lab
Students complete the worksheet. Walk around to assist with the "Packet Dissection" section.
Debrief Questions
If a router only works at Layer 3 (Network), can it see the content of your email (Layer 7)? Why or why not?
Why do we need a "Trailer" at the end of a packet? What happens if it doesn't match the data?
Traffic Tracer Slides Traffic Tracer
Packet Sniffing & Eavesdropping
Lesson 2: Analyzing Network Traffic
The Digital Wiretap
Packet Sniffing is the act of capturing and inspecting data as it travels across a network.
"In a normal network, computers ignore traffic not addressed to them. Sniffers listen to everything."
Popular Tools
W
Wireshark
The industry standard GUI sniffer.
$
Tcpdump
Command-line traffic analyzer.
The Transparency Problem
Cleartext (HTTP/Telnet)
[ Captured Data ]
POST /login HTTP/1.1
User: admin
Pass: P@ssw0rd123!
!! CREDENTIALS EXPOSED !!
Encrypted (HTTPS/SSH)
[ Captured Data ]
f7 8a 32 bc 11 0a 4e d3 9f 21 a0 b2 c4 e1 f2 d3 4a b6 c8 e9 f0 d1 b2 a3 c4 e5 f6
0a 1b 2c 3d 4e 5f 60 71 82 93 a4 b5 c6 d7 e8 f9 a0 b1 c2 d3 e4 f5
✔ DATA SECURE (CIPHERTEXT)
Who Sniffs and Why?
Troubleshooting
Admins use it to find out why a server isn't responding or why traffic is slow.
Reconnaissance
Attackers sniff traffic to find passwords, sensitive files, or network mapping info.
Intrusion Detection
Security systems sniff for "signatures" of malware or unauthorized access attempts.
Hall of Shame
These legacy protocols transmit data in cleartext. Avoid them!
HTTP HTTPS
FTP SFTP
TELNET SSH
SMTP SMTPS
If you can see the data, can you own the system?
"Information exposure is the first step to total compromise."
Cleartext Capture Worksheet Cleartext Capture
Network Traffic Analysis Report
Analysis Date:
Security Clearance:
ANALYSIS MODE: ACTIVE | DETECTING UNSECURED PROTOCOLS...
I. Packet Analysis: TELNET Capture
A packet sniffer has captured the following raw data from a user logging into a remote server using the TELNET protocol.
PCAP DATA STREAM #402
Packet 1 (TCP): 192.168.1.10 -> 10.0.0.5 [SYN]
Packet 2 (TCP): 10.0.0.5 -> 192.168.1.10 [SYN, ACK]
Packet 3 (TELNET): 10.0.0.5 -> 192.168.1.10 "Login: "
Packet 4 (TELNET): 192.168.1.10 -> 10.0.0.5 "s-smith"
Packet 5 (TELNET): 10.0.0.5 -> 192.168.1.10 "Password: "
Packet 6 (TELNET): 192.168.1.10 -> 10.0.0.5 "B@sketb@ll88!"
Packet 7 (TELNET): 10.0.0.5 -> 192.168.1.10 "Login Successful. Welcome to Core-Server."
1. Identify the captured Username:
2. Identify the captured Password:
3. Why was the sniffer able to read this password? What is missing from the protocol?
II. Encryption Shield
Protocol Traffic Type Secured Alternative HTTP Web Browsing ____________________ FTP File Transfer ____________________ SMTP Email Transmission ____________________
III. Executive Summary
Explain why a "Network Administrator" might use a packet sniffer for legitimate work, and then explain why a "Black Hat Hacker" would use the same tool for malicious purposes.
Admin Use Case:
Hacker Use Case:
Sniffer Setup Teacher Guide Sniffer Setup Guide
Teacher Demo Instructions | Lesson 2
CYBERSECURITY UNIT
Learning Objectives
Identify cleartext traffic in a network capture.
Distinguish between HTTP (unsecured) and HTTPS (secured) traffic patterns.
Explain the ethical implications of network sniffing.
Materials Needed
• Wireshark (installed on demo PC)
• PCAP sample file (or live capture)
• Traffic Tracer Slides
• Cleartext Capture Worksheet
The Hook: Eavesdropping Demo
Option A (Safe/Simulated):
Project a pre-recorded video or screenshot of a Wireshark capture showing a "login" sequence over HTTP. Highlight the "HTML Form Entry" field where the password is visible in plain text.
Option B (Live - Advanced):
Open Wireshark and start capturing on the local interface.
Open a browser and navigate to a known HTTP-only site (e.g., http://neverssl.com ).
Filter Wireshark by http.
Show students that the URL and page content are fully visible.
Contrast this by navigating to google.com and showing the scrambled HTTPS traffic.
Pacing & Instruction
10 min
Hook: The Hidden Eyes
Perform the demo described above. Ask students: "If I can see this from my laptop, who else could be watching your data right now?"
20 min
Direct Instruction: Traffic Tracer
Use the slides to explain Wireshark basics, common unencrypted protocols (Telnet, FTP, HTTP), and the transition to encrypted standards.
20 min
Investigation: Cleartext Capture
Students analyze the simulated PCAP on their worksheets. Focus on the ethical discussion in Part III.
Ethics & Compliance
Crucial: Remind students that packet sniffing on networks you do not own or have explicit permission to monitor is illegal in most jurisdictions and a violation of school acceptable use policies.
Handshake Havoc Slides Handshake Havoc
TCP Reliability & SYN Flood Attacks
Lesson 3: Connection Logic & Exploits
Why Handshake?
The internet is chaotic. Packets get lost, delayed, or arrive out of order.
TCP (Transmission Control Protocol) is connection-oriented. It ensures data arrives perfectly.
Acknowledgements for every packet.
Reorders data that arrives jumbled.
Retransmits lost data automatically.
The 3-Way Handshake
CLIENT
1. SYN
2. SYN/ACK
3. ACK
SERVER
SYN Flood Exploit
What happens if the client sends a SYN but NEVER sends the final ACK?
Server waits for the ACK, keeping a "half-open" connection.
Server resources (memory) are tied up for each pending ACK.
Denial of Service
Thousands of fake SYNs fill the server's memory, so legitimate users get "Request Timed Out."
The Human Handshake
1
"Hello, I'd like to talk."
SYN
2
"Hello! I'm listening. Are you ready?"
SYN / ACK
3
"Yes, I'm ready. Let's go!"
ACK
The SYN Flood is like 50 people shouting "Hello!" and then walking away when you answer.
How do you protect a system from someone who never finishes what they start?
"Efficiency is a vulnerability when exploited by volume."
Flood Warning Worksheet Flood Warning
TCP Handshake & DoS Analysis
Network Node:
Timestamp:
1
Diagramming Trust
Complete the flow diagram below for a successful 3-way handshake between a Client and a Server. Label the message types (SYN, SYN/ACK, ACK).
CLIENT
Message A: _________________
Message B: _________________
Message C: _________________
SERVER
2
Attack Diagnostics
// Server Log: Connection Table
14:02:01 | IP: 45.12.8.2 | Type: SYN | Status: HALF_OPEN | Timer: 29s
14:02:01 | IP: 45.12.8.2 | Type: SYN | Status: HALF_OPEN | Timer: 29s
14:02:02 | IP: 45.12.8.2 | Type: SYN | Status: HALF_OPEN | Timer: 30s
14:02:02 | IP: 45.12.8.2 | Type: SYN | Status: HALF_OPEN | Timer: 30s
14:02:03 | IP: 45.12.8.2 | Type: SYN | Status: HALF_OPEN | Timer: 31s
!! ALERT: CONNECTION TABLE FULL. DROPPING NEW REQUESTS !!
1. In the log above, why is the status "HALF_OPEN"? What is the server still waiting for?
2. This attack is called a "SYN Flood." How does it prevent legitimate users from accessing the site?
3
Defense Strategy
Concept: SYN Cookies
To defend against this, some servers use "SYN Cookies." Instead of saving the connection in memory immediately, the server sends back a special sequence number. The connection is only saved once the final ACK arrives.
Do you think this is an effective defense? Why or why not?
SYN Sequence Teacher Guide SYN Sequence Guide
Teacher Demo Instructions | Lesson 3
CYBERSECURITY UNIT
Learning Objectives
Demonstrate the steps of a TCP 3-way handshake.
Explain the mechanics of a Denial of Service (DoS) attack.
Identify the limitations of server memory in handling connections.
Materials Needed
• Handshake Havoc Slides
• Flood Warning Worksheet
• 12+ volunteers for roleplay
The Hook: The "Hello?" Storm
The Scenario:
This roleplay visualizes how a server becomes overwhelmed by unfinished requests.
1. The Setup
Designate one student as the SERVER. Designate 2 students as LEGIT USERS. Designate 10 students as BOTNET.
2. The Rule
The Server must acknowledge EVERY person who says "Hello" to them by saying "Hi, I'm here."
The Action:
Start with a Legit User. They say "Hello," Server says "Hi," User says "Ready," Server says "Okay." Simple.
Now, tell the Botnet to start. They must walk up to the server, say "Hello," wait for the Server's "Hi," and then WALK AWAY without saying anything else.
Tell the Legit Users to try and get through while the Botnet is constantly repeating their "Hello/Walk Away" cycle.
Pacing & Instruction
15 min
Hook: The Hello Storm
Conduct the roleplay. Focus on the Server student's frustration and inability to help the "Legit" students.
15 min
Direct Instruction: Handshake Havoc
Use slides to translate the roleplay into technical terms: SYN, SYN/ACK, ACK. Explain the "Half-Open" state.
20 min
Worksheet: Flood Warning
Students diagram the process and analyze the logs. Review the "SYN Cookies" concept as a class debrief.
Debrief Questions
Why does the server keep a timer for half-open connections? What would happen if it didn't have a timeout?
Can a single laptop take down a massive server? Why do attackers use "Botnets" (thousands of computers) for this?
Ghost in the Network Slides Ghost in the Network
Man-in-the-Middle & ARP Spoofing
Lesson 4: Interception & Trust Exploitation
The Invisible Proxy
A Man-in-the-Middle (MITM) attack occurs when an attacker secretly relays and possibly alters the communication between two parties who believe they are talking directly to each other.
"It's like someone intercepting your mail, reading it, changing the words, and putting it back in a new envelope."
Alice
Bank
The Ghost
Understanding ARP
ARP (Address Resolution Protocol) translates an IP address (software) to a MAC address (hardware).
ARP Request
"Who has IP 192.168.1.1? Tell 192.168.1.50!"
(Broadcast to everyone on the network)
ARP Reply
"I am 192.168.1.1. My MAC is AA:BB:CC:11:22:33."
(Direct message back to the requester)
ARP Spoofing (Poisoning)
The attacker sends fake ARP replies to both the victim and the router.
To the Victim:
"I am the Router. Send your packets to my MAC address."
To the Router:
"I am the Victim. Send their packets to my MAC address."
CACHE POISONED
The Aftermath
Data Theft
Passwords, cookies, and credit cards are visible in cleartext.
Injection
Attackers can inject malicious code into the websites you visit.
Session Hijack
Attackers steal your "session token" and log in as you without a password.
How do we stop this? HTTPS and Static ARP tables!
How do you verify identity when the source itself is lying?
"On an open network, identity is just an unverified claim."
ARP Ambush Worksheet ARP Ambush
Address Resolution Exploitation
Operator ID:
Node Status:
1
The Mapping Logic
Computers use ARP (Address Resolution Protocol) to find the hardware (MAC) address that belongs to an IP address. Use the table below to answer the questions.
Device IP Address MAC Address Victim PC 192.168.1.5 AA:11:BB:22 Router 192.168.1.1 CC:33:DD:44 Attacker 192.168.1.10 FF:99:EE:00
Victim's ARP Cache (Normal)
192.168.1.1 CC:33:DD:44
The victim knows exactly where the router is.
2
Interception Mechanics
The Attacker sends a FAKE ARP reply to the Victim:
"I am 192.168.1.1 (Router). My MAC is FF:99:EE:00"
The Victim now updates their ARP cache with this fake info.
1. Update the Victim's ARP Cache below with the poisoned entry:
192.168.1.1
_________________
2. When the Victim tries to visit a website (google.com), where does their data go first?
3. To perform a full "Man-in-the-Middle" attack, the attacker must also spoof the Router. What fake message would they send to the Router?
"I am 192.168.1.5..."
3
Strategic Defense
Detection
Run the command arp -a in your terminal. If you see two different IP addresses sharing the same MAC address, you are likely being spoofed!
Prevention
Using HTTPS ensures that even if an attacker intercepts your data, it is encrypted and they cannot read your passwords or cookies.
Identity Intercept Teacher Guide Identity Intercept
Teacher Demo Instructions | Lesson 4
CYBERSECURITY UNIT
Learning Objectives
Identify the "Middleman" in a communications intercept.
Explain how ARP spoofing manipulates network trust.
Compare the effectiveness of encryption vs. network isolation.
Materials Needed
• Index cards / small paper notes
• Ghost in the Network Slides
• ARP Ambush Worksheet
The Hook: The Rogue Postman
Objective:
Demonstrate how an interceptor can alter data without the sender or receiver knowing.
Procedure:
Pick two students on opposite sides of the room (Alice and Bob).
Tell Alice to write a note to Bob asking for a small favor (e.g., "Can I borrow a pencil?").
You (the Teacher) act as the Network Switch. Tell Alice to hand the note to you to deliver.
THE INTERCEPT: Before handing it to Bob, ostentatiously (or secretly) pull out a pen and cross out "pencil" and write "twenty dollars."
Deliver the note to Bob. Bob reads it and reacts (usually with confusion).
Ask Bob to write a reply ("No way!"). Intercept the reply and change it to "Sure, here it is!" before giving it back to Alice.
Debrief: Ask the class: "Did Alice send that request? Did Bob say yes? Why are they both frustrated?"
Instructional Strategy
15 min
Direct Instruction: ARP Logic
Explain that ARP is like asking "Who has this name?" and anyone can answer. There is no ID check in basic ARP.
20 min
Worksheet: ARP Ambush
Students work through the mapping. Focus on the idea that the attacker must spoof BOTH sides to be a true MITM.
10 min
Discussion: The HTTPS Shield
Ask: "If Alice and Bob used a code (Encryption) that only they knew, would the rogue postman be able to change the note?"
Key Takeaway
"Cybersecurity is often about moving from 'Implicit Trust' (trusting anyone who speaks) to 'Verified Trust' (using certificates and encryption)."
Border Control Slides Border Control
Firewalls & VPN Tunnels
Lesson 5: Defensive Infrastructure
The Network Gatekeeper
A Firewall is a security system that monitors and controls incoming and outgoing network traffic based on predetermined rules.
The Logic:
ALLOW good traffic
DENY bad traffic
Rule 1:
ALLOW 192.168.1.0/24 to ANY on PORT 80
Rule 2:
DENY 45.32.11.2 to ANY on ANY PORT
Default Rule: Implicit Deny All
The VPN Tunnel
A Virtual Private Network (VPN) creates a secure, encrypted "tunnel" across a public network (the internet).
Core Benefits:
Confidentiality: Eavesdroppers only see encrypted gibberish.
IP Masking: Your real location/IP is hidden from the destination.
User
ENCRYPTED VPN TUNNEL
Office
The Public Internet
(Attackers Can't See Inside)
Order Matters!
Firewalls read rules from TOP to BOTTOM.
1. DENY ALL traffic from "Suspicious-Net"
2. ALLOW traffic from "CEO-Laptop" (part of Suspicious-Net)
Result: The CEO is blocked!
Moral: Always put your specific "Allow" rules above your general "Deny" rules.
Defense in Depth
HTTPS End-to-End Encryption
VPN Tunnel Security
FIREWALL Traffic Filtering
MFA Identity Verification
"Security is not a single wall; it's a fortress of layers."
In an open world, how do we build walls without building prisons?
"Security is the enabler of freedom on the digital frontier."
Firewall Fortress Worksheet Firewall Fortress
Security Configuration Workshop
Admin Name:
Network Zone:
Scenario: Secure the School Server
You are the network admin for your school. A hacker is trying to brute-force the student database server. You need to write firewall rules to stop the attack while still allowing students and teachers to access their resources.
1
Write the Rule Set
Technical Requirements:
The Attacker IP is 103.55.21.4
The Web Server is on PORT 80 (HTTP)
The Admin Remote Login is on PORT 22 (SSH)
Your Admin IP is 192.168.10.50
Priority Action (Allow/Deny) Source IP Port/Protocol 1 2 3 4 DENY ALL ANY ANY
2
VPN Shield Logic
1. If a user is on a public coffee shop Wi-Fi and uses a VPN, what would an attacker running a packet sniffer see?
2. Why is "End-to-End Encryption" (like HTTPS) still necessary even if you are using a VPN?
Security Philosophy
In the "Defense in Depth" model, we assume that one layer of security (like a firewall) WILL eventually fail. List two other layers we've talked about in this unit that could protect data if a firewall is breached.
Layer A: ________________________
Layer B: ________________________
Security Shield Teacher Guide Security Shield Guide
Teacher Demo Instructions | Lesson 5
CYBERSECURITY UNIT
Learning Objectives
Apply firewall rule logic to filter specific IP/Port traffic.
Explain the function of VPN tunnels in public networks.
Define "Defense in Depth" and its role in infrastructure security.
Materials Needed
• Border Control Slides
• Firewall Fortress Worksheet
• Optional: Deck of playing cards
The Hook: Network Border Guards
The Scenario:
This activity gamifies the concept of firewall rules and processing order.
Rules of the Border:
1. Red Cards are MALICIOUS.
2. Face Cards (J, Q, K) are ADMINS.
3. All other cards are GUESTS.
The Action:
The teacher (or a student) is the FIREWALL. You have three baskets: ACCEPT, DROP, and LOG.
Set a Rule: "DROP all RED cards."
Flick through a deck of cards. Students must shout "DROP" or "ACCEPT" for each one.
The Twist: Add a second rule: "ACCEPT all RED FACE cards."
Crucial Discussion: If the "Drop all Red" rule is #1, can the Red Face cards get through? (No). Explain that rules must go from Specific to General.
Pacing & Instruction
10 min
Hook: Border Guards
Play the card game. Emphasize the logic of "Allow" vs. "Deny" and the importance of rule order.
20 min
Direct Instruction: Border Control
Use slides to cover Firewalls and VPNs. Draw the "Tunnel" on the board to visualize how VPNs wrap packets in encryption.
20 min
Project: Firewall Fortress
Students configure the rule set for the school server. Review as a class, ensuring Rule #1 is the Admin IP and Rule #4 is the Deny All.
Final Unit Debrief
Ask students to summarize the journey:
1. We learned the layers (OSI)
2. We saw the eavesdroppers (Sniffing)
3. We saw the floods (DoS)
4. We saw the ghosts (MITM)
5. WE BUILT THE FORTRESS (Firewalls/VPNs)