GoalDescribe packet sniffing, replay attacks and man-in-the-middle attacks in simple words.
New words
packet sniffing · secretly watching and copying packets as they pass through a networkreplay attack · recording data that was sent and sending it again later to trick the receiverman in the middle · an attacker who sits secretly between a sender and a receiver and can read or change the messageshacker · a person who gets into a computer system without permission
Explanation
There are three well-known threats to data on the move. In packet sniffing, a program secretly copies packets that pass by, like a person who copies postcards in a sorting office. The sender and the receiver do not notice, because the packets still arrive. In a replay attack, someone records a real message and sends it again later. The receiver thinks it is a new message from the real sender. In a man-in-the-middle attack, the attacker pretends to be the receiver for the sender and pretends to be the sender for the receiver. The attacker can read the messages and change them. These attacks are hard to do when the data is protected. Most people never meet them, and calm, simple habits are the best defence.
Threat
What the attacker does
Picture from the post
packet sniffing
copies packets as they pass
copying postcards in the sorting office
replay attack
sends a recorded message again
photocopying a signed pass and using it again
man in the middle
sits between sender and receiver
a messenger who reads and changes your notes
Worked examples
In packet sniffing, the attacker listens on the network. The packets reach the router and the internet as normal, so the user sees nothing different.
real pass sent→attacker copies it→attacker sends the copy→gate opens for a stranger
In a replay attack, the message is real but it is used at the wrong time. Here a pass to open the school gate is copied and used again by someone else.
In a man-in-the-middle attack the user thinks that the line goes straight to the shop. In fact all messages go through the attacker.
Class activity
Messenger game (no computer): three players sit in a line as Sender, Middle and Receiver. Use made-up notes, such as ‘Meet at the library at 4’. The Sender writes a note and the Middle passes it on. In round 1 the Middle secretly changes one word. Can the Receiver tell? In round 2 the Sender writes the number of words at the bottom of the note. Does that help to spot the change? What if the Middle changes a word but keeps the number of words the same? Real computers use much cleverer checks. Swap roles and play again.
Practice
1
Match each threat to its description. Threats: (a) packet sniffing, (b) replay attack, (c) man in the middle. Descriptions: (1) a recorded message is sent again, (2) the attacker sits between sender and receiver, (3) packets are secretly copied as they pass.
Threat
Description
(a) packet sniffing
(1) a recorded message is sent again
(b) replay attack
(2) the attacker sits between sender and receiver
(c) man in the middle
(3) packets are secretly copied as they pass
(a) goes with 3, (b) goes with 1, (c) goes with 2.
2
Dev sends a message to a game shop to buy a badge for 5 coins. An attacker copies the message and sends it again an hour later. Which threat is this and what could go wrong?
Dev: buy badge, 5 coins→attacker copies the message→attacker sends it again→shop takes 5 coins again
This is a replay attack. The shop may think that Dev wants a second badge and take another 5 coins.
3
Why is it hard for a user to notice packet sniffing?
The sniffer only copies the packets. They still arrive at the right place, so nothing looks different to the user.
4
A friend says ‘I read about hackers and now I am afraid to go online.’ Write two calm and helpful sentences for your friend.
For example: ‘Most websites protect your data, so these attacks are rare. Use a strong password, look for the padlock sign and ask an adult if you are unsure.’