Data interception and SQL injection – OCR GCSE Computer Science lesson (J277)
Pupils learn to describe data interception and SQL injection, explain how each leads to data theft, and describe how encryption and input checks reduce the risk.
Lesson 6 of 14 in unit 11.1 Cyber Security and Robust Programs, taught in Year 11, Autumn 1. It answers one big question: How is data stolen in transit or through an input box?
By the end, pupils can describe data interception and SQL injection, explain how each leads to data theft, and describe how encryption and input checks reduce the risk.
- The Build (the main task)
- Explain how an attacker could steal Kickstand's customer data by data interception and by SQL injection, and describe one way to prevent each.
- Support version
- Two flow diagrams (customer → network → server; input box → database) with gaps to label, and sentence starters for each prevention.
- Challenge
- Explain why encrypting Kickstand's Wi-Fi does not stop an SQL injection attack.
- Real-world link
- A customer orders over café Wi-Fi, and someone types code into Kickstand's order-tracking box.
- Key words
- Data interception, SQL injection and Theft, each with a definition, an icon and a common mix-up on the key vocabulary slide.
- Misconceptions it tackles
- “Encryption stops data being intercepted”; “SQL injection is a kind of virus”.
- OCR J277 specification
- 1.4.1 (threats to computer systems and networks: malware, social engineering (including phishing), brute-force attacks, denial of service attacks, data interception and theft, and SQL injection); 1.4.2 (identifying and preventing vulnerabilities: penetration testing, anti-malware software, firewalls, user access levels, passwords, encryption and physical security).
Every lesson follows the same Code & Commerce structure: a Bell Task recall starter, key vocabulary with definitions and icons, short teaching chunks with a check before pupils move on, The Build (one main task), challenge questions that get harder, and an exit question. Answers reveal one at a time on the slides, and everything is editable PowerPoint and Word.
Pupils can do it all on paper.
Also sold in the Cyber Security and Robust Programs unit bundle, which includes the medium term plan, and in the full-year and complete-course bundles.
What's included
- Slide deck (PowerPoint)
- Lesson plan (Word)
- Worksheet (Word)
- Support worksheet with scaffolds (Word)
- Single-teacher licence: use and adapt it with your own classes
More for GCSE Computer Science (OCR)
See allPupils learn to describe how viruses, worms, trojans, spyware and ransomware work and the harm each can do to a business like Kickstand.
Free sample lessonPupils learn to write and call a procedure and a function in Python, and explain the difference between them and why subprograms are reused.
Pupils learn to describe phishing and other social engineering, spot the signs in a fake message, and explain how staff training reduces the risk.
Written for the specifications named. Not endorsed by or affiliated with any exam board.