CS09-06 Computer Science Watch
Penetration testing
In this lesson
Penetration testing for GCSE Computer Science, with worked examples and the mistakes examiners report. AQA 8525 and Edexcel 1CP2 GCSE. Cyber security 6 of 8. Full Cyber security playlist: https://www.youtube.com/playlist?list=PLJVDXoq6lOTg More at https://scholafly.com
By the end: Explain what penetration testing is - an authorised, simulated attack on a system to find its weaknesses so they can be fixed - and what it is used for, describe AQA's two types (malicious insider and external attack), and explain ethical hacking as Edexcel names it.
What it covers
- 0:00 Intro: penetration testing
- 0:42 Penetration testing
- 3:33 Two types of test
- 4:48 Ethical hacking
- 7:23 Mend the answer
Key words
About this video
Penetration testing | GCSE Computer Science | CS09-06
Penetration testing for GCSE Computer Science, with worked examples and the mistakes examiners report.
AQA 8525 and Edexcel 1CP2 GCSE. Cyber security 6 of 8.
Full Cyber security playlist: https://www.youtube.com/playlist?list=PLJVDXoq6lOTg
More at https://scholafly.com
Watch first: CS09-04 - https://youtu.be/OuuLqovwspo
Video code: CS09-06 (search "ScholaFly CS09-06")
#GCSEComputerScience #CyberSecurity #PenetrationTesting
For teachers
This GCSE Computer Science lesson teaches penetration testing. By the end, students should be able to explain what penetration testing is - an authorised, simulated attack on a system to find its weaknesses so they can be fixed - and what it is used for, describe AQA's two types (malicious insider and external attack), and explain ethical hacking as Edexcel names it. It works through four worked examples and the mistakes examiners report.
Exam board specification references:
AQA 8525
- 3.6.2
Edexcel 1CP2
- 4.2.1
Read the transcript
Someone breaks into a supermarket's computer network and opens files they should never see. Nobody is arrested, and nobody even tries. Why not? Not because they did no harm, or because nobody caught them. The supermarket asked them to do it, in writing, and paid them for it. Paying to be attacked sounds back to front, until you see what the supermarket gets out of it. What the supermarket gets is spelled out in the first act.
Penetration testing is the process of attempting to gain access to resources without knowledge of usernames, passwords and other normal means of access. Resources here means the systems, networks and data an organisation owns. Three things make it a penetration test. It is authorised by the organisation. It is a simulated attack, a copy of what a real attacker would try. And its purpose is to find weaknesses so they can be fixed. Afterwards, the weaknesses are reported to the organisation, which then patches or fixes them. The test itself fixes nothing. Permission and purpose are what separate it from hacking. An attacker has no permission and uses what they find; a tester has permission in writing and reports what they find. Three descriptions. A, checking that a new program gives the right output for every input. B, a pretend attack the owner has signed off, to find holes before criminals do. C, breaking into a rival company's network to see how good its security is. Which of A, B and C is penetration testing, and what is wrong with the other two? B. A is ordinary software testing: does the code work, not can it be broken into. C has no permission, so it is a crime, not a test. Black box testing checks a program's outputs without looking at its code, so it is about whether software works, not security. An external attack only counts as a penetration test when it is simulated, with permission. One examiner's report records: "This question was less successfully answered, with approximately thirty per cent of students gaining both marks. Incorrect responses included a description of black box testing instead of penetration testing or describing an external hack without making any reference to it being a simulation." The fix is one word in every answer: simulated. Then add who authorised it, and that what it finds gets fixed.
One course asks for two types of penetration test, and each copies a different kind of attacker. The first simulates a malicious insider. The tester has knowledge of the system, and possibly basic login details, like a member of staff who has turned against the company. The second simulates an external attack. The tester has no login details and no inside knowledge, like a stranger on the internet. A bank has two worries: a member of staff misusing their own login to reach customer records, and someone outside with no login getting in at all. Which type of penetration test answers each of the bank's two worries? The first worry needs a malicious-insider test, run with basic credentials and knowledge of the system. The second needs an external-attack test, run with nothing.
Another course calls the people who do this ethical hackers. An ethical hacker is hired by an organisation, with permission, to try to gain access to its systems and find weaknesses. On its own, the word hacking is too loose. Write what it means, trying to gain access to systems or networks, then say with whose permission, and why. That job can be asked about in several ways, and one of them wants three separate points. What three separate roles does an ethical hacker play in a company's network security? One: they are hired, with permission, to test the company's own systems. Two: they try to gain access, to find the weaknesses. Three: they report what they find, so it can be fixed. Another report notes: "Most candidates were able to identify at least one role or aspect of an ethical hacker's involvement in network security." One role is common ground, so the fix is to give three, each a separate idea: hired with permission, tries to gain access, reports what it finds. A student writes that ethical hackers find the criminals who attacked the company and hack them back. What is wrong with saying ethical hackers hack the attackers back? They never retaliate. Their job is testing their own employer's systems, with permission, and reporting what turns up. That same report names the mix-up: "A common misconception was that ethical hackers retaliate against malicious actions 'hacking them back' instead of testing for vulnerabilities." The habit: say testing, never hitting back. Vulnerabilities means weaknesses, and finding them is the job.
Here is a one-line answer with gaps in it: penetration testing is when a company gets hacked to test its security. What is missing from 'a company gets hacked to test its security'? Who does it, with whose permission, what they are looking for, and what happens next. Rewritten: an authorised, simulated attack on a system, run to find weaknesses so they can be fixed. A report on another paper lists the gaps: "Common mistakes included confusion with testing in general, omitting the point that it is an attack that is authorised by the organisation, or did not expand to give the purpose being to find vulnerabilities to fix to improve security." Check every answer against the three: authorised, simulated, and to find weaknesses so they can be fixed. That is also why penetration testing is never the fix for unpatched software: it finds the hole and leaves it open.
Fresh cases now, for the three checks, the two types and the role. A school asks a firm to get into its network with no passwords given. Which type of test? An external-attack test. The tester starts with no credentials and no inside knowledge. Now the result: the tester finds an old, unpatched server. Is the school safer yet? Not yet. The weakness has been found and reported, and the school is safer once it installs the patch. Try a weak answer: 'an attack to find weaknesses'. Which two words are missing? Authorised and simulated. The weak answer has the purpose but neither of those. One more, back to the paid break-in from the start: why is nobody arrested? The supermarket authorised it, in writing. Permission is what separates a penetration test from a crime.
Each finished video in the chapter has its mark, this one included. If you would back yourself on penetration testing, a thumbs up means you can pass over it next time. If it is still fuzzy, save it to watch again later. A couple of questions in, the three checks start to come without thinking.
Next in the chapter: Protecting systems, networks and data. Hopefully that's next in your feed, but if not, search for ScholaFly C S oh nine, oh seven.
Every other video is on scholafly.com too, easy to search by video code or by keyword. Whatever you're revising, go there and have a look, or, watch the next video.
Related terms
For: AQA GCSE 8525, Edexcel GCSE 1CP2
On the specification
For teachers
This GCSE Computer Science lesson teaches penetration testing. By the end, students should be able to explain what penetration testing is - an authorised, simulated attack on a system to find its weaknesses so they can be fixed - and what it is used for, describe AQA's two types (malicious insider and external attack), and explain ethical hacking as Edexcel names it. It works through four worked examples and the mistakes examiners report.