AdvertisementYour brand could be hereYour brand hereOn every Darslab page · students, parents and teachersinfo@darslab.comAsk for pricesPricesinfo@darslab.com
☰ Year plan · Computing

Keeping sent data safe

Week 22 · Unit 9: Keeping data safe · 3 lessons
2

Three sneaky threats

Computing 6: Unit 9, pp. 124–133
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.

ThreatWhat the attacker doesPicture from the post
packet sniffingcopies packets as they passcopying postcards in the sorting office
replay attacksends a recorded message againphotocopying a signed pass and using it again
man in the middlesits between sender and receivera messenger who reads and changes your notes
Worked examples
internetrouterlaptopsniffer
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.
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.
userattackershop server
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.
ThreatDescription
(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
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?
3
Why is it hard for a user to notice packet sniffing?
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.