GCSE · Computer Science · Edexcel · Spec 1CP2

Ethical hacking

Two people do exactly the same thing to the same computer system. One is doing their job. The other is committing a crime. So what's the difference?

Computer Science · Hacker types

Did the owner say yes?

Someone is hacking into a system. Ask the questions in order and follow the route they take.

Permission → Intent

  • Ethical hackers use the same tools and methods as malicious hackers, so the tools can't tell you which is which. The questions can.

3 kinds of hacker.

On Someone breaks into a computer system. 2 branches to choose from.

Pick a branch at each question and see what kind of hacker you land on.

Watch out: Meaning no harm doesn't make it legal. A grey hat is still breaking the law.

Computer Science · Two sets of colours

Hats or boxes?

Penetration tests can be done from different perspectives, and the types are named with box colours: white, grey and black.

Which idea about the colours is closest to what you think?
How sure are you?

Exam line: Hats tell you about permission and intent. Boxes tell you how much the tester knows.

Computer Science · Penetration test stages

Put the test in order

Which stage of a penetration test happens first, down to last?

1 · First stage4 · Last stage
  1. Discovery

    Collect information about the system's structure, software and weaknesses.

  2. Reporting

    Write up the vulnerabilities found and how they were exploited, with fixes and recommendations.

  3. Planning

    Define the objectives, scope, rules and type of test, and get permission.

  4. Attack

    Try to gain access to or extract data from the target by simulating real-world threats, taking care not to damage the system.

Exam line: Planning, discovery, attack, reporting: a test runs through them in that order.

Computer Science · Simulated attacks

Which kind of simulated attack?

Pick an attack, then pick its category. Each category shows the area that tester is checking.

Still to sort

Physical (0)

Area checked: physical security, such as locks, CCTV, badges and unattended equipment.

Software-based (0)

Area checked: software security, such as whether software is patched and antivirus software and firewalls are used.

Social engineering (0)

Area checked: staff training against social engineering.

6 of 6 still to sort.

Testers also check how data is stored. These attacks are named by category only.

Exam line: The results show whether security controls or staff training need improving.

Computer Science · Your turn

Write it in your own words

A company hires someone to try to break into its network. Explain why the company might do this, and what makes the person an ethical hacker rather than an attacker. [4 marks]

0 words · your answer stays on this page and is not sent anywhere.

WHAT YOU'VE LEARNED

A quick recap of today's lesson.

Same skills, same tools. One question decides whether it's a job or a crime: did the owner say yes?

What you need to know

  • An ethical hacker is a cybersecurity professional who is authorised to break into systems to find and fix vulnerabilities.
  • They use the same tools and methods as malicious hackers, but with permission, so the owner knows about the test.
  • Testing without permission is illegal and unethical. Permission keeps the tester on the right side of the law.
  • Have a goYour mate says: "If ethical hackers use the same tools as criminals, there's no difference." In one word, what is the difference?

    Permission.

    The tools and methods can be identical. What makes the tester legal is that the owner agreed to the test.

  • White hat hackers are ethical hackers with permission to protect systems and data, and are often employed by companies and governments.
  • Grey hat hackers break in without permission but without intending harm. That is still illegal.
  • Have a goSam says: "Grey hats mean no harm, so what they do is basically legal." Is Sam right?

    No. A grey hat breaks in without permission, which is still illegal.

    Meaning no harm doesn't replace permission. Legality depends on whether the owner said yes.

  • Black hat hackers illegally break in to steal data, spread malware or cause damage for personal gain.
  • Penetration testing is ethical hacking as a simulated cyberattack, used to find and fix weaknesses before real attackers can exploit them.
  • Box tests are about knowledge: white box is full knowledge (a malicious insider), grey box some, black box none (an external hacker).
  • Have a goA tester is given full details of a system and tests it as a malicious insider would. Which box test is that?

    White box testing.

    The box colour names how much the tester knows. Full knowledge is white box, none is black box.

  • A penetration test runs in four stages: planning, discovery, attack, then reporting.
  • Testers may check physical security, staff training, data storage and software, using physical, software-based or social engineering attacks.

The big picture

Ethical hackers and criminals can use the same tools and methods. The difference is permission: ethical hackers are authorised, so a penetration test is a simulated cyberattack that helps an organisation fix weaknesses before real attackers exploit them. Hats describe permission and intent, boxes describe how much the tester knows, and a test runs through planning, discovery, attack and reporting.

Key points

1Permission is what separates an ethical hacker from a criminal: the tools and methods can be the same.
2White, grey and black hats are about permission and intent. White, grey and black boxes are about how much the tester knows.
3A penetration test is a simulated cyberattack that helps an organisation fix weaknesses before attackers exploit them.
4The four stages run in order: planning, discovery, attack, reporting.

Worked example

Problem

Maya is hired by a company. The owner has agreed to the test. She is told nothing about how the company's systems work and tests them as an outsider would. Which kind of hacker is she, and which box test is she doing?

⚠ Watch out

Mixing the two sets of colours. A black box test isn't done by a black hat: the box is about knowledge, not permission. And meaning no harm never makes breaking in legal.

🧠

Memory hook

Hats ask "did the owner say yes?" Boxes ask "how much does the tester know?" Two sets of colours, two different questions.

✓

Check yourself

Cover the page. A tester has permission and full details of the system. Which hat, which box? Answer: white hat, white box. Permission picks the hat, knowledge picks the box.

Flashcards

(14)
What is an ethical hacker?
A cybersecurity professional who is authorised to break into systems to find and fix vulnerabilities.
Why must an ethical hacker get permission first?
Testing without permission is illegal and unethical. Permission keeps the tester on the right side of the law.
What do ethical and malicious hackers have in common?
They use the same tools and methods. The ethical hacker has permission, so the owner knows the test is happening.
What is penetration testing?
A form of ethical hacking: a simulated cyberattack by penetration testers to test the security of a system, network or application.
Why is penetration testing important?
It helps organisations identify and fix security weaknesses before attackers can exploit them.
White hat hacker
An ethical hacker with permission, protecting systems and data. Often employed by companies and governments.
Grey hat hacker
Breaks in without permission but without intending harm. Still illegal.
Black hat hacker
Illegally breaks in to steal data, spread malware or cause damage for personal gain.
Black box testing
The tester has no knowledge of the system and tests as an external hacker would.
How do white box and grey box testing differ?
White box: full knowledge, like a malicious insider. Grey box: some but not all knowledge.
Name the four stages of a penetration test in order.
Planning, discovery, attack, reporting.
What goes into a penetration test report?
The vulnerabilities found and how they were exploited, with suggestions for fixing them and recommendations to improve security.
Name the three categories of simulated attack.
Physical, software-based and social engineering.
Name four areas a penetration tester may check.
Physical security, staff training against social engineering, data storage and software security.

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 posted

More Edexcel GCSE Computer Science topics

See the full Edexcel Computer Science curriculum →

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 21 November 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.