What penetration testing is
An authorised, simulated attack on a system by an ethical (white-hat) hacker to find vulnerabilities before real attackers (black-hat) do, so the weaknesses can be fixed.
Understanding What penetration testing is in WA Computer Science ATAR Unit 2
What it does: The test results (findings) are used to fix the vulnerabilities, which is how a pen test improves security. Authorisation is what separates a white-hat pen test from a black-hat attack, so the test only runs when permission is given. A penetration test imitates a real attack, but it is permitted by the system owner and its aim is to find weaknesses so they can be fixed. Permission is the key difference. Testers may use the same tools and techniques as attackers, but they are authorised to do so. The purpose is to find vulnerabilities early, before a real attacker can exploit them.
Common mistakes: A penetration test must only run when the tester has authorisation. The condition should be authorised == True, otherwise the test starts only when permission is missing. A pen test must stay within the agreed scope. The loop should go through scope, not an undefined name such as everything.
Free printable worksheet with full answer key — or add this module to a class and your students practise it interactively.
This module's key terms are also in a printable crossword (Modules 125–266) and word search (Modules 28–266).
Take this worksheet further — free with Cloodit
Each concept is reinforced from every angle — learned, then applied, then tested.
Cloodit turns curriculum-aligned coding content into journeys students work through one biome at a time.
Over 100 of them, across seven natural biomes.
Turns their work into revision material ready for Flash Cards and Exam study.
Live, competitive practice for the start of the lesson or a teacher-led lesson finisher.
Honour your top performers, or encourage a student who's trying hard — ready to print in seconds.
Quick Questions
Match the Pairs
Key Term
penetration testFill in the Blanks
Spot the Error
Student with a class code? Join your class →