Brute-force and dictionary attacks
An attack that tries many passwords automatically until one works. A dictionary attack tries common words and leaked passwords first. Long passwords and lockouts slow it down.
Understanding Brute-force and dictionary attacks in Years 9–10 Digital Systems
What it does: The check counts failed attempts and locks the account at 5, so an automated attack cannot keep guessing. The loop reuses leaked pairs on another login, which is credential stuffing and works when people re-use passwords. A brute-force attack uses automation to try huge numbers of passwords. Watching someone type is a different trick called shoulder surfing. Each extra character multiplies the number of guesses needed, so longer passwords take much longer to crack. If one site is breached, attackers try that same login elsewhere. Use a different password for each account. Long, unique passwords make guessing slow, and lockouts limit how many guesses an attacker gets.
Common mistakes: The counter must go UP after each failed guess (failed + 1). Subtracting means it never reaches 5, so the account would never lock and a brute-force attack could keep guessing. The list is missing its closing bracket ]. A dictionary attack stores common passwords in a complete list so it can try each one.
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 25–40) and word search (Modules 13–40).
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
brute-force attackFill in the Blanks
Spot the Error
Student with a class code? Join your class →