Chapter 4: Security Operations

What you will learn

By the end of this chapter, you will be able to:

Reading

Security operations is where security stops being theory and becomes daily work. The previous chapters explained what threats exist and how secure systems are designed; this chapter is about running security day after day: creating and removing accounts, watching alerts, patching systems, answering phishing reports, and responding when something goes wrong. Domain 4 is the largest part of the Security+ exam (28%), and it rewards practical thinking. For almost every topic in this chapter, ask yourself two questions: What does the security team actually do here? and What tool or process makes it happen?

Identity and Access Management Operations

Identity is the control plane of modern security. Attackers rarely "break in" through a Hollywood-style exploit; far more often they simply log in with stolen or guessed credentials. That makes the operational side of identity and access management (IAM) — creating accounts correctly, changing them when roles change, and removing them the moment they are no longer needed — one of the highest-value activities in security operations.

Provisioning and deprovisioning. The identity lifecycle has three operational moments that matter most. Provisioning (sometimes called onboarding or account creation) happens when a person joins or a service is deployed: the account is created, given a unique identity, assigned to the correct groups, and granted only the access the role requires. Good provisioning is driven by HR events and role definitions, not by copying the account of "someone who does a similar job" — copying accounts quietly copies their accumulated excess privileges too. Account changes happen when people move teams, get promoted, or take on temporary duties; each change should add the new access and remove the old, because privilege creep — the slow accumulation of rights nobody ever takes away — is one of the most common findings in access reviews. Deprovisioning happens when someone leaves or a contract ends: the account is disabled (and later deleted according to policy), sessions are revoked, tokens and keys are rotated, and any shared secrets the person knew are changed. Deprovisioning must be fast. A disabled-within-minutes leaver account is a control; a leaver account that stays active for three weeks is an incident waiting to happen.

Exam tip

If a scenario describes a former employee logging in after leaving the company, the failed control is almost always deprovisioning (or a missing account audit). If it describes an employee who changed departments and kept old access, think privilege creep and the need for account audits/recertification.

Account audits and permission auditing. Because provisioning is imperfect, organizations periodically review who has access to what. An account audit (also called an access review or recertification) asks managers and system owners to confirm that each account still exists, belongs to a current employee, and holds only appropriate permissions. Audits hunt for specific problems: orphaned accounts (no owner), dormant accounts (not used in 90+ days), shared accounts with no accountability, and excessive privilege (standard users holding admin rights). Permission auditing goes one level deeper, examining the actual rights assigned to accounts and groups rather than just their existence. Both are detective controls: they do not stop bad access from being granted, but they find and correct it before an attacker does.

Password policies. Password policy is the set of rules an organization enforces on passwords: minimum length, complexity requirements, history (how many old passwords are remembered so users cannot reuse them), maximum and minimum age, and lockout settings (how many failed attempts trigger a lockout, and for how long). Modern guidance — and CompTIA's position on the exam — is that length beats complexity: a policy requiring 14+ characters with a password manager and MFA is stronger than an 8-character policy with symbols that forces users to write passwords on sticky notes. Account lockout policy is a balance: lock too fast and attackers can denial-of-service your users by deliberately failing logins; lock too slowly and brute force becomes practical. Policies are enforced technically through directory settings (for example, Group Policy in Active Directory), not by asking users nicely.

Multifactor authentication. MFA requires two or more different kinds of evidence. The factor types are:

Factor typeWhat it meansExamplesOperational notes
------------
Something you knowKnowledgePassword, PIN, security questionsWeakest factor when used alone; phishable and guessable
Something you havePossessionHardware token, smart card, authenticator app, phonePush fatigue attacks target app approvals; number matching helps
Something you areInherence (biometrics)Fingerprint, face, iris, voiceCannot be changed if compromised; usually unlocks a local credential rather than traveling over the network
Somewhere you areLocationGPS geolocation, IP geofencing, impossible-travel checksUsually a supporting signal, not a standalone factor
Something you doBehaviorTyping rhythm, gesture patternsUsed in behavioral analytics and risk-based authentication

A password plus a fingerprint is MFA. A password plus a PIN is not — both are "something you know," so it is single-factor twice. Watch also for MFA fatigue (push bombing): an attacker with a stolen password spams push approvals until the user taps "approve" to make it stop. Defenses include number matching (the user must type a number shown on the login screen into the app), rate limiting pushes, and user training to report unexpected prompts.

Passwordless authentication and FIDO2. Passwordless removes the shared secret entirely. In a FIDO2 flow, the user's device holds a private key that never leaves it; the server stores only the public key. At login, the server sends a challenge, the device signs it after a local unlock (biometric or PIN), and the server verifies the signature. There is no password to phish, reuse, or crack, and because the key pair is scoped to the legitimate site's origin, a look-alike phishing site cannot replay it. Windows Hello, platform passkeys, and roaming hardware security keys are all FIDO2-based examples you should recognize.

Single sign-on and federation. SSO lets a user authenticate once to an identity provider (IdP) and then access many applications without re-entering credentials. SSO is usually built on federation — a trust relationship between the IdP and service providers — using protocols such as SAML (XML-based assertions, common in enterprise web apps), OAuth 2.0 (authorization framework, what "sign in with…" consent screens use), and OpenID Connect (OIDC) (an identity layer on top of OAuth 2.0). Operationally, SSO improves security (fewer passwords, one place to enforce MFA and to disable access) but concentrates risk: the IdP becomes a high-value target and a single point of failure, so it gets the strongest controls in the environment.

Privileged access management. Administrator, root, service, and break-glass accounts are privileged accounts, and PAM is the discipline of controlling them. A PAM solution typically vaults privileged credentials (checking them out for a session, then rotating them automatically afterward), records privileged sessions, enforces just-in-time (JIT) elevation — admin rights granted only for the window of a task, then removed — and alerts on privileged use. The related principle is to eliminate standing privilege: nobody should hold permanent admin rights "just in case." On the exam, PAM pairs naturally with least privilege, password vaulting, and session monitoring.

Identity Attacks and Defenses

Three credential attacks appear constantly on the exam, and telling them apart is a favorite test point:

Exam tip

Many failed logins across many different accounts from one source, with only a few attempts each = password spraying. Many attempts against one account = brute force. Logins using known leaked pairs, often with a high success rate against reused passwords = credential stuffing.

Defenses overlap but are not interchangeable: lockout policies help against brute force but barely touch spraying; MFA defeats stuffing and most spraying impact; impossible-travel and geolocation alerts catch successful logins from implausible locations; and monitoring for distributed, low-and-slow attempts catches spraying that stays under per-account thresholds.

Access Control Models in Operation

Chapter material on access control design becomes operational here: someone must decide, for every user and resource, which model governs the decision — and then enforce it consistently.

ModelHow access is decidedWho controls itTypical useOperational character
---------------
RBAC (role-based)By job role; users inherit role permissionsAdministrators define rolesMost enterprisesScales well; risk is poorly designed or bloated roles
ABAC (attribute-based)By attributes of user, resource, and environment (department, clearance, time, location, device posture)Policy authors write rules over attributesGovernment, cloud, zero trust environmentsMost flexible and granular; most complex to build and audit
MAC (mandatory)By security labels/classifications compared against clearances, using system-enforced rulesThe system (central authority)Military and classified environmentsMost rigid and secure; users and owners cannot override decisions
DAC (discretionary)By resource owner, who sets permissionsThe resource ownerFile shares, consumer OS sharingFlexible but inconsistent; owners can over-share accidentally
Rule-basedBy a set of conditions evaluated in order (e.g., firewall/ACL rules: allow if source matches)Administrator writes the rule setFirewalls, routers, proxiesDecision is about the traffic/request attributes, not identity or role

Two enforcement principles cut across every model. Least privilege means every account holds the minimum access needed for its function, for the minimum time needed — enforced through role design, JIT elevation, and regular permission auditing. Separation of duties splits a sensitive process so no single person can complete (or abuse) it alone: the person who creates a vendor should not be the person who approves payment to that vendor; the developer who writes code should not be the only approver who pushes it to production. Separation of duties is a fraud and error control as much as a security one, and it requires collusion to defeat — which is exactly the point. A related concept, job rotation, moves people between roles to expose hidden fraud and cross-train staff.

Real-world example: a hospital uses RBAC so that "nurse," "physician," and "billing clerk" roles map to clinical systems; ABAC rules then refine it — a nurse can open a chart only for patients on their ward (attribute: ward assignment) during their shift (attribute: time); and MAC-style labels protect psychiatric records, which require a specific clearance regardless of role. The models are not rivals; mature environments layer them.

Exam tip

"The owner of a file decides who can access it" = DAC. "Labels and clearances, system-enforced, no owner discretion" = MAC. "Based on the user's department, time of day, and device" = ABAC. "Based on the job title/role" = RBAC. "If-then conditions evaluated in order, like a firewall" = rule-based.

Automation and Orchestration in Security Operations

Security teams face more alerts, assets, and vulnerabilities than humans can handle manually, so operations increasingly run on automation. Automation is a single task performed by a script or tool without human intervention (disable a compromised account, snapshot a VM, enrich an alert with threat-intelligence lookups). Orchestration coordinates many automated tasks across different tools into one workflow: an alert fires, the SIEM creates a case, the SOAR platform looks up the user in the IdP, checks the endpoint in the EDR, opens a ticket, and posts to the team chat — in seconds, the same way every time.

Scripting use cases you should recognize include user provisioning/deprovisioning from HR feeds, enforcing baselines (checking that systems match a configuration standard and remediating drift), rotating keys and certificates, collecting logs and evidence on a schedule, scanning for IOCs (indicators of compromise) across endpoints, and generating compliance reports. Automation shines on tasks that are high-volume, repetitive, well-understood, and time-sensitive — exactly the profile of tier-1 alert triage.

SOAR playbooks (runbooks) encode the response to a recurring situation: "phishing email reported" triggers detonation of the attachment in a sandbox, a search for the same message across all mailboxes, removal of delivered copies, and a block on the sender domain. Guardrails are the safety mechanisms that keep automation from causing the outage it was meant to prevent:

The exam also expects the balanced view: automation reduces response time, error rates, and analyst burnout, but it introduces its own risks — a buggy playbook acts at machine speed and machine scale, playbooks need maintenance as the environment changes ("a single point of failure" if everyone depends on one automation platform), and over-automation can deskill the team. The strongest programs automate the predictable and keep humans in the loop for the consequential.

Exam tip

When a scenario asks how to handle a repetitive, high-volume task consistently (ticket creation, alert enrichment, account disabling after HR termination), the answer is automation/SOAR. When it asks what keeps automation safe, think guardrails: human approval, scope limits, and testing.

Incident Response

An incident is a confirmed event that threatens confidentiality, integrity, or availability — not every alert, and not every policy violation, but something the organization must actively manage. Incident response (IR) follows a lifecycle; CompTIA uses these phases, in this order:

  1. Preparation — before anything happens: write the incident response plan (IRP), assemble the team, buy and configure tools, train staff, and practice. Preparation is a phase, not paperwork; incidents are won or lost here.
  2. Detection — an alert, a user report, a threat-intel hit, or an anomaly signals a possible incident. Detection must be declared/triaged: is this an incident, and how severe?
  3. Analysis — responders determine scope and impact: which systems, which data, is the attacker still active, what is the root cause so far? Analysis runs through the whole response and drives decisions.
  4. Containment — stop the bleeding: isolate affected hosts, disable compromised accounts, block malicious IPs/domains. Short-term containment limits damage now; long-term containment keeps systems running in a safer state while the fix is built. Containment is deliberately before eradication: you do not rebuild a server the attacker is still using as a beachhead.
  5. Eradication — remove the threat completely: delete malware, remove persistence mechanisms and attacker accounts, close the exploited vulnerability, rebuild systems where integrity is in doubt.
  6. Recovery — return systems to production safely: restore from clean backups, patch, reset credentials, monitor closely for the attacker's return, and formally return operations to normal.
  7. Lessons learned — after the dust settles, hold a blameless review: what happened, what worked, what did not, and what changes (controls, detections, playbook updates) will be made. The output is a report and tracked improvements, not blame.
Exam tip

The order matters and is tested directly: Preparation → Detection → Analysis → Containment → Eradication → Recovery → Lessons Learned. If a scenario has the team wiping and rebuilding a machine while the attacker is still active elsewhere, the missed step is containment (or the rebuild belongs later, in eradication/recovery).

An incident response plan is the governing document: what counts as an incident, severity levels, who is on the incident response team and their roles (incident lead/handler, technical responders, communications, legal, management, HR as needed), escalation paths and call trees, communication rules (including out-of-band channels in case email is compromised), evidence-handling requirements, and when to involve law enforcement or regulators. Related documents include communication plans, stakeholder notification lists, and playbooks for common incident types (ransomware, phishing, DDoS, insider misuse).

Tabletop exercises are discussion-based rehearsals: the team sits around a table and walks through a scenario ("It's 2 a.m. Friday; the EDR just reported encryption behavior on a file server — what do you do first?"), talking through decisions, gaps, and handoffs. They are cheap, safe, and excellent at exposing unclear roles and missing contact information. They differ from functional/simulated exercises (such as red team engagements or live-fire simulations) where actions are actually performed. Organizations also run call-tree tests (can we actually reach everyone?), and lessons from every exercise feed back into preparation — closing the loop.

Real-world example: a midsize retailer detects (via EDR) a workstation beaconing to a known botnet domain. Analysis shows one host infected, no lateral movement yet. Containment: the host is network-isolated but left powered on for forensics. Eradication: the malware and its scheduled-task persistence are removed and the entry point (an outdated, internet-facing plugin) is identified. Recovery: the machine is rebuilt from a clean image, the plugin patched everywhere, credentials on the box reset. Lessons learned: the plugin inventory was incomplete, so asset management and patch SLAs are tightened, and a new detection rule is written for the beacon pattern.

Digital Forensics

Forensics is the disciplined collection and analysis of evidence so that findings are accurate and defensible — in court, in disciplinary proceedings, or before a regulator. Two ideas dominate: preserve the evidence exactly as found, and be able to prove you did.

Order of volatility. Data disappears at different speeds, so collect the most fragile evidence first. The typical order, most volatile to least:

OrderData sourceWhy it is volatile
---------
1CPU registers, cache, and RAM (running processes, open connections, encryption keys, unsaved data)Lost instantly at power-off
2Network state: ARP cache, routing tables, active connections, temporary file systemsChanges continuously while the system runs
3Disk contents, including deleted files and unallocated spaceSurvives power-off, but can be overwritten by normal use
4Remote logs, archived media, backups, physical configuration recordsMost durable; collect last

This is why responders often capture memory and network state before imaging the disk, and why "just unplug it" can be the wrong first move — pulling power destroys RAM evidence and any in-memory-only malware or encryption keys.

Acquisition and integrity. A write blocker is a hardware or software device placed between the evidence drive and the forensic workstation that prevents any writes to the source, guaranteeing the evidence cannot be altered during imaging. The examiner creates a bit-for-bit forensic image (not a file copy — an exact sector-level duplicate, including deleted data and unallocated space) and then works only on copies of that image, never the original. Hashing proves integrity: the examiner hashes the source (SHA-256 is the modern standard) and the image at acquisition; if the hashes match, the image is a perfect copy. Hashes are re-verified whenever evidence is accessed — if a hash ever changes, the evidence's integrity is in question.

Chain of custody is the documented history of the evidence: who collected it, when, where, how it was stored, and every person who handled it, signed at each transfer. A break in the chain — an undocumented gap where someone could have tampered with the evidence — can make it inadmissible. Evidence is stored in sealed, labeled containers or a controlled evidence locker with restricted, logged access.

Legal hold is a formal directive (usually from legal counsel) requiring that specific data be preserved unchanged because litigation or an investigation is expected. It overrides normal retention and deletion schedules: backups are kept, mailboxes are frozen, and auto-deletion is suspended for the in-scope data. Deleting data under a legal hold (spoliation) carries serious legal consequences. E-discovery is the process built around litigation: identifying, preserving, collecting, processing, and producing electronically stored information (ESI) for legal review.

Data sources for investigations. Responders piece together timelines from many sources, each with strengths:

Exam tip

"Preserve everything related to the lawsuit; stop the usual deletion" = legal hold. "Document everyone who touched the evidence" = chain of custody. "Capture RAM before powering down" = order of volatility. "Prove the copy is identical" = hashing. "Prevent the workstation from changing the drive" = write blocker.

Monitoring Tools and Alerting

Operations runs on telemetry. The core toolset:

ToolPrimary jobSeesTypical action
------------
SIEMCollect and correlate logs, detect, dashboardLogs and events from many sourcesAlert, report, support hunting
SOAROrchestrate and automate responseAlerts and cases from SIEM/EDR and other toolsRun playbooks, open tickets, enrich data
EDRBehavioral endpoint monitoring and responseProcesses, files, and behavior on hostsIsolate host, kill process, remediate
XDRCross-domain detection and correlationEndpoint + network + email + identity + cloud telemetryUnified incident investigation and response
DLPProtect sensitive dataContent in motion, at rest, in useAlert, block, encrypt, quarantine
IDSDetect intrusionsNetwork traffic (and host events for HIDS)Alert only
IPSPrevent intrusionsInline network trafficAlert and block/drop

Vulnerability Response and Patch Management

Vulnerability management finds weaknesses; vulnerability response is the operational discipline of fixing them at scale without breaking the business. The cycle is: scan and identify, prioritize by risk (severity scores like CVSS combined with asset criticality, exposure, and whether the vulnerability is being exploited in the wild), remediate, and verify by rescanning.

Patch management is the main remediation path and a formal process, not a free-for-all: patches are inventoried, tested in a non-production environment, deployed in rings (pilot group first, then broad rollout), and verified, with a rollback plan if something breaks. Mature programs define patch SLAs by severity — for example, critical internet-facing vulnerabilities within days, routine updates on the monthly cycle — and they track compliance, because the patch that was "deployed" but failed silently on 200 machines is a classic audit finding. Emergency (out-of-band) patching exists for actively exploited vulnerabilities, but it still gets expedited testing rather than no testing.

Not everything can be patched. When a fix does not exist, cannot be applied (legacy systems, vendor appliances, operational technology that cannot reboot), or would break a business function, operations turns to compensating controls: measures that reduce the risk to an acceptable level by other means. Examples: placing a vulnerable system behind a firewall rule or IPS virtual patch that blocks the exploit, disabling the vulnerable feature or service, network segmentation to isolate the system, stricter monitoring and alerting on it, or removing its internet exposure. A compensating control must actually address the same risk — "we watch it closely" is weak; "the exploit path is blocked at the IPS and the service is reachable only from the management VLAN" is a control.

Sometimes even that is not possible, and the organization formally accepts the risk through an exception (risk acceptance/exemption): a documented, approved record stating the vulnerability, the business justification, the owner, any partial mitigations, and an expiration date. Exceptions are temporary by design and are reviewed at expiry; an exception register full of permanent, ownerless entries is a red flag for auditors. On the exam, the trio matters: patch it if you can, compensate if you cannot patch, and document an exception with an expiry when you accept the risk.

Email Security: SPF, DKIM, and DMARC

Email remains the top delivery channel for phishing, and three DNS-based standards work together to authenticate it. They answer different questions, and examiners love the distinctions:

StandardWhat it doesHow it worksWhat it proves
------------
SPF (Sender Policy Framework)Authorizes which servers may send mail for a domainThe domain publishes a DNS TXT record listing approved sending IPs/services; the receiver checks whether the connecting server is on the listThe message came from an approved server for the (envelope) domain
DKIM (DomainKeys Identified Mail)Proves the message was authorized by the domain and not altered in transitThe sending server signs headers and body with a private key; the receiver verifies with the public key published in DNSAuthenticity and integrity of the signed content
DMARC (Domain-based Message Authentication, Reporting, and Conformance)Tells receivers what to do when SPF/DKIM fail, and provides reportingThe domain publishes a policy (none / quarantine / reject) plus reporting addresses; alignment requires the visible From domain to match the authenticated domainA policy decision: deliver, spam-folder, or reject unauthenticated mail

Practical reading: SPF alone can be defeated by a look-alike From display, DKIM alone says nothing about which servers may send, and neither stops an attacker who registers a similar domain and authenticates it perfectly. DMARC with a reject policy, properly aligned, is what actually prevents direct spoofing of your domain; organizations typically roll it out gradually (monitor with p=none, then quarantine, then reject) while fixing legitimate senders that fail authentication. These controls pair with secure email gateways, user reporting (the phish button), and the simulated-phishing training from earlier chapters.

Exam tip

SPF = list of allowed senders (DNS). DKIM = digital signature on the message. DMARC = policy + reporting built on SPF/DKIM, with actions none, quarantine, reject.

Endpoint Security

Endpoints — laptops, desktops, servers — are where users, data, and attackers meet, so they carry layered controls:

Real-world example: a finance laptop is protected by allowlisting (only the approved accounting suite and browser can execute), a host firewall that denies inbound connections, EDR streaming behavior to the SOC, and disk encryption — so a malicious email attachment fails at three independent points: it cannot execute, its payload's outbound connection is blocked, and the attempt is seen and alerted.

Mobile Security

Phones and tablets hold email, MFA apps, and corporate data, and they leave the building every night. Mobile device management (MDM) — and its broader successor, unified endpoint management (UEM) — is the control platform: it enrolls devices, enforces policy (passcode/biometric requirements, encryption on, OS minimum versions, restrictions on cloud backup or USB), deploys and removes apps, separates work data in a container, locates devices, and can remote-wipe a lost phone or just the corporate container. Deployment models matter operationally: BYOD (employee-owned; lightest touch, privacy-sensitive, container-only control), COPE (company-owned, personally enabled; full management with personal use allowed), COBO/CYOD variants trade control against convenience — the exam may test that the more personal the device's use, the more limited the organization's management rights and wipe scope.

Two risky practices get their own exam attention. Sideloading is installing apps from outside the official app stores (direct APK/IPA files or third-party stores). It bypasses store vetting, code signing checks, and revocation — a primary malware delivery route on mobile. MDM policy typically disables it on managed devices. Jailbreaking (iOS) and rooting (Android) remove the operating system's built-in security restrictions to gain full control of the device. A jailbroken device escapes the sandbox model, can run unsigned code, and undermines every control built on platform integrity, so MDM/MAM checks (attestation, jailbreak detection) should block jailbroken devices from corporate data entirely. Supporting controls include keeping OS and apps patched, requiring device attestation, encrypting in transit with per-app VPN, and educating users about malicious profiles and configuration profiles that can reroute traffic.

Exam tip

Installing an app from a third-party store or a direct download on a phone = sideloading. Removing the vendor's OS restrictions for full control = jailbreaking/rooting — and the correct operational response is to block that device from corporate resources. Lost phone with company email? Remote wipe via MDM (full wipe for company-owned; container wipe for BYOD).

Key terms

TermDefinition
------
ProvisioningCreating an account and granting the access its role requires at the start of the identity lifecycle
DeprovisioningDisabling/removing an account and revoking its sessions, tokens, and access when it is no longer needed
Privilege creepThe gradual accumulation of unneeded access rights that are granted but never removed
Account audit (access recertification)Periodic review confirming that accounts exist, are owned, and hold only appropriate permissions
MFAAuthentication requiring two or more different factor types (knowledge, possession, inherence, location, behavior)
MFA fatigue attackSpamming a user with push approvals until they approve one to stop the notifications
FIDO2Passwordless authentication standard using per-site public/private key pairs and a local unlock (biometric/PIN)
PAMPrivileged access management: vaulting, just-in-time elevation, and monitoring of administrative accounts
SSOSingle sign-on: authenticating once to an identity provider to access many applications
FederationA trust relationship letting one organization's IdP authenticate users for another's services (SAML, OIDC)
Password sprayingTrying a few common passwords against many accounts to evade per-account lockouts
Credential stuffingReplaying leaked username/password pairs from other breaches against a login page
RBACAccess control based on job roles and the permissions assigned to those roles
ABACAccess control based on attributes of the user, resource, and environment
Separation of dutiesSplitting a sensitive process between two or more people so no one person can complete or abuse it alone
SOARPlatform that orchestrates tools and automates response workflows through playbooks
Playbook (runbook)A predefined, step-by-step automated or guided procedure for a recurring task or incident type
Incident response plan (IRP)The governing document defining incident criteria, roles, escalation, and communication procedures
Tabletop exerciseA discussion-based walkthrough of an incident scenario used to test plans and roles without live actions
Order of volatilityThe principle of collecting evidence from most fragile (RAM) to most durable (archives)
Write blockerA device that prevents any writes to evidence media during forensic acquisition
Forensic imageA bit-for-bit copy of storage media, including deleted and unallocated data, verified by hashing
Chain of custodyThe signed, continuous record of who collected, stored, and handled evidence and when
Legal holdA directive to preserve specified data unchanged despite normal retention/deletion schedules
E-discoveryThe process of identifying, preserving, collecting, and producing electronic evidence for legal proceedings
SIEMSystem that collects, correlates, and analyzes logs and events for detection, dashboards, and reporting
EDR / XDREndpoint (extended) detection and response: behavioral monitoring with investigation and remediation actions
DLPData loss prevention: controls that detect and can block unauthorized movement of sensitive data
BaselineA profile of normal behavior/activity used as the reference for anomaly-based alerting
Compensating controlAn alternative measure that reduces a risk to an acceptable level when the primary fix cannot be applied
Exception (risk acceptance)A documented, approved, time-limited decision to accept a known risk without full remediation
SPF / DKIM / DMARCEmail authentication standards: authorized sender list / message signature / failure policy and reporting
Allow list (application)A control permitting only approved programs to run; everything else is blocked by default
MDMMobile device management: enrollment, policy enforcement, app management, and remote wipe for mobile devices
SideloadingInstalling mobile apps from outside the official app stores, bypassing store vetting
JailbreakingRemoving a mobile OS's built-in restrictions to gain full control, defeating platform security controls

Exercises

Exercise 1 — Triage a log excerpt and decide on escalation

Scenario. You are the tier-1 analyst on shift. The SIEM shows the following events for the last 15 minutes (all times local):

09:02  AUTH FAIL  user=mscott   src=185.220.x.x  (VPS provider range)  attempt 1 of 1
09:02  AUTH FAIL  user=jhalpert src=185.220.x.x  (VPS provider range)  attempt 1 of 1
09:03  AUTH FAIL  user=pbeesly  src=185.220.x.x  (VPS provider range)  attempt 1 of 1
...    (41 more accounts, one or two failures each, same source, password tried: "Spring2026!")
09:11  AUTH FAIL  user=dschrute src=185.220.x.x  attempt 1 of 1
09:12  AUTH SUCCESS user=kkapoor src=185.220.x.x  (account has VPN + mailbox access)
09:14  MFA PUSH SENT user=kkapoor (no approval yet; second push sent at 09:15)

Steps.

  1. Count the distinct accounts targeted and the number of failures per account. Write down what pattern this is (hint: compare with the three identity attacks in this chapter).
  2. Explain why the account lockout policy never fired.
  3. Decide: is this an incident to escalate now, or a ticket to watch? Justify your decision in two sentences, naming the single event that most changes your answer.
  4. List your first three containment actions, in order, and one thing you must not do yet (and why).
  5. State what you would check next in the kkapoor account if the MFA push gets approved.

What good looks like. You should identify password spraying (many accounts, one common password, few attempts each), treat the successful login from the hostile source as a likely compromise requiring immediate escalation, prioritize disabling/forcing a reset on kkapoor and blocking the source at the perimeter, and avoid wiping or logging off evidence before the responders capture session and log data.

Exercise 2 — Read email authentication results

Scenario. A user reports an email claiming to be from your CFO asking staff to buy gift cards. The message headers your gateway recorded show:

Authentication-Results: spf=fail (sender IP 203.0.113.87 not in SPF record for example-corp.com)
                       dkim=none (no signature)
                       dmarc=fail (From: ceo@example-corp.com — note the missing "m")

Steps.

  1. For each of SPF, DKIM, and DMARC, state in one sentence what the result tells you.
  2. Identify the second, independent red flag in the From domain, and explain why SPF/DKIM/DMARC on your own domain cannot prevent this particular trick.
  3. Your DMARC policy for example-corp.com is p=none. Explain what that policy does and does not do for mail that fails DMARC, and why a company might still be at p=none temporarily.
  4. Recommend two actions: one technical control change and one user-facing action.

What good looks like. SPF fail = the sending server is not authorized for the (look-alike) domain's envelope checks performed; the decisive tell is the spoofed look-alike domain itself, which the attacker can authenticate perfectly for their domain — defenses are gateway detection of look-alike domains, external-sender banners, and user training. p=none is monitor-only: failures are reported, not blocked.

Exercise 3 — Plan a forensic acquisition in the right order

Scenario. At 16:40 a developer reports their workstation behaving strangely; EDR shows an unknown process running in memory and connections to an external IP. The machine is still on and logged in. Legal has authorized a forensic examination. Your toolkit has a memory-imaging tool, a write blocker, a forensic imager, evidence bags/tags, and a camera.

Steps.

  1. Write your acquisition plan as a numbered list in the order you would perform it, citing the order of volatility for each placement decision.
  2. State exactly where the write blocker goes and at what point in your plan it is attached.
  3. Note the two hashes you will compute and when, and what matching results prove.
  4. List the first five entries your chain-of-custody form must capture for this workstation.
  5. Name one action that would destroy evidence in this scenario, and when (if ever) it becomes acceptable.

What good looks like. Photograph the screen and connections; capture RAM and live network state first (most volatile); then image the disk through the write blocker; hash source and image with SHA-256 and record the match; bag, tag, and log custody from the moment of collection. Pulling the power plug first is the classic error — it destroys the in-memory process and any encryption keys.

Exercise 4 — Decide: patch, compensate, or except

Scenario. A scan finds: (a) a critical, actively exploited vulnerability in the internet-facing VPN appliance — a vendor patch exists; (b) the same class of flaw on a lab-only legacy server that cannot be patched because the vendor is defunct, but the server holds no sensitive data and is reachable only from the engineering VLAN; (c) a medium flaw on a kiosk in the lobby that displays the cafeteria menu, where patching requires a vendor visit scheduled in 45 days.

Steps.

  1. For each system, choose the response: patch now, apply compensating controls, or file an exception — and name the specific control(s) for (b).
  2. Write the five fields you would require on the exception form for (c), including who signs it.
  3. State the SLA you would apply to (a) and the verification step that closes the finding.
  4. Explain in two sentences why "we accept the risk forever" is not a valid exception for any of them.

What good looks like. (a) Emergency patch with expedited testing, closed by a rescan. (b) Compensating controls: IPS virtual patching, ACLs limiting sources, enhanced monitoring, no internet path. (c) A time-boxed exception owned by a named manager with an expiry tied to the vendor visit. Exceptions expire; risk acceptance without an expiry is unmanaged risk.

PBQ practice

Scenario — Build the firewall rule set

You are the security engineer for a small company rolling out a new architecture. The firewall sits between three zones: Internet (untrusted), DMZ (contains a public web server at 10.10.1.20 and nothing else), and Internal LAN (10.20.0.0/16, contains workstations, a file server at 10.20.1.15, and an admin workstation at 10.20.5.10). The business requirements are:

  1. Anyone on the Internet must be able to reach the web server on HTTPS (443) only.
  2. Internal users must be able to browse the web (HTTP/HTTPS out) and use DNS.
  3. Only the admin workstation may manage the web server, using SSH (22), and only from the LAN.
  4. The web server must be able to query the internal file server for content updates on SMB (445) — this is a business-approved exception, and nothing else in the DMZ may initiate connections into the LAN.
  5. Everything else is denied, and denied traffic must be logged.

Your task (printable). Complete the ACL table below in the order the rules will be evaluated. Use the columns: #, Source, Destination, Port/Protocol, Action. Then answer, in one or two sentences each: (A) Why does the order of your rules matter here? (B) Which requirement does your final rule implement, and why must it be last? (C) A colleague proposes adding "Allow Internet → DMZ, any port" temporarily for troubleshooting. Give two reasons to refuse or to tightly scope that change.

#SourceDestinationPort/ProtocolAction
---------------
1
2
3
4
5

Model answer

#SourceDestinationPort/ProtocolAction
---------------
1Any (Internet)10.10.1.20 (web server)443/TCPAllow
210.20.5.10 (admin workstation)10.10.1.20 (web server)22/TCPAllow
310.10.1.20 (web server)10.20.1.15 (file server)445/TCPAllow
410.20.0.0/16 (LAN)Any80/TCP, 443/TCP, 53/UDPAllow
5AnyAnyAnyDeny + log

(A) Firewall ACLs are evaluated top-down and the first match wins, so specific allows must precede the general deny; if the deny-all rule were first, it would shadow every allow below it and nothing would work. (B) The final rule implements requirement 5 (default deny with logging) and it must be last so it only catches traffic that no earlier rule matched. (C) Refuse or rescope because (1) "any port from the Internet" exposes every service on the web server — including SSH and any accidentally started service — defeating the DMZ design and requirement 1; and (2) temporary broad rules are routinely forgotten, so any troubleshooting access should be narrowed to the engineer's source IP and the single needed port, given an expiry, and logged. (Return traffic for allowed outbound sessions is handled by the firewall's stateful inspection, which is why no explicit "allow replies" rules are needed.)

End-of-chapter test

1. An employee resigned on Friday. On Monday, IT discovers the employee's account is still active and was used over the weekend. Which part of the identity lifecycle failed?
A. Provisioning
B. Deprovisioning
C. Federation
D. Recertification reporting

2. A login page shows thousands of failed attempts spread across 600 different user accounts, with only one or two attempts per account, all using the password "Welcome123!". Which attack is this?
A. Brute force
B. Credential stuffing
C. Password spraying
D. Rainbow table attack

3. Which of the following is a true multifactor combination?
A. Password and PIN
B. Password and security questions
C. Password and fingerprint scan
D. Two different passwords, one typed and one written into a password manager's note

4. A company must keep a vulnerable legacy server running because its vendor no longer exists. The team blocks the exploit path at the IPS, restricts access to the server to one management VLAN, and adds enhanced monitoring. What is this approach called?
A. Risk transference
B. A compensating control
C. An exception with expiry
D. Patch management

5. During an investigation, responders need evidence from a running server that is suspected of being compromised by malware operating only in memory. What should they collect FIRST?
A. A forensic image of the hard drive
B. The contents of RAM and live network connections
C. Archived backup tapes from last month
D. The server's BIOS settings

6. A receiver checks a message and finds the sending server is not listed in the sender domain's DNS record of authorized mail servers. Which control produced this result?
A. DKIM
B. DMARC policy enforcement
C. SPF
D. TLS opportunistic encryption

7. Which incident response phase comes immediately after containment?
A. Preparation
B. Recovery
C. Lessons learned
D. Eradication

8. A security team wants only approved applications to run on finance workstations; anything not on the approved list is blocked by default, including never-before-seen malware. Which control should they implement?
A. Signature-based antivirus
B. Application allow list
C. Host-based firewall
D. Data loss prevention

9. A junior analyst builds a SOAR playbook that automatically disables any account flagged by the SIEM. Before deploying it to production, which guardrail is MOST important?
A. Making the playbook run as fast as possible
B. Testing the playbook and scoping/testing its actions so it cannot disable accounts at uncontrolled scale
C. Giving the playbook permanent administrator rights on every system
D. Removing logging so the playbook runs with less overhead

10. An employee installs a game on their company phone from a third-party website that offers direct app downloads. Which mobile security risk does this describe?
A. Jailbreaking
B. Containerization failure
C. Sideloading
D. Geofencing bypass

Answer key

1. B — Deprovisioning failed: a leaver's account must be disabled promptly when employment ends, including revoking sessions and access.

2. C — Password spraying tries a few common passwords across many accounts, staying under per-account lockout thresholds. Brute force would concentrate many attempts on one account, and stuffing would use known leaked pairs.

3. C — A password (something you know) plus a fingerprint (something you are) combines two different factor types. Options A, B, and D pair knowledge factors with knowledge factors, which is still single-factor.

4. B — A compensating control reduces the risk by other means (IPS blocking, network restriction, monitoring) when the primary fix — patching — is impossible. An exception documents accepted risk; the team here actively mitigated it.

5. B — Order of volatility: RAM and live network state are the most fragile and vanish at power-off, and memory-only malware may leave little on disk. Capture them before imaging storage.

6. C — SPF publishes the list of servers authorized to send for a domain in DNS, and the receiver compares the connecting server against it. DKIM uses signatures; DMARC sets policy on SPF/DKIM results.

7. D — The order is preparation, detection, analysis, containment, eradication, recovery, lessons learned. The root cause and persistence must be removed before systems are safely restored.

8. B — An application allow list permits only approved software to execute and blocks everything else by default, which is why unknown malware is stopped without needing a signature.

9. B — Guardrails — testing, scoping allowed actions, rate limits, approvals for destructive steps, and logging — keep automation from causing damage at machine scale. Speed and permanent privilege increase risk rather than control it.

10. C — Sideloading is installing apps from outside official stores, bypassing store vetting and signing checks. Jailbreaking removes OS restrictions; it is a different risk, though the two often appear together.

Want the full CompTIA Security+ (SY0-701) package?

This guide is free to read. Get the full SY0-701 practice exam — 865 questions plus 10 PBQs — with the complete PDF and 3 months of online access.

Get SY0-701 Full Access — $10