Spotting an attack in a log file
Reading a log in time order for patterns, like many failed logins then one success, odd times or unfamiliar places, to spot an attack.
Understanding Spotting an attack in a log file in ACARA Digital Technologies Years 9–10
What it does: The times run in order, so the failures clearly happen before the success and show how the attack unfolded. Comparing the time of a login with the user's normal hours reveals activity that does not fit their usual pattern. Many failures in a short time followed by one success is a classic sign that an attacker kept guessing until they got in. A login from an unusual place, especially so soon after a normal one, can mean someone else has the password. A correct password does not prove who typed it. Look at what came before and where and when the login happened.
Common mistakes: The program counts failed logins, so it must check for 'FAIL'. Checking for 'OK' counts successful logins and would miss a run of failed attempts. An attack shows up as many failed logins, so the check should be fails >= 5. Using <= 5 would flag few failures and ignore a large number.
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 828–859) and word search (Modules 810–859).
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
log analysisFill in the Blanks
Spot the Error
Student with a class code? Join your class →