Topic 4.4 · Unit 4: Securing Devices · 25 minute session

4.4 Detecting Attacks on Devices

Devices log logins, processes, settings, downloads and user actions, so logs can reconstruct an incident. Indicators of compromise (IoCs) are host-based, file-based or behavior-based. Device detection is chosen by performance, cost and the device's criticality, and judged by speed, the attack phase and false positives versus ease of bypass. Authentication logs reveal online password attacks, password spraying and credential stuffing; offline attacks cannot be detected.

Big idea The device keeps a diary. Read the authentication log for the pattern that breaks normal: too many failures, too many users, default passwords, wrong time, wrong place.

Course and exam description (CED) codes covered: 4.4.A.14.4.A.24.4.A.34.4.A.44.4.A.54.4.A.64.4.B.14.4.B.24.4.B.34.4.C.14.4.C.24.4.C.34.4.D.14.4.D.24.4.D.34.4.D.44.4.D.5

Last reviewed against the CED:

By the end of this session you can

  • 4.4.A Explain how to detect attacks against devices.
  • 4.4.B Determine controls for detecting attacks against a device.
  • 4.4.C Evaluate the impact of a device detection method.
  • 4.4.D Apply detection techniques to identify indicators of password attacks by analyzing log files.

Already know this? Jump to the checkpoint.

1. What devices record (4.4.A)

  • Systems log processes and settings, login attempts, file downloads and user actions; logs help reconstruct what happened before and during an incident 4.4.A.1.
  • An indicator of compromise (IoC) is evidence that an adversary has compromised a device or network 4.4.A.2.
  • Authentication logs (auth logs) record every attempted login; analyzing them can reveal attacks 4.4.A.3.
IoC family Where you find it Examples
Host-based 4.4.A.4 Authentication logs, user activity logs, configuration files Unusual files created or modified; unexpected processes or services; unauthorized configuration changes; unauthorized software installs or updates
File-based 4.4.A.5 Files on the device, usually executables A file whose hash matches known malware; file names known to come from malware; file paths linked to malicious activity
Behavior-based 4.4.A.6 Authentication and access logs Many failed logins; unusual login times or locations; unauthorized attempts to reach sensitive data; attempts to elevate privileges

2. Choosing device detection (4.4.B)

Criterion What to weigh
Performance 4.4.B.1 Detection tools use memory and processing power. Anomaly-based tools use more than signature-based ones; many embedded devices cannot run any detection tool.
Cost 4.4.B.2 Enough licenses for every device. An endpoint detection and response (EDR) service from a vendor is expensive but gives unified detection with a central alert platform.
Sensitivity or criticality 4.4.B.3 Devices with sensitive data or critical services are targeted more and benefit from hybrid detection when possible.

3. Judging a device detection method (4.4.C)

  • Speed and performance: signature-based detection is faster, and the gap is bigger on devices with little processing power; heavy tools can slow the device 4.4.C.1.
  • Phase of the attack: to act on a device, the adversary has already passed physical and network controls. Catching them at the device can still protect sensitive data and critical services 4.4.C.2.
  • False positives versus bypass: most device tools are signature-based, with few false positives, but they are easier to bypass 4.4.C.3. Bypassing detection creates a false negative: an attack that happens without an alert. Signature-based tools miss attacks with no known signature; anomaly-based tools can catch new attacks because they look for unusual behavior instead.

4. Reading authentication logs for password attacks (4.4.D)

Attack What the log shows
Online password attack 4.4.D.1 One user, many wrong passwords. If a hash database was compromised, reset every user’s password.
Compromised password 4.4.D.2 An authorized user logging in from an unexpected place or internet protocol (IP) address, or at an unusual time
Password spraying 4.4.D.3 Many users tried within seconds of each other, from one IP address or unusual ones
Credential stuffing 4.4.D.4 Default user:password pairs tried one after another, often from the same IP address. Pairs like admin/admin point to stuffing; many guesses against one real user’s account point to an online password attack
Offline password attack 4.4.D.5 Nothing: it happens on the adversary’s computer and cannot be detected

Now be the forensic analyst: hunt through a factory server’s authentication log.

Lock it in: memory hooks

One picture per idea. If you remember the hook, you can rebuild the details.

  • Three IoC familiesHost, file, behavior: what changed on the system, which file is bad, how the user is acting.
  • Password attack patternsOne user, many tries: guessing. Many users, one IP: spraying. Default pairs in a row: stuffing.

Common misconceptions

  • "A stolen password database will show up as failed logins."

    Not quite. Offline attacks run on the adversary's computer and cannot be detected. If a hash database is compromised, force every user to reset their password.

  • "Anomaly-based detection is always best for devices."

    Not quite. It uses more memory and processing power. Many devices, especially embedded ones, perform better with signature-based tools or cannot run detection tools at all.

  • "Password spraying looks like one account failing many times."

    Not quite. That pattern is a regular online password attack. Spraying is many different users tried within seconds from one or unusual IP addresses.

Simulation · [4.4.D.1, 4.4.D.2, 4.4.D.3, 4.4.D.4]

Auth log hunt: find the password attacks

You are a forensic analyst checking the authentication log of a factory's production server. Staff work 07:00 to 17:00 from the plant network 10.20.0.0/16. Tap every line that is an indicator of a password attack or a compromised password.

auth.log · PLANT-SRV-02swipe sideways for more
TIMEUSERSOURCE IPRESULT
  1. Red flag. A default user:password pair at 2 a.m. from outside: the start of credential stuffing.

  2. Red flag. Another default pair one second later from the same IP: credential stuffing.

  3. Red flag. Default credentials tried in quick succession: credential stuffing.

  4. Red flag. Many different users within seconds from one unusual IP address: password spraying.

  5. Red flag. Password spraying continues: a different user, same IP, one second later.

  6. Red flag. Password spraying: yet another account tried from the same address within seconds.

  7. Red flag. One user, many wrong passwords in seconds: an online password attack on a single account.

  8. Red flag. The same user failing again one second later: online password attack.

  9. Red flag. A third failure in three seconds for one account: online password attack.

  10. Red flag. A successful login at 4 a.m. from an outside IP: an indicator that d.novak's password may be compromised.

  11. Fine. A staff member at the start of the shift, from the plant network. Normal.

  12. Fine. Normal hours, plant network. Fine.

Exam traps

  • Offline password attacks cannot be detected in logs, because they happen on the adversary's computer.
  • A login at an unusual time or from an unusual place can mean the password is compromised even when the login succeeds.
  • Most device-level tools are signature-based: few false positives, but easier for adversaries to bypass.
  • For sensitive or critical devices, prefer hybrid detection when possible; for weak embedded devices, signature-based or none on the device.

By the numbers

Say each list out loud, then tap to check.

3 IoC families Say them, then tap
  • host-based (logs and settings)
  • file-based (files)
  • behavior-based (logs)
3 criteria to choose Say them, then tap
  • performance
  • cost
  • sensitivity or criticality
3 factors to evaluate Say them, then tap
  • speed and performance
  • phase of the attack
  • false positives versus ease of bypass
4 password attack signs Say them, then tap
  • one user
  • many wrong passwords
  • unusual time
  • place or IP
  • many users within seconds from one IP (spraying)
  • default user:password pairs in quick succession (stuffing)

In 30 seconds

  1. Devices log processes, settings, logins, downloads and user actions; authentication logs record every login attempt.
  2. Host-based IoCs: unusual files, unexpected processes, unauthorized setting changes or installs. File-based: known malware hashes, names, paths. Behavior-based: failed logins, unusual times or places, sensitive data access, privilege escalation attempts.
  3. Choose detection by performance, cost (licenses, EDR services) and criticality; evaluate by speed, attack phase, false positives versus bypass.
  4. Password attacks in logs: repeated failures, odd time or place, spraying, stuffing. Offline attacks are invisible; reset every password after a database breach.

Cover this list, say the points out loud, then take the checkpoint without scrolling back up.

Checkpoint · 9 questions

Checkpoint: Detecting Attacks on Devices

Pick an answer to mark it. Every answer is explained, and you can try any question again. Your saved score counts first tries only, and stays in this browser.

  1. A server's authentication log shows the following.
    auth.log
    TimeUserPassword triedSource IPResult
    01:40:02a.diazWinter2026!198.51.100.7failed
    01:40:03b.kimWinter2026!198.51.100.7failed
    01:40:04c.oseiWinter2026!198.51.100.7failed
    01:40:05d.novakWinter2026!198.51.100.7failed
    1 Which attack does this log most likely show? 4.4.D.3
    Show answer

    Answer: A. Many different users trying to log in within seconds of each other from one IP address indicates password spraying.

  2. A smart camera's authentication log shows the following.
    camera auth log
    TimeAttempt (user/password)Source IPResult
    22:15:10admin / admin203.0.113.50failed
    22:15:11admin / 12345203.0.113.50failed
    22:15:12root / root203.0.113.50failed
    22:15:13user / user203.0.113.50success
    2 Which attack does this log most likely show? 4.4.D.4
    Show answer

    Answer: B. A series of default user:password combinations attempted in quick succession, often from one IP address, indicates credential stuffing.

  3. An accountant always works office hours from the office network. Her account shows these recent logins.
    auth.log (user: n.patel)
    TimeSource IPLocationResult
    Mon 09:0210.4.2.18Officesuccess
    Tue 03:20203.0.113.88Another countrysuccess
    Tue 03:45203.0.113.88Another countrysuccess
    3 Which of the following is the best conclusion? 4.4.D.2
    Show answer

    Answer: C. An authorized user logging in from an unexpected location or IP address, or at an unusual time, can indicate a compromised password.

  4. 4 A company learns its user:password hash database was stolen last month. Its authentication logs show nothing unusual. What should it do? 4.4.D.5, 4.4.D.1
    Show answer

    Answer: D. Offline password attacks cannot be detected; if a hash database is compromised, every password in it should be treated as insecure and reset.

  5. An analyst computes the hash of an executable in a user's Downloads folder and finds it matches the hash of a known remote access trojan.
    5 Which kind of indicator of compromise is this? 4.4.A.4, 4.4.A.5, 4.4.A.6
    Show answer

    Answer: C. File-based IoCs are found by analyzing files: a hash matching known malware, known malware file names or suspicious paths.

  6. 6 An analyst is reviewing access logs for behavior-based indicators of compromise. Which of the following is one? 4.4.A.6
    Show answer

    Answer: A. Behavior-based IoCs found in logs include multiple failed logins, unusual login times or locations, unauthorized attempts to access sensitive data, and attempts to elevate privileges.

  7. A factory has 500 small embedded sensors with very little memory and processing power.
    7 Which detection approach best fits the smart sensors? 4.4.B.1, 4.4.C.1
    Show answer

    Answer: B. Anomaly-based tools use more system resources; signature-based detection suits devices with less powerful resources, and many embedded devices cannot run detection tools at all.

  8. 8 A hospital wants one service that monitors all its laptops and servers and sends every alert to a central platform. Which of the following does it want? 4.4.B.2
    Show answer

    Answer: D. EDR services from a vendor give a holistic, unified approach to device threat detection with a centralized alert platform, though they are expensive.

  9. A school installs a detection tool on all student laptops because it rarely raises false alarms. The tool compares files and activity with a list of known threats.
    9 Which of the following best describes the trade-off of this tool? 4.4.C.3
    Show answer

    Answer: C. Most device-level tools are signature-based: they have a low rate of false positives, but signature-based detection is easier for adversaries to bypass.

Key terms: flip the cards

Read the term, say the definition out loud, then flip to check. Struggling a little to remember is what makes it stick.

  • Indicator of compromise (IoC)tap to flip

    Evidence in data or traffic that a system may be under attack, such as connections to known malicious addresses or mismatched port and application traffic.

    Example and CED codes
  • Authentication logtap to flip

    A log that records every attempted login on a system, including the user, time, source and result.

    Example and CED codes
  • Host-based IoCtap to flip

    An indicator of compromise found in logs and configuration settings, such as unexpected processes or unauthorized setting changes.

    Example and CED codes
  • File-based IoCtap to flip

    An indicator of compromise found in files, such as a hash matching known malware or a known malicious file name or path.

    Example and CED codes
  • Behavior-based IoCtap to flip

    An indicator of compromise found in authentication and access logs, such as many failed logins or attempts to elevate privileges.

    Example and CED codes
  • Endpoint detection and response (EDR)tap to flip

    A vendor service that monitors an organization's devices with a unified, centralized alert platform; expensive but holistic.

    Example and CED codes
  • Password sprayingtap to flip

    An online attack that tries one common password against many different accounts.

    Example and CED codes
  • Credential stuffingtap to flip

    An attack that tries common default credentials or stolen username and password pairs on services or devices.

    Example and CED codes
  • Offline password attacktap to flip

    Cracking a captured user:password hash database on the adversary's own computer; it bypasses lockout and cannot be detected.

    Example and CED codes

Questions students ask

What is an indicator of compromise (IoC)?

Evidence that an adversary has compromised a device or network, such as a file whose hash matches known malware or many failed logins.

How do you spot password spraying in an authentication log?

Many different users trying to log in within seconds of each other, from one IP address or from unusual IP addresses.

What should happen if a password hash database is stolen?

Treat every password in it as insecure and force all users to reset their passwords, because offline cracking cannot be detected.

Was this page helpful?

Please do not include personal details. To get a reply, email [email protected].

Contents
↑ Top

Enlarged view of the selected figure