GCSE · Computer Science · Edexcel · Spec 1CP2
Penetration testing
Imagine being paid to break into a company's computer system — by the company itself. That's a real job. Here's how it works, and why it isn't a crime.
Computer Science · Cyber security
White, grey or black box?
Read each tester's brief. How much has the tester been told about the system? Commit, then read why.
Everything, some of it, or nothing?
Still to sort
White box (0)
The tester has full knowledge of the system.
Where the line is: If anything important is held back, it's no longer white box — it's grey.
Grey box (0)
The tester has some knowledge, but not all.
Where the line is: Any real inside knowledge makes it grey; it's only black box when the tester knows nothing about the system.
Black box (0)
The tester has no knowledge of the system.
Where the line is: Knowing which organisation to target isn't knowledge of its system — that's still black box.
Before a penetration test, the organisation decides how much to tell the tester — and that choice decides whose attack the test imitates. Sort each brief by what the tester knows, then switch the rule and sort them again by who they're pretending to be.
Predict, then check
This is a simulated baiting test — one kind of social-engineering attack.
A tester leaves a tempting USB stick in a company's reception. Several members of staff pick it up and plug it into their work computers. Before you peek — what should the company conclude?
WHAT YOU'VE LEARNED
A quick recap of today's lesson.
A penetration test is a permitted, controlled attack — and the whole point is the fixes it leads to.
What you need to know
- Penetration testing is a controlled, simulated cyber attack that tests the security of a system, network or application.
- The point? Find the vulnerabilities, so they get fixed before real attackers exploit them.
- It's done by penetration testers — also called ethical hackers — who are authorised to break in.
- They use the same tools and methods as malicious hackers. What's different is permission: the owner knows it's happening.
- Permission comes before the attack starts. Without it, the test is illegal and unethical.
Have a goYour mate says: "I'll get into the school Wi-Fi tonight and tell the head about every hole tomorrow. That makes me an ethical hacker, right?" Right or wrong?
Wrong — nobody gave permission before the attack.
Helpful reporting afterwards doesn't count: permission has to come first, or it's illegal and unethical, not a penetration test.
- White box: the tester knows everything, like staff, so it tests from a malicious insider's view.
- Black box: the tester knows nothing, so it shows how secure the system looks to an external hacker.
Have a goA tester is handed every password, every network diagram and the app's code. Whose attack are they pretending to be?
A malicious insider — it's a white box test.
Knowing everything, like staff do, is the insider's position; an external hacker would start with nothing.
- Grey box sits between: some knowledge, not all — a balanced view, outside attacker plus inside knowledge.
- Every test runs in four stages: planning, discovery, attack, reporting.
Have a goA tester is just about to try breaking in. Which two stages should already be done?
Planning and discovery.
The attack is the third stage, so planning (including permission) and discovery have to come before it — reporting is the only stage still to come.
- Simulated attacks can be physical, software or social engineering — testers check people and buildings, not just programs.
The big picture
Penetration testing is a controlled, simulated cyber attack on a computer system, network or application, used to test how secure it is. The point is to find the weaknesses (vulnerabilities) so they can be fixed before real attackers exploit them. Ethical hackers do it with the same tools and methods as criminals, but only with the owner's permission, obtained before the test begins. How much the tester is told makes it a white, grey or black box test, and every test runs through planning, discovery, attack and reporting.
Key points
Worked example
Problem
A bank wants to find out how well its online banking would hold up against a hacker on the internet who knows nothing about its system. Which type of penetration test should it choose? Explain your choice.
⚠ Watch out
Swapping the viewpoints. It's tempting to think 'white = blank page, knows nothing' — but a white box tester knows everything, so the test imitates a malicious insider. The outside hacker who starts with nothing is black box.
Memory hook
Think of the box as how much light gets in. A white box is see-through: the tester sees everything inside, like a member of staff. A black box is sealed shut: they see nothing, like a hacker on the outside. A grey box lets a bit of light through.
Check yourself
Why is it the reporting stage, not the attack itself, that actually makes an organisation's system safer?
Flashcards
(15)What is penetration testing?
Why do organisations bother with penetration testing?
Who carries out penetration tests, and what makes them different from criminal hackers?
When must permission for a penetration test be obtained?
White box: how much does the tester know, and whose attack does it imitate?
Black box: how much does the tester know, and what does it show?
What does a grey box test combine?
Why test a system from more than one perspective?
The four stages of a penetration test, in order?
What gets decided in the planning stage?
What's the tester's job in the discovery stage?
In the attack stage, what must the tester take care NOT to do?
What goes into a penetration test report?
Three families of simulated attack — with an example of each?
Which four areas might a penetration tester check?
Tap any card to flip it, or use Study as deck to go through them one at a time. In the full lesson these run as a spaced-repetition deck — you rate each card Hard, Good or Easy and the tricky ones keep coming back until they stick.
Learning with Lightbulb is opening soon
You can use this lesson now. Join the waitlist and we'll let you know when the full Lightbulb experience is ready.
Keep me postedMore Edexcel GCSE Computer Science topics
How this lesson was checked. This Edexcel GCSE Computer Science (specification 1CP2)lesson was published through Lightbulb Learning's human-designed editorial process — the educational standards, accuracy rules and publication checks it must pass were authored and approved by Philip Halpin. It passed subject-specific assessment, automated educational checks and technical publication verification before going live (publication checks completed 24 October 2026). Published pages are monitored, human spot-checking is ongoing across the lesson library, and anything found wrong is corrected or withdrawn. How our lessons are made and checked. Spotted a mistake? Email hello@lightbulblearning.co and we'll review it.