How it works
Routine users should not use administrator permissions. Authentication logs, update logs, and system events can reveal suspicious changes.
Use standard accounts for normal work, admin accounts for approved maintenance, and logs to investigate unexpected behavior.
Common error
Shared administrator accounts reduce accountability because actions cannot be tied to a person.
Unit 4 topics and evidence practice
Study four device-security topics through a fictional Cobalt Animation Workshop: device risk, authentication, protection, and detection. Cases, accounts, devices, addresses, and measurements are invented teaching examples. Use the comparison tables and worked evidence to reason through each question before opening its answer. The password-verifier exercise uses a public practice value and reproducible test salts. Original foundation lessons and exercises remain available.
4.2 Authentication
Explain a password verifier, distinguish attack paths and authentication evidence, and read login settings without assuming every stricter-looking option makes a system safer.
- 4.2.A Hashing and Password Storage
- 4.2.B Password Attacks
- 4.2.C Authentication Factors and MFA
- 4.2.D Configuring Login Settings
Read topic 4.2 notes, evidence, and quick checks
4.2.A: Explain the properties of a cryptographic hash
A given function produces a repeatable, fixed-size digest for the same input. Pre-image resistance makes finding an input for a given digest computationally difficult; collision resistance makes finding two different inputs with the same digest difficult. Collisions remain mathematically possible, and predictable passwords can still be guessed and checked. A noncryptographic checksum is not automatically a security hash. Encoding, encryption, and hashing serve different purposes.
Use a password-specific derivation and verification process
A service should avoid plaintext password storage. An appropriate password-hashing or key-derivation scheme uses a salt and configurable work cost; successful verification derives a candidate under the stored parameters and securely compares it with the verifier. General fast hashing alone is a poor password-storage design because many guesses can be tested cheaply. Use a vetted implementation and approved configuration.
Understand what a unique salt changes
An independently generated salt makes the same password produce different stored results across records and limits reuse of precomputed hash tables. The salt normally stays with the algorithm/cost/verifier record and does not need to be secret. It is not encryption, is not another user authentication factor, and does not prevent testing guesses separately for a stolen record. Real enrollment needs fresh appropriate salts, not copied fixed example values.
4.2.B: Distinguish online, offline, and distributed guessing
Online attacks contact the active sign-in service; rate controls can limit attempts there. Offline guessing tests candidates against obtained verifier data without being stopped by that service's account lockout. Brute-force and dictionary guessing describe candidate selection; spraying spreads limited guesses across accounts; credential stuffing reuses exposed pairs from elsewhere. Rainbow tables precompute hash relationships under particular assumptions and lose broad reuse value with suitable unique salts.
A captured hash is not used the same way by every protocol
In pass-the-hash attacks against applicable authentication systems, a captured reusable hash-equivalent can help authenticate without recovering the plaintext password. This is different from submitting an arbitrary salted web-password verifier to any login page. Identify the protocol and credential material before claiming direct reuse is possible. Protect credential access, administrative scope, supported authentication, and session/account lifecycle as appropriate.
4.2.C: Separate factor categories from context
Knowledge is something known, such as a password or PIN; possession involves control of an authenticator; a biometric characteristic is something about the person, often used to unlock a cryptographic authenticator. Password plus PIN is not automatically two categories. Location can be an access condition or risk signal, but IP/geolocation can be shared, proxied, or misleading. It is not automatically independent proof equivalent to a possession factor.
Verify the complete authentication and recovery path
Suitable phishing-resistant cryptographic methods can bind proof to the genuine service, while manually relayed codes and unexpected approvals remain phishing risks. MFA does not universally prevent abuse of an existing stolen session or an insecure recovery route. A disk-unlock action, OS login, and remote application session are different contexts. Review recovery contacts, authenticator enrollment, session revocation, and role permissions as well as the password.
4.2.D: Read minimum length and composition fields by their actual effect
Minimum length sets a lower bound; composition specifies character-category requirements where configured. A predictable word/year/symbol pattern can satisfy a composition rule and remain weak. Prefer unique, sufficiently long, unpredictable values, compromised/common-value screening, and approved password-manager support. The example uses a 16-character minimum for its chosen context. Do not mistake one illustrative policy for a universal device requirement or a reason to truncate long passphrases.
Distinguish aging and history from response to exposure
Maximum age can force expiry; minimum age can restrict rapid successive changes; history checks can limit reuse of prior values. These settings can interact and must not obstruct an approved compromise-response change. Arbitrary routine expiry or extra symbols are not a substitute for strong unique secrets, detection, and appropriate MFA. The teaching policy changes exposed authenticators promptly rather than claiming a mandatory calendar rotation guarantees safety.
Test rate controls and legitimate recovery
Delay, rate limiting, temporary lockout, alerts, and recovery can reduce different risks. An easy permanent lockout can let someone deny access to legitimate users, while one IP block can affect many users or miss distributed attempts. Confirm policy is actually applied, permitted accounts can work and recover, old access is removed, and records support review. Store no plaintext guesses or secrets in the authentication log.
This conceptual flow omits implementation details such as protected transport and secure comparison. It does not decrypt a stored password or replace MFA, recovery controls, and authorization.
1. Receive the candidate
Handle the entered value through the approved protected authentication path.
2. Read the verifier parameters
Use the record's algorithm, salt, work cost, and derived-result metadata.
3. Derive and compare
Apply the vetted password-derivation process and securely compare the resulting verifier.
4. Finish the access decision
Apply required factors, rate/recovery policy, session controls, and role authorization.
| Property | Meaning | What it does not establish |
|---|---|---|
| Repeatable / deterministic | Same complete input and parameters produce the same result. | Two differently salted records need not match even if the password is the same. |
| Fixed output length | A selected hash function produces its specified digest size. | A shorter digest does not prove a short input, and the input is not recoverable by decoding it. |
| Pre-image resistance | Finding an input for a chosen digest is computationally difficult for a suitable function. | Weak or predictable secrets can still be guessed and checked. |
| Collision resistance | Finding two distinct inputs with one digest is computationally difficult for a suitable function. | Collisions are not mathematically impossible; parameter/algorithm choices still matter. |
| Sensitive output change | A small input change typically produces a substantially different digest. | A digest difference alone does not identify the input change or prove malicious intent. |
| Attack or class | How it is characterized | Control and evidence limit |
|---|---|---|
| Online guessing | Attempts against an active authentication service. | Rate controls, suitable authentication, alerts, and recovery; one failure may be a typo. |
| Offline guessing | Candidate checks against obtained verifier material. | Appropriate salt/work-cost scheme and protected verifier access; service lockout does not stop local tests. |
| Brute force / dictionary | Enumerated candidates or candidates from likely words/patterns. | Long unpredictable unique passwords reduce guessability; ordinary logs do not reveal every guessed value. |
| Password spraying | Limited candidate guesses spread over accounts. | Cross-account pattern review and suitable rate/risk controls; raw guessed secrets should not be logged. |
| Credential stuffing | Previously exposed account/password pairs tried elsewhere. | Distinct passwords and suitable MFA; failures alone do not prove the exact acquisition source. |
| Rainbow-table approach | Precomputed relationships used to match compatible unsalted/known-setting hashes. | Fresh appropriate unique salts undermine broad table reuse without making weak secrets unguessable. |
| Pass-the-hash | Protocol-specific reuse of captured hash-equivalent credential material. | Credential protection and limited privilege; not every password verifier is directly usable as a login secret. |
| Field | Chosen teaching behavior | Verification or tradeoff |
|---|---|---|
| Minimum / maximum length | Minimum 16 characters in this example; long passphrases and approved manager use supported. | Verify full-value handling and usability; do not truncate or silently reject required long values. |
| Composition / compromised-value screening | No arbitrary category mix as the primary protection; screen common or exposed values. | A symbol/year pattern is not automatically strong; check the actual enforcement and privacy. |
| Maximum age | No arbitrary calendar expiry in this example; act on exposure and account changes. | This does not mean keep a known-exposed password. Follow the approved incident/lifecycle process. |
| Minimum age / history | Understand configured reuse and rapid-change constraints. | Do not let an interaction block an authorized exposure-response change; protect any retained history. |
| Rate / lockout | Bounded rate controls with alerts and a usable approved recovery path. | Test abuse resistance and legitimate access; avoid turning the policy into easy denial of service. |
| Recovery and session behavior | Review authenticator changes and revoke unauthorized sessions through supported controls. | Password reset alone does not universally invalidate every existing session or recovery grant. |
Reproducible public verifier fixture: same value, two salts
PUBLIC CLASSROOM FIXTURE — never a real credential
Practice value: Public-Practice-Only!47
Derivation: PBKDF2-HMAC-SHA-256
Iterations: 600000; derived length: 32 bytes
Salt A (hex): 000102030405060708090a0b0c0d0e0f
Verifier A (hex): c1383fff6ef96f7b1406f38d5d31f4c104e287a0f71590ee3dd9c647fcf03fec
Salt B (hex): 101112131415161718191a1b1c1d1e1f
Verifier B (hex): 4b703e1dfd36fbb8a1272e6ef84be10895f16059bdf3b708c3e12b36f1e01c4b
Same practice value with A again: reproduces verifier A.
Same practice value with B: differs from verifier A.
A different candidate with A: does not match verifier A.
Fixed salts exist only to make this public exercise reproducible.The fixture demonstrates deterministic derivation and salt-dependent records, not password decryption. Real enrollment must generate fresh appropriate salts and use a vetted approved implementation with a work-cost profile evaluated for its environment. This numeric fixture is not a universal production tuning recommendation. Theft of the parameters and verifier can still allow offline guessing; do not publish real verifier records or reuse the public practice value.
Review the factor and policy claims separately
FICTIONAL LOGIN REVIEW
Draft A: "Password plus PIN plus a familiar IP is three independent factors."
Draft B: "The stolen salted verifier can log in to every protocol unchanged."
Draft C: "A 30-day password expiry makes a reused predictable password safe."
Draft D: "A password reset always logs every existing device out."
Needed evidence: actual authentication protocol/factor design, configured policy,
recovery/session behavior, legitimate task tests, and account/role requirements.A counts knowledge twice and treats a fallible location signal as independent proof. B ignores protocol-specific credential use and the difference between a password verifier and a reusable hash-equivalent. C ignores reuse and guessing; D assumes service behavior that must be verified. Require supported configuration and outcome evidence instead of a stronger-sounding count or setting.
Vocabulary in context
- Digest / hash
- A function's derived output; a cryptographic digest has specific security properties.
- Password verifier
- Stored derivation data used to check a candidate without storing the plaintext password.
- Salt
- A per-record input that normally is stored with derivation parameters and need not be secret.
- Work cost
- A supported derivation parameter affecting the resource cost of checking a password guess.
- Offline guessing
- Testing candidates against obtained verifier material outside the active service's rate controls.
- Authentication context
- The protocol, factors, device/session, and recovery conditions relevant to the claimed identity.
Quick checks
Form your answer, then open the question to compare your reasoning.
1. Does a cryptographic hash make recovering any weak password impossible?
No. Pre-image resistance is a computational property, while likely candidates can still be guessed and checked. Use an appropriate password-specific scheme and strong unique secrets.
2. Why is fast general-purpose hashing alone unsuitable as the whole password-storage design?
It can make large numbers of offline guesses cheap. Appropriate password derivation uses suitable salts, work cost, vetted implementation, and protected records.
3. Why do the two public practice verifiers differ, and must their salts be secret?
The same practice value is derived with different salts. The salts normally remain with the parameters and verifier; secrecy is not their purpose, and weak guesses remain testable per record.
4. Can account lockout at the live service stop offline candidate testing of stolen verifier data?
No. Offline checks run outside that service. Protect records and use appropriate password derivation while also applying live-service rate controls.
5. How do spraying, stuffing, and a rainbow-table approach differ?
Spraying spreads guesses over accounts; stuffing reuses exposed pairs elsewhere; a rainbow-table approach uses compatible precomputed hash relationships. The labels describe different mechanisms and need evidence.
6. Does pass-the-hash mean every salted website verifier can be submitted unchanged to every login?
No. It concerns applicable protocols and reusable hash-equivalent credential material. Identify the actual authentication system and material before making that claim.
7. Are password, PIN, and a familiar source IP three independent authentication factors?
No. Password and PIN are knowledge, while location/IP is fallible context rather than automatic independent proof equivalent to possession. Evaluate the real factor/protocol design.
8. Do a shorter rotation period and more required symbols automatically solve password reuse?
No. Predictable reused values remain risky. Read length, composition, age, history, screening, manager support, and exposure response as separate interacting controls.
9. Why verify minimum-age/history interactions and the lockout recovery path?
They can obstruct a required exposure-response change or let an attacker deny legitimate access. Test both misuse resistance and authorized recovery under the actual policy.
10. What else needs checking after a password reset?
Supported session revocation, recovery contacts, authenticator enrollment, role grants, and the actual normal/denial outcomes. A reset does not universally end every existing access path.
4.4 Detecting Attacks on Devices
Detection asks what happened on a device, what is unusual, and how much confidence the available evidence supports. Link host, file, behavioral, and authentication records without treating an alert label as a complete explanation. Measure timeliness and coverage alongside operational cost, then choose a response with an accountable owner.
- 4.4.A Logs and Indicators of Compromise
- 4.4.B Choosing a Device Detection Method
- 4.4.C Evaluating Device Detection
- 4.4.D Spotting Password Attacks in Logs
Read topic 4.4 notes, evidence, and quick checks
4.4.A: Separate observations from conclusions
Host indicators include unexpected services, processes, accounts, scheduled tasks, or configuration changes. File indicators include unexpected creation, a known malicious digest, or a change from a trusted baseline. Behavioral indicators include unusual privilege use, repeated failures, or a new connection pattern. Each needs context: an approved installer may create a service, a legitimate update changes files, and a mistyped password creates a failed login. An indicator supports investigation; confidence increases when independent records support the same activity.
4.4.A: Correlate records while preserving their limits
Record the event source, device, account, action, outcome, event time and time zone, collection time, and relevant session or process identifiers when available. Normalize fields for comparison while retaining the original records and integrity controls. Check clock synchronization and collection gaps before ordering events. Restrict access and retention appropriately; do not record plaintext passwords or unnecessary personal content. An empty query may mean no activity, disabled collection, an offline device, a bad filter, or missing retention.
4.4.B: Select complementary detection methods
Anti-malware can recognize known artifacts or suspicious actions. Endpoint detection can expose supported process, memory, account, and connection activity. File-integrity monitoring compares selected objects with a trusted baseline. Central log correlation links devices and identities, while network sensors observe traffic from their placement and visibility. No one method sees everything: encryption, unsupported platforms, unmonitored objects, stale baselines, and collection outages limit conclusions. Verify actual coverage rather than assuming an installed agent is healthy.
4.4.B: Match visibility and cost to device criticality
Compare software and service cost, analyst effort, CPU, memory, battery, bandwidth, storage, privacy, and response capability with the device role and impact of failure. A supported workstation may accept an endpoint agent; a constrained controller may require vendor-supported health records and surrounding network observations instead. Limited host visibility is a documented gap, not proof of health. Budget for investigation and maintenance as well as the license, and test on representative workloads with the device owner.
4.4.C: Measure what a detector found and missed
A true positive correctly flags adverse activity; a false positive flags a benign case; a false negative misses adverse activity; a true negative leaves a benign case unflagged. Use labeled representative tests to measure coverage, false-alert burden, and timing. Raw alert totals are not accuracy. A low false-positive rate can still create a large queue when benign traffic is common, and a fast profile may miss a critical test. State the denominator and labeling assumptions rather than treating unknown live events as established ground truth.
4.4.C: Define the clock and response phase
Detection delay needs a stated starting event and the first relevant alert. Time from the earliest shown record is not necessarily time from the real attack start. An alert after execution or account creation may aid response without having prevented those actions. Distinguish alert time, analyst review, containment request, and verified containment; they are different milestones. Percentile workload latency measures device performance, not incident detection delay. Compare all required criteria and review residual gaps before rollout.
4.4.D: Recognize password-attack patterns without logging secrets
Many failures against one account can fit brute force or a dictionary attack, but counts alone do not reveal the guessed values. Low-rate failures across many accounts may suggest spraying; credential stuffing requires additional evidence of reused credential pairs. Distributed sources and shared gateways complicate counting. Check success after failures, device and session context, recovery events, authorized maintenance, and user confirmation. A failure burst may also come from stale automation after a secret change, so compare the process and schedule before attributing intent.
4.4.D: Connect login evidence to approved response
A successful login proves that the recorded authentication checks accepted a request; it does not prove the legitimate owner initiated it. Link the session to completed privilege changes or process activity and verify unexpected activity with the owner through a trusted route. Preserve records, identify scope, and apply authorized account or device containment with essential-service dependencies in mind. Confirm restrictions actually took effect, then investigate persistence and affected credentials or sessions. Do not erase a device or disable a critical service solely because an AI summary labels it compromised.
| Indicator category | Suspicious observation | Context needed before concluding compromise |
|---|---|---|
| Host state | A new privileged account or unexpected startup service appears. | Compare approved changes, actor/session records, package provenance, and owner confirmation. |
| File state | A selected executable changes from a trusted baseline. | Check approved updates, the baseline version, cryptographic digest evidence, and related execution. |
| Behavior | A login is followed by unusual privilege use and outbound activity. | Correlate outcomes, process/session identity, authorized tasks, timing, and collection completeness. |
| Method | Useful evidence | Cost or coverage limit |
|---|---|---|
| Anti-malware | Known artifacts and supported behavioral or memory alerts. | Update and health checks matter; alerts do not guarantee complete incident scope. |
| Endpoint detection | Supported process trees, account activity, and response telemetry. | Platform support, permissions, resource use, licensing, and healthy collection vary. |
| File-integrity monitoring | Changes to selected files or configurations against an approved baseline. | A stale or incomplete baseline can mislead; changes do not automatically prove malicious intent. |
| Central log correlation | Authentication, privilege, device, and network events linked across sources. | Collection gaps, clocks, storage, rule maintenance, access, and analyst workload affect value. |
| Network observation | Connections and traffic patterns from the available observation point. | Encryption and placement limit content and host-state visibility; it complements rather than replaces host evidence. |
| Test profile | P95 workload latency (ms) | Adverse cases detected / 14 | Benign alerts / 6,000 | Meets all stated lab criteria? |
|---|---|---|---|---|
| Broad profile | 1180 | 14 | 18 | No: workload latency and benign-alert burden exceed the limits. |
| Tuned profile | 760 | 13 | 4 | No: one required adverse case was missed. |
| Tuned plus complementary rule | 820 | 14 | 6 | Yes for this test set: continue representative testing and operational review. |
Account-pattern triage: similar failures, different explanations
Separate fictional authentication windows; no password values recorded
Window A: 1 source, 12 accounts, 1 failure per account, no success shown.
Window B: 1 account, 17 failures, then 1 successful session.
Window C: 1 service account fails once every minute after an approved secret rotation.
For C, process ownership and maintenance timing are confirmed;
the job configuration still references the previous secret.A fits a possible spray pattern, but the records do not reveal whether the same candidate was used. B warrants review of the successful session and subsequent actions; the failure sequence alone does not identify brute force, stuffing, or the human actor. C has a supported stale-automation explanation that should be corrected through the approved owner. Do not label all three as proven attacks or record attempted passwords to distinguish them.
WS-14: build a timeline before claiming prevention
Fictional normalized host and identity records; 2026-11-03 UTC
14:10:00–14:12:00 17 failures for render-maint from 10.194.20.81
14:12:12 Authentication success; session T88; password + OTP accepted
14:13:10 T88 creates temporary-render-admin and adds privileged membership
14:13:25 Endpoint alert: unexpected process chain involving preview-addon.exe
14:14:00 preview-addon.exe quarantined; earlier execution is recorded
14:15:00 Independently contacted owner denies T88 and the new account
14:16:00 Approved WS-14 isolation applied and verified
AI draft: "OTP and quarantine prove the login was safe and no harm occurred."OTP acceptance does not establish that the legitimate owner controlled the session. Completed privilege creation, related process evidence, and independent owner denial support unauthorized activity requiring scope review. The alert occurs after the privilege change; quarantine after execution cannot undo earlier actions. From the earliest shown failure to the alert is 205 seconds, and to verified isolation is 360 seconds. From the successful login to the alert is 73 seconds. These are different reference intervals; none proves the actual attack start. Preserve the records, review the new account and session scope, and verify authorized containment rather than declaring prevention or complete recovery.
A fast detector can still fail the acceptance test
Lab requirements: P95 workload latency <=900 ms; 14/14 adverse cases;
no more than 10 alerts over 6000 labeled benign cases.
Broad: 1180 ms, 14 detected, 18 benign alerts.
Tuned: 760 ms, 13 detected, 4 benign alerts.
Tuned plus complementary rule: 820 ms, 14 detected, 6 benign alerts.
AI draft: "Select Tuned because it is fastest and has the fewest alerts."Tuned misses one required adverse case, so speed alone cannot qualify it. Broad exceeds both latency and benign-alert limits. Tuned plus the complementary rule meets all three stated lab criteria: 820 ≤900, 14/14, and 6 ≤10. That is evidence for this workload and labeled test set, not proof of universal detection or an automatic deployment decision. Review case representativeness, agent health, operational cost, and device criticality with the owner. The P95 workload measurement is separate from incident alert delay.
Vocabulary in context
- Indicator of compromise
- An observation that may support investigation of unauthorized activity; interpret it alongside context and other evidence.
- File-integrity monitoring
- Comparison of selected objects with an approved baseline to detect change, not automatically to establish intent.
- False positive
- A benign case incorrectly flagged as adverse under the stated labeling and test definition.
- False negative
- An adverse case missed by the detector; fewer alerts do not necessarily mean better coverage.
- Detection delay
- Elapsed time between a defined reference event and the relevant alert; state both endpoints.
- Verified containment
- Evidence that an authorized restriction actually took effect, distinct from a request to apply it or full recovery.
Quick checks
Form your answer, then open the question to compare your reasoning.
1. Does a changed executable establish malicious intent?
No. Compare the trusted baseline, approved update records, provenance, and related execution. A legitimate update may change the executable.
2. What should accompany a timestamp when correlating records?
Retain the event source, device, action/outcome, time zone, collection timing, and relevant session or process identifiers. Check clocks and gaps before asserting order.
3. Why use network observations around a controller with no supported endpoint agent?
They can provide some connection evidence without installing incompatible software. They do not replace missing host visibility; document the gap and use supported vendor records where available.
4. Which costs belong in a detection-method comparison besides the license?
Include device CPU, memory, battery, latency, network and storage use, privacy, maintenance, analyst workload, and response capability relative to criticality.
5. Which profile meets all three illustrative acceptance criteria?
Tuned plus complementary rule: P95 820 ms, all 14 labeled adverse cases detected, and 6 benign alerts. It meets this test definition, not a guarantee for every future event.
6. Why reject the fastest profile even though its benign-alert count is lowest?
It detects only 13 of the 14 required adverse cases. Performance and low alert burden do not compensate for a failed coverage requirement in this test.
7. How long after the earliest shown WS-14 failure does the alert appear?
205 seconds, from 14:10:00 to 14:13:25. The earliest shown record is a reference point, not a proven attack start.
8. Was WS-14 isolated at the time of its alert?
No. The alert is at 14:13:25 and verified isolation at 14:16:00. The first shown failure to isolation interval is 360 seconds; detection and containment are separate milestones.
9. Do low-rate failures across many accounts prove password spraying?
They support that hypothesis but do not establish the candidate values or intent. Correlate sources, outcomes, authorized activity, and other evidence without logging secrets.
10. Why investigate a session that passed password and OTP checks?
Accepted factors do not establish owner intent. Here the completed privileged account change, process alert, and independent owner denial justify reviewing session scope and applying authorized containment.
Worked example
Build a timeline from device and account evidence.
Evidence
10:00 individual user login
10:03 new administrator account
10:04 endpoint alert
10:06 device isolatedThe sequence makes the new privileged account a key investigation lead. Verify whether there was an approved change, correlate the responsible session and process, and preserve the records. Chronology supports a hypothesis but does not establish intent without further evidence.
Exercises
Exercise 1
Why do individual maintenance accounts improve investigation over one shared administrator login?
Show solution
They make activity easier to attribute to an authorized identity, support role-specific access, and simplify revocation. Logs still require review because accounts can be compromised.
Exercise 2
A user needs to install one approved update. Explain a safer approach than granting permanent administrator access.
Show solution
Use a managed deployment or approved time-limited maintenance privilege. Verify completion, remove the temporary elevation, and record the change.
