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

Day 2 · Sign-ins that worked45 min

Day 3 · Ordinary lines, then Scenario 4C45 min

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.

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.