Attack surface
All the points where an attacker could try to get into a system or take data out, such as open ports, running services and user accounts. A smaller surface means fewer ways in.
Understanding Attack surface in WA Computer Science ATAR Unit 2
What it does: Blocking port 23 (Telnet) removes one open port, so the attack surface gets smaller. An attack surface is the sum of all possible entry and exit points, not just one flaw. A running service can be attacked even if nobody uses it, so unneeded services should be disabled. Every active account is a possible way in, so unused accounts should be removed. Each one is a point where an attacker could try to get in or take data out. Reducing entry points gives attackers fewer opportunities to get in. Forgotten accounts often have weak passwords, so each one adds to the attack surface until it is removed.
Common mistakes: The attack surface counts the open ports (entry points), so it should use LENGTH(ports). SUM would add the port numbers together, which is meaningless. Closing an unneeded port shrinks the attack surface, so the code should use ports.remove(21). append adds another entry point instead.
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
attack surfaceFill in the Blanks
Spot the Error
Student with a class code? Join your class →