Lesson plan: Reading Authentication Logs
AP Cybersecurity · Unit 4 Securing Devices · Topic 4.4 Detecting Attacks on Devices · Practice set
At a glance
- Suggested time
- 3 class periods (45 min)
- Pacing
- Last of three sets for Topic 4.4, and the last teaching set before the Unit 4 Performance Task and the Unit 4 Test. The CED gives Topic 4.4 seven class periods; this plan suggests 2 for Indicators of Compromise, 2 for Choosing Device Detection and 3 for this set, since reading logs takes the longest. CED Scenario 4C fits in the last 20 minutes of Day 3.
- Before this set
- Password Attacks (online and offline attacks, password spraying, and credential stuffing with default or stolen credentials), Login Settings (account lockout after 3 to 5 invalid attempts), Hashing and Password Storage (why a stolen hash file can be cracked on the adversary's own computer) and Indicators of Compromise (what an authentication log records, and multiple failed logins and unusual login times or locations as indicators). Every log in the set prints one line per attempt: time, result (ACCEPTED or REJECTED), account, source address, and a note.
- Skills
- 3.D Detect and classify cyberattacks by analyzing digital evidence with and without the support of AI.3.A Identify methods for monitoring systems, and explain how they detect attacks.
The one idea: Read each log line by its account, address, time, and result, against what is normal for that account. The pattern across the lines names the attack (one account failing again and again, many accounts failing within seconds from one or unfamiliar addresses, a run of default pairs), and the result column says whether it worked. An attack the system never received, such as cracking a stolen hash file, leaves nothing to read.
Day by day
Day 1 · Three patterns of failed sign-ins45 min
- Open (5 min)Show the lesson's opening table (rows A to D, one hour at a video game studio) before any reading, and have pairs guess which attack each row shows. Collect the guesses and come back to each as the lesson reaches its row.
- Mini-lesson (15 min)Teach Reading Authentication Logs, from the top through the section "Reading the rows" (its three boxes: online attacks, spraying, and default credentials). As each box comes up, students add a row to a chart: the attack, how many accounts, what was submitted, and where it came from. The chart is the tool for the whole set. Stop before "Compromised player accounts".
- Do together (10 min)Problem 1 🔒 Problem 3 🔒 🔒 Teacher notes: sign in as a teacher to see this🔒 Teacher notes: open the full plan to see this
- On their own (10 min)Problem 10 🔒: a pattern spread over four unfamiliar addresses · Problem 4 🔒: a burst of vendor default accounts with one accepted line · Problem 8 🔒: the accepted line at the end of a burst.
- Exit check (5 min)🔒 Teacher notes: sign in as a teacher to see this🔒 Teacher notes: open the full plan to see this
Day 2 · Sign-ins that worked45 min
- Open (5 min)Read aloud the first paragraph of "Compromised player accounts" (the player who signs in from Ohio every evening) and stop before the box under it. Ask what in the record says the 4 a.m. sign-in is not the owner. Collect answers, then show the box.
- Mini-lesson (10 min)Teach Reading Authentication Logs, the rest: "Compromised player accounts" and "Midnight Blizzard". At the box on offline attacks, ask what an adversary cracking a stolen hash file on their own computer sends the sign-in server (nothing). In "Midnight Blizzard", stop on the sentence that compares it with row C: few attempts, spread across home addresses ordinary people use, kept even the hourly total low.
- Do together (10 min)Problem 5 🔒 Problem 11 🔒 🔒 Teacher notes: sign in as a teacher to see this🔒 Teacher notes: open the full plan to see this
- On their own (15 min)Problem 6 🔒: an overnight sign-in · Problem 16 🔒: the entry that best supports a conclusion · Problem 2 🔒: which attacks leave entries · Problem 9 🔒: a copied hash file · Problem 14 🔒: what a log with no rejected entries supports.
- Discuss (5 min)Problem 9 🔒 🔒 Teacher notes: sign in as a teacher to see this🔒 Teacher notes: open the full plan to see this
Day 3 · Ordinary lines, then Scenario 4C45 min
- Do together (10 min)Problem 15 🔒 🔒 Teacher notes: sign in as a teacher to see this🔒 Teacher notes: open the full plan to see this
- In pairs (15 min)Problem 7 🔒 Problem 12 🔒 Problem 13 🔒 🔒 Teacher notes: sign in as a teacher to see this🔒 Teacher notes: open the full plan to see this
- Groups (20 min)CED Scenario 4C: students are forensic analysts for Dynamic, a manufacturer whose business office network was attacked last month and whose plants sit on a separate network. They review the authentication logs for the manufacturing network's devices, identify IoCs, and report. The CED prints the scenario but no log, so write one before class: 12 to 15 lines for one plant controller. Include ordinary lines (a scheduled job, a typo followed by a success), a burst of default accounts from a business-network address with one accepted, and a supervisor accepted later from that same address. Groups cite each IoC by line number, name the address, and write three sentences for the security team: what happened, the evidence, and one recommendation.
Differentiation
- If students are struggling
- Hand out a four-box card for every log: accounts, addresses, time span, and result. Do Problem 1 🔒 and Problem 3 🔒 together with the card before Problem 10 🔒, and hold Problem 14 🔒 until the end of Day 2, after Problem 9 🔒's discussion, and have these students reread the lesson's offline-attacks box first.
- Extension
- Rewrite Problem 15 🔒's log, changing as few lines as possible, so that the right reading changes, and say which lines changed. Or write a 10-line log with one hidden attack and two ordinary lines that look suspicious, and trade with a partner.
- Vocabulary support
- authentication log, accepted and rejected, source address, service account, online and offline attack, password spraying, credential stuffing, default credentials, account lockout.
🔒 Answer keyEvery problem's answer, the concept and essential knowledge it checks, and the trap it targets.Sign in as a teacher to see this🔒 Traps this set testsWhat each common wrong answer looks like, and one line to say when you see it.Sign in as a teacher to see this🔒 What to emphasizeThe points that decide the set's problems.Sign in as a teacher to see this🔒 Questions to ask aloudQuestions for the class discussion, with what to listen for.Sign in as a teacher to see this🔒 On the examHow the set's ideas appear on the AP exam, from the course framework.Sign in as a teacher to see this🔒 Your class so farLive results for your section: the problems a third or more missed on the first try, the most common wrong answer, and what it usually means.Sign in as a teacher to see this
From the course framework
LO 4.4.D Apply detection techniques to identify indicators of password attacks by analyzing log files.
- 4.4.D.1 Online password attacks can be detected in authentication logs. A single user attempting many wrong passwords is an indicator of an online password attack. If a user:password hash database has been compromised, all the user passwords in the database should be considered insecure and all users should be forced to reset their passwords.
- 4.4.D.2 If an authorized user is logging in from a different location or IP address than expected, or at a different time than normal, this can be an indicator that the user's password has been compromised.
- 4.4.D.3 An indicator of password spraying is many users trying to log in within seconds of each other from one IP address or from unusual IP addresses.
- 4.4.D.4 An indicator of credential stuffing is a series of default user:password combinations being attempted on a device in quick succession, often from the same IP address.
- 4.4.D.5 Offline password attacks can't be detected, because the attack takes place on the adversary's computer.