Chapter 5

Engineering Secure Systems: IAM, Endpoints, Networks, Hardware, OT

CompTIA SecurityX (CAS-005) Study GuideDomain 3.0 · Security Engineering · 31% of the exam

Domain 3.0 — Security Engineering · 31% of the exam

Chapter Objectives

Domain 3 is the engineering domain. Architecture decides what should exist. Engineering makes it work, fixes it when it breaks, and proves it still works.

This chapter follows that order. First, identity. Then endpoints. Then networks. Then the hardware underneath them all. Finally, the specialized systems that cannot follow normal rules.

The running examples use CertCrack.com and its clients. The facts change in each scenario. The troubleshooting method does not: find the failing component, check the evidence, fix the smallest cause first, and verify.

5.1 Troubleshooting IAM Components (Objective 3.1)

Identity failures look simple from the help desk. A user cannot sign in. An application rejects a token. A service account stops working at 2 a.m.

At SecurityX level, the task is deeper. You must find which part of the identity chain failed: the subject, the credential, the protocol, the policy, or the trust between systems.

5.1.1 Subject Access Control: Who or What Is Asking?

Subject access control starts with a simple question. Who or what is requesting access? A user subject is a person. A user signs in with an account, proves identity with factors, and receives access based on role and policy. A process subject is running code. A process acts with the rights of the account that started it, so a compromised process inherits that account's access. A device subject is a machine.

A laptop, phone, or server proves its own identity with a certificate or attestation before the user on it is trusted.

A service subject is a workload identity. An application, API, or automation job uses a service account, managed identity, or workload credential instead of a person's password.

Troubleshooting changes with the subject type. A user failure points to passwords, MFA, or account state. A service failure points to expired secrets, changed permissions, or a broken trust.

CertCrack.com learned this during a night outage. The practice engine stopped reading its question database. No user account had changed. The service identity's client secret had expired. The fix was a secret rotation, not a password reset.

DEFINITION

Subject access control. The control of access based on the type of requester: user, process, device, or service. Each subject type proves identity differently and fails in different ways, so correct troubleshooting starts by naming the subject type.

Figure 32 — Start from the symptom the user reports, then work down to the most likely cause before changing anything.

Reading Figure 32. Start at the top: a sign-in problem is reported. The first step is to name the exact symptom, shown in the four purple boxes. Authentication failures point to a wrong password, a lockout, or clock skew. An MFA loop points to push fatigue, device time drift, or stale cookies. Token expired errors point to a short token lifetime, a broken refresh token, or IdP clock drift. A federation mismatch points to the SAML assertion, the NameID format, or an expired IdP certificate. All four paths end at the same rule: fix the cause at the owning component first (IdP for assertion/certificate faults, device for time-drift/cookie

faults), then retest with one user before closing the incident.

5.1.2 Biometrics and Their Failure Modes

Biometrics prove identity from something a person is. Common factors are fingerprint, face, iris, and voice. False acceptance lets the wrong person in. It is the most dangerous biometric error, so thresholds are set to keep it very low. False rejection keeps the right person out. Wet fingers, poor light, injury, aging, and dirty sensors all raise false rejections. Liveness detection checks that a real person is present.

It blocks photos, recordings, and masks presented to a sensor.

Biometric templates must never be stored as raw images. Store protected templates, encrypt them, and keep a non-biometric fallback that is just as strongly controlled. A help-desk reset must not become an easy bypass around a strong biometric.

EXAM TIP

When a scenario says valid users are repeatedly rejected by biometrics, think false rejection and sensor or threshold problems. When it says an impostor was accepted, think false acceptance. The exam uses those two failure

modes to test whether you can name the error before you fix it.

5.1.3 Secrets Management: Tokens, Certificates, Passwords, and Keys

DEFINITION

Secrets management. The controlled life cycle of tokens, certificates, passwords, and cryptographic keys: creation, storage in a vault, controlled use, rotation, and secure deletion. Its goal is that no secret lives in code, email, a spreadsheet, or one person's memory.

Tokens grant short-lived access. Access tokens and refresh tokens must expire, be scoped to one task, and be revoked when a session ends or looks wrong.

Certificates prove identity for users, devices, and services. Most certificate outages are expiry outages, so inventory, alerting, and automated renewal matter more than manual calendars.

Passwords remain a secret class, even with MFA. Service-account passwords need vault storage, long random values, and no interactive sign-in where the platform allows it.

Keys protect data and sign code and tokens. API keys, signing keys, and encryption keys need separate duties, restricted use, and logged access. Rotation replaces a secret on a schedule and on suspicion. Rotate at once after staff departure, suspected exposure, vendor breach, or any copy found outside the vault. Deletion ends the life cycle. Retired secrets must be revoked and destroyed, not just removed from one application.

An old key that still works is still a key. A practical secrets program has five parts.

CORE CONCEPT

Most IAM outages and many IAM breaches share one root: a secret outlived its safe life. Expiry causes the outage. Non-rotation causes the breach. A mature program treats rotation, expiry alerting, and deletion as one life cycle, not three separate tasks.

5.1.4 SAML, OpenID Connect, OAuth, and Federation

DEFINITION

Federation. A trust arrangement in which an identity provider (IdP) proves who a user is and a separate service provider (SP) or relying party trusts that proof. Federation is what makes single sign-on across organizations and applications possible.

SAML is the older enterprise federation protocol. The IdP sends a signed XML assertion to the service provider. It states who the user is, when they authenticated, and what attributes they carry.

Common SAML faults are practical, not exotic. Clock skew breaks assertion validity windows. An expired signing certificate breaks trust. A wrong entity ID or reply URL sends the assertion to the wrong place. An unsigned or wrongly signed assertion is rejected, as it should be.

OpenID Connect, usually shortened to OIDC, adds identity to OAuth 2.0. It returns an ID token, usually a JSON Web Token, that tells the application who signed in.

OAuth itself is about authorization, not authentication. OAuth grants an application limited access to a resource, using access tokens and scopes, without sharing the user's password.

Keep that distinction sharp. OAuth answers, "What may this app do?" OpenID Connect answers, "Who is this user?" SAML answers the identity question for older enterprise applications.

Identity proofing happens before any of this works. It is the enrollment step that checks a claimed identity against evidence, such as government documents, records checks, and in-person or supervised remote verification. Weak proofing means every later control protects an account that may belong to the wrong person.

EXAM TIP

If a scenario asks which protocol provides authorization with delegated access and scopes, the answer is OAuth. If it asks which provides identity on top of OAuth, the answer is OpenID Connect. If it describes signed XML assertions between an IdP and a service provider, the answer is SAML. Do not let a distractor swap those roles.

Worked example — the claim that causes the 403. A user signs in

successfully, then receives a 403 from the PBQ labs application. The analyst decodes the ID token the application was offered:

Header: { "alg": "RS256", "typ": "JWT", "kid": "idp-key-2026-03" } Payload: {

"iss": "https://login.certcrack.com", "sub": "a.osei@certcrack.com",

"aud": "certcrack-practice-engine", "exp": 1793923200,

"iat": 1793919600, "groups": ["candidates", "pbq-labs-beta"], "amr": ["pwd", "mfa"]

}

Reading the token. Every field is healthy except one. The issuer is the real IdP, the token sits inside its validity window, and the amr claim proves MFA happened — authentication is not the fault. The audience claim, aud, names the practice engine, but the user is knocking on the labs application, which expects the audience certcrack-pbq-labs and correctly refuses a token minted for a different audience. The fix lives in the IdP's application registration — request the labs audience at sign-in — not in the user's account.

5.1.5 Conditional Access, Attestation, and Cloud IAM Policies

DEFINITION

Conditional access. Policy that grants, limits, or blocks access based on signals at sign-in: user risk, device health, location, application sensitivity, and authentication strength. The same user can be allowed on a managed laptop and challenged or blocked on an unknown device.

Signals drive the decision. Useful signals include sign-in risk, impossible travel, device compliance, client type, and the sensitivity of the target application.

Outcomes should be graduated. Allow, allow with MFA, require a compliant device, limit the session, or block. A policy with only allow and block creates help-desk pressure to make exceptions.

Attestation proves a device or workload is in a known good state. The device reports measurements, such as boot state and integrity values, and the platform checks them before trusting the device.

Attestation failures usually mean one of three things. The device changed, for example after an update. The measurement service cannot be reached. Or the device is genuinely compromised and the control is working.

Cloud IAM policies control access inside cloud tenants. They attach permissions to identities, groups, roles, and resources. Most cloud breaches through IAM come from policies that are broader than the job needs.

Troubleshoot cloud IAM in this order.

1. Step 1 — Confirm the exact identity the workload or user actually used.

2. Step 2 — Read the effective policy, including inherited and boundary policies, not just the one policy you expected.

3. Step 3 — Check for an explicit deny, which overrides allows in major cloud platforms.

4. Step 4 — Check resource-based policy, condition keys, and organization-level guardrails.

5. Step 5 — Fix with the smallest permission change that restores the task, then test.

5.1.6 MFA, SSO, Kerberos, SAE, PAM, EAP, and 802.1X

Multifactor authentication (MFA) requires two or more factor types. The three factor types — something you know, something you have, and something you are — are distinct categories. Two passwords are not MFA.

MFA failures include lost devices, time drift for one-time codes, push fatigue, and weak fallback methods. Push fatigue is a real attack: the attacker triggers repeated prompts until the user approves one. Number matching and prompt limits reduce that risk.

Single sign-on (SSO) lets one authentication serve many applications. SSO improves user experience and central control. It also makes the IdP a high-value target and a single point of failure, so the IdP needs the strongest hardening in the estate.

Kerberos is the ticket-based protocol behind most domain authentication. A client gets a ticket-granting ticket from the Key Distribution Center, then service tickets for each service. Clock skew beyond the allowed tolerance, stale tickets, and service principal name errors are classic Kerberos faults.

Simultaneous Authentication of Equals (SAE) is the password-authenticated key exchange used by WPA3. It resists offline dictionary attacks against captured traffic and gives forward secrecy. A client that cannot do SAE falls back in transition mode, which weakens the gain, so troubleshooting starts by checking what was actually negotiated.

DEFINITION

Privileged access management (PAM). The controls around powerful accounts: vaulting their credentials, just-in-time elevation, session recording, and approval workflows. PAM exists because one stolen admin credential can compromise the whole estate.

Extensible Authentication Protocol (EAP) is a framework, not one method. EAP carries authentication exchanges for network access. EAP-TLS uses certificates on both sides and is the strongest common method. Weaker methods that tunnel passwords need careful validation of the server certificate, or users will trust a rogue server.

IEEE 802.1X applies EAP at the network edge. The supplicant on the device, the authenticator in the switch or access point, and the authentication server together decide whether a port or wireless connection opens. Certificate errors, wrong VLAN assignment after authentication, and a failed RADIUS service are the faults to check first.

SCENARIO

CertCrack.com rolls out SSO for its support team. On Monday, half the team can sign in. The other half gets a SAML error after entering MFA. The IdP was not changed over the weekend. The failing users are all in a new office whose workstations were reimaged on Friday. Their workstation clocks are seven minutes fast. Identify the most likely cause and the first fix.

Discussion. The most likely cause is clock skew breaking the SAML assertion validity window. SAML assertions are only valid for a short time window, and a seven-minute skew can put the assertion outside it. The first fix is to correct workstation time synchronization, then retest. Do not weaken the assertion window or disable signature checks: those changes would hide a time fault by weakening federation security.

Worked example — the log side of a NAC failure. A laptop authenticates to

the wired network every morning except today. The log of the FreeRADIUS server — the widely used open-source RADIUS server — holds both days:

Mon Nov 2 08:01:14 2026 : Auth: (2214) Login OK: [a.osei] (from client switch-acc-03 port 5, EAP-TLS)

Tue Nov 3 08:02:41 2026 : Auth: (2387) Login incorrect: [a.osei] (from client switch-acc-03 port 5)

Tue Nov 3 08:02:41 2026 : ERROR: (2387) eap_tls: SSL says error 10: certificate expired

Tue Nov 3 08:02:42 2026 : Auth: (2388) Login incorrect: [a.osei] (from client switch-acc-03 port 5)

Tue Nov 3 08:02:42 2026 : ERROR: (2388) eap_tls: SSL says error 10: certificate expired

Reading the log. Five fields carry the evidence: time, identity, the NAS (switch-acc-03, port 5), the result, and the reason. Monday's accept proves the account, the switch, and the policy are all capable of working. Today's rejects repeat with a single reason — the client certificate expired overnight — which is why the failure is total rather than intermittent. No ACL is involved yet: the session never reaches authorization. Renew the machine certificate; do not touch the NAC policy. This is the authentication half of the split that Section 5.3.6's method insists on, and the ACL faults of Section 5.3.7 only begin once a

log line like Monday's appears.

5.1.7 A Troubleshooting Method for IAM Failures

Figure 32 maps symptoms to likely causes. The method behind the map matters more than any single branch.

Step 1 — Name the subject. Decide whether the failing requester is a user, process, device, or service. This one decision removes half the possible causes at once.

Step 2 — Find the failing stage. Separate proofing, authentication, authorization, and session problems. A user who was never proofed correctly, a user who cannot authenticate, and a user whose token lacks a scope need three different teams.

Step 3 — Read the error and the log together. Client errors are vague by

design. Server logs carry the real reason: expired, revoked, wrong audience, wrong issuer, failed policy, or failed attestation. Match the timestamp on both sides before changing anything.

Step 4 — Check time, certificates, and secrets first. In practice, most

federation, Kerberos, and token failures trace to clock skew, an expired certificate or secret, or a rotated key that one side never received. These checks are fast and safe.

Step 5 — Check policy before permissions. Conditional access, cloud policy,

and explicit denies can block an account whose permissions look correct. Read the effective decision, including the reason the policy engine recorded.

Step 6 — Fix narrowly and retest as the subject. Make the smallest change

that explains the evidence. Then test using the same subject, device, and path that failed, not an administrator account that bypasses the policy.

Step 7 — Record the cause in the service's runbook. IAM failures repeat. A

short note naming the symptom, the log line, and the fix turns the next 2 a.m. incident into a ten-minute task.

One warning applies to every step. Never troubleshoot by weakening the control: do not extend token lifetimes to a day, disable MFA for a group, or turn off signature checks to "see if that is the problem." Test in a staging tenant or with a single test account instead. A troubleshooting change that stays in production becomes the next audit finding, and often the next breach path.

CertCrack.com keeps a standing rule for its own platform: any emergency IAM change expires automatically after 24 hours unless a second engineer reviews and renews it. The rule has caught three forgotten exceptions in a year. Each one would have become a permanent hole.

Keep one distinction in view while you work the method. Authentication answers who the subject is. Authorization answers what that subject may do. A failure in the first produces sign-in errors. A failure in the second produces access errors after a successful sign-in. Reporting which of the two failed, in the first sentence of an incident note, saves the responding team from repeating checks that were never the problem and focuses the fix on the right system from the start.

5.1.8 Privileged Identity Management and User-to-Device Binding

Privileged identity management (PIM) is the identity side of privileged access management (PAM): privileged identities are eligible rather than standing. A privileged identity is activated just-in-time for an approved task, used under session recording, and then deactivated — so there is no standing privileged account for an attacker to steal. PAM vaults the credential; PIM governs the identity itself.

User-to-device binding ties a credential or session to a specific managed device, so stolen credentials alone cannot authenticate from another device. Conditional access enforces it: sign-in is allowed only when the device is compliant and bound to the user, and the session token is unusable on an unbound device.

5.2 Securing Endpoints and Servers (Objective 3.2)

Endpoints and servers are where attacks land. Email, web, removable media, and stolen credentials all end at a device that runs code. Objective 3.2 is about stacking controls so that one failure does not equal compromise. No single endpoint tool carries the whole load.

Figure 33 — Endpoint protection is a stack of layers, so one failed control does not expose the device.

Reading Figure 33. Read the stack from the top down. MDM and device management enroll the device and push policy. Application control allowlisting decides which programs may run at all. The EDR or XDR agent watches behavior and records telemetry for investigation. HIPS and exploit prevention block memory attacks that signature tools miss. The host firewall limits which network traffic reaches the device. SELinux or another MAC policy confines processes even when an account is abused. The hardware and OS base anchors everything else. The note at the bottom states the design rule: each layer exists to stop what the layer above it missed, so no single failure is fatal.

Figure 34 — Alert A-2291: a macro infection that reaches LSASS memory in under a minute.

Reading Figure 34. Read the tree from the top. A Word document opens, launches encoded PowerShell — suspicious, but common in staged attacks — and thirty-six seconds later a process reads LSASS memory. That third node is what converts a malware infection into a credential-theft incident: whoever holds the LSASS dump holds reusable credentials for every account logged on to the machine (or cached in memory). The fourth line, a download by certutil, is the second stage arriving. In the endpoint stack of Figure 33, this alert is the EDR layer doing the job the anti-malware layer missed, and the response clock starts at the LSASS line, not the first.

5.2.1 Application Control, Anti-Malware, and Host Intrusion Prevention

DEFINITION

Application control. A control that decides which code may run, usually by allow list, publisher, or hash. Approved applications run; everything else is blocked or requires approval. It directly counters unauthorized execution.

Allow listing is the strongest form. Only known approved code runs. It suits servers, fixed-function devices, and high-risk user groups best. Block listing stops known bad code. It is easier to run but always behind. New malware is, by definition, not yet on the list.

Anti-malware detects and removes malicious code. Modern tools combine signatures, behavior, reputation, and cloud lookups. A gap in updates, an

exclusion added for convenience, or tamper protection switched off can silently remove this layer.

HIPS is a host-based intrusion prevention system. It watches behavior on the host and blocks actions that match attack patterns, such as a document spawning a shell. HIDS is the detection-only counterpart. It alerts on the same behavior but does not block. Know the difference: prevention acts, detection reports.

On servers, pair application control with change control. A server that runs only its approved workload, and alerts on any new binary, is far harder to use as a foothold.

5.2.2 EDR, Logging, and Attack-Surface Monitoring

DEFINITION

Endpoint detection and response (EDR). An endpoint platform that records process, file, network, and identity activity, detects malicious behavior, and supports response actions such as isolating a host or killing a process. EDR provides the evidence that anti-malware alone cannot.

Event logging and monitoring feed everything else. Endpoints must log authentication, process creation, privilege use, and security-tool tampering, and forward those logs off the device. Logs that stay only on a compromised host will not survive the compromise.

Attack-surface monitoring watches what the endpoint exposes. Open ports, local services, installed software, local administrators, and internet-facing features are all surface. The task is continuous: find new exposure, remove what is not needed, and track the rest.

Configuration management keeps endpoints at a known secure baseline. Desired-state tooling compares each system with the baseline and reports or repairs drift. An unmanaged exception process will undo this control within months.

CertCrack.com runs this as a weekly loop for its exam-delivery servers. Scan the surface. Compare with baseline. Fix drift. Review new software. The loop is dull, and that is why it works.

EXAM TIP

Choose EDR when the scenario needs investigation, timeline, or response on the endpoint. Choose anti-malware for basic prevention, HIPS for blocking hostile behavior on the host, and HIDS when the requirement is detection and alerting only. The exam tests those boundaries.

5.2.3 Privilege Management, SELinux, Host Firewalls, and Browser Isolation

Endpoint privilege management removes standing local admin rights. Users work as standard users. Elevation is granted per application or per task, with approval and logging where the risk justifies it.

This one control blunts many attacks. Malware running as a standard user cannot easily disable security tools, dump system credentials, or install persistence at system level.

SELinux is mandatory access control for Linux. It labels processes and files and enforces policy about which labeled process may act on which labeled object. In enforcing mode it blocks violations. In permissive mode it only logs them, which is a common hidden cause when a control looks present but does not protect.

Troubleshoot SELinux by reading its audit denials first. Relabeling a file or fixing a policy boolean is usually the right fix. Disabling SELinux removes the control and should be treated as a finding, not a fix.

A host firewall filters traffic on the device itself. It protects the host on hostile networks, limits lateral movement between hosts on the same segment, and controls outbound traffic from servers that should only talk to named destinations.

Browser isolation moves web browsing away from the endpoint. Pages run in a remote or isolated environment and only a safe display reaches the user. Drive-by downloads and browser exploits then land in a disposable space, not on the workstation.

DEFINITION

Browser isolation. A control that executes web content away from the user's device, in a remote service or a local isolated container, so malicious pages cannot directly reach the endpoint's files, credentials, or network. It is most valuable for high-risk users and uncategorized sites.

Worked example — a denial, decoded. After an administrator copies a new configuration file onto a web server by hand, the site begins returning 403 errors. The audit log holds one repeated line:

type=AVC msg=audit(1793808014.311:8841): avc: denied { read } for pid=2214 comm="httpd"
  name="app.conf" dev="sda2" ino=1048577
  scontext=system_u:system_r:httpd_t:s0
  tcontext=unconfined_u:object_r:user_home_t:s0
  tclass=file permissive=0

Reading the denial. Work the fields in order. The denied action is read; the actor is httpd, running in the httpd_t domain; and the target file carries the type

user_home_t — a home-directory label, because the file arrived by way of a home directory. SELinux compares types, not permission bits: the file can be world-readable and still correctly refused, and permissive=0 confirms the denial was enforced rather than merely logged. The fix is to relabel the file to its proper type — restorecon for the file, semanage fcontext for the permanent rule. The one fix that is never correct is disabling SELinux: that trades a one-file fault for the loss of the control itself.

5.2.4 Mobile Device Management and Server Hardening

Mobile device management (MDM) enrolls phones and tablets into policy. It can require encryption and a passcode, push applications and certificates, restrict features, report compliance, and wipe company data when a device is lost or a person leaves.

MDM troubleshooting follows enrollment first. An unenrolled device gets no policy and no certificates. That one fact explains many "the policy does not work" reports on mobile fleets.

Server hardening applies the same thinking to servers. Remove unused roles. Patch on a tested cadence. Restrict management interfaces. Log centrally. Control applications. Back up and test restores.

Servers also need role-specific baselines. A database server, a web server, and a domain controller expose different services and hold different value. One generic baseline for all three will be too weak for one and unworkable for another.

Worked example — a hardened SSH baseline, line by line. Server

hardening becomes testable when it is written as configuration. This excerpt from a Linux server's sshd_config is the management-interface line of the baseline above, made literal:

# /etc/ssh/sshd_config — hardened baseline (excerpt)
PermitRootLogin no
PasswordAuthentication no
PubkeyAuthentication yes
AuthenticationMethods publickey
MaxAuthTries 3
AllowUsers svc-deploy m.okafor
X11Forwarding no
ClientAliveInterval 300
ClientAliveCountMax 2

Reading the excerpt. The first four lines remove the password from remote administration entirely: root cannot log in directly, password authentication is off, and only public-key authentication is accepted — password spraying against this server has nothing to spray at. AllowUsers then shrinks the target set to one service account and one named administrator; every other valid system account

is refused at the SSH layer even with a key. MaxAuthTries bounds guessing within a connection, and the ClientAlive pair closes abandoned sessions after ten idle minutes. Each line is also a checkable fact: the benchmark scans of Chapter 6 test these exact settings, which is what makes this a baseline rather than an intention.

CORE CONCEPT

Endpoint security is a stack, not a product. Application control stops unknown code, anti-malware and HIPS block known and behavioral threats, EDR records and responds, privilege management limits damage, and

configuration management keeps all of it from drifting away. Test each layer by asking what happens when the layer above it fails.

5.2.5 Threat-Actor TTPs on Endpoints

Objective 3.2 names the tactics you must recognize on endpoints. Learn each one with its best counter.

Injections place attacker input into a command, query, or process. On endpoints this includes process injection into a trusted program. Counters are application control, EDR behavior rules, and least privilege.

Privilege escalation turns limited access into admin or system access. Attackers use unpatched flaws, weak service permissions, and writable paths. Counters are patching, privilege management, and service hardening.

Credential dumping extracts passwords, hashes, or tickets from memory or storage. Counters are credential isolation, disabling legacy credential caching, EDR rules on the dumping tools and targets, and rapid rotation after exposure.

Unauthorized execution runs code the organization never approved. Counters are allow listing, signed-code requirements, and blocking script hosts and macros where the business does not need them.

Lateral movement spreads from the first host to others. Counters are host firewalls, segmentation, unique local admin passwords, and restricting remote administration paths.

Defensive evasion hides the attack from your tools. Attackers disable logging, tamper with EDR, blend into trusted processes, and use living-off-the-land binaries. Counters are tamper protection, off-host logging, and alerting on the act of disabling a control itself.

SCENARIO

A CertCrack client finds that a finance workstation opened an invoice document, after which a shell started and credentials were later used on a second workstation. The anti-malware reported nothing. The EDR was in audit mode only. Name the TTPs present and the two control changes that would most reduce repeat risk.

Discussion. The TTPs are unauthorized execution (document spawning a shell), probable credential dumping (credentials reused), and lateral movement (use on a second workstation), with defensive evasion helped by audit-only tooling. The two highest-value changes are to move EDR to active prevention with tamper protection, and to remove standing local admin rights through endpoint privilege management, supported by application control for document-to-shell behavior. Audit mode records an attack; it does not stop one.

5.2.6 Building an Endpoint Baseline That Holds

Controls fail quietly when nobody owns the baseline. A baseline is the approved state for each device class: operating system version, patch level, applications, services, security tools, and settings.

Start from the vendor and benchmark guidance. Use recognized secure

configuration benchmarks as the draft, then adjust for the organization's applications. Record every adjustment and its reason.

Test the baseline on a pilot group. Servers and workstations break in

different ways. A pilot finds the one legacy application that needs an exception before the exception becomes an emergency.

Deploy in rings. Move from pilot, to early adopters, to the full estate. Each ring proves the change at a larger scale, and a fault stops at a small ring instead of everywhere.

Measure compliance continuously. Configuration management should report the percentage of devices at baseline, the age of the oldest drift, and the exceptions still open. A single compliance number without age hides old, risky exceptions behind new, harmless ones.

Expire every exception. An exception names an owner, a reason, a compensating control, and an end date. When the date passes, the exception is renewed with fresh evidence or the device is brought back to baseline.

Protect the tools themselves. EDR, anti-malware, and logging agents need tamper protection, monitored health, and alerts when a device stops reporting. A silent agent is worse than a missing one, because dashboards still show it as installed.

For servers, add one more discipline: build from images, do not repair by hand. A server rebuilt from the approved image returns to a known state. A server patched by hand over years becomes a unique object that nobody can reproduce, patch confidently, or replace quickly during an incident.

5.3 Troubleshooting Network Infrastructure Security (Objective 3.3)

Network faults and network attacks can look alike. Traffic stops, slows, or goes to the wrong place in both cases. This section builds a troubleshooting order. Start with configuration. Then check the security devices. Then use observability to prove what the traffic actually did.

5.3.1 Misconfigurations, Configuration Drift, and Routing and Switching Errors

DEFINITION

Configuration drift. The gradual difference between the approved configuration of a device or system and its actual running configuration, caused by manual changes, partial updates, and undocumented fixes. Drift is dangerous because the documented network is no longer the real network.

Misconfigurations are the single most common network security fault. An overly broad firewall rule, an open management interface, a trunk port in the wrong mode, or a cloud security group opened for a test and never closed can each expose the estate.

Configuration drift is how misconfiguration accumulates. One engineer fixes an outage by hand. The change is never written back to the template. The next deployment copies the old template, and the fix and the fault both spread unevenly.

The counter is a control loop. Keep configurations in version control. Compare running state with approved state automatically. Alert on differences. Require changes through the normal change process, with an emergency path that still records the change.

Routing errors send traffic the wrong way. A wrong static route, a bad route advertisement, or a missing return route can black-hole traffic or send it through a path with no inspection. Asymmetric routing through stateful firewalls is a classic cause of sessions that start and then drop.

Switching errors break segmentation. A port in the wrong VLAN, a native VLAN mismatch, or a spanning-tree problem can merge segments that policy meant to

keep apart, or isolate a segment completely. Always verify VLAN assignment from the switch, not from the diagram.

EXAM TIP

When several unrelated network problems appear slowly over months, choose configuration drift over a single device failure. When one new problem follows one change, roll back or compare that change first. The timeline in the stem is the clue.

5.3.2 IPS/IDS Issues and Observability

An intrusion detection system (IDS) watches traffic and alerts. An intrusion prevention system (IPS) sits in line and can block. That placement difference explains most of their faults.

False positives block or alert on good traffic. An in-line IPS with an aggressive new signature can take down a business application. Tune by understanding the traffic, not by disabling the signature set.

False negatives miss real attacks. Encrypted traffic that is never inspected, signatures that are out of date, and sensors placed where the traffic does not pass all create silent gaps.

Placement faults are common after network changes. A new link, a moved server, or a changed route can bypass a sensor entirely. The console still shows the sensor as healthy because it is healthy; it is just watching the wrong traffic.

Observability is the ability to explain what the network did. It rests on logs, metrics, traces, flow records, and packet capture, all with synchronized time. Without time synchronization, events from different devices cannot be reliably ordered.

A useful observability check has four questions.

CORE CONCEPT

You cannot troubleshoot what you cannot see. Observability is not a reporting extra; it is the evidence base for every other control in this section. When a scenario says a device was healthy but no traffic was logged, treat the

visibility gap itself as the finding.

5.3.3 DNS Security: DNSSEC, Poisoning, Sinkholing, and Zone Transfers

Figure 35 — The resolver validates DNSSEC signatures down the chain of trust, and diverts blocklisted domains to a sinkhole.

Reading Figure 35. Start at the left. The stub resolver on the user device sends the query to the recursive resolver, which asks the authoritative server for the signed zone. The answer flows into the DNSSEC validation box: the resolver checks signatures down the chain of trust, from the root, through the TLD, to the zone, so a forged answer fails validation. A validated answer, bottom left, is returned to the user. The branch on the right handles the hostile case: if the domain is on a blocklist, the query is diverted to the sinkhole server, shown with red borders, which logs the attempt and blocks the harmful connection.

DEFINITION

DNSSEC. A set of DNS extensions that adds digital signatures to DNS records so a resolver can verify that an answer really came from the zone owner and was not changed in transit. DNSSEC gives authenticity and integrity; it does not encrypt DNS queries.

DNS poisoning puts false records into a resolver cache. Users asking for a real name are sent to an attacker address. Signed zones, validating resolvers, and patching resolver flaws are the counters.

DNS sinkholing turns that same mechanism into a defense. A known malicious domain is redirected to a controlled sinkhole server. Infected hosts reveal themselves by connecting, and the malicious connection goes nowhere harmful.

Zone transfers copy an entire DNS zone between servers. They are needed between legitimate servers and dangerous from anywhere else. An open zone transfer hands an attacker a full map of hostnames. Restrict transfers to named secondary servers and log attempts.

Troubleshoot DNS security in layers. Check the record itself. Check whether the resolver validates DNSSEC. Check whether the answer came from cache or authority. Then check whether a sinkhole or filtering service intentionally changed the answer, because a deliberate block can look exactly like a fault to a user.

DEFINITION

Sinkholing. Redirecting traffic for a malicious domain to a controlled server, usually by DNS, so connections from infected hosts are blocked, logged, and used to find and clean those hosts. A sinkhole turns an attacker's domain into a detection source.

5.3.4 Email Security: S/MIME, DKIM, SPF, and DMARC

Figure 36 — SPF, DKIM, and DMARC each answer a different question before the gateway delivers, quarantines, or rejects the message.

Reading Figure 36. Follow one inbound message from left to right. First, the SPF check asks whether the sending server's IP address is listed in the sender domain's SPF record. Next, DKIM verification checks the cryptographic signature against the public key in DNS, proving the message was not altered. Then the DMARC policy check asks whether the visible From domain aligns with the SPF

and DKIM results, and what the domain owner wants done on failure. Only after all three checks does the gateway issue its verdict, shown along the bottom: deliver the message, quarantine it for review, or reject it outright, marked with a red border.

Email security fails in public. A spoofed message that passes checks damages trust in every real message from the domain. Four controls work together, and the exam expects you to keep their jobs separate.

SPF (Sender Policy Framework) lists which servers may send for a domain. The receiving server checks the sending server against the published list. SPF checks the envelope path, not the visible From header the user sees.

DKIM (DomainKeys Identified Mail) signs the message. The sending domain signs selected headers and body with a private key. Receivers verify with the public key in DNS. A valid signature proves the message came from a signer for that domain and was not changed in the signed parts.

DMARC ties SPF and DKIM to the visible From domain. It requires alignment, tells receivers what to do on failure (none, quarantine, or reject), and sends reports back to the domain owner. DMARC is the policy layer that turns the other two checks into enforcement.

S/MIME protects the message itself. It signs and encrypts individual messages using certificates, giving end-to-end confidentiality and sender authentication that survive forwarding through gateways. SPF, DKIM, and DMARC protect the sending domain; S/MIME protects the content and the individual sender.

DEFINITION

DMARC. An email policy protocol that checks whether SPF or DKIM results align with the visible From domain, instructs receivers to monitor, quarantine, or reject failing mail, and returns aggregate reports to the domain owner. A reject policy is the enforcement end state.

A practical rollout order prevents self-inflicted outages.

1. Step 1 — Inventory every legitimate sender, including marketing, support, and cloud services.

2. Step 2 — Publish SPF covering those senders and fix alignment.

3. Step 3 — Enable DKIM signing on every legitimate source.

4. Step 4 — Publish DMARC at monitor mode and read the reports.

5. Step 5 — Move to quarantine, then reject, only after unknown senders are explained.

EXAM TIP

Assign each email control its one job: SPF authorizes sending servers, DKIM signs the message, DMARC enforces alignment with the From domain and reports, S/MIME encrypts and signs individual messages. Questions that offer a correct-sounding control for the wrong job are testing exactly this

separation.

Worked example — reading the three records and the verdict. A message

arrives claiming to be a CertCrack invoice notice from the real domain. Before trusting it, the analyst reads the domain's published records:

$ dig +short TXT certcrack.com "v=spf1 ip4:198.51.100.24
  include:_spf.mailprovider.example -all"
$ dig +short TXT _dmarc.certcrack.com
"v=DMARC1; p=reject; rua=mailto:dmarc-reports@certcrack.com; adkim=s; aspf=s"
$ dig +short TXT selector1._domainkey.certcrack.com
"v=DKIM1; k=rsa; p=MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA..."

The received message carries this verdict header:

Authentication-Results: mx.certcrack.com; spf=pass (sender IP is 203.0.113.77)
  smtp.mailfrom=certcrack-alerts.com; dkim=none (message not signed);
dmarc=fail (From: certcrack.com — no aligned SPF or DKIM identifier)

Reading the verdict. The spf=pass is real and worthless: it validates the sending domain, certcrack-alerts.com — a lookalike — not the domain in the From line. DMARC asks the only question that matters: does an identifier aligned with the From domain, certcrack.com, pass? With strict alignment set in the record (adkim=s, aspf=s), no DKIM signature, and SPF aligned to the wrong domain, the verdict is dmarc=fail, and the published p=reject instructs the receiver to refuse the message. Figure 36 draws this chain as a diagram; the records above are what the chain is actually made of.

5.3.5 TLS Errors, Cipher Mismatch, and PKI Issues

Figure 37 — A handshake dies when client and server share no cipher suite; the server ends it with a fatal handshake_failure alert.

Reading Figure 37. Read the exchange from the top down, following the numbered messages between the client lifeline on the left and the server lifeline on the right. In message 1 the client offers only legacy non-ECDHE cipher suites (RSA-3DES and RSA-AES128-CBC) in the ClientHello. The server finds no acceptable suite and immediately sends message 2, a fatal handshake_failure alert shown in red, and closes the connection. There is no ServerHello in this path and no further client message: the server selects a suite or fails the handshake, it does not negotiate its requirements with the client. The result box confirms that no application data was ever sent.

TLS errors appear at connection setup, so users see them as total failures. The handshake must agree on a protocol version and a cipher suite, verify the certificate, and match the name the client expected.

Cipher mismatch means client and server share no acceptable suite. It happens when a server is hardened to modern suites and an old client offers only weak ones, or when a configuration change removes a suite a partner still needs. The secure fix is to upgrade the weak side or add a still-secure common suite, never to re-enable a broken cipher for convenience.

Version mismatch is the same fault one level up. A client that speaks only an old TLS version cannot connect to a server that correctly requires a modern version.

Certificate faults cause the largest share of TLS errors. Expiry, wrong name, incomplete chain, untrusted issuer, and revoked certificates each produce a distinct error. Read the exact error before changing anything; the error usually names the fault.

PKI issues sit underneath TLS. An unreachable revocation service, a mis-issued certificate from a template with excessive rights, or a private key stored without protection can each break or undermine every service that trusts that PKI. Treat certificate-template changes as high-risk changes, because a template defines who can get which certificate.

Worked example — a failed handshake, read literally. An analyst tests a

server that older clients cannot reach, forcing the old protocol version those clients use:

$ openssl s_client -connect vpn.certcrack.com:443 -tls1
CONNECTED(00000003)
write:errno=104
---
no peer certificate available
---
SSL handshake has read 0 bytes and written 118 bytes
---
New, (NONE), Cipher is (NONE)
Protocol  : TLSv1
Cipher    : 0000

Reading the output. Three lines carry the diagnosis. "SSL handshake has read 0 bytes" means the server closed the connection without answering — it refused the offered version rather than negotiating down. "Cipher is (NONE)" confirms that no session was ever established, so there is no cipher fault to fix. And "no peer certificate available" is a consequence, not a cause: the handshake died before the certificate was sent. The fault is a version floor, and the fix belongs on the weak side — raise the clients to TLS 1.2 or better — exactly as the cipher-mismatch rule predicts.

Worked example — hunting the same fault on the wire. openssl tests one

client at a time. When the failing client is a fleet, capture the handshake itself with tcpdump, then open the capture in Wireshark:

$ sudo tcpdump -i eth0 -nn 'host 10.10.4.21 and port 443' -c 5
10.10.4.50.51172 > 10.10.4.21.443: Flags [S], seq 2814419201
10.10.4.21.443 > 10.10.4.50.51172: Flags [S.], seq 1174203392, ack 1
10.10.4.50.51172 > 10.10.4.21.443: Flags [.], ack 1
10.10.4.50.51172 > 10.10.4.21.443: Flags [P.], seq 1:518, ack 1, length 517
  (ClientHello)
10.10.4.21.443 > 10.10.4.50.51172: Flags [R.], seq 1
Wireshark display filter: tls.handshake.type == 1 or tls.alert_message

Reading the capture. The TCP handshake completes cleanly — SYN, SYN-ACK, ACK — so the network, the port, and the service are all alive; nothing here is a connectivity fault. The client's next packet carries the ClientHello, 517 bytes of offered versions and cipher suites, and the server's entire reply is a reset. A reset

immediately after the ClientHello means the server rejected the handshake's parameters before any certificate was exchanged: the fault is inside the Hello — version floor or cipher list — which is why the display filter isolates ClientHello messages and TLS alerts. In Wireshark, an alert record just before the reset names the reason outright (handshake_failure, protocol_version); where the server sends no alert, the reset's timing still localizes the fault to the server's TLS policy, and the fix again belongs on the weaker side.

Figure 38 — Eight frames from a separate gateway capture (distinct from the five-packet capture above): a fatal TLS alert and a refused DNS zone transfer (AXFR).

Reading Figure 38. Frames 3 to 6 are the TLS failure of this section, caught in the act: the handshake opens normally, the client offers TLS 1.0 in frame 5, and the server answers with a fatal alert instead of a Server Hello — the expanded pane shows the exact alert, handshake failure, that the drawn sequence of Figure 37 predicts. Frames 7 and 8 are a different lesson in the same capture: an external address asks for a full zone transfer (AXFR), and the DNS server refuses. The refusal is correct; the control is completed by restricting transfers to named secondary servers, so the answer never depends on one server's default.

SCENARIO

After a hardening change, CertCrack.com's partner API rejects connections from one older client system. The error shows the handshake failing because no shared cipher suite was found. The server team proposes re-enabling a weak legacy cipher so the partner can connect this week. Give the better course of action and the reason.

Discussion. Do not re-enable the weak cipher on the shared service; that would lower security for every client to serve one outdated system. The better course is to identify a modern suite both sides support, upgrade or replace the older client's TLS library, or isolate the legacy client behind a dedicated, tightly restricted endpoint with compensating controls and an expiry date. Cipher mismatch is a compatibility fault with a security boundary: fix the weak side, not the strong side.

5.3.6 DoS, DDoS, Resource Exhaustion, and NAC ACL Issues

A denial-of-service (DoS) attack exhausts a resource from one source. A distributed denial-of-service (DDoS) attack does the same from many sources, which makes simple source blocking ineffective.

Resource exhaustion is the underlying mechanism. Bandwidth, connection tables, CPU, memory, application workers, and license counts can each be the resource that runs out first. Troubleshooting must name the exhausted resource before choosing a defense.

Defenses layer by scale. Upstream and scrubbing services absorb volume. Content delivery and anycast spread load. Rate limits and connection limits protect state. Application rules block abusive patterns. Scaling helps only when the bottleneck is a resource that scaling actually adds.

NAC ACL issues are quieter but just as blocking. Network access control assigns a user or device to a segment and applies access control lists. A wrong ACL can put a healthy, authenticated device on a segment that cannot reach its application, or worse, can reach far more than it should.

Troubleshoot NAC by separating authentication from authorization. Did the device authenticate? Which policy matched? Which VLAN and ACL were assigned? Does that ACL permit the needed flow? Most NAC faults live in the policy match, not in the authentication itself.

CORE CONCEPT

For availability attacks, name the exhausted resource first. Bandwidth, state, compute, and application workers each need a different defense, and

spending on the wrong layer leaves the outage unchanged. The same discipline applies to NAC: separate who proved identity from what policy then allowed.

5.3.7 Access Control Lists: Types, Wildcard Masks, and Placement

The NAC faults above are rarely authentication faults; they are list faults. To troubleshoot them — and to write policy that holds up on the exam and on the job

— you need ACLs as a working tool, not as a vocabulary word. This section builds that tool: what an ACL matches, the forms it takes, the wildcard mask it uses instead of a subnet mask, and the placement and ordering rules that decide whether it works.

DEFINITION

Access control list (ACL). An access control list is an ordered set of permit and deny statements that a router, switch, firewall, or NAC policy applies to traffic. Each statement matches packets on fields such as source and destination address, protocol, and port. The device tests the statements from the top down, acts on the first match, and denies whatever reaches the end of the list unmatched.

The same list logic appears in four places. On a router, an ACL filters traffic passing through an interface, in one direction at a time. On a firewall, the rule set is an ACL with state added, so return traffic for an allowed session is admitted without a second rule. In NAC, the policy server hands the switch a downloadable ACL for one authenticated session, and that list alone decides what the device can access. Cloud security groups and host firewall rules are the same idea in other clothing — except security groups are unordered and allow-only, with no first-match rule.

First match wins. The device compares each packet against the statements from the top of the list down, and the first statement that matches decides the packet's fate; later statements are never consulted. Every ACL ends with an implicit deny: a packet that matches nothing is dropped, whether or not a deny statement was ever written. Two consequences follow from those two facts. Order is meaning, so a broad permit placed above a specific deny silently cancels the deny. And a list containing only the lines you remembered to write still blocks everything you forgot.

Table 4 — Standard, extended, and named ACLs compared

FeatureStandard ACLExtended ACLNamed ACL
MatchesSource address onlySource and destination address, protocol, and portsEither standard or extended matching, chosen when the list is created
IdentityNumbered 1–99 (and 1300–1999)Numbered 100–199 (and 2000–2699)Identified by a name, such as PROTECT-WEB-SERVER
EditingIndividual lines cannot be removed on older IOS; the list is rewrittenSame limitation as standardLines carry sequence numbers and can be inserted or removed one at a time
Best useCoarse source filtering, placed close to the destinationPrecise traffic control, placed close to the sourceAny list a team must read, audit, and maintain

ACLs do not use subnet masks. They use wildcard masks, which invert the logic: where the mask bit is 0, the address bit must match exactly; where the mask bit is 1, the address bit is ignored — a "do not care" bit. A wildcard mask is calculated from the subnet mask by subtracting each octet from 255, as this worked example shows for the office subnet used throughout this book.

Step 1 — Start from the subnet to match: the office network 10.10.4.0/24,

with subnet mask 255.255.255.0.

Step 2 — Subtract each mask octet from 255: 255 − 255 = 0 in the first

three octets, and 255 − 0 = 255 in the last, giving a wildcard mask of 0.0.0.255.

Step 3 — Write the pair as it appears in the ACL: 10.10.4.0 0.0.0.255.

Step 4 — Read it back: the first three octets must match exactly and the last octet may be anything, so the statement matches every host from 10.10.4.0 to 10.10.4.255.

Two pairs appear so often that IOS gives them keywords. A single host is written as the address with wildcard 0.0.0.0, or simply host 172.16.8.20. Everything is 0.0.0.0 with wildcard 255.255.255.255, or the keyword any. Writing a subnet mask where a wildcard belongs — 255.255.255.0 instead of 0.0.0.255 — inverts the match, and it is one of the most common real-world ACL faults.

Placement follows what the list can see. A standard ACL matches only the

source address, so it cannot distinguish one destination from another; place it close to the destination, or it will block the source from far more than intended.

An extended ACL matches destination and port as well, so place it close to the source: unwanted traffic is dropped at the first hop instead of consuming the whole path. Finally, an ACL filters nothing until it is applied — to an interface, in a direction, inbound or outbound. When the list is correct but nothing changed, it was usually applied to the wrong interface or in the wrong direction.

Worked example — protecting a web server. CertCrack's exam-results

server, 172.16.8.20, must accept HTTPS only from the office subnet, 10.10.4.0/24. The guest subnet, 10.10.9.0/24, must never reach it, and attempts must be logged; everything else on the path must keep flowing. The extended named ACL below is applied outbound (out) on the server segment's gateway interface (GigabitEthernet0/1) — the single choke point where traffic from both the office (10.10.4.0/24) and guest (10.10.9.0/24) subnets exits toward the server (172.16.8.20):

Router# configure terminal
Router(config)# ip access-list extended PROTECT-WEB-SERVER
Router(config-ext-nacl)# permit tcp 10.10.4.0 0.0.0.255 host 172.16.8.20 eq 443
Router(config-ext-nacl)# deny ip 10.10.9.0 0.0.0.255 host 172.16.8.20 log
Router(config-ext-nacl)# deny tcp any host 172.16.8.20 eq 443 log
Router(config-ext-nacl)# permit ip any any
Router(config-ext-nacl)# exit
Router(config)# interface GigabitEthernet0/1
Router(config-if)# ip access-group PROTECT-WEB-SERVER out

An hour later, the list itself reports how it is performing. Match counters on each line turn the ACL from a hope into evidence:

Router# show access-lists PROTECT-WEB-SERVER
Extended IP access list PROTECT-WEB-SERVER
    10 permit tcp 10.10.4.0 0.0.0.255 host 172.16.8.20 eq 443 (1482 matches)
    20 deny ip 10.10.9.0 0.0.0.255 host 172.16.8.20 log (37 matches)
    30 deny tcp any host 172.16.8.20 eq 443 log (12 matches)
    40 permit ip any any (90314 matches)

Reading the output. The sequence numbers — 10, 20, 30, 40 — are the editing handles: a new statement can be inserted at 25 without rewriting the list, which is exactly what numbered-era ACLs could not do. The counters are the diagnosis. Line 10's 1,482 matches prove the office path works and is used. Line 20's 37 matches mean guest devices are still trying to reach the server — a misdirected application, a stale shortcut, or a probe — and the log keyword means each attempt left a record to investigate.

Line 30's 12 matches are everyone else who attempted HTTPS to the server, refused and logged. Line 40's large count is the rest of the network flowing past, as designed. Build this troubleshooting habit: after any change, a line that should match but shows zero matches is evidence the traffic never arrived — look at routing, VLAN assignment, or the NAC decision above the ACL, exactly as the method in the next section prescribes.

EXAM TIP

ACL questions are won on four traps. First, the implicit deny: an ACL with a single permit line denies everything else, including traffic the scenario never mentioned. Second, order: a broad statement above a specific one wins, however specific the lower line is. Third, the wildcard mask is not the subnet mask — 0.0.0.255 matches a /24, while 255.255.255.0 in that position matches almost nothing the writer intended. Fourth, direction: the same list applied outbound instead of inbound filters a different set of traffic entirely. When two options look identical, the difference is almost always one of these four.

5.3.8 A Troubleshooting Method for Network Security Faults

Network troubleshooting rewards order. Changing rules at random can turn one fault into three.

Step 1 — Define the failed flow exactly. Name the source, destination, port,

protocol, user or device identity, and the time the failure began. "The application is down" is not a flow.

Step 2 — Ask what changed. Review changes to firewalls, routes, VLANs, certificates, DNS, and policies in the window before the failure. Most infrastructure faults follow a change, including a change made to a different system that shares the path.

Step 3 — Walk the path in order. Check the client, access segment and NAC decision, switching and VLAN assignment, routing, firewall and IPS decisions, DNS answer, and finally the server's TLS and application response. The first stage that behaves unexpectedly is where the evidence will be.

Step 4 — Compare with a working flow. A similar device or user that works is a reference. Diff its VLAN, ACL, DNS answer, route, and certificate chain against the failing one. The single difference is usually the cause.

Step 5 — Prove the fix, then watch. Retest the exact failed flow. Then watch the observability tools for the error rate returning to baseline, because a fix that works for one test connection can still fail under load, failover, or a second path.

Keep two traps in mind. First, asymmetric paths: traffic that leaves through one firewall and returns through another will be dropped as invalid, and every device log will look locally correct. Second, silent security drops: an IPS, ACL, or TLS policy that blocks without a user-facing error makes a security control look like an application bug. In both cases, only end-to-end records with synchronized time reveal the truth, which is why observability was treated as a control in its own right earlier in this section.

5.3.9 Insecure Routing and Cryptographic Implementation Issues

Insecure routing is a security fault in the routing plane: unauthenticated routing protocols, missing prefix filtering, and route hijacking. Defenses include routing-protocol authentication (for example, keyed authentication on BGP and OSPF neighbors), prefix filtering and RPKI validation, and continuous monitoring for unexpected route announcements.

Issues with cryptographic implementations are faults in how cryptography is built or deployed, distinct from choosing a weak cipher or protocol version: unpatched TLS stacks, custom or home-grown cryptography, missing certificate validation, hard-coded keys, and weak random-number generation. Always audit the implementation — version, patch level, certificate validation, and key handling — not just the algorithm name.

5.3.10 VPN and Tunnel Errors

A virtual private network (VPN) carries private traffic across an untrusted network inside an encrypted tunnel. When the tunnel fails, users lose access to internal resources while the internet still works — or worse, traffic meant for the tunnel leaks outside it. Four fault families cover most VPN failures.

Split-tunnel faults. Split tunneling sends only selected traffic through the VPN and the rest directly to the internet. A wrong split-tunnel list sends internal traffic outside the tunnel, where it is unprotected and unreachable, or forces public traffic through the tunnel, overloading it. Verify which destinations the client routes through the tunnel against the approved list, and confirm that DNS for internal names resolves through the tunnel, not through the public resolver.

MTU issues. Encryption adds headers, so a packet that fit the physical link may no longer fit the tunnel. The result is a connection that establishes but stalls or drops large transfers while small packets pass. The signs are partial: logins work, file transfers hang. Lower the tunnel MTU or enable MSS clamping so the endpoints size packets for the encrypted path, and confirm with a large-packet test through the tunnel.

Endpoint and authentication faults. A VPN fails at the endpoint when the client certificate has expired, the client software is out of date, or the authentication server rejects the user. These look like tunnel faults but are identity faults: the tunnel never forms. Check certificate expiry and revocation, confirm the client version against the supported list, and read the authentication server's log for the rejected attempt before touching the tunnel configuration.

Troubleshoot a VPN in order. First, confirm the client reaches the gateway at all — a dead gateway is a network fault, not a VPN fault. Second, check authentication: does the gateway log accept or reject the user? Third, check the tunnel itself: is it

established, and does traffic flow both ways? Fourth, check what the tunnel carries: routing, split-tunnel lists, DNS, and MTU. Test with one known flow — one user, one internal application — and compare it against a working user on the same gateway. A fault that follows one user lives in that user's client or credentials; a fault that hits every user lives in the gateway or its shared configuration.

5.4 Hardware Security Technologies (Objective 3.4)

Software controls run on hardware. If the hardware or firmware is compromised first, the software above it may report a healthy system that is not real. Objective 3.4 is about anchoring trust in hardware, protecting data on the device, and detecting physical and firmware tampering.

Figure 39 — Secure Boot enforces cryptographic signatures before each stage executes; Measured Boot independently logs hashes into TPM PCRs to gate disk-key release.

Reading Figure 39. Follow the chain from left to right. The TPM 2.0 chip is the hardware root of trust; it stores the Platform Configuration Registers (PCRs) that hold measurements. The UEFI firmware runs first and is measured into those PCRs. Secure Boot then verifies the digital signatures on the boot code, so unsigned or altered code cannot run. Measured boot extends the hash chain at every stage and logs it, giving evidence of exactly what executed. The TPM releases the sealed disk-encryption key only when the measurements verify; the self-encrypting drive additionally requires its own unlock step in this design. The failure paths at the bottom distinguish enforcement from measurement: Secure Boot halts boot immediately if a signature is invalid, whereas Measured Boot does not block directly — instead, a PCR mismatch causes the TPM to withhold the sealed disk key and flags drift for attestation.

5.4.1 Roots of Trust: TPM, HSM, and vTPM

DEFINITION

Root of trust. A hardware-anchored component whose behavior is trusted by design and which anchors the trust for everything that follows, by measuring, storing, or signing. If the root of trust is sound, later measurements can be believed.

A Trusted Platform Module (TPM) is a chip on the device. It stores keys and measurements, seals secrets to a known system state, and reports platform measurements for attestation. Disk-encryption keys are commonly sealed in the TPM so they are released only when the boot state matches.

A hardware security module (HSM) is a dedicated appliance or module for keys. It generates and stores high-value keys, performs signing and encryption inside the module, and keeps private keys from ever leaving in plain form. Certificate authorities and payment systems protect their keys in HSMs.

A virtual TPM (vTPM) gives a virtual machine TPM functions. It lets cloud and virtual workloads use measured boot and sealed keys without a physical chip per guest. Its trust depends on the hypervisor and host below it, which must themselves be secured.

Choose by value and scale. Use a TPM to anchor each endpoint and server. Use an HSM for the small set of keys whose loss or theft would be catastrophic. Use vTPM where workloads are virtual and need the same boot guarantees.

EXAM TIP

TPM versus HSM is a favorite distinction. A TPM anchors one platform and its boot state. An HSM is a shared, high-assurance key vault and cryptographic engine for the organization. If the scenario protects a CA signing key, choose the HSM. If it seals a laptop disk key to boot measurements, choose the TPM.

5.4.2 Drives, Coprocessors, Enclaves, and Self-Healing Hardware

Self-encrypting drives (SEDs) encrypt data inside the drive itself. Encryption is always on in the hardware, keys are managed by the drive, and cryptographic erase can destroy the key to wipe the drive almost instantly. Management must still control the drive credentials; a self-encrypting drive with default credentials is not secured.

Security coprocessors offload security work from the main CPU. They handle cryptography, key storage, and platform identity in a separate, hardened component, so a compromise of the main operating system does not directly expose them.

CPU security extensions add protection inside the processor. Examples include memory encryption, execution protections, and support for isolated execution environments. They raise the cost of memory-based and side-channel attacks.

DEFINITION

Secure enclave. An isolated execution area inside a processor where code and data are protected even from the main operating system and privileged software. Enclaves are used for the most sensitive operations, such as biometric matching and key use.

Self-healing hardware can detect and recover its own firmware. If firmware is corrupted or rolled back to a vulnerable version, the platform restores a known good copy automatically. This matters most for devices in places staff rarely visit.

Virtual hardware presents emulated devices to virtual machines. Its security task is fidelity and isolation: a virtual device must not become a bridge between guests or between a guest and the host.

Host-based encryption encrypts data from the host or workload. Unlike drive encryption, it can protect data per volume, per workload, or per tenant, and keys can be held outside the device. The two approaches often combine: drive encryption for theft, host encryption for tenant and workload separation.

5.4.3 BIOS/UEFI, Secure Boot, and Measured Boot

BIOS and UEFI are the firmware that starts the machine. UEFI is the modern replacement for legacy BIOS. Firmware settings need passwords, change control, and updates, because firmware runs before every software control.

DEFINITION

Measured boot. A boot process in which each component is hashed and the measurement is recorded, typically in TPM platform configuration registers, before the next component runs. Measured boot does not block a bad component; it creates trustworthy evidence that attestation can check.

Secure Boot verifies signatures as it goes. Firmware checks the bootloader, and each stage checks the next against trusted keys. Unsigned or tampered code is blocked. Secure Boot is an enforcement control.

Measured boot records instead of blocking. Each stage is measured into the TPM. A remote verifier can later check those measurements through attestation and decide whether to release secrets or access. Measured boot is an evidence control.

Together they cover both needs. Secure Boot stops known bad code at the device. Measured boot proves to others what actually ran. A sealed disk key uses both ideas: measurements define the state in which the key is released.

5.4.4 Tamper Detection: EMI/EMP, Firmware Tampering, Shimming, and USB Attacks

Electromagnetic interference (EMI) can disrupt electronics unintentionally. Electromagnetic pulse (EMP) events can damage them. Tamper and environmental design for sensitive sites includes shielding, protected power, and placing critical hardware away from exposed areas.

Firmware tampering changes the code below the operating system. Counters are signed firmware, Secure Boot, self-healing recovery, firmware inventories, and verifying firmware versions against vendor values during audits.

Shimming inserts a small layer between components. In a hardware context, a shim can sit between legitimate parts to intercept or alter communication. Physical inspection, tamper-evident seals, and supply-chain controls are the counters, because software cannot see a purely physical insert.

USB-based attacks abuse trusted ports. Malicious devices can present as keyboards and type commands, carry malware, or attempt electrical damage. Counters are port control by device class and identity, disabling unused ports, and user rules for unknown media.

Tamper detection combines sensors, seals, logs, and response. A tamper switch that no one monitors is decoration. Every detection needs an owner and an action.

SCENARIO

A client will place unattended payment kiosks in public locations. The kiosks must protect card data keys, prove their boot state to the central platform before receiving configuration, and recover if firmware is corrupted. Select the hardware technologies that meet each requirement.

Discussion. Protect high-value signing and card keys in an HSM at the platform side and use each kiosk's TPM to seal local keys. Prove boot state with measured boot and TPM-based attestation before configuration is released. Recover corrupted firmware with self-healing hardware that restores a known good signed image, supported by Secure Boot to block unsigned code. Add tamper detection and USB port control because the devices are physically exposed.

5.4.5 Putting the Hardware Controls Together

The hardware controls in this section form one chain, shown in Figure 39. The root of trust measures the firmware. Secure Boot checks signatures as each stage

loads. Measured boot records what ran. The TPM seals the disk key to those measurements, releasing it only when the boot state matches. The self-encrypting drive protects the data at rest and unlocks through its own credential-based pre-boot authentication, a separate mechanism from the TPM-sealed key. Attestation reports the whole result to a verifier.

Break any link and the effect is specific. If Secure Boot is disabled, unsigned code can load, but measured boot will record a different state and the sealed key should refuse to release. If measurements are never checked by anyone, measured boot becomes record-keeping with no decision attached. If the disk key is also stored in plain text for convenience, the entire chain is theater.

Procurement is a hardware security control. Buy devices with signed firmware, published update support, a TPM or equivalent, and a stated end-of-support date. A cheap device with no firmware update path is a future legacy problem bought at a discount.

Supply-chain checks protect the chain before first boot. Buy from authorized channels, verify serial numbers and firmware versions on arrival, and inspect tamper-evident packaging for high-risk deployments. Shimming and substituted components enter through weak receiving processes, not through the network.

End of life must be planned for hardware too. When a vendor stops signing firmware or a TPM version falls out of support, the device moves into the legacy category of the next section. Record that date at purchase, while replacement is still a budget choice rather than an emergency.

5.5 Securing Specialized and Legacy Systems (Objective 3.5)

Some systems cannot be patched on a normal cycle, cannot run an agent, and cannot be taken offline for testing. Some were never designed to be connected at all. Objective 3.5 does not ask you to pretend these systems are normal IT. It asks you to protect them with the controls their constraints allow.

Figure 40 — Purdue levels stack the plant from enterprise IT down to the physical process, and all traffic crosses the IT/OT boundary at a firewall or a one-way data diode.

Reading Figure 40. Read the stack from the top down. Levels 5 and 4 are the IT side: the enterprise network and business systems such as ERP. Level 3.5, the industrial DMZ, is the buffer where shared services sit. Below it lies the IT/OT boundary band: the only two ways across are the firewall, which passes inspected traffic in both directions, and the data diode, whose arrows point upward only, so data leaves OT for IT but nothing can flow back down that path. Levels 3 to 0 are the OT side: operations systems, supervisory HMI and SCADA, the PLCs and RTUs controlling the process, and Level 0 sensors and actuators.

5.5.1 Operational Technology: SCADA, ICS, and HVAC

DEFINITION

Operational technology (OT). The hardware and software that monitors and controls physical processes and equipment, such as power, water,

manufacturing, and building systems. In OT, safety and availability usually outrank confidentiality, and a wrong action can cause physical harm.

Industrial control systems (ICS) are the general class. Controllers, sensors, actuators, human-machine interfaces, and historians work together to run a physical process.

SCADA supervises control across a wide area. Supervisory control and data acquisition systems collect data from remote sites and let operators supervise and control them centrally. Power grids, pipelines, and water systems use SCADA.

HVAC and environmental systems control heating, cooling, and air handling. They look low-risk and are often forgotten, yet they share networks, use default credentials, and can affect data centers and hospitals where environment is safety-critical.

The Purdue model gives the segmentation language for OT. Process devices sit at the lowest levels. Control systems sit above them. Operations and enterprise IT sit at the top. Traffic should cross between levels only at defined, monitored boundaries, and IT should never reach control devices directly.

Safety changes every decision. You do not run an active vulnerability scan against a fragile controller during production because a textbook says to scan weekly. You use passive discovery, maintenance windows, and vendor-approved methods.

5.5.2 IoT, System-on-Chip, Embedded Systems, and Wireless/RF

Figure 41 — Constrained devices cannot carry normal endpoint security, so the gateway and cloud absorb the controls the device cannot run.

Reading Figure 41. Follow the data path across the top. A constrained IoT device, a sensor or small microcontroller, sends its data to an IoT gateway. The gateway aggregates traffic from many devices and translates their protocols, then forwards it to the cloud platform for analytics and device registration. The three callouts along the bottom explain why the design looks this way. The device runs

on battery with a duty-cycled radio, so it cannot stay awake for heavy security work. Its tiny CPU and RAM leave no room for agents or heavy cryptography, and it has no direct patch path, so signed updates arrive through the gateway only.

DEFINITION

System-on-chip (SoC). A single chip that integrates a processor, memory interfaces, and input/output functions for a small device. SoC devices power much of the IoT and embedded world, and their security depends heavily on firmware and vendor support.

Internet of Things (IoT) devices connect sensing and control to networks. Cameras, badges, printers, sensors, and smart building devices often ship with default credentials, limited update paths, and no endpoint agent support.

Embedded systems are dedicated computers inside other equipment. A controller inside a lift, a pump, or a medical device does one job, runs fixed firmware, and may stay in service for decades.

Wireless and RF add an invisible attack surface. Bluetooth, Zigbee, proprietary radio, and cellular links can be reached from outside the building, may use weak or no encryption, and are easy to overlook in inventories built from wired scans. Rogue and unmanaged wireless is a finding in its own right.

For all of these, identity is the first problem. A device that cannot prove what it is, cannot be patched, and cannot log must be treated as untrusted by design, no matter who bought it.

EXAM TIP

For constrained devices, the exam rewards compensating controls over impossible direct controls. If a device cannot run an agent, the answer is usually segmentation, a gateway, passive monitoring, or an allow-listed communication path — not installing the agent anyway.

5.5.3 Segmentation, Monitoring, Aggregation, and Hardening for Constrained Systems

Segmentation is the primary control. Place specialized systems in dedicated zones. Allow only the exact flows the process needs. Put a controlled boundary, often with a data diode or a brokered gateway, where data must move one way.

Monitoring must usually be passive. Network taps and mirrored traffic feed monitoring tools without touching fragile devices. Baselines matter: in a stable process network, a new conversation is itself an event worth review.

Aggregation collects data safely. An aggregator or historian gathers readings from many constrained devices and presents them upward, so enterprise systems query the aggregator instead of reaching every device. Aggregation reduces exposure and gives monitoring one strong point to watch.

Hardening is selective. Change default credentials where possible. Disable unused services and ports. Remove direct internet access. Control removable media. Where a setting cannot be changed, document it as a constraint and cover it with a boundary control.

CertCrack.com applied this pattern for a manufacturing client. Controllers stayed unpatched during a production run. In return, they were isolated to one zone, reachable only from a jump host with MFA and PAM, monitored passively, and scheduled for vendor-approved updates at the next shutdown. Risk was reduced now, not postponed entirely.

CORE CONCEPT

Constrained-system security is substitution, done honestly. Every control the device cannot carry itself must be carried for it by the network around it: segmentation replaces patching speed, passive monitoring replaces agents, aggregation replaces direct access, and gateways replace missing

authentication.

5.5.4 Industry Challenges

The same constraints play out differently by industry. The exam expects you to recognize the deciding pressure in each sector.

Utilities run long-life grid and water systems across wide areas. Remote sites, safety, and continuous service dominate. Segmentation and passive monitoring fit; downtime for patching is rare and planned far ahead.

Transportation mixes safety-critical control with public access. Rail, aviation, and fleet systems must keep moving. A control that delays safety communication will be rejected, so security must be designed around operational timing.

Healthcare combines legacy medical devices with strict patient-safety and privacy duties. Many devices are regulated as approved units, so changing their software can require vendor or regulatory steps. Segmentation and monitoring protect them without altering the device.

Manufacturing values uptime and predictable processes. An unexpected reboot can scrap a production run or damage equipment. Maintenance windows and vendor-approved patching are the norm.

Financial organizations run specialized payment and trading systems under heavy regulation. Latency can be a decisive constraint, and evidence for auditors matters. Hardware-backed key protection with HSMs is standard for payment keys.

Government and defense add classification, supply-chain, and long

procurement cycles. Systems may be air-gapped, accredited as a whole, and kept in service long past commercial support. Any change can require re-accreditation.

5.5.5 Systems That Cannot Be Secured: Obsolete, Unsupported, and Highly Constrained

Some systems cannot be made secure in themselves. The honest engineering answer is to manage the risk around them and plan their exit. Systems unable to be secured lack the basic hooks. No authentication, no encryption, no logging, and no way to add them. Isolation is the only real control. Obsolete systems have been replaced in the market but still run a business process. Data migration and process dependence, not technical merit, keep them alive.

Unsupported systems no longer receive vendor fixes. Every new vulnerability is permanent for them. Exposure must shrink over time, never grow: no new integrations, no new users, no new network paths.

Highly constrained systems have too little power, memory, or bandwidth for normal controls. Lightweight cryptography, gateway protection, and strict segmentation are designed for exactly this case.

A defensible plan for any such system has four parts.

1. Step 1 — Record the system, its owner, its business need, and why it cannot be secured normally.

2. Step 2 — Isolate it and apply every compensating control the boundary can carry.

3. Step 3 — Monitor the boundary and review the risk acceptance on a fixed date.

4. Step 4 — Fund and schedule replacement or retirement, with a named end date.

Risk acceptance without an end date is not a plan. It is a permanent exception, and permanent exceptions become the breach path.

SCENARIO

A hospital client has imaging devices that run an unsupported operating system. The vendor forbids changes to the device software. The devices must send images to the central archive and must not be reachable from general user networks. Design the protection using only controls outside the devices.

Discussion. Place the devices in a dedicated segment with an allow list permitting only the archive flow and required management from a controlled jump host. Monitor the segment passively and alert on any new conversation. Aggregate access through the archive and management gateway rather than direct device access. Record the unsupported status as accepted risk with a

review date and a replacement plan. Patching the device and installing an agent are not available, so every control must live on the boundary.

5.5.6 Assessing a Specialized System: A Worked Pattern

When CertCrack.com is asked to assess a specialized estate, the team works through the same pattern. It fits a factory, a clinic, or a small utility.

Step 1 — Inventory passively. Build the device list from network observation, purchase records, and site walks. Include wireless and RF devices, spare units, and vendor remote-access paths, which are the most commonly missed entry points.

Step 2 — Classify by constraint. For each system, record whether it can be patched, whether it can run an agent, whether it can authenticate users, whether it can log, and when its vendor support ends. The constraint list, not the device brand, decides the controls.

Step 3 — Map the flows. Draw who and what talks to each system today. Specialized estates almost always contain flows nobody approved: a vendor tunnel left open, a historian replicating to an office server, a controller reachable from a general VLAN.

Step 4 — Apply the boundary controls. Segment, allow-list the approved

flows, put remote access behind MFA and PAM, add passive monitoring and aggregation, and remove every flow that has no owner.

Step 5 — Write the risk record. For each system that remains exposed by constraint, record the risk, the compensating controls, the owner, and the review and replacement dates. This record is what an auditor, an insurer, or a regulator will ask for after an incident.

The pattern is deliberately unglamorous. Specialized systems rarely fail because an exotic control was missing. They fail because nobody had a complete inventory, a flow map, or a boundary that matched either one.

EXAM TRAP

The placement trap. ACL options are won and lost on placement and order. Extended ACLs sit close to the source, standard ACLs close to the destination, and the first match decides — an option whose correct rule sits below a broad permit is a wrong option wearing the right rule. The TLS twin is error-reading: an expired certificate, a name mismatch, and a cipher mismatch produce three different errors and three different fixes. The option that answers a cipher problem for a certificate error has not read the exhibit, and it falls the moment you match the error text to the fault.

Chapter Exercises

SCENARIO

CertCrack.com discovers that a former contractor's API key still works, eleven months after the engagement ended. The key was stored in a build script, was never rotated, and can read customer practice results. No misuse is proven yet. List the immediate actions in order, then the program changes that prevent a repeat.

Discussion. Immediate actions, in order: revoke the key at once, search logs for its use across the full period, rotate any secrets it could have exposed, and review the data it could read for a breach assessment. Program changes: move all such keys into the central vault with short-lived credentials preferred, block secrets in code with scanning, set expiry and rotation by default, tie contractor credentials to engagement end dates with automatic deletion, and alert on any credential unused for a long period and then used. The root failure was life-cycle management, not the contractor.

SCENARIO

A water utility client asks CertCrack.com to "patch and scan everything this month," including live SCADA controllers that have not been rebooted in three years and have no vendor test environment. The operations manager warns that a controller reboot during production could interrupt supply. Propose a plan that improves security this month without that risk, and state what happens later.

Discussion. This month, improve security around the controllers rather than on them: verify and tighten segmentation between IT and OT, restrict control access to a jump host with MFA and PAM, deploy passive monitoring and build a traffic

baseline, inventory firmware and versions from records, and remove any direct internet or general-network paths. Do not run active scans or force reboots on live

controllers. Later, agree vendor-approved patching and testing for a planned maintenance window, build or obtain a test environment, and record the unpatched state as time-limited accepted risk owned by operations and security together.

Chapter Summary

Domain 3 engineering starts with identity. Name the subject type first, protect every secret through its full life cycle, and keep the protocol jobs separate: SAML and OpenID Connect for identity, OAuth for delegated authorization, Kerberos for domain tickets, EAP and 802.1X for network access, SAE for WPA3, PAM for privileged accounts, and conditional access with attestation for context-based decisions. Endpoints need a stack, not a product: application control, anti-malware, HIPS/HIDS, EDR, privilege management, SELinux, host firewalls, browser isolation, configuration management, and MDM, tested against injections, privilege escalation, credential dumping, unauthorized execution, lateral movement, and defensive evasion. On the network, fight drift, verify routing and switching, keep sensors where traffic actually passes, and separate the email jobs of SPF, DKIM, DMARC, and S/MIME. Read TLS errors literally, fix cipher mismatch on the weak side, and name the exhausted resource in any denial of service. Access control lists get a full treatment of their own: standard, extended, and named forms, wildcard masks, placement rules, a worked configuration with its match counters, and the implicit deny that ends every list. Hardware anchors trust: TPM for the platform, HSM for the highest-value keys, Secure Boot to enforce, measured boot to prove, and tamper controls for firmware, shimming, and USB attacks. For OT, IoT, embedded, and legacy systems that cannot carry normal controls, carry the controls on the boundary instead: segmentation, passive monitoring, aggregation, and honest, time-limited risk acceptance with a replacement plan.

Key Terms

End-of-Chapter Test — Chapter 5

Q1. A security engineer at CertCrack.com is troubleshooting a failure in which an application stopped reading its database overnight, although no user accounts changed. Logs show the application's managed credential was rejected as expired. Which subject type and root cause are MOST likely?

A) A user subject with a locked password

B) A service subject whose secret reached the end of its life without rotation

C) A device subject failing biometric matching

D) A process subject blocked by application control

Q2. A hospital deploys fingerprint sign-in for clinical workstations. Clinicians complain that they are frequently rejected when wearing gloves or with wet hands, while no impostor access has been reported. Which biometric problem should the engineer address FIRST?

A) False acceptance caused by a threshold set too loosely

B) False rejection caused by sensor conditions and matching limits

C) Liveness failure caused by use of photographs

D) Template theft caused by unencrypted storage

Q3. A development team needs an application to read a user's calendar on the user's behalf, with limited permissions and without receiving the user's password. The application does not need to establish who the user is for its own sign-in. Which protocol BEST fits this requirement?

A) SAML, using signed XML assertions

B) Kerberos, using service tickets

C) OAuth, using scoped access tokens

D) EAP, using network authentication exchanges

Q4. CertCrack.com enables SSO for a client. After the change, users in one office fail SAML authentication while all other offices succeed. Investigation shows the failing office's workstations have clocks nine minutes ahead of the identity provider. What is the BEST first action?

A) Extend the SAML assertion validity window to one hour

B) Disable SAML signature validation for that office

C) Replace SAML with password authentication for that office

D) Correct time synchronization on the affected workstations

Q5. A security architect wants administrators to receive privileged rights only for an approved task and only for the duration of that task, with sessions recorded and credentials never revealed to the administrator. Which solution BEST meets this requirement?

A) Privileged access management with vaulting and just-in-time elevation

B) Single sign-on with longer session lifetimes

C) A shared administrator password stored in a team vault note

D) Biometric authentication on the administrator workstation

Q6. A server must run only its approved workload. Any new binary, including malware with no known signature, must be unable to execute. Which control BEST meets this requirement?

A) Signature-based anti-malware with daily updates

B) A host-based intrusion detection system in alert mode

C) Application control using an allow list

D) Browser isolation for administrative browsing

Q7. An analyst needs to reconstruct how an attacker moved through a workstation over three days, including process creation and network connections, and then isolate the workstation from the console. Which tool BEST supports this task?

A) Endpoint detection and response

B) A host firewall with default deny rules

C) Mobile device management

D) SELinux in permissive mode

Q8. A Linux server appears protected because SELinux is installed and enabled in its configuration, yet policy violations are occurring without being blocked. The audit log records denials, but the actions succeed. What is the MOST likely explanation?

A) SELinux is operating in permissive mode, logging but not enforcing

B) The host firewall is filtering the SELinux audit traffic

C) The server requires DNSSEC validation before SELinux can enforce

D) Application control has replaced SELinux policy on the server

Q9. A client reports that users who request a legitimate internal site are being sent to an external address, while the authoritative DNS records are correct. Other resolvers return the right answer. Which attack and defense pairing is MOST appropriate?

A) Zone transfer abuse; restrict transfers to named secondary servers

B) DNS sinkholing; publish a DMARC reject policy

C) DNS cache poisoning; deploy signed zones with validating resolvers using DNSSEC

D) Cipher mismatch; add a shared TLS cipher suite

Q10. A domain owner has correct SPF records and DKIM signing, yet spoofed mail using the visible From address still passes at many receivers because no alignment policy is enforced. Reports on failing sources are also not being received. Which control should the owner implement?

A) S/MIME encryption for all outbound messages

B) DMARC with alignment, reporting, and a move toward a reject policy

C) A longer SPF record listing additional marketing senders

D) DNS sinkholing for the corporate domain

Q11. After server hardening, one legacy partner system can no longer connect. Handshake logs show that the client and server share no cipher suite. The partner asks the engineer to re-enable a weak cipher on the public service. What is the BEST response?

A) Re-enable the weak cipher permanently to restore the partnership

B) Disable certificate validation so the handshake can complete

C) Upgrade the partner's TLS capability or isolate it behind a restricted endpoint, keeping the public service strong

D) Lower the server to the oldest TLS version for all clients

Q12. A certificate authority must protect its issuing signing key so that the private key never leaves protected hardware, all signing occurs inside that hardware, and use is tightly logged. Which technology BEST meets this requirement?

A) A Trusted Platform Module in each administrator workstation

B) A self-encrypting drive in the certificate authority server

C) A virtual TPM assigned to the issuing virtual machine

D) A hardware security module protecting the signing key

Q13. A remote verifier must decide whether a server booted only approved components before releasing a disk-encryption key to it. The server does not need the verifier to block boot locally; it needs trustworthy evidence of what ran. Which mechanism provides that evidence?

A) Measured boot, recording component hashes in the TPM for attestation

B) Secure Boot, checking signatures during the boot sequence

C) A self-encrypting drive, encrypting data at rest on the disk

D) Browser isolation, separating web content from the endpoint

Q14. A manufacturing plant runs controllers that cannot be patched outside a shutdown that is nine months away, cannot run agents, and must exchange data with the enterprise network. Which plan BEST protects the controllers during that period?

A) Connect the controllers directly to the enterprise network so patches can be staged early

B) Run weekly active vulnerability scans against the live controllers

C) Segment the controllers, allow only required flows through a controlled boundary, monitor passively, and schedule vendor-approved patching at the shutdown

D) Install the standard endpoint agent on each controller and enforce daily reboots

Answer Key — Chapter 5

1. B — A service subject whose secret expired is right because applications act as service subjects and fail when their credential reaches end of life without rotation. A user subject with a locked password is wrong because no user account changed and the rejected credential belongs to the application. A device subject failing biometrics is wrong because no device or biometric check is involved in a database read. A process subject blocked by application control is wrong because the rejection was an expired credential, not an execution block.

2. B — False rejection is right because legitimate clinicians are being kept out by sensor conditions such as gloves and wet hands, which raise rejection of genuine users. False acceptance is wrong because that error admits impostors, and no impostor access was reported. Liveness failure is wrong because that concerns fake presentations such as photographs, not genuine users being rejected. Template theft is wrong because nothing in the scenario suggests templates were taken or storage was attacked.

3. C — OAuth with scoped access tokens is right because the requirement is delegated authorization with limited permissions and no password sharing, which is exactly OAuth's job. SAML is wrong because it provides federated identity through signed XML assertions, not delegated resource access of this kind. Kerberos is wrong because its service tickets authenticate users and services inside a domain, not third-party delegated permissions. EAP is wrong because it carries network access authentication, not application authorization to a calendar.

4. D — Correcting time synchronization is right because SAML assertions are valid only for a short window, and a nine-minute skew places the office's assertions outside it. Extending the validity window to one hour is wrong because it weakens replay protection to hide a time fault. Disabling signature validation is wrong because it removes the trust check that makes SAML assertions reliable. Replacing SAML with password authentication for one office is wrong because it fragments identity and lowers assurance instead of fixing the clock.

5. A — Privileged access management with vaulting and just-in-time elevation is right because it gives rights only for the approved task and duration, records sessions, and can hide the actual credential. Single sign-on with longer sessions is wrong because it extends access rather than limiting privilege in time. A shared administrator password in a team note is wrong because it removes individual accountability and is not vault-controlled elevation. Biometric authentication is wrong because it proves who signed in but does not manage, limit, or record privileged rights.

6. C — Application control using an allow list is right because only approved code can run, so an unknown binary is blocked regardless of whether any signature exists for it. Signature-based anti-malware is wrong because unknown malware has no signature yet and can execute before detection. A host-based intrusion detection system in alert mode is wrong because it reports behavior but does not prevent execution. Browser isolation is wrong because it protects web browsing, not the execution of arbitrary binaries on a server.

7. A — Endpoint detection and response is right because it records process, file, and network activity over time for reconstruction and provides response actions such as host isolation. A host firewall is wrong because it filters traffic but does not build a multi-day activity timeline or isolate from an analyst console. Mobile device management is wrong because it manages enrolled mobile devices and policy, not workstation attack investigation. SELinux in permissive mode is wrong because it only logs policy violations on Linux and provides neither the timeline nor the response capability required.

8. A — SELinux in permissive mode is right because permissive mode logs denials while still allowing the actions, which matches violations being recorded yet succeeding. The host firewall filtering audit traffic is wrong because the denials are reaching the audit log, so logging is working. DNSSEC validation is wrong because DNS signing has no role in local mandatory access control enforcement. Application control replacing SELinux is wrong because the two controls coexist and the described logging-without-blocking behavior is the definition of permissive mode.

9. C — DNS cache poisoning countered by signed zones and validating resolvers using DNSSEC is right because the authoritative records are correct while one resolver returns false cached answers, and DNSSEC lets resolvers verify authenticity. Zone transfer abuse is wrong because that exposes a copy of the zone rather than corrupting a resolver cache, although restricting transfers remains good practice. DNS sinkholing with DMARC is wrong because sinkholing is a defensive redirection technique and DMARC is an email control, neither of which repairs a poisoned cache. Cipher mismatch is wrong because it is a TLS handshake problem, not a name-resolution problem.

10. B — DMARC with alignment, reporting, and a move toward reject is right because SPF and DKIM alone do not enforce that results align with the visible From domain, and DMARC supplies exactly that policy and its reports. S/MIME encryption is wrong because it protects individual message content and sender signing, not domain-level spoofing policy at receivers. A longer SPF record is wrong because authorizing more senders does not create alignment enforcement and can widen the spoofing surface. DNS sinkholing is wrong because it redirects malicious domains for detection and does not set email authentication policy.

11. C — Upgrading the partner's TLS capability or isolating it behind a restricted endpoint is right because it restores connectivity without lowering security for every user of the public service. Re-enabling the weak cipher permanently is wrong because it exposes all clients to a known-weak option for one partner's benefit. Disabling certificate validation is wrong because it removes server authentication and does not address cipher negotiation. Lowering the server to the oldest TLS version for all clients is wrong because it downgrades the whole service rather than fixing the one weak side.

12. D — A hardware security module is right because an HSM generates and holds high-value private keys inside protected hardware, performs signing there, and logs use, which is the standard protection for a CA signing key. A TPM in administrator workstations is wrong because a TPM anchors its own platform's boot and keys, not a shared CA signing service. A self-encrypting drive is wrong because it encrypts stored data but does not control or perform signing operations. A virtual TPM is wrong because it provides TPM functions to a virtual machine and depends on the host, which is not the high-assurance key protection a CA requires.

13. A — Measured boot recording hashes in the TPM for attestation is right because the requirement is trustworthy evidence of what ran, which a remote verifier can check before releasing the key. Secure Boot is wrong for this ask because it enforces signature checks locally during boot rather than producing evidence for a remote decision, although it is a valuable companion control. A self-encrypting drive is wrong because it encrypts data at rest and records nothing about boot components. Browser isolation is wrong because it separates web content from endpoints and has no role in boot measurement.

14. C — Segmenting the controllers, allowing only required flows through a controlled boundary, monitoring passively, and scheduling vendor-approved patching at the shutdown is right because it carries the controls on the network around devices that cannot carry them yet. Direct connection to the enterprise network is wrong because it increases exposure of unpatched controllers. Weekly active scans against live controllers are wrong because active scanning can disrupt fragile OT devices during production. Installing the standard agent with daily reboots is wrong because the controllers cannot run agents and unexpected reboots can damage the process and production.