Chapter 4: Security Operations

Domain 4.0 — Security Operations · 27% of the SY0-801 exam

Reading

For almost every topic in this chapter, ask two questions: What does the security team actually do here? What tool or process makes it happen?

4.1.1 Endpoint Security

Key Concept Summary — Layered Endpoint Protection Stack (EDR / XDR / DLP)

Endpoints — laptops, desktops, servers — are where users, data, and attackers meet, so they carry layered controls. Read the stack from the top. The EDR sensor records endpoint activity in detail so attacks can be investigated and rolled back. Behavior analytics watches that activity for anomalies, while anti-malware blocks known threats by signature and reputation.

The host firewall controls which connections the device may make or accept, and device encryption protects data if the device is lost. Every layer reports to the central console. XDR extends this idea, correlating signals across endpoints, network, and cloud together.

Antivirus / anti-malware detects and removes malicious software using signatures, heuristics, and cloud reputation; modern platforms are behavior-aware and centrally managed. Keep definitions and engines current, and alert on disabled protection — malware’s first move is often to kill the AV.

Host-based firewall controls inbound and outbound connections per device (Windows Defender Firewall, iptables/nftables, pf). It protects the machine even off the corporate network and can restrict applications to approved ports and destinations.

HIDS/HIPS (host-based intrusion detection/prevention) watch host behavior — system calls, file integrity, log anomalies, privilege escalation attempts. The HIDS alerts; the HIPS can block the action. File integrity monitoring (FIM) of critical system and config files is a classic HIDS function.

Application allow lists (allowlisting) permit only approved executables/scripts to run. Everything else is blocked by default. This is the inverse of signature-based blocking. It is one of the strongest anti-malware controls: unknown malware is simply not on the list.

The trade-off is operational effort. Every legitimate application and update must be managed. The weaker inverse is a deny list/blocklist. It blocks known-bad items, and allows everything else. Supporting controls round out the picture: full-disk encryption, EDR (covered in Section 4.4.1), disabling unneeded services and ports, secure configuration baselines, and timely patching.

Real-world example — a finance laptop. The 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. The attempt is seen, and an alert is raised.

4.1.2 Mobile Security

Phones and tablets hold email, MFA apps, and corporate data. They also leave the building every night. MDM is the control platform. Its broader successor is unified endpoint management (UEM). MDM: enrolls devices; enforces policy — passcode and biometric requirements, encryption on, OS minimum versions, and 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 — these trade control against convenience. The exam may test one link: the more personal the device’s use, the more limited the organization’s management rights and wipe scope.

KEY DEFINITION — MDM

Mobile device management: enrollment, policy enforcement, app management, and remote wipe for mobile devices.

Two risky practices get their own exam attention. Sideloading. Sideloading is installing apps from outside the official app stores. That means direct APK/IPA files, or third-party stores. It bypasses store vetting, code signing checks, and revocation. It is a primary malware delivery route on mobile. MDM policy typically disables it on managed devices.

Jailbreaking and rooting. Jailbreaking (iOS) and rooting (Android) remove the operating system’s built-in security restrictions. The user gains full control of the device. A jailbroken device escapes the sandbox model. It can run unsigned code. It undermines every control built on platform integrity. So MDM/MAM checks should block jailbroken devices from corporate data entirely. Those checks include attestation and jailbreak detection.

Supporting controls: keep OS and apps patched; require device attestation; encrypt in transit, with per-app VPN; and educate users about malicious profiles. Configuration profiles can reroute traffic.

KEY DEFINITION — Sideloading

Installing mobile apps from outside the official app stores, bypassing store vetting

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. The correct operational response: block that device from corporate resources.

Lost phone with company email? Remote wipe via MDM. Use a full wipe for company-owned devices. Use a container wipe for BYOD.

4.1.3 Mobile Connection Methods: How Phones Connect — and How Each Connection Is Attacked

Managing the device itself — MDM enrollment, sideloading, jailbreaking, and remote wipe — is only half of mobile security. Just as important is how the device connects. A phone is a bundle of radios and ports: NFC, RFID, Bluetooth, Wi-Fi, cellular identity, and wired USB.

Each connection method has its own range. It has its own attack. It has its own control. The exam tests these as matched sets: Given the method, know the risk. Given the risk, know the mitigation. Work through each method below. Then use the summary table to drill the pairings.

Near field communication (NFC) NFC is a very-short-range wireless technology. It operates at 13.56 MHz. Its working distance is about 4 centimeters — roughly 1.5 inches. That is the “tap” in tap-to-pay, transit cards, building badges, and phone-to-phone sharing.

That tiny range is itself a security feature. An attacker generally must be within arm’s reach. But it is not a guarantee. Relay attack — the signature NFC attack: One attacker device stands next to the victim’s card or phone. The card may be in a pocket, or on a café table.

An accomplice’s device stands at the payment terminal or door reader. The two devices forward the exchange to each other, over a longer link, in real time. Neither endpoint can tell the conversation is being stretched across a building. NFC itself has no reliable way to prove physical distance.

Other NFC risks: Eavesdropping — possible at slightly greater distances, with sensitive antennas. Malicious NFC tags — a reprogrammed sticker placed over a legitimate one, in a public place. A tapping phone may open a malicious URL, or change a setting.

Controls follow from the physics and the use case: require device unlock and explicit user confirmation, for payments and sensitive taps; set transaction limits; and use tokenized payment credentials. The phone transmits a one-time token, not the real card number. So intercepted data has little replay value.

Shield cards in RFID/NFC-blocking sleeves, where policy requires it. Through MDM, disable NFC entirely on devices with no business need for it. Or restrict which applications may use it. Radio frequency identification (RFID) RFID is the broader family NFC evolved from. A reader energizes or interrogates a small tag. The tag replies with an identifier.

Tags range widely: Passive tags — battery-free chips in inventory labels, passports, and access badges. They can be read from a few centimeters to several meters. The range depends on frequency and reader power. Active tags — battery-powered. They can be read at far greater distances.

The operational risks are skimming and cloning. Skimming is the unauthorized reading of a tag’s identifier. The attacker uses a concealed reader. Picture an attacker walking past a crowd, reading badge or passport-chip identifiers — with no tap and no consent.

Cloning takes the next step. The skimmed identifier is written to a blank tag or card. The result is a duplicate. A simple reader will accept it as the original. So a badge system that trusts a static, unencrypted tag ID alone is weak. The credential is, in effect, a number. It announces itself to anyone who asks.

Stronger deployments: Use tags and cards with cryptographic challenge-response. The card proves possession of a key. It does not just recite a fixed number. Combine the badge with a PIN or biometric, for sensitive areas. Shield passport and card chips, when closed or sleeved.

Inventory lost badges. Deactivate them promptly. Log and alert on impossible badge use. Example: the same identifier appears at two distant readers, minutes apart.

EXAM TIP

NFC and RFID questions hinge on range and replay. NFC = centimeters, tap-based. A relay attack stretches the tap. RFID = tags read at a distance. They are skimmed without contact. They are cloned when the tag only recites a fixed ID.

The fix in both cases is cryptography and a second factor. Never trust a static identifier that any reader can copy. Subscriber identity: eSIM versus physical SIM A phone’s cellular identity lives on a SIM. Physical SIM. A traditional physical SIM is a removable card. It is provisioned by the carrier. Put it in a phone, and that phone becomes the number.

eSIM. An eSIM does the same job, built into the device. It is a soldered chip (eUICC). It is provisioned remotely: the carrier pushes a profile to the device. Activation is typically by scanning a carrier QR code, or through a carrier app. The user can store several profiles.

The user can switch between them, without handling any card. The security comparison cuts both ways. The exam expects the nuance. Physical SIM. A physical SIM can be removed and moved to another phone in seconds. That aids legitimate recovery. It also means one thing: possession of the card is possession of the number.

eSIM. An eSIM cannot be pulled out and pocketed. That removes the physical-theft path. It also makes remote provisioning cleaner for a fleet. So does remote profile deletion. An MDM-managed carrier change is a policy push — not a box of plastic cards in the mail.

SIM swapping — the dominant attack on both. SIM swapping is also called SIM hijacking. It is a social-engineering attack. The attacker convinces or bribes carrier support. The victim’s number is re-provisioned onto a SIM or eSIM profile the attacker controls.

The victim’s phone loses service. The attacker receives the victim’s calls. The attacker also receives SMS one-time codes. That defeats SMS-based MFA and account-recovery flows. eSIM convenience slightly widens this surface — if carriers allow fully remote swaps with weak identity checks. So the controls are process controls: carrier account PINs and port-out locks; in-person or strongly verified identity checks, for number transfers; and organizational policies that forbid SMS as an MFA factor for sensitive accounts. Use authenticator apps or FIDO2 instead.

Then an unexpected change is detected.

USB On-The-Go (OTG) and wired connections USB On-The-Go lets a phone act in two ways. It can be a USB peripheral — the passive end that plugs into a computer. It can also be a USB host — the controlling end. As a host, it can attach keyboards, storage, network adapters, and other peripherals directly to the phone.

The convenience is real: A technician reads logs from a flash drive, in the field. A presenter drives a display from a handset. So is the expanded attack surface: A malicious or compromised peripheral can present itself as a keyboard. It can inject keystrokes the user never typed. This is the same class of attack as a rogue USB device on a desktop.

Infected removable media can carry malware straight past network controls. A phone that happily hosts arbitrary storage is a ready channel for data exfiltration. Corporate files can be copied to a personal drive in seconds. There is no network traffic for DLP to see.

The wired path runs the other way too. Say the phone connects to an untrusted computer or a public charging port. It is then exposed to data access over USB — “juice jacking” at hostile charging stations. That applies if the device unlocks data transfer by default.

MDM controls for this method are specific: Disable USB data transfer or OTG hosting, on managed devices that do not need it. Allow-list permitted peripheral classes. Default USB connections to charge-only. Require user authentication for data modes.

Block removable-media use. Or require encrypted media only. Log storage connections as auditable events. Bluetooth. Bluetooth is a short-range radio. The range is typically about 10 meters, for the classic Class 2 devices in phones and headsets. Newer versions and higher-power classes reach further. Bluetooth is designed for pairing peripherals: headsets, keyboards, watches, car systems, and beacons.

Its two named exam attacks differ in intent. Bluejacking is the unsolicited sending of messages or contact cards to a discoverable device. It is annoying. It is a social-engineering vector. But it does not by itself take data. Bluesnarfing is the serious one. It exploits pairing or protocol weaknesses. It connects without proper authorization. It then steals data — contacts, messages, files — from the device.

Older Bluetooth versions and poorly implemented stacks have also allowed device takeover and traffic interception. So version and patch level matter — for a radio most users forget exists. Controls are simple. That is exactly why they are tested: turn Bluetooth off when it is not in use; set the device to non-discoverable, except while actively pairing; and pair only in private places. Never accept an unexpected pairing request in a crowd.

A phone that is always discoverable is advertising itself. It advertises to everyone within a room’s radius, all day.

Wi-Fi tethering and personal hotspots Mobile tethering turns a phone into a Wi-Fi access point. It can also share its connection over USB or Bluetooth. Laptops and other devices can then use its cellular data. Operationally, tethering is a lifeline on the road. It is also a quiet policy bypass.

A laptop joined to a personal hotspot is no longer behind: the corporate firewall, the web proxy, DNS filtering, and network DLP. It may not be monitored at all. Yet it still holds corporate credentials and data. The hotspot itself is often weakly protected. The password may be weak, shared, or never changed. In the worst configuration, the hotspot is left open. Anyone nearby can then join, consume the connection, and attack other devices on the same small network.

There is also a reverse risk. Phones may be set to auto-join remembered open networks. Or they may offer tethering under the same network name as the office Wi-Fi. Both invite evil-twin confusion. Controls: Govern tethering explicitly, in policy and MDM. Allow it for defined roles. Disable it where the risk is unjustified.

Require WPA2/WPA3, with a strong, unique hotspot password. Require the organization’s VPN to be active, for corporate access over any tethered connection. Disable auto-join for open networks. Treat hotspot use in logs like any other untrusted network — because that is what it is.

Matching the control to the connection: MDM in practice Notice the pattern across all six methods. MDM cannot change the physics of a radio. So it governs exposure and behavior: turn off what the role does not need — NFC, Bluetooth discoverability, USB hosting; require authentication before sensitive use — unlock to pay, authenticate for USB data, strong hotspot passwords; prefer cryptographic credentials over static identifiers — tokenized payments, challenge-response badges, app-based MFA instead of SMS; and record what happened, so misuse is detectable When an exam scenario describes a mobile connection incident, work in order: Identify the method first.

Name its characteristic attack second. Only then choose the control. The distractors are almost always good controls for the wrong method.

Table 23 — Mobile connection methods: range, risk, and control

MethodTypical rangeCharacteristic riskPrimary controls
NFCAbout 4 cmRelay attack stretching a tap; malicious tags; close-range eavesdroppingUnlock and confirm for payments, tokenized credentials, transaction limits, disable via MDM when unneeded
RFIDCentimeters to several meters (passive); farther for active tagsSkimming of static IDs; cloning of skimmed tags and badgesCryptographic challenge-response cards, badge plus PIN, shielding sleeves, prompt deactivation of lost badges
eSIM / physical SIMCellular network (identity, not proximity)SIM swap re-provisioning the number to an attacker; interception of SMS codesCarrier PIN and port lock, verified transfer process, avoid SMS MFA — use authenticator app or FIDO2, alert on provisioning changes
USB OTG / wired USBPhysical contactRogue peripheral keystroke injection, infected media, data exfiltration to removable storage, hostile charging portsDisable OTG/data transfer via MDM where unneeded, charge-only default, peripheral allow-listing, encrypted media only
BluetoothAbout 10 m (Class 2); more for other classes/versionsBluejacking (unsolicited messages); bluesnarfing (unauthorized data theft)Off when unused, non-discoverable, reject unexpected pairing, forget old pairings, patch, MDM restrictions
Wi-Fi tethering / hotspotAbout 10–30 mBypass of corporate network controls; weak or open hotspot admitting strangersMDM policy on tethering, WPA2/WPA3 with strong unique password, VPN required for corporate access, no auto-join to open networks
Key Concept Summary — Mobile & Wireless Connection Methods by Range
EXAM TIP

NFC — relay — tokenize and confirm. RFID — skimming/cloning — cryptographic cards, not static IDs. SIM (either kind) — SIM swap — carrier locks and no SMS MFA. USB OTG — rogue devices and exfiltration — disable or allow-list via MDM.

Bluetooth — bluejacking (messages) versus bluesnarfing (theft) — non-discoverable, and off when unused. Tethering — control bypass — VPN required, and a strong hotspot password. Worked scenario: one lost phone, four connection lessons. A sales manager loses a COPE phone at a conference. The MDM console tells the operational story, in order: Check the device status first. The device was enrolled, encrypted, and running a current OS. So the first action is location and a container lock, while the manager is contacted. Do not do an immediate full wipe. This is a company-owned, personally enabled device. It may simply be in a taxi.

Assess the Bluetooth risk. Bluetooth was left on and discoverable. The phone was paired to a rental car. Treat anything reachable through those pairings as exposed. Forget the pairings from the console side, where possible. Brief the manager. Her car-system PIN reused her phone passcode. Tell her to change that habit.

Close the hotspot risk. The hotspot had been active. Its password was the company name plus the year — a spraying-grade password. Terminate the carrier session. Change the credential. Do this before the device is even recovered. Protect the number. Her number is the recovery factor for two personal accounts.

Instruct the carrier to flag the line against any SIM-swap or eSIM re-provisioning attempt. She must verify in person, with photo ID, before any change. This single phone call is the highest-value action in the whole incident. It protects accounts the MDM cannot see.

Close the case from the logs. The phone is found the next morning, in the conference center’s lost property. The logs show: no SIM change, no new pairings after the loss window, and no OTG storage events. Each decision above maps to one row of the table. That is exactly how the exam will present it to you: one method and one control at a time.

4.2.1 Asset management: you cannot protect what you do not know you have

Ask a security team what it protects, and the honest answer starts with an inventory. Every control in this chapter — patching, monitoring, incident response — assumes the team knows which devices, applications, and data stores exist. When that assumption fails, everything built on it fails quietly.

KEY DEFINITION — Asset management

The lifecycle discipline of identifying, acquiring, assigning, tracking, protecting, and securely disposing of an organization's hardware, software, and data assets

The asset lifecycle. Asset management follows each asset through five stages: Acquisition and procurement — the asset is chosen and bought securely.

Assignment — the asset gets an owner, a custodian, and a classification. Inventory and tracking — the asset is recorded and kept visible. Monitoring and maintenance — its condition, configuration, and support status are watched. Disposal and decommissioning — the asset leaves service without taking data with it.

Acquisition and procurement Security starts before the purchase order. Buying through approved channels, from reputable vendors, protects against counterfeit and tampered hardware — the supply-chain risk you met in Chapter 2. Before an asset is approved, check: The vendor's security history and patching record.

An asset bought outside this process — a department's quiet cloud subscription, a developer's personal file-sharing account — enters the environment with no owner, no inventory record, and no controls. That is shadow IT, and procurement discipline is what prevents it.

Assignment: owners and custodians

Every significant asset gets two named roles. Asset owner. The owner is accountable for the asset. The owner decides its classification — how sensitive its data is — and who may access it. Ownership sits with the business side: the manager whose work the asset serves.

KEY DEFINITION — Asset owner

The person accountable for an asset, its data classification, and decisions about who may access it

Asset custodian. The custodian implements and maintains the protective controls day to day: patching, configuration, backups, monitoring. Custody usually sits with IT or the security team.

KEY DEFINITION — Asset custodian

The person or team responsible for implementing and maintaining an asset's protective controls

The distinction is a favorite exam point. The owner answers “how sensitive is this, and who may use it?” The custodian answers “how is it protected?”

Inventory and enumeration. The asset inventory — the asset register — is the maintained record of what the organization owns and runs. For each asset it should record:

Enumeration is how the inventory stays honest: actively discovering what is actually running, and comparing it with the register. Discovery sources include:

KEY DEFINITION — CMDB

Configuration management database: the repository recording configuration items — assets, their settings, and their relationships to each other

Any discovered asset that is not in the register is a finding. It may be a forgotten test server.

It may be shadow IT. It may be an attacker's foothold. Enumeration turns “we think we know our network” into a checkable fact — and the inventory it maintains is what lets vulnerability management spot unsupported systems, incident responders scope an incident, and auditors test compliance.

Monitoring and maintenance Assignment is not the end. Through its working life, each asset is monitored for: configuration drift away from its approved baseline; software and firmware patch levels; unauthorized software installations; changes in owner, location, or business use; license compliance; and approaching end of vendor support. An asset that drifts — an unpatched server, a laptop three owners old — is found by this stage, or it is found by an attacker.

Disposal and decommissioning. The most dangerous day of an asset's life can be its last. Drives leave buildings in retired laptops, donated servers, and returned leased equipment — and “deleted” data usually leaves with them. Secure disposal follows a set order: Obtain authorization to retire the asset.

Check data retention requirements and any legal hold — data under hold must not be destroyed. Back up or migrate any data that must be kept. Revoke the asset's accounts, certificates, tokens, and keys. Remove the asset from production. Sanitize or destroy the storage media using an approved method.

Record the disposal, with documentation, and update the inventory.

KEY DEFINITION — Sanitization

Rendering data on storage media unrecoverable by an approved method — overwriting, cryptographic erase, degaussing, or physical destruction — before the media is reused, sold, donated, or discarded

Overwriting. Writing patterns over the storage areas so the old data cannot be read back. Simple and cheap — but on modern flash storage (SSDs, USB drives), wear-leveling can leave untouched copies in spare blocks the overwrite never reached.

Cryptographic erase. If the media was encrypted, destroying the encryption key makes every byte on it unreadable at once. Fast, and well suited to SSDs — but it only works if the data was actually encrypted, with sound key management, for its whole life on the device.

Degaussing. Exposing magnetic media to a powerful magnetic field that scrambles the stored patterns. Effective on tapes and traditional hard drives. Useless on flash storage, which holds no magnetic pattern — and it destroys the drive's own servo data, so the drive can never be reused.

Physical destruction. Shredding, crushing, disintegrating, or incinerating the media. The highest-assurance option, used when media held highly sensitive data, or when other methods cannot be verified. When an approved vendor performs the sanitization or destruction, the organization receives a certificate of destruction: the documentary proof, tied to the asset's serial number, that the media was sanitized or destroyed on a stated date by a stated method. Auditors ask for these certificates. Keep them.

Two rules govern the whole stage. Data retention policy decides how long data must be kept before disposal is even allowed. And a legal hold — the same preservation duty you will meet in digital forensics (Section 4.8.1) — suspends disposal entirely for anything relevant to litigation or an investigation.

Scenario exercise: retiring the laptop fleet Scenario. Your company is retiring 200 employee laptops. The laptops held email, documents, and cached customer records. A manager proposes a shortcut: “Delete everyone's files, reinstall Windows, and sell the laptops to a refurbisher next week. The asset register update can wait until quarter-end.” Steps.

List everything wrong with the manager's plan, step by step, against the disposal process in this section. Choose a sanitization method for the laptops' SSDs and justify the choice. Explain why degaussing is not an option. One laptop belonged to an employee whose mailbox is under legal hold. What changes for that machine?

Name the document the company should hold when the refurbisher takes the laptops, and what it must identify. Discussion key: Check your work against these decision rules. Deletion and reinstall are not sanitization. Deleted files remain recoverable, and a reinstall overwrites only part of the drive. Customer data would leave the building readable.

Use cryptographic erase or physical destruction for SSDs. Cryptographic erase destroys the keys and renders the data unreadable; destruction is the fallback when encryption cannot be proven. Degaussing does nothing to flash storage — there is no magnetic pattern to scramble.

The legal hold wins. The held laptop is preserved, not sanitized or sold, until the hold is released — disposal would destroy evidence. Revoke and record before release. Device certificates and accounts are revoked, and the company holds a certificate of destruction or sanitization naming each asset by serial number — and the register is updated as part of decommissioning, not a quarter later.

EXAM TIP

Lifecycle order: acquisition → assignment → inventory → monitoring → disposal. “The organization cannot identify all its devices” = failed inventory and enumeration. “A retired device still holds readable data” = failed sanitization. Deleting files is never sanitization.

Who classifies the asset and decides access? The owner. Who patches and protects it day to day? The custodian. Degaussing works on magnetic media only. For SSDs, think cryptographic erase or destruction.

4.3.1 Vulnerability Response and Patch Management

Vulnerability management finds weaknesses. Vulnerability response is the operational discipline of fixing them. It must fix them at scale, without breaking the business. The cycle runs in order: Scan and identify. Prioritize by risk. Use severity scores like CVSS. Combine them with asset criticality, exposure, and whether the vulnerability is being exploited in the wild.

Remediate. Verify, by rescanning. Patch management is the main remediation path. It is a formal process, not a free-for-all: Inventory the patches. Test them in a non-production environment. Deploy in rings. A pilot group goes first. Then comes the broad rollout.

Verify the result. Keep a rollback plan ready, if something breaks. Patch SLAs. Mature programs define patch SLAs by severity. For example: critical, internet-facing vulnerabilities are fixed within days. Routine updates follow the monthly cycle.

Programs also track compliance. Reason: a patch can be “deployed” but fail silently. If it failed on 200 machines, that is a classic audit finding. Emergency patching. Emergency, or out-of-band, patching exists for actively exploited vulnerabilities. It still gets testing. The testing is expedited — it is not skipped.

Not everything can be patched. A fix may not exist. Or a fix cannot be applied. Or a fix would break a business function. Fixes often cannot be applied to: legacy systems, vendor appliances, and operational technology that cannot reboot Operations then turns to compensating controls. These are measures that reduce the risk to an acceptable level, by other means. Examples: place the system behind a firewall rule, or an IPS virtual patch that blocks the exploit; disable the vulnerable feature or service; use network segmentation to isolate the system; apply stricter monitoring and alerting on it; and remove its internet exposure A compensating control must actually address the same risk: Weak: “We watch it closely.” A control: “The exploit path is blocked at the IPS. The service is reachable only from the management VLAN.”

KEY DEFINITION — Compensating control

An alternative measure that reduces a risk to an acceptable level when the primary fix cannot be applied

Sometimes even that is not possible. The organization then formally accepts the risk. It does so through an exception — also called risk acceptance or exemption.

An exception is a documented, approved record. It states: The vulnerability. The business justification. The owner. Any partial mitigations. An expiration date Exceptions are temporary by design. They 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. Document an exception with an expiry, when you accept the risk.

4.3.2 Application security testing: SAST, DAST, SCA, and the SBOM

Section 4.3.1 covered vulnerabilities in software you buy and run. This section covers the software you build. Applications your own developers write need testing before attackers test them for you. Three methods divide the work — and the exam expects you to tell them apart on sight.

Static application security testing (SAST). SAST examines source code, bytecode, or a compiled build without running it. Because it reads the code itself, it can point to the exact line where a flaw lives.

KEY DEFINITION — SAST

Static application security testing: analyzing an application's code without executing it, to find insecure coding patterns and flaws

SAST is strong on:

It runs early — during development, inside the build pipeline — so flaws are fixed while they are cheap. Its limits follow from its method: it cannot see runtime behavior, configuration, or how components interact in production, and it can report patterns that turn out not to be exploitable.

Dynamic application security testing (DAST). DAST tests the application while it runs, from the outside — sending it requests and inputs and studying the responses. It is the same view an attacker has, and it needs no source code at all.

KEY DEFINITION — DAST

Dynamic application security testing: probing a running application from the outside to find flaws in its live behavior

DAST is strong on:

Its limits are the mirror image of SAST: it finds the symptom but cannot name the line of code, and it can only test what it can reach and trigger. Software composition analysis (SCA). Modern applications are mostly assembled, not written: open-source libraries, frameworks, and packages make up the bulk of the code. SCA inventories those third-party components and checks each against known-vulnerability and licensing databases.

KEY DEFINITION — SCA

Software composition analysis: identifying the third-party and open-source components inside an application and checking them for known vulnerabilities and license problems

SCA exists because your developers can write flawless code and still ship a critical vulnerability — inside a logging library, a parser, or a framework they imported. When a vulnerability in a widely used component is disclosed, the first question is “where do we use it?” SCA is what makes that question answerable.

The software bill of materials (SBOM). An SBOM is the formal inventory behind SCA: a machine-readable list of every component in a piece of software, its version, and how the components relate.

KEY DEFINITION — SBOM

Software bill of materials: a structured inventory of the components, versions, and dependencies that make up an application

Think of it as the ingredient label for software. With an SBOM on file, answering “are we affected by this newly disclosed component vulnerability?” takes a search, not an emergency audit — for your own products, and for software you buy, where vendors increasingly supply an SBOM on request.

Table 24 — Application security testing methods compared

MethodWhat it examinesWhen it worksNeeds source code?
SASTThe code itself, without running itDevelopment and buildYes
DASTThe running application's behaviorTest and staging — production only with careNo
SCAThird-party components and librariesAt build, and continuously as new vulnerabilities are disclosedNo — it needs the component inventory
EXAM TIP

Examining source code without running the app = SAST. Attacking a running application from outside = DAST. Checking third-party libraries for known flaws = SCA; the component inventory it works from is the SBOM. The three complement vulnerability scanning and penetration testing — they do not replace them.

4.4.1 Monitoring Tools and Alerting

Key Concept Summary — SIEM Pipeline — Collect, Normalize, Correlate, Alert

Operations runs on telemetry. The core toolset is a pipeline. Follow the logs in order. Firewalls, servers, endpoints, and cloud services all generate logs in different formats, and the SIEM collects them centrally. Inside the SIEM, normalization converts everything to a common format, and correlation connects related events across sources, for example failed logins followed by a success on another continent, into a single alert. Alerts then flow two ways: to SOAR, which can automate the response, and to the analyst console, where humans investigate and decide.

SIEM (security information and event management) collects logs from across the environment, normalizes and correlates them, applies detection rules and analytics, and presents alerts and dashboards for hunting and reporting. A SIEM is only as good as what it ingests and how well its rules are tuned.

SOAR (security orchestration, automation, and response) sits on top of detections and executes playbooks, as Section 4.6.1 covers in full — SIEM finds and correlates, SOAR acts and coordinates. EDR (endpoint detection and response) monitors endpoint behavior (processes, file changes, registry, network connections), detects malicious behavior, and lets responders isolate a host, kill a process, or roll back changes. XDR (extended detection and response) widens that same behavioral approach across endpoints, network, email, identity, and cloud, correlating the telemetry into unified incidents.

DLP (data loss prevention) identifies sensitive data (by pattern, fingerprint, or classification) in motion, at rest, and in use, and can alert on, block, or encrypt transfers — for example, stopping an email that contains 500 credit card numbers to a personal address.

IDS/IPS. An IDS detects and alerts. An IPS sits inline, and can also block. Signature-based detection matches traffic against known patterns. It is fast and precise for known attacks. It is blind to novel ones. Heuristic/behavioral detection models normal behavior. It flags deviations or suspicious characteristics. It can catch new attacks — at the cost of more false positives.

Modern tools combine both methods, plus reputation and threat-intel feeds. SNMP traps are unsolicited notifications sent by network devices (switches, routers, UPSs, printers) to a management system when a predefined event occurs — a link goes down, a temperature threshold is crossed, an unauthorized device is detected. They feed the same monitoring pipeline as logs and alerts.

Baselines and alerting. Effective alerting starts from a baseline: a profile of what normal looks like. That includes login volumes by hour, typical egress destinations, and normal CPU/disk/network ranges. Alerts then fire on meaningful deviation from the baseline. They are tuned so that analysts trust them.

Alert fatigue. Untuned monitoring produces alert fatigue: thousands of low-quality alerts. They train analysts to ignore the console. That is how real incidents hide in plain sight. Good operations teams work continuously. They measure alert precision. They retire noisy rules. They enrich alerts with context — asset criticality, user role, threat intel. So the first screen an analyst sees is already a head start.

KEY DEFINITION — SIEM

System that collects, correlates, and analyzes logs and events for detection, dashboards, and reporting

Table 25 — Monitoring and response tools compared

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

4.4.2 Monitoring methods: SCAP, benchmarks, and how the data gets collected

Section 4.4.1 covered the tools that watch events. Two questions sit underneath them. How do you verify — automatically, at scale — that systems still match the configuration you approved? And how does monitoring data actually get off the endpoints and into those tools?

SCAP: standardized, automated checking.

KEY DEFINITION — SCAP

Security Content Automation Protocol: a NIST-led suite of standards that lets tools express security checklists and vulnerabilities in a shared, machine-readable form, so configuration assessment and reporting can be automated

Before SCAP, every scanner described the same check in its own private language. SCAP standardizes the content — the checklists, the vulnerability identifiers, the scoring — so different tools produce comparable results. In practice, SCAP is how an organization runs the same approved checklist against ten thousand machines and gets one consistent compliance report.

Benchmarks and baselines. The checklists SCAP automates come from security benchmarks: published, expert-vetted configuration recommendations for a platform — the CIS Benchmarks are the best-known example. A benchmark says, in effect: disable these services, enforce this authentication policy, log these events.

Your approved configuration, built from a benchmark, becomes the system's baseline. Monitoring then has a precise job: any deviation from the baseline is a finding to investigate, whether it came from an attacker, an administrator, or an update.

Agent-based monitoring. An agent is software installed on the monitored endpoint itself. It sees local detail nothing else can — processes, files, local logs, user activity — continuously, and even while the device is off the corporate network.

The costs are operational: the agent must be deployed, updated, and kept compatible with every operating system in the fleet, and it consumes endpoint resources. Agentless monitoring. Agentless monitoring installs nothing. It collects data from outside, using network protocols, management interfaces, and APIs — querying devices with credentials and reading their logs and counters remotely.

KEY DEFINITION — Agentless monitoring

Collecting monitoring data from systems without installing software on them, using protocols, APIs, and remote management interfaces instead

Deployment is fast, and nothing on the endpoint can break — which is why agentless is the default for network devices, appliances, and anything that cannot run an agent. The trade-off is depth: you see only what the device exposes remotely, collection usually happens on a polling interval rather than continuously, and a device that is offline or unreachable reports nothing at all.

Table 26 — Agent-based vs agentless monitoring

AspectAgent-basedAgentless
DeploymentSoftware installed on every endpointNothing installed; uses protocols and APIs
VisibilityDeep local detail, continuousWhat the device exposes; often polled
Offline devicesKeeps collecting; forwards when reconnectedInvisible until reachable
MaintenanceAgents must be updated and kept compatibleLittle endpoint maintenance
Best fitServers and workstations you manageNetwork devices, appliances, rapid coverage

SNMP traps: the device speaks first.

Much monitoring polls: the platform asks, the device answers. SNMP traps reverse the direction. A trap is an unsolicited notification a device sends the moment an event occurs — an interface goes down, a device reboots, a hardware fault trips.

KEY DEFINITION — SNMP trap

An unsolicited event notification sent by a network device to a monitoring platform when a specified event occurs

Traps give near-real-time alerting without constant polling. The monitoring platform collects them alongside logs and metrics, and the SIEM correlates them with everything else it sees.

EXAM TIP

Standardized automated configuration and compliance checking = SCAP. The recommended settings themselves = a benchmark; your approved version of them = the baseline. Software installed on the endpoint = agent-based. Collected remotely with nothing installed = agentless.

A device-initiated event message = an SNMP trap — the opposite direction from polling.

4.1.4 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:

Email Authentication Stack: SPF, DKIM, DMARC & BIMI (SY0-801 Obj. 4.1) 1. SPF DNS TXT lists authorized sending IP addresses 2. DKIM Cryptographic sig verifies headers & body integrity 3. DMARC Checks From-domain alignment + enforces none / quarantine / reject 4. BIMI (New!) Requires enforced DMARC + VMC to show verified logo Progression: Publish SPF + DKIM → Monitor with DMARC p=none → Enforce p=reject → Enable BIMI brand indicator.
Figure 27 — Layered email authentication progression: SPF, DKIM, DMARC enforcement, and BIMI brand verification (Obj. 4.1).

Table 27 — Email authentication: SPF, DKIM, and DMARC

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. Neither stops an attacker who registers a similar domain and authenticates it perfectly. DMARC is what actually prevents direct spoofing of your domain. It needs a reject policy. It also needs proper alignment.

Organizations typically roll DMARC out gradually: Monitor, with p=none. Move to quarantine. Move to reject. While rolling out, fix legitimate senders that fail authentication. These controls pair with:

EXAM TIP

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

4.5.1 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. They use stolen or guessed credentials. So the operational side of identity and access management (IAM) is high-value work. It means: creating accounts correctly, changing them when roles change, and removing them the moment they are no longer needed

Identity Lifecycle (Joiner–Mover–Leaver) & Privileged Access Controls (Obj. 4.5) 1. Joiner (Provisioning) • HR triggers automated SCIM sync • Role-based (RBAC) least privilege • Enroll FIDO2 passkey / MFA 2. Mover (Role Change) • Revoke OLD department roles first • Prevent privilege creep via audits • Use PAM + JIT for admin tasks 3. Leaver (Deprovisioning) • Disable IdP + revoke OAuth tokens • Wipe BYOD/MDM & recover badge • Retain mailbox/logs for legal hold Service Accounts: Replace static credentials with Group Managed Service Accounts (gMSA) or short-lived OIDC workload tokens
Figure 28 — Joiner–Mover–Leaver identity lifecycle paired with PAM/JIT elevation and gMSA service-account hygiene (Obj. 4.5).

are recovered. Periodic access reviews feed back through the process, catching orphaned accounts and privilege creep that day-to-day changes miss. The identity lifecycle has three moments that matter most.

Provisioning. Provisioning is also called onboarding or account creation. It happens when a person joins. It also happens when a service is deployed. The account is created. It is given a unique identity. It is assigned to the correct groups.

It is granted only the access the role requires. Good provisioning is driven by HR events and role definitions. Do not copy the account of “someone who does a similar job.” Copying an account quietly copies its excess privileges too. Account changes.

Account changes happen when people move teams, get promoted, or take on temporary duties. Each change should add the new access. It should also remove the old access. If old access is never removed, it builds up. This slow build-up is privilege creep. It is one of the most common findings in access reviews.

Deprovisioning. Deprovisioning happens when someone leaves or a contract ends: The account is disabled. Later, it is deleted according to policy. Sessions are revoked. Tokens and keys are rotated. Any shared secrets the person knew are changed.

Deprovisioning must be fast. A leaver account disabled within minutes is a control. A leaver account still active after three weeks is an incident waiting to happen.

KEY DEFINITION — Provisioning

Creating an account and granting the access its role requires at the start of the identity lifecycle

EXAM TIP

A former employee logs in after leaving the company? The failed control is almost always deprovisioning. A missing account audit can also be the cause. An employee changed departments and kept old access? Think privilege creep. Think account audits and recertification.

Provisioning is imperfect. So organizations review access from time to time. They check who has access to what. Account audits. An account audit is also called an access review or recertification. Managers and system owners confirm three things for each account: The account still exists.

It belongs to a current employee. It holds only appropriate permissions. Audits hunt for specific problems: orphaned accounts — no owner, dormant accounts — not used in 90+ days, shared accounts — no accountability, and excessive privilege — standard users holding admin rights. Permission auditing.

Permission auditing goes one level deeper. It examines the actual rights assigned to accounts and groups. It does not just check that the accounts exist. Both are detective controls. They do not stop bad access from being granted. They find it 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. Length beats complexity.

Modern guidance says length beats complexity. CompTIA takes the same position on the exam. A policy that requires 14+ characters, with a password manager and MFA, is stronger. An 8-character policy with symbols is weaker. It forces users to write passwords on sticky notes.

Account lockout is a balance. Lock too fast, and attackers can denial-of-service your users. They just fail logins on purpose. Lock too slowly, and brute force becomes practical. Policies are enforced technically. They are set in directory settings — for example, Group Policy in Active Directory. They are not enforced by asking users nicely.

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

Table 28 — Multifactor authentication factor types

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 MFA. Both are “something you know.” So it is single-factor twice. MFA fatigue (push bombing). Watch for MFA fatigue, also called push bombing. An attacker with a stolen password spams push approvals. The user finally taps “approve” just 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.

KEY DEFINITION — MFA

Authentication requiring two or more different factor types (knowledge, possession, inherence, location, behavior)

Passwordless authentication and FIDO2. Passwordless removes the shared secret entirely. In a FIDO2 login: The user’s device holds a private key. The key never leaves the device.

The server stores only the public key. At login, the server sends a challenge. The user unlocks the device locally — with a biometric or a PIN. The device then signs the challenge. The server verifies the signature. There is no password to phish, reuse, or crack. The key pair is also scoped to the legitimate site’s origin. So a look-alike phishing site cannot replay it.

Examples you should recognize — all are FIDO2-based:

KEY DEFINITION — FIDO2

Passwordless authentication standard using per-site public/private key pairs and a local unlock (biometric/PIN)

Single sign-on (SSO). SSO lets a user authenticate once to an identity provider (IdP). The user can then access many applications. There is no need to re-enter credentials.

Federation. SSO is usually built on federation. Federation is a trust relationship between the IdP and service providers. It uses protocols such as: SAML — XML-based assertions, common in enterprise web apps; OAuth 2.0 — an authorization framework; it powers the consent screens behind “sign in with…” — but the authentication itself comes from OpenID Connect (OIDC) on top of it, not from OAuth alone; and OpenID Connect (OIDC) — an identity layer on top of OAuth 2.0. In operations, SSO improves security. There are fewer passwords. MFA is enforced in one place. Access can also be disabled in one place.

But SSO concentrates risk. The IdP becomes a high-value target. It is also a single point of failure. So it gets the strongest controls in the environment.

KEY DEFINITION — SSO

Single sign-on: authenticating once to an identity provider to access many applications

KEY DEFINITION — Federation

A trust relationship letting one organization’s IdP authenticate users for another’s services (SAML, OIDC)

Privileged access management (PAM). Administrator, root, service, and break-glass accounts are privileged accounts. PAM is the discipline of controlling them.

A PAM solution typically: Vaults privileged credentials. A user checks one out for a session. It is then rotated automatically afterward. Records privileged sessions. Enforces just-in-time (JIT) elevation. Admin rights are granted only for the window of a task. Then they are removed.

Standing privilege. The related principle is to eliminate standing privilege. Nobody should hold permanent admin rights “just in case.” On the exam, PAM pairs naturally with three ideas: least privilege, password vaulting, and session monitoring.

KEY DEFINITION — PAM

Privileged access management: vaulting, just-in-time elevation, and monitoring of administrative accounts

Key Concept Summary — End-to-End Access-Control Architecture

Every authentication, decision, and access is written to the SIEM as an accounting and audit trail, and those results feed back to the policy engine that made the decision.

4.5.2 Identity Attacks and Defenses

Three credential attacks appear constantly on the exam, and telling them apart is a favorite test point: Brute force attacks try many passwords against one account. Online brute force is slowed by lockouts and throttling; offline brute force (against a stolen password hash file) is limited only by the attacker’s hardware, which is why strong hashing and long passwords matter.

Password spraying flips the pattern: the attacker tries one or a few common passwords (“Winter2026!”, “Company123”) against many accounts. Because each account sees only one or two failures, account lockout never triggers. Spraying exploits the statistical certainty that in a large organization, someone chose a weak, seasonal, or company-themed password.

Credential stuffing uses username/password pairs leaked from other breaches. It replays them against your login page. It bets that users reuse passwords. The attacker is not guessing at all — the credentials are real, just stolen from somewhere else.

Defenses against credential stuffing include MFA (the stuffed password alone is not enough), breach-password screening at enrollment and login, bot detection and rate limiting, and user education about reuse.

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 they are not interchangeable: Lockout policies help against brute force. They barely touch spraying. MFA defeats stuffing. It also defeats most spraying impact. Impossible-travel and geolocation alerts catch successful logins from implausible locations.

Monitoring for distributed, low-and-slow attempts catches spraying. Spraying stays under per-account thresholds, so this monitoring matters.

4.5.3 Access Control Models in Operation

This is where access control design becomes operational: for every user and resource, someone must decide which model governs the decision — and then enforce it consistently.

Table 29 — Access control models compared

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. Every account holds the minimum access needed for its function. It holds that access for the minimum time needed. Least privilege is enforced in four ways: role design, JIT elevation, regular permission auditing, and separation of duties.

Separation of duties splits a sensitive process. No single person can complete it alone. No single person can abuse it alone. For example: The person who creates a vendor should not approve 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. It requires collusion to defeat. That is exactly the point. Job rotation. A related concept is job rotation. It moves people between roles. This exposes hidden fraud.

It also cross-trains staff.

KEY DEFINITION — Separation of duties

Splitting a sensitive process between two or more people so no one person can complete or abuse it alone

Real-world example — a hospital: RBAC — “nurse,” “physician,” and “billing clerk” roles map to clinical systems.

ABAC — rules then refine access. A nurse can open a chart only for patients on their ward (attribute: ward assignment). The nurse must also be on shift (attribute: time). MAC-style labels — labels protect psychiatric records. Those records require a specific clearance, regardless of role.

The models are not rivals. Mature environments layer them.

KEY DEFINITION — RBAC

Access control based on job roles and the permissions assigned to those roles

KEY DEFINITION — ABAC

Access control based on attributes of the user, resource, and environment

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.

4.6.1 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. Automation is a single task done by a script or tool, with no human intervention. Examples: disable a compromised account, snapshot a VM, and enrich an alert with threat-intelligence lookups. Orchestration.

Orchestration coordinates many automated tasks, across different tools, into one workflow:

  1. An alert fires.
  2. The SIEM creates a case.
  3. The SOAR platform looks up the user in the IdP.
  4. It checks the endpoint in the EDR.
  5. It opens a ticket.
Key Concept Summary — SOAR Playbook Automation & Guardrails

It posts to the team chat. All of this happens in seconds. It happens the same way every time. Start with an alert or trigger, often from the SIEM, which launches a SOAR playbook instead of waiting for a human. The playbook first enriches the alert automatically, for example with a threat intelligence lookup on the suspicious address or file hash. It then reaches the decision diamond. If the evidence says malicious, it isolates the host and opens a ticket for follow-up. If benign, it closes the case with notes. In both branches an analyst is notified, keeping humans in oversight of automated response.

Scripting use cases you should recognize: user provisioning and deprovisioning from HR feeds; enforcing baselines — check that systems match a configuration standard, and fix 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 with four traits. They are high-volume. They are repetitive. They are well-understood. They are time-sensitive. That is exactly the profile of tier-1 alert triage.

SOAR playbooks (runbooks) encode the response to a recurring situation. Example — “phishing email reported”: Detonate the attachment in a sandbox. Search for the same message across all mailboxes. Remove delivered copies. Block the sender domain.

Guardrails are the safety mechanisms. They keep automation from causing the outage it was meant to prevent:

KEY DEFINITION — SOAR

Platform that orchestrates tools and automates response workflows through playbooks

Approvals for destructive actions — automation may recommend isolating a server, but a human approves isolating a domain controller or production database.

Scope limits and allow lists — a playbook can only act on assets in its defined scope, never on excluded critical systems. Rate limits and circuit breakers — if a playbook starts disabling hundreds of accounts, something is wrong with the playbook, not the workforce; it should stop and escalate.

Testing in a safe environment first, version control for playbooks, and full logging of every automated action for later review. The exam also expects the balanced view. Benefits. Automation reduces response time. It reduces error rates. It also reduces analyst burnout.

Risks. A buggy playbook acts at machine speed and machine scale. Playbooks need maintenance as the environment changes. If everyone depends on one automation platform, it is a “single point of failure.” Over-automation can deskill the team. The strongest programs do two things. They automate the predictable. They 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.

4.6.2 SOAR Integrations in Depth: Webhooks, APIs, and Safe

Automation Beyond the exam. This section goes deeper than SY0-801 requires; skip it on a first pass if time is short. A SOAR platform earns its keep through its connections — how it actually links to the rest of the security stack. On the job — and increasingly on the exam — the question is rarely just “what does SOAR do?” The real questions are: How does the alert get into the SOAR platform?

How does the playbook reach out to five other tools? How does it prove it is allowed to act? What stops it from doing damage at machine speed? Those are integration questions. They turn on four ideas:

How tools talk: APIs and webhooks. Almost every modern security tool exposes an application programming interface (API).

Most expose a REST API over HTTPS. Examples: SIEM, EDR, email gateway, firewall, identity provider, ticketing system, and threat-intelligence feed. An API is a request-and-response contract: The caller sends a structured request. For example: “give me the reputation of this IP address.” Or: “isolate endpoint WS-1042.” The caller authenticates.

The caller receives a structured answer, usually in JSON. Polling. A SOAR platform may call another tool’s API on a schedule, or on demand. In its simplest form, that is polling. The SOAR asks, again and again: “anything new?” Polling is simple. It works through almost any network design. But it has costs: It wastes effort.

It adds delay. An alert may sit unnoticed until the next poll. It can hit vendor rate limits, if it polls too aggressively. A webhook reverses the flow. The source tool pushes. The SOAR does not ask. How a webhook works: The SOAR publishes a unique HTTPS listener URL.

The source tool is configured with that URL. An event occurs. For example: a high-severity alert fires. Or a user clicks the phish-report button. Or a ticket changes state. The source immediately sends an HTTP POST to that URL. The POST contains the event data.

This is event-driven, or push, integration. It is near-real-time. It is efficient. It is the normal way SIEM and EDR alerts start a playbook. Trade-offs. The webhook listener must be reachable from the source. So network placement and firewall rules matter.

The payload arrives on the sender’s schedule. So the SOAR must validate it before trusting it. If the listener is down when the event fires, the event may be lost. That is true unless the sender retries or queues. Mature integrations combine both patterns: Webhooks, for immediate notification A scheduled API poll, to reconcile anything missed — “what did we not hear about in the last hour?”

That way, no alert silently disappears.

Table 30 — Webhooks compared with API polling

CharacteristicWebhook (push)API polling (pull)
Who starts the exchangeThe source tool, when the event happensThe SOAR platform, on a schedule or on demand
TimelinessNear-real-time — secondsDelayed by the polling interval — often 1–15 minutes
EfficiencyHigh — traffic only when there is an eventLower — most polls return “nothing new”
Best forStarting playbooks from alerts, reports, and ticket changesEnrichment lookups, bulk reconciliation, and tools with no webhook support
Main riskMissed events if the listener is unreachable; forged events if the endpoint is not authenticatedRate-limit exhaustion, stale data, and unnecessary load
Security controlShared secret or signature verification on every payload, TLS, source allow-listingAuthenticated API credentials, least-privilege scopes, back-off on errors

Read that table the way an examiner would: A playbook must start “immediately” when the SIEM fires? The answer leans webhook.

A small vendor tool has no event notification? The SOAR checks it every five minutes. That is polling. It is acceptable, but with a known detection delay. A webhook without authentication is a vulnerability in its own right. Anyone who learns the listener URL could POST a forged “alert.” That could trigger real automated actions.

So production webhooks verify the sender. They use a shared secret, an HMAC signature over the payload, or a signed token. They reject anything that does not validate.

EXAM TIP

Webhook = the tool pushes the event to the SOAR, as soon as it happens. API polling = the SOAR repeatedly asks the tool for updates. Push is faster. Polling is simpler. Polling is also the fallback when a tool cannot push. Either way, the connection must be authenticated. An unauthenticated webhook is an invitation to trigger your own automation against you.

Playbook triggers: what is allowed to start automation. A trigger is the defined condition that starts a playbook, and choosing triggers well is a design skill. The common trigger types are: Alert-based triggers — a SIEM correlation rule, EDR detection, or IDS signature of a defined severity creates a case and starts the matching playbook. Severity and confidence thresholds belong in the trigger, not in the analyst’s head: a low-confidence informational alert should enrich and file itself, not page the team.

User-report triggers — a phish-report button, a help-desk ticket category, or a chat command starts triage. These triggers carry untrusted user-supplied content, so the playbook must treat message bodies, links, and attachments as hostile until analyzed.

Schedule-based triggers — hourly, daily, or weekly jobs such as dormant-account sweeps, certificate-expiry checks, threat-feed synchronization, and reconciliation polls. Nothing “happened”; time itself is the trigger.

Manual triggers — an analyst deliberately runs a playbook (or a single action from it) from a case. Manual does not mean unguarded: the same scope limits, approvals, and logging apply. Ticket- or case-state triggers — when a ticket is assigned, escalated, or marked as a confirmed incident, a second-stage playbook starts: containment, notification, or evidence collection.

Every trigger should also carry deduplication and suppression logic. Say the same phishing message is reported by 200 users. The organization needs one investigation, with 200 linked reports. It does not need 200 playbook runs. Those runs would all try to delete the same message. They would open 200 tickets.

Good playbooks work in order: Check first: “Is there already an open case for this message ID, file hash, or sender?” Merge duplicates into the parent case. Suppress known-benign patterns. Examples: the monthly sanctioned phishing simulation.

Also the vulnerability scanner’s expected “attacks” against its test targets. That way, automation does not amplify noise into an incident. Enrichment: making an alert worth an analyst’s time. Enrichment is the automated gathering of context. It happens around an indicator or alert.

It runs before a human looks at the case — or while the human looks. A raw alert might say only: “outbound connection to 203.0.113.44.” An enriched case says much more: who owns that address; whether three threat-intelligence feeds list it as an active command-and-control server; which internal host connected; what process made the connection; who owns that host; whether the same indicator appears anywhere else in the environment; and what the asset’s criticality is. Enrichment sources typically include: Threat-intelligence lookups — file-hash, URL, domain, and IP reputation from commercial feeds, open-source intelligence, and malware sandboxes. A hash seen by a sandbox detonating ransomware carries different weight than an unknown hash on a developer’s test machine.

Internal context — asset inventory and CMDB data (what is this host, how critical is it, who owns it), identity data from the IdP and HR system (is this user active, on leave, a recent leaver, a privileged account?), and vulnerability data (is the targeted service actually vulnerable?).

Historical context — prior cases involving the same user, host, or indicator; recent changes on the asset; and whether this alert is part of a pattern across many hosts. Enrichment lets a playbook make its first, low-risk decision on evidence. For example: Auto-close the alert that matches a known-good software update hash.

Escalate at once when three facts line up. The indicator is confirmed malicious. The host is a domain controller. The user is a privileged account. The discipline. Enrichment informs the decision. But the quality of the decision can never beat the quality behind it. It depends on the feeds and inventories used.

Stale asset data produces confident, wrong automation. Low-quality intel does the same. So enrichment results are shown in the case. The analyst verifies them. They are not hidden inside the playbook. Ticketing integration: the system of record SOAR does not replace the ticketing or case-management system. It feeds that system. It is also fed by it.

In a well-integrated operation, the playbook: Creates the ticket, with the enriched evidence already attached. That evidence includes indicators, screenshots, log excerpts, and affected users and hosts. Assigns the ticket by rule. Identity cases go to the IAM queue. Endpoint cases go to the SOC.

Sets priority, from asset criticality and confirmed impact. Keeps the ticket updated, as actions complete. When the analyst closes the ticket, the analyst records a disposition: true positive, benign, or false positive. That outcome flows back. It becomes: training data for tuning detections; metrics for mean time to detect and respond; and for false positives, a candidate suppression rule. The exam point is accountability.

Automated actions that never reach a ticket are invisible. They are invisible to management, to audit, and to lessons learned. If it was not ticketed and logged, operationally it did not happen. How automation authenticates: API keys, OAuth, and service accounts. Every action a playbook takes — isolating a host in the EDR, disabling an account in the IdP, blocking a domain at the proxy — is performed as some identity, with some credential.

Getting that identity right is a core security control, not an implementation detail. API keys are long-lived bearer secrets. A tool issues one for a specific integration. They are simple — which is why they are common. They are dangerous for the same reason.

Whoever holds the key holds the access. Keys are often pasted into scripts and configuration files. A leaked key may work until someone notices. API key rules. Keys belong in a secrets vault — never in playbook text or source code.

They must be rotated. They must be scoped to the minimum actions the integration needs. OAuth 2.0 is the stronger pattern for delegated access. The integration does not share a master credential. Instead, an authorization server grants it scoped, time-limited access tokens. Refresh handling is separate. One integration can be revoked without breaking others.

Scopes make least privilege concrete. A playbook that only reads alert data receives a read scope. It does not receive administrative write access “to be safe.” Dedicated service accounts give automation its own identity in each system. Never use an analyst’s personal account. Never use a shared human administrator account.

A dedicated identity makes automated actions attributable in logs — for example, “SOAR service account isolated WS-1042 at 14:03 under case 8841.” It lets the organization grant exactly the permissions the playbooks need. It also lets the organization disable automation at once, in one place, if a playbook misbehaves.

Whichever mechanism is used, the rules are the same: Use least-privilege scopes. Store credentials in a vault. Retrieve them at run time. Rotate credentials on a schedule. Rotate at once if exposure is suspected. Use separate credentials per environment. Test playbooks never hold production keys.

Log every action in full. Record which credential performed which action. A SOAR platform concentrates enormous power. It can touch the EDR, the IdP, the firewall, and the email system. So its own credentials and console deserve domain-controller-level protection: MFA for human operators, role-based access to playbooks, and change control on who may edit and publish playbooks.

EXAM TIP

If a scenario asks how a SOAR playbook should authenticate to other tools, choose the dedicated, least-privilege service identity with scoped, vaulted, rotatable credentials (OAuth tokens or scoped API keys) — never an analyst’s personal credentials and never a permanent, all-powerful administrator account.

Safe automation guardrails, applied. The guardrails — approvals, scope limits, rate limits, testing, and logging — become concrete design decisions at integration time: Human approval for destructive or hard-to-reverse actions. Deleting mail from one reported mailbox is reversible and low-risk. These actions are not: purging a message from every mailbox; isolating a production server; disabling a privileged account; blocking a domain the business depends on.

Well-designed playbooks automate the investigation completely. They present the evidence and the recommended action. Then they pause, for a named human to approve the consequential step. Often there is a timeout and an escalation path. Then an unanswered approval does not leave a live threat untouched overnight.

Blast-radius limits. Scope allow lists (which hosts, accounts, and business units the playbook may touch), exclusion lists for crown-jewel systems, and per-run caps (“disable at most 10 accounts, then stop and escalate”) ensure that even a completely wrong playbook can only cause a small, recoverable problem.

Idempotence and verification. A safe action can be run twice without doubling the harm — blocking an already-blocked domain changes nothing — and the playbook verifies the result through the tool’s API (“confirm host state is now isolated”) instead of assuming success.

Dry-run and simulation modes. New or changed playbooks first run in a mode that logs what they would have done, against test assets, before they are allowed to act in production. Playbooks are code: they belong in version control, with peer review and rollback.

Kill switch and full logging. There must be one obvious way to halt all automation, and every trigger, decision, API call, and result must be logged to the SIEM — both for accountability and because the attacker who compromises automation will try to use it as a weapon.

SIEM Correlation & SOAR Automated Phishing Triage Playbook (Obj. 4.4 & 4.6) 1. Log Ingestion Email GW · EDR Firewall · Auth NetFlow / SNMPv3 2. SIEM Engine Normalize & parse Correlate rules Raise high-fid alert 3. SOAR Enrich Query Threat Intel Sandbox URL/file Find all recipients 4. Human Gate Analyst verifies true positive & approves action 5. Contain Purge mailboxes Revoke sessions Isolate host Exam Distinction: SIEM detects & correlates events · SOAR orchestrates multi-tool automated playbooks (with guardrails)
Figure 29 — SIEM log correlation feeding into an automated SOAR phishing triage and containment playbook (Obj. 4.4 & 4.6).

Worked scenario: a phishing email, triaged end to end

Follow one report through a mature SOAR pipeline. At 09:14, an employee clicks the phish-report button on a message titled “Updated payroll direct deposit form.” Trigger (webhook). The email platform immediately POSTs the report — message ID, sender, subject, and the original message as an attachment — to the SOAR webhook listener. The SOAR verifies the payload signature before creating anything. Elapsed time: seconds.

Deduplication. The playbook checks for an open case with the same message ID and sender. Eleven other employees reported the same message; their reports are linked to one parent case instead of starting eleven investigations.

Enrichment (API calls). The playbook gathers evidence: It extracts the URL and the attachment.

It submits the attachment hash — then the file itself — to a sandbox. It checks the sending domain’s age and reputation. It looks up the URL in threat-intelligence feeds. It queries the mail system for every mailbox that received the same message.

The results: the sandbox verdict returns “credential-harvesting kit.” The link resolves to a look-alike domain, registered two days ago. 214 mailboxes received the message. The gateway confirms 9 users clicked the link. Decision point. The indicators are confirmed malicious and the click count is above zero, so the playbook escalates the case to high priority, creates the incident ticket with all enrichment attached, and notifies the on-call analyst in chat with the evidence summary and two recommended actions.

Guarded containment. The low-risk actions run automatically: The sender domain and URL are blocked at the email gateway and web proxy. The message is purged from mailboxes where it is still unread. The consequential action goes to a human for approval: Force password resets, and revoke sessions, for the 9 users who clicked.

Approval matters here: one of the nine is a finance manager, in the middle of a payment run. The analyst approves, with a note. The playbook executes through the IdP API, using its scoped service account. It then verifies, through the same API, that sessions are revoked.

Endpoint sweep. The playbook asks the EDR, by API, whether any of the 9 endpoints downloaded or executed the attachment, and isolates the one laptop that did — an action pre-approved by policy for confirmed-malicious execution on a standard workstation, but which would have required approval for a server.

Closure and learning. The analyst records the disposition in the ticket. The playbook attaches its complete action log, updates the metrics, and files the indicators to the block lists with an expiry review date. The look-alike domain pattern is proposed as a new gateway detection rule — a human reviews and publishes it.

Total elapsed time to containment: under 15 minutes. Most of that time was sandbox analysis. The analyst made exactly two decisions: approve the credential resets, and confirm closure. The analyst did not perform forty manual lookups.

That division of labor is the whole point of SOAR. Machines do the gathering, the correlating, and the routine acting. Humans keep judgment. Humans approve consequential actions. Humans keep accountability.

7.

EXAM TIP

In SOAR scenarios, trace the flow:

If any step is missing, that gap is usually the weakness the question is hunting for.

Watch especially for two gaps: no approval for a destructive action, and no logging of what automation did. When integrations fail: errors, retries, and degraded operation Playbooks run at 3 a.m. They run against tools that are themselves sometimes down, slow, or rate-limited.

So integration design must answer an unglamorous question: what happens when the API call fails? The professional answers are consistent. Retry with back-off. Retry transient failures after a pause. Do not hammer the tool. A timed-out enrichment lookup is a good example. Set a hard retry limit, too. Then a broken integration cannot loop forever.

Fail visibly, never silently. Say the threat-intelligence feed is unreachable. The case must say: “reputation unknown — feed unavailable.” It must not quietly proceed as if the indicator were clean. An enrichment gap is itself information. The analyst needs it.

Degrade to manual. Say the EDR API cannot isolate the host. The playbook then creates a high-priority task. The task gives the exact manual steps. It also gives the evidence already gathered. So the response continues at human speed, instead of not at all.

Reconcile afterward. The scheduled polling pattern from earlier earns its keep here. It sweeps for alerts and completed actions that webhooks missed, while a listener was down. On the exam, these ideas separate a slogan from automation a team can trust. Trusted automation has: monitored integrations; alerting on playbook failures themselves; a tested manual fallback for every automated path.

4.7.1 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.

Incident Response Lifecycle & Parallel Governance Track (SY0-801 Obj. 4.7)1. PreparationPlaybooks & EDR2. DetectionTriage & Scope3. AnalysisScope & Impact4. ContainmentIsolate Hosts5. EradicationRemove Root Cause6. RecoveryRestore & Verify7. Lessons LearnedImprove & UpdateParallel Executive, Legal & Incident Negotiation TrackChain of custody · Legal hold · Regulatory breach notifications (72h GDPR) · Law enforcement & ransom/extortion negotiation
Figure 30 — CompTIA incident response lifecycle with the parallel legal, compliance, and incident negotiation track (Obj. 4.7).

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. 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?

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. 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. Eradication — remove the threat completely: delete malware, remove persistence mechanisms and attacker accounts, close the exploited vulnerability, rebuild systems where integrity is in doubt.

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. 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. It is tested directly: Preparation → Detection → Analysis → Containment → Eradication → Recovery → Lessons Learned. Say a scenario has the team wiping and rebuilding a machine. The attacker is still active elsewhere. The missed step is then containment. Or the rebuild belongs later, in eradication or recovery.

An incident response plan is the governing document. It sets out: 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, and HR as needed; escalation paths and call trees; and communication rules — including out-of-band channels, in case email is compromised Evidence-handling requirements 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. The team walks through a scenario. For example: “It’s 2 a.m. Friday. The EDR just reported encryption behavior on a file server. What do you do first?” The team talks through decisions, gaps, and handoffs. Tabletop exercises are cheap. They are safe. They are excellent at exposing two problems: Unclear roles Missing contact information They differ from functional or simulated exercises. Examples are red team engagements and live-fire simulations. In those exercises, actions are actually performed.

Organizations also run call-tree tests. The question is simple: can we actually reach everyone? Lessons from every exercise feed back into preparation. That closes the loop. Real-world example — a midsize retailer: Detection. The EDR reports a workstation beaconing to a known botnet domain.

Analysis. One host is infected. There is no lateral movement yet. Containment. The host is network-isolated. It is left powered on, for forensics. Eradication. The malware is removed. Its scheduled-task persistence is removed. The entry point is identified: an outdated, internet-facing plugin.

Recovery. The machine is rebuilt from a clean image. The plugin is patched everywhere. Credentials on the box are reset. Lessons learned. The plugin inventory was incomplete. So asset management is tightened. Patch SLAs are tightened. A new detection rule is written for the beacon pattern.

4.8.1 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.

Digital Forensics Order of Volatility Pyramid (Collect Top-Down — Obj. 4.8) 1. CPU Registers & Cache Nanoseconds — disappears immediately 2. Live RAM, Running Processes & Active Sockets Lost on power-off; holds fileless malware & keys 3. Swap Space & Temporary File Systems Volatile paging data & cached artifacts 4. Local Hard Disks / SSDs (Bit-Stream Image) Acquire via hardware write blocker + SHA-256 5. Remote SIEM, Firewall & Cloud Audit Logs Centralized telemetry outside compromised host 6. Archival / Immutable WORM Backups & Printouts Least volatile — long-term preservation
Figure 31 — Digital forensics order of volatility pyramid — always collect the most volatile evidence first (Obj. 4.8).

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

Table 31 — Order of volatility

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. Write blocker. A write blocker is a hardware or software device. It sits between the evidence drive and the forensic workstation. It prevents any writes to the source. So the evidence cannot be altered during imaging.

Forensic image. Create a bit-for-bit forensic image. This is not a file copy. It is an exact, sector-level duplicate. It includes deleted data and unallocated space. Work only on copies of that image. Never work on the original. Hashing. Hashing proves integrity. The examiner hashes the source at acquisition. SHA-256 is the modern standard. The examiner also hashes the image. 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. It records who collected it, when, where, and how it was stored. It also records every person who handled it. Each transfer is signed.

A break in the chain can make evidence inadmissible. A break is an undocumented gap. In that gap, someone could have tampered with the evidence. Evidence is stored with care. Use sealed, labeled containers. Or use a controlled evidence locker. Access is restricted and logged.

KEY DEFINITION — Chain of custody

The signed, continuous record of who collected, stored, and handled evidence and when

Legal hold is a formal directive. It usually comes from legal counsel. It requires that specific data be preserved unchanged. The reason: litigation or an investigation is expected.

A legal hold overrides normal retention and deletion schedules: Backups are kept. Mailboxes are frozen. Auto-deletion is suspended, for the in-scope data. Deleting data under a legal hold is called spoliation. It carries serious legal consequences.

E-discovery is the process built around litigation. It covers identifying, preserving, collecting, processing, and producing electronically stored information (ESI) for legal review.

KEY DEFINITION — Legal hold

A directive to preserve specified data unchanged despite normal retention/deletion schedules

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

NetFlow / flow records — metadata about conversations (source, destination, ports, bytes) without payload; ideal for spotting exfiltration volumes and beaconing patterns over long periods. Packet captures (PCAP) — the actual traffic content; the most definitive source, but storage-heavy and often only kept for short windows or on demand.

Vulnerability scan output, system images/memory dumps, and mobile device images round out the set, along with mundane but decisive records such as badge/access logs and CCTV.

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. Command-Line Tools Deep-Dive: A Hands-On Lab Manual Naming the tools is not the skill — using them is. This lab puts them in your hands. Security operations is a command-line profession. The SIEM may raise the alert. But the proof is done with small, precise tools. Most of them are older than the analysts running them.

Proving the facts means answering questions like: What is actually listening on a host? What does a packet really contain? Is a certificate about to expire? Where was a photograph taken? The exam tests these tools the way a supervisor would. Not: “write an essay about nmap.” Instead: “Which command shows the version of the service on each open port?” “An analyst needs only the IP addresses for a domain, with no extra output. Which switch does that?” Learn each tool below in the same pattern: what it proves, the canonical commands, how to read real output, and the exam angle. A note on authorization, before any command is run. Scanning, sniffing, and probing are dual-use activities.

Run them only against systems you own. Or against systems you are explicitly authorized to test. Run them from an approved scanning host. Run them inside the agreed window. The same nmap command can be two very different things. On your own subnet, it is routine operations. Against someone else’s system, it is an incident — possibly a crime.

On the exam, assume authorization. In the field, obtain it in writing first. nmap — what is actually there What it proves. Nmap (Network Mapper) answers the most fundamental operational questions about a target: Is the host up? Which TCP and UDP ports are open?

What service is listening on each port — and which version? What operating system is it probably running? Every vulnerability program starts here. So does every incident investigation and firewall audit. Reason: you cannot protect, patch, or investigate a service you do not know exists.

Nmap works by sending crafted probes. It interprets the responses: A TCP SYN answered with SYN/ACK means the port is open. An RST means closed. Silence, or an ICMP unreachable, usually means filtered by a firewall. nmap 192.168.1.0/24 nmap -sV -O 192.168.1.25 nmap -p- --open 192.168.1.25 nmap -sU --top-ports 50 192.168.1.25 nmap -A -oN scan-results.txt 192.168.1.25 Read the commands left to right: A bare target performs a quick scan of the 1,000 most common TCP ports.

-sV adds service and version detection. Nmap probes each open port. It matches the banner or response against its fingerprint database. -O adds operating-system detection, from TCP/IP stack characteristics. Together, nmap -sV -O is the single most tested nmap command on Security+.

-p- scans all 65,535 ports, instead of the common subset. --open suppresses closed and filtered noise. -sU performs the UDP scan. It is slow, and often forgotten. DNS, SNMP, and VPN services hide there. -A is aggressive mode: version detection, OS detection, default scripts, and traceroute, in one flag.

-oN saves normal, human-readable output to a file. A scan you did not record is a scan you cannot hand to the next shift. Starting Nmap 7.94 ( https://nmap.org ) Nmap scan report for 192.168.1.25 Host is up (0.0012s latency). Not shown: 996 closed tcp ports (reset) PORT STATE SERVICE VERSION 22/tcp open ssh OpenSSH 9.3 (protocol 2.0) 80/tcp open http Apache httpd 2.4.57 443/tcp open https Apache httpd 2.4.57 3306/tcp open mysql MySQL 8.0.34 OS details: Linux 5.15 - 6.1 Nmap done: 1 IP address (1 host up) scanned in 8.42 seconds Reading the output. Start with the state column: Open means something accepted the connection.

Closed means the host answered, but nothing is listening. Filtered means a firewall prevented a determination. These are three different operational findings. Exam distractors love to swap them. Then read the version column as a vulnerability analyst. Apache 2.4.57 and MySQL 8.0.34 are specific enough to check against known vulnerabilities.

The real finding in this scan is arguably port 3306. A database port is reachable on a general server. That is an exposure to question at once — whether or not it is patched. Finally, note what is absent. Say a server you believe runs a service shows no such port.

Then one of three things is true: The service is down. The service is firewalled. The service is on a nonstandard port. Each possibility sends the investigation in a different direction.

EXAM TIP

Memorize the core nmap flags as verbs: -sV = versions of services -O = operating system -sS = stealth (SYN) scan -sU = UDP scan -p- = all ports -A = aggressive (everything) -oN/-oX = save output “Which tool shows open ports and service versions?” It is nmap, every time.

Netstat only shows the local machine’s own sockets, from the inside. tcpdump — what is actually on the wire What it proves. Where nmap probes, tcpdump listens. Tcpdump captures the actual packets crossing an interface. That is the ground truth of network communication. It either displays the packets live, or writes them to a capture file (PCAP) for analysis in Wireshark.

Reach for it when the question is factual and specific: Is traffic reaching this server at all? Is this host really talking to that suspicious address? Is the supposedly encrypted flow actually encrypted? Is a retransmission storm a network fault, or an application fault?

The pattern is interface plus filter: -i eth0 selects the interface.

The filter uses Berkeley Packet Filter (BPF) syntax: host, port, net, src, dst, and protocol names. They combine with and, or, and not. Learning to write “this host, that port, nothing else” is the skill being tested. -nn is the analyst’s favorite pair of letters. It disables DNS name resolution and port-name translation. So output shows raw addresses and numbers — faster, and without ambiguity. 443 stays 443; it does not become “https.” -X prints packet contents in hex and ASCII. Use it to confirm whether a payload is readable plaintext or ciphertext.

-w writes a PCAP file instead of printing. -r reads one back, optionally with a display-time filter. That is how a night-shift capture becomes the day shift’s evidence. 14:02:11.304512 IP 192.168.1.50.52410 > 203.0.113.44.443: Flags [S], seq 3811224471, length 0 14:02:11.351208 IP 203.0.113.44.443 > 192.168.1.50.52410: Flags [S.], seq 992811003, ack 3811224472, length 0 14:02:11.351402 IP 192.168.1.50.52410 > 203.0.113.44.443: Flags [.], ack 1, length 0 14:02:11.352010 IP 192.168.1.50.52410 > 203.0.113.44.443: Flags [P.], seq 1:518, ack 1, length 517 Reading the output. Each line holds: timestamp, source address and port, direction arrow, destination address and port, then flags and lengths.

The first three lines above are the complete TCP three-way handshake. Recognizing it on sight is a core exam skill: [S] is SYN, from the client. [S.] is SYN-ACK, from the server. The dot means ACK is also set. [.] is the client’s final ACK. The fourth line, [P.] with length 517, is the first pushed data. In this capture, it is the TLS ClientHello, beginning an encrypted session.

Now the diagnostics become easy: SYNs with no SYN-ACK mean the server is down, the port is closed or filtered, or the path is broken. Repeated SYNs from the same client mean it never received the replies. A handshake followed by an immediate [R] (reset) means something actively refused the connection.

If -X shows a readable password or web page inside a flow that was supposed to be TLS, you have proof — not a suspicion — of cleartext transmission.

EXAM TIP

tcpdump captures and filters packets on the command line. Wireshark does the same job graphically. The scenario needs a capture file for later analysis? The answer involves -w (write PCAP). Output must show numbers instead of resolved names? The switch is -nn.

BPF filters (host, port, net) belong to tcpdump. Do not confuse them with Wireshark’s display-filter syntax, later in this section. netstat and ss — what this machine is doing, right now What they prove. Nmap shows a host from the outside. Netstat — and its modern Linux successor, ss — show the same host from the inside: which sockets are listening, which connections are established, and which process owns each one — with the right flag. That process mapping changes the investigation. “Something is connected to a suspicious address” becomes “this executable is connected to a suspicious address.” That is the moment an investigation becomes concrete.

The classic incident question is: “A workstation is beaconing; which process is doing it?” It is answered here — not in the firewall log. ss -tuln ss -tulpn ss -tn state established netstat -ano netstat -tuln The flags compose predictably: t is TCP; u is UDP; l restricts output to listening sockets; n shows numbers, instead of resolved names and services; and p shows the owning process. On Linux, root is required to see other users’ processes.

So ss -tuln lists every TCP and UDP listener, by number. It is the most common modern form. It is your expected-services baseline, in one screen. Adding p gives the responders’ version. On Windows, netstat -ano is the equivalent habit: a shows all connections and listeners o adds the owning process ID. Resolve that ID to a program name in Task Manager, or with a process query.

Netstat is deprecated on Linux, in favor of ss. Ss is faster. It reads kernel data directly. But netstat remains common on Windows, and in exam questions. So recognize both. $ ss -tulpn Netid State Recv-Q Send-Q Local Address:Port Peer Address:Port Process tcp LISTEN 0 4096 0.0.0.0:22 0.0.0.0:* users:(("sshd",pid=812,fd=3)) tcp LISTEN 0 4096 0.0.0.0:443 0.0.0.0:* users:(("nginx",pid=1044,fd=6)) tcp ESTAB 0 0 192.168.1.50:52410 203.0.113.44:443 users:(("curl",pid=2210,fd=3)) Reading the output. Work the columns: state, local address and port, peer address and port, process.

LISTEN on 0.0.0.0 means the service accepts connections on every interface. That is expected for the web server on 443. For anything you do not recognize, it is a finding worth a ticket. Listener on 127.0.0.1 is reachable only locally. That is a much smaller exposure.

In the ESTAB rows, match the peer against your expectations. The third line above is fully explained: curl is fetching an HTTPS page. It is the same connection seen from the wire in the tcpdump example. The investigative reflex to build is symmetrical: An established connection to a rare external address, owned by an unsigned process in a temporary directory, is a compromise indicator.

The same connection, owned by the sanctioned backup agent, is a Tuesday. Baseline first. Capture ss output on a healthy machine. Then “new” is visible at a glance during an incident.

EXAM TIP

Inside view versus outside view: ss/netstat run ON the host, and can name the owning process. Nmap runs from elsewhere, and cannot. “Which process is connected to the malicious IP?” = ss -tulpn (Linux). Or netstat -ano plus the PID (Windows).

“What is listening, in numeric form?” = the -n flag, in either tool. dig and nslookup — interrogating DNS What they prove. DNS is both critical infrastructure and a favorite attack channel. Spoofing, tunneling, exfiltration, and command-and-control all ride on it.

So operations needs to query DNS directly. Operations also needs to read the answer skeptically. dig (domain information groper) is the detailed, script-friendly interrogator. nslookup is the older, simpler tool. It is found everywhere, including Windows. It is still worth knowing: help desks and exam stems reach for it first.

Together they prove: what a name actually resolves to; which server answered; what mail and verification records a domain publishes — including the SPF, DKIM, and DMARC records from the email security section; and whether the answer changes, depending on which resolver you ask. That is often the whole diagnosis.

dig +short is the exam’s favorite dig form. It returns only the answer — just the addresses. The commentary is stripped away. It is ideal for scripts, and for a quick “what does this resolve to, right now?” dig MX and dig TXT query specific record types. MX is for mail exchangers. TXT is for the records that carry SPF and DMARC policy. DMARC lives at the _dmarc subdomain — exactly as queried above.

The @server argument chooses which resolver answers. Compare your internal resolver’s answer with a public resolver’s answer. That is the fastest way to prove split-horizon DNS is working. It also spots a local resolver that has been poisoned or hijacked.

dig -x performs a reverse lookup: address to name. Nslookup mirrors the essentials: a bare query for the address, and -type= to select record types, with an optional resolver address at the end. $ dig +short example.com 93.184.216.34 $ dig MX example.com +short 10 mail.example.com.

$ dig TXT _dmarc.example.com +short "v=DMARC1; p=reject; rua=mailto:dmarc-reports@example.com" Reading the output. A full (non-+short) dig answer has sections. Two details matter most. The ANSWER section is the data itself, with its TTL. The TTL says how long resolvers may cache it. That tells you how long a DNS change — or a poisoning — will persist.

The status in the header tells you the shape of the result: NOERROR, with answers, is success. NXDOMAIN means the name authoritatively does not exist. Classic signs: a typo, a decommissioned service, or malware generating random subdomains that mostly fail.

SERVFAIL means the resolver could not get a valid answer at all. Think DNSSEC validation failure, or a broken upstream. In the worked output above, the three +short answers tell a complete operational story, in three lines: The web name resolves to a single address.

Mail goes to one host, at priority 10. The domain enforces DMARC at p=reject. Aggregate reports flow to a monitored mailbox. That is precisely the end state the email section recommends.

EXAM TIP

dig +short = “just the answer.” dig @8.8.8.8 = “ask a different resolver.” It is the test for split DNS and suspected resolver problems. dig -x = reverse lookup. Nslookup is the legacy, cross-platform equivalent. A stem set on a Windows help-desk machine? Expect nslookup. A stem that needs record types? Expect -type=.

curl — fetching like a machine What it proves. Curl transfers data from URLs, from the command line. For operations, its superpower is removing the browser from the equation. Browsers cache, follow, render, and hide. Curl shows exactly what a server returns: status codes, headers, redirects, and certificate behavior. That makes curl the standard tool for one job: proving whether a web fault is in the server, the TLS configuration, or the client. It is also the standard tool for testing APIs — including the very APIs a SOAR playbook will call.

curl -I https://example.com curl -v https://example.com curl -L -o report.pdf https://example.com/files/report.pdf curl -k https://192.168.1.25 curl -H "Authorization: Bearer TOKEN" https://api.example.com/v1/status -I sends a HEAD request. It prints only the response headers: status, server, caching, and security headers. It is the fastest health check in this entire section.

-v is verbose mode. It narrates the whole exchange: DNS resolution, the TCP connection, the TLS handshake, the certificate details the client verified, and the exact request sent. A user says “the site is broken,” and the browser will not say why? curl -v usually will.

-L follows redirects. Without it, curl faithfully reports the 301 and stops — a classic false “the API moved” alarm. -o writes the body to a file. -k skips certificate verification. It is invaluable for reaching an internal device with a self-signed certificate, during diagnosis. It is dangerous as a habit: it discards the very check that proves you are talking to the right server. Use it knowingly — never by default.

The last command shows curl as an API client. It passes an authorization header, exactly as an automation script would. $ curl -I https://example.com HTTP/2 200 date: Sun, 15 Nov 2026 18:04:22 GMT content-type: text/html; charset=UTF-8 strict-transport-security: max-age=31536000 x-content-type-options: nosniff Reading the output. The status line is the headline: 200 is success.

A 301 or 302 without -L explains a “blank” result. 403 means the server understood and refused. Causes include authorization, IP allow-listing, or a web application firewall. 404 means the path — not the server — is wrong.

A 5xx indicts the server side. Then read the security headers as an auditor. Strict-Transport-Security present means browsers will insist on HTTPS for a year. Its absence on a production site is a finding. In -v output, learn to find the certificate lines: subject, issuer, and expiry. “The site throws a warning every morning” is very often an expired or wrong-name certificate. Curl shows it in plain text. The browser shows only a frightening icon.

EXAM TIP

curl -I = headers only (HEAD). curl -v = watch everything, including TLS. curl -L = follow redirects. curl -k = ignore certificate errors. It is a diagnostic shortcut — never a security recommendation. The stem says “test the web server/API without a browser, and inspect the response headers”? The answer is curl.

openssl — proving what the cryptography is doing What it proves. OpenSSL is the command-line face of the TLS and certificate cryptography covered in Chapter 1. Here, it is turned into an inspection tool. It proves: what a server’s certificate actually says — subject, issuer, dates, subject alternative names; which TLS versions and cipher suites a server will accept; whether a certificate and a private key belong together; and what version of the library itself a system is running. That last point is the first question in any “are we exposed to that OpenSSL vulnerability?” sweep.

openssl version openssl s_client -connect example.com:443 -servername example.com openssl s_client -connect example.com:443 -tls1_2 openssl x509 -in server.crt -text -noout openssl x509 -enddate -noout -in server.crt openssl version is one word of output. It is also a complete patch-management fact. Version strings are how scanners and asset inventories decide exposure.

s_client — the workhorse. It opens a real TLS connection to a host and port. It prints everything about it:

-servername sends SNI (Server Name Indication). It is essential on modern hosting. One IP address serves many sites there. The server returns a different certificate, depending on the name you ask for.

Omitting -servername is the classic error. A test then reports “wrong certificate” — for a site that works perfectly in browsers. Forcing a version. Add -tls1_2 — or -tls1_3, or -tls1_1 — to force a specific protocol version. That is how you prove a server has really disabled the old versions policy claims it has. The forced TLS 1.1 connection fails, and TLS 1.2 succeeds? Then the configuration is telling the truth.

x509 commands work offline, on a certificate file: -text -noout decodes the whole certificate into readable fields. -enddate extracts the single most operationally urgent field. $ openssl s_client -connect example.com:443 -servername example.com CONNECTED(00000003) depth=2 C = US, O = DigiCert Inc, CN = DigiCert Global Root CA verify return:1 --- Certificate chain 0 s:CN = example.com i:C = US, O = DigiCert Inc, CN = DigiCert TLS RSA SHA256 2020 CA1 --- Server certificate subject=CN = example.com issuer=C = US, O = DigiCert Inc, CN = DigiCert TLS RSA SHA256 2020 CA1 --- SSL-Session: Protocol : TLSv1.3 Cipher : TLS_AES_256_GCM_SHA384 Verify return code: 0 (ok) Reading the output. Check four things, in this order: Verify return code: 0 (ok). The chain built to a trusted root, and the name matched.

Any other code is the diagnosis. 21 means the chain could not be verified. 10 means expired. The subject and issuer. The subject must name the site you intended. In the full -text view, the Subject Alternative Name list must include it, too. Modern browsers trust the SAN list — not the old common-name field alone.

The dates. Most “sudden” website outages at 9 a.m. on a Monday are certificates that expired over the weekend. The -enddate option turns that suspicion into a fact, in one second. The negotiated protocol and cipher, at the bottom. TLS 1.3 with an AEAD cipher — such as TLS_AES_256_GCM_SHA384 — is the modern healthy result. A negotiation landing on TLS 1.0, or a CBC or RC4 cipher, on an internet-facing service is a reportable weakness. The forced-version commands above let you prove whether the server would have accepted worse.

EXAM TIP

The canonical form is openssl s_client -connect host:443 . The port is included. Add -servername when SNI matters. Use openssl to inspect certificates and test TLS versions. Use curl when you care about the HTTP response. A question about “verify the certificate’s expiry date and issuer, without a browser”? It is an openssl question.

exiftool — what the file is carrying with it What it proves. Files carry metadata — data about the data. Photographs carry the richest metadata of all: EXIF tags. They record: the camera or phone model, the software that edited the file, timestamps, and GPS coordinates of where the photo was taken — the most sensitive tag ExifTool, written by Phil Harvey, is the definitive reader of this metadata. It is also a writer of it. It works across images, documents, audio, and video.

Operationally, it proves two opposite things: For an investigator: where and when an image was really created. That evidence has corroborated many stories — and destroyed many stories. For a privacy officer: exactly what an organization leaks. It leaks every time an employee posts a site photo with location tags intact.

exiftool photo.jpg exiftool -GPS* photo.jpg exiftool -a -G -s photo.jpg exiftool -time:all -s3 -s3 -s3 photo.jpg A bare invocation dumps every tag ExifTool can find — often over a hundred lines. That is the correct first move on an unknown file.

The second command narrows to the GPS group — the privacy-critical subset. The third command shows the reading discipline. -a allows duplicate tags: different groups can hold different values, and the difference itself can be evidence of editing. -G prints the group each tag belongs to (EXIF, GPS, XMP, MakerNotes). -s prints tag names in their technical form.

The last command is the scripting form: a single chosen value, printed bare, ready to feed into a report or another tool. $ exiftool -GPS* -s3 -s3 -s3 site-photo.jpg 38 deg 53' 51.61" N, 77 deg 2' 11.23" W $ exiftool -a -G -s site-photo.jpg | head -n 12 [File] FileModifyDate : 2026:11:10 14:22:08-05:00 [EXIF] Make : ExamplePhone [EXIF] Model : ExamplePhone 15 [EXIF] DateTimeOriginal : 2026:11:10 14:21:57-05:00 [EXIF] Software : ExampleEditor 4.2 Reading the output. Treat metadata as a claim, not a fact. Tags can be edited with the same tool that reads them. So look for consistency.

DateTimeOriginal is when the shutter fired. It should precede FileModifyDate, when the file last changed. A modification date long after the original, paired with an unfamiliar Software tag, says the image was processed. That may be innocent cropping. It may also be the story.

GPS coordinates are the headline risk. Pasted into any map, the sample above resolves to a street-level location. So publishing unprocessed photos is a genuine operational exposure. That applies to photos from a data center, a client site, or an executive’s home.

The defensive workflow is equally testable: Inspect before publishing. Strip location and device tags from outbound images. ExifTool itself can do this. So can the publishing platform. Remember: “the photo looks harmless” says nothing about the hundred invisible lines traveling with it.

EXAM TIP

ExifTool = metadata. The metadata the exam cares about is GPS location in photos. “An employee posted a photo that revealed the facility’s location” is an EXIF/ geotagging failure. The fix is stripping metadata before publication.

Do not confuse exiftool (file metadata) with file carving or hashing tools. It reads tags. It does not recover deleted content. The supporting cast: four more tools to recognize. theHarvester gathers open-source intelligence (OSINT) about a domain. It collects email addresses, subdomains, hostnames, and employee names exposed in public sources. It uses search engines and public databases.

Its operational value is simple: see your organization as an attacker’s first afternoon sees it. Every address harvested is a phishing target. Every address is also a password-spraying username. A canonical run is theharvester -d example.com -b all. Here, -d sets the domain. -b sets the sources to query.

dnsenum automates DNS enumeration against a domain. It: pulls host records, nameservers, and MX records; attempts zone transfers; and brute-forces common subdomains. It is the systematic version of the dig work above. It is run as dnsenum example.com.

A successful zone transfer (AXFR) from your own nameserver, during a dnsenum run, is a finding on the spot. It hands an attacker the complete map of your DNS, in one request. Netcat (nc) is the raw socket tool — “the TCP/IP Swiss Army knife.” It proves simple, vital things: Whether a specific port accepts a connection from this machine. Use nc -vz example.com 443. Here, -v reports verbosely, and -z tests without sending data.

What banner a service presents, when you connect by hand. In listener mode — nc -l -p 4444 — whether anything connects back to you at all. That same flexibility is why netcat appears in attack tooling: bind shells, reverse shells, improvised file transfer. Its presence on a server that should not have it deserves a question.

Wireshark is the graphical counterpart to tcpdump. It uses the same PCAP data. It adds protocol dissection, stream following, and coloring. Its key syntax difference is the display filter. The filter is applied after capture, to slice a large file: ip.addr == 192.168.1.25 shows one host’s traffic, either way; dns.qry.name contains “example” isolates DNS questions; tls.handshake shows only TLS negotiation; and http.request lists web requests. Remember the division: BPF capture filters — used by tcpdump, and by Wireshark’s capture stage — decide what gets recorded.

Display filters decide what you look at. Exam questions deliberately mix the two syntaxes as distractors.

Table 32 — Command-line tools reference — network discovery and traffic tools

ToolPlatformPrimary useGo-to command
nmapLinux, Windows, macOSDiscover hosts, open ports, service versions, OSnmap -sV -O target
tcpdumpLinux, macOS (Unix-like)Capture packets on the command line; write PCAP filestcpdump -i eth0 port 443
WiresharkWindows, Linux, macOS (GUI)Graphical packet analysis with display filtersDisplay filter: ip.addr == 192.168.1.25
ssLinuxShow local sockets and owning processes (netstat successor)ss -tulpn
netstatWindows, Linux (legacy)Show local connections, listeners, and owning PIDnetstat -ano
netcat (nc)Linux, Windows, macOSRaw TCP/UDP connections, banner grabbing, listenersnc -vz host 443

Table 33 — Command-line tools reference — DNS, web, and file tools

ToolPlatformPrimary useGo-to command
digLinux, macOSDetailed DNS queries by record type and resolverdig +short example.com
nslookupWindows, Linux, macOSBasic DNS queries on any platformnslookup -type=TXT example.com
dnsenumLinux (Kali)Automated DNS enumeration and subdomain brute forcednsenum example.com
theHarvesterLinux (Kali)OSINT: gather emails, subdomains, and hosts for a domaintheharvester -d example.com -b all
curlLinux, Windows, macOSFetch URLs, inspect headers, test web servers and APIscurl -I https://example.com
opensslLinux, Windows, macOSInspect certificates; test TLS versions and ciphersopenssl s_client -connect host:443
ToolPlatformPrimary useGo-to command
exiftoolLinux, Windows, macOSRead and manage file metadata, including photo GPS dataexiftool photo.jpg

Putting the kit together. Real investigations chain these tools in a fixed rhythm.

An unknown service appears in the asset inventory: nmap identifies it, and its version. ss, on the host, names the process that owns it. tcpdump confirms what it actually talks to. dig checks the names it resolves. openssl inspects the certificate it presents.

curl tests what it serves. A suspicious photograph surfaces in a leak investigation. Exiftool establishes when it was taken, and on what device. If the author was careless, it also establishes exactly where. None of these tools is exotic. That is the lesson. Mastery of a dozen small, composable commands — run in the right order, and read carefully — is what “hands-on security operations” actually means. It is precisely the fluency the performance-based questions are built to measure.

EXAM TIP

Final drill — match the proof to the tool: Open ports and versions — nmap. Packets on the wire — tcpdump or Wireshark. This host’s sockets and processes — ss or netstat. What a name resolves to — dig or nslookup. What a web server returns — curl.

What a certificate says, and which TLS is accepted — openssl. What a photo reveals — exiftool. If you can run that list in both directions — tool to task, and task to tool — you own this topic. Worked investigation: chaining the tools in order Close the lab by running the kit the way a shift analyst actually runs it.

Scenario. The SIEM reports two facts about workstation WS-1042. It made DNS queries for a domain registered yesterday. It then opened an outbound connection the proxy has never seen from it before. You have a shell on the workstation. You also have a network tap.

Work the problem in order. Notice: each tool answers exactly one question, before handing you the next. Which process is talking? (ss) You run ss -tulpn and ss -tn state established on WS-1042. The suspicious connection is owned not by the browser. It is owned by an unsigned executable, running from the user’s temporary directory. You now have a process name, a PID, and a file path — the investigation has a subject.

What name did it resolve, and what should it have resolved to? (dig) You query the domain with dig +short against the internal resolver. Then you query again, with dig @8.8.8.8. Both agree. That rules out local resolver poisoning: the domain genuinely points at the address in the alert.

A dig TXT check confirms the domain has no legitimate mail or verification records — it exists for one purpose. What is that address running? (nmap) From the authorized scanning host, nmap -sV -O against the external address shows an unusual high port presenting a minimal banner.

You record the scan with -oN into the case folder; you do not probe further than your authorization allows, because the external system is not yours. What really crossed the wire? (tcpdump) From the tap capture, you filter for the workstation and the address.

The handshake completes. But the intervals are the finding: a small request every 60 seconds, answered by a small response. That is the metronome pattern of beaconing — not the burst pattern of a download. You save the filtered capture with -w, as case evidence.

Was any of it a web session, and was it encrypted? (curl and openssl) The destination port suggests HTTPS. So you test it the way a client would. curl -vk shows the server presenting a self-signed certificate, created yesterday. That is why you needed -k to connect at all.

openssl s_client -connect confirms: the certificate’s subject is blank; its issuer is itself; its validity began the same day the domain was registered. Three independent tools now agree: this is purpose-built infrastructure — not a misconfigured business service.

How did it arrive? (exiftool and the mail gateway) The user insists they “only opened a photo from a supplier.” The attachment in the gateway archive is indeed an image. But exiftool shows it was produced by an editing tool — not a camera — minutes before the message was sent.

The image was the lure, not the payload. The payload came from the link the message carried. The endpoint sweep in the SOAR case is already hunting that link, across the other recipients. Every step produced evidence that was written down, timestamped, and attached to the case — and every step used a command from this section, unchanged. That is the standard to practice to: not exotic tooling, but the right small tool, in the right order, with the output read properly and recorded.

KEY TERMS AND CORE CONCEPTS Provisioning — Creating an account and granting the access its role requires at the start of the identity lifecycle Deprovisioning — Disabling/removing an account and revoking its sessions, tokens, and access when it is no longer needed Privilege creep — The gradual accumulation of unneeded access rights that are granted but never removed.

Exercises

Exercise 1: Triage a log excerpt and decide on escalation

THE SCENARIO.

Scenario. You are the tier-1 analyst on shift. The SIEM shows the events below, for the last 15 minutes. All times are local. What you need. The SIEM log excerpt below. 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.

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). Explain why the account lockout policy never fired. 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.

List your first three containment actions, in order, and one thing you must not do yet (and why). State what you would check next in the kkapoor account if the MFA push gets approved. Discussion key: Check your work against these decision rules.

Identify password spraying. Many accounts, one common password, few attempts each. Treat the successful login from the hostile source as a likely compromise. It requires immediate escalation. Prioritize two actions. Disable kkapoor, or force a reset on the account; and block the source at the perimeter.

Do not wipe evidence yet. Do not log the session off yet. Responders must first capture session and log data. Exercise 2: Read email authentication results THE SCENARIO. Scenario. A user reports an email. It claims to be from your CFO. It asks staff to buy gift cards.

The message headers your gateway recorded are shown below. What you need. The message headers below, recorded by your gateway. 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@exaple-corp.com — note the missing "m") Steps.

For each of SPF, DKIM, and DMARC, state in one sentence what the result tells you. 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. 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.

Recommend two actions: one technical control change and one user-facing action. Discussion key: Check your work against these decision rules. SPF fail. The sending server is not authorized to send for the (look-alike) domain shown in the envelope.

The look-alike domain is the decisive tell. The attacker can authenticate perfectly — for their own domain. Defend against the trick itself. Defenses: gateway detection of look-alike domains; external-sender banners; user training. p=none is monitor-only. Failures are reported. They are not blocked.

Exercise 3: Plan a forensic acquisition in the right order THE SCENARIO. Scenario. At 16:40, a developer reports their workstation behaving strangely. EDR shows an unknown process running in memory. It also shows connections to an external IP.

The machine is still on. It is still logged in. Legal has authorized a forensic examination. What you need. Your toolkit has a memory-imaging tool, a write blocker, a forensic imager, evidence bags/tags, and a camera. Steps. Write your acquisition plan as a numbered list in the order you would perform it, citing the order of volatility for each placement decision.

State exactly where the write blocker goes and at what point in your plan it is attached. Note the two hashes you will compute and when, and what matching results prove. List the first five entries your chain-of-custody form must capture for this workstation.

Name one action that would destroy evidence in this scenario, and when (if ever) it becomes acceptable. Discussion key: Check your work against these decision rules. Photograph the screen and connections. Capture RAM and live network state first. They are the most volatile.

Then image the disk, through the write blocker. Hash source and image with SHA-256. Record the match. Bag, tag, and log custody — from the moment of collection. Never pull the power first. Pulling the power plug first is the classic error. It destroys the in-memory process. It also destroys any encryption keys.

Exercise 4: Decide: patch, compensate, or exception Scenario. Scenario. A scan finds three problems: (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. The server cannot be patched, because the vendor is defunct. But it holds no sensitive data. It is reachable only from the engineering VLAN.

(c) A medium flaw on a kiosk in the lobby. The kiosk displays the cafeteria menu. Patching requires a vendor visit, scheduled in 45 days. What you need. The scan results above — the three findings, labeled (a), (b), and (c). Steps. For each system, choose the response: patch now, apply compensating controls, or file an exception — and name the specific control(s) for (b).

Write the five fields you would require on the exception form for (c), including who signs it. State the SLA you would apply to (a) and the verification step that closes the finding. Explain in two sentences why “we accept the risk forever” is not a valid exception for any of them.

Discussion key: Check your work against these decision rules. (a) Emergency patch. Emergency patch, with expedited testing. Close the finding with a rescan. (b) Compensating controls. IPS virtual patching; ACLs limiting sources; enhanced monitoring; no internet path.

(c) A time-boxed exception. It is owned by a named manager. Its expiry is 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 Internal LAN — 10.20.0.0/16. It contains workstations, a file server at 10.20.1.15, and an admin workstation at 10.20.5.10.

The business requirements are: Anyone on the Internet must be able to reach the web server on HTTPS (443) only. Internal users must be able to browse the web (HTTP/HTTPS out) and use DNS. Only the admin workstation may manage the web server, using SSH (22), and only from the LAN.

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. 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. Answer (A), in one or two sentences: Why does the order of your rules matter here?

Answer (B), in one or two sentences: Which requirement does your final rule implement? Why must it be last? Answer (C): A colleague proposes adding “Allow Internet → DMZ, any port” temporarily, for troubleshooting. Give two reasons to refuse that change — or to tightly scope it.

What you need. The zone and address details above, the five business requirements, and the blank ACL table below.

Table 34 — Firewall ACL — blank rule table to complete

#SourceDestinationPort/ProtocolAction
1
2
3
4
5

Model answer

Table 35 — Firewall ACL — 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. The first match wins. So specific allows must come before the general deny. If the deny-all rule were first, it would shadow every allow below it. Nothing would work.

(B) The final rule implements requirement 5: default deny, with logging. It must be last. Then it only catches traffic that no earlier rule matched. (C) Refuse the change, or rescope it. Reason 1: “any port from the Internet” exposes every service on the web server. That includes SSH, and any accidentally started service. It defeats the DMZ design and requirement 1.

Reason 2: temporary broad rules are routinely forgotten. So scope any troubleshooting access tightly. Narrow it to the engineer’s source IP and the single needed port. Give it an expiry. Log it. One more note: return traffic for allowed outbound sessions needs no explicit “allow replies” rules. The firewall’s stateful inspection handles it.

4.1–4.8 SY0-801 Operations: BIMI, Passkeys, Agentic AI & Incident Negotiation

BIMI (Brand Indicators for Message Identification) builds on enforced DMARC (p=quarantine or p=reject) and a Verified Mark Certificate (VMC) to display an authenticated brand logo in supporting email clients. Passkeys (FIDO2/WebAuthn) bind asymmetric keys to the exact legitimate login domain, defeating credential phishing and MFA push-bombing. In Security Operations (Obj. 4.6), autonomous agentic AI workflows and internal RAG LLM chatbots require strict operational guardrails, per-user document ACL enforcement at retrieval time, least-privilege API scopes, and human-in-the-loop approval for high-impact actions. Finally, Incident Negotiation (Obj. 4.7) routes ransomware/extortion dialogue through executive leadership, outside legal counsel, sanctions review, and law enforcement.

Modern IAM & Federation Stack: SAML 2.0 vs. OIDC / OAuth 2.0 vs. Passkeys (Obj. 4.5) SAML 2.0 (Enterprise SSO) • Format: Signed XML assertions • Flow: IdP → Browser → SP • Best for: Corporate web SaaS • Trust: IdP X.509 certificate Exam Clue: XML + Enterprise SSO OAuth 2.0 + OIDC (APIs/Mobile) • Format: JSON Web Tokens (JWT) • OAuth 2.0 = Authorization (scopes) • OIDC = Identity layer on OAuth • Best for: Mobile apps & APIs Exam Clue: Delegated API access Passkeys (FIDO2 / WebAuthn) • Device-bound asymmetric keys • Local biometric / PIN unlock • Origin-bound to exact domain • Defeats AiTM & MFA fatigue Exam Clue: Phishing-resistant!
Figure 32 — Modern IAM & federation comparison: SAML 2.0, OAuth 2.0/OIDC, and phishing-resistant Passkeys (Obj. 4.5).
WORKED EXAMPLE / WORKOUT 4.1 — Reading an Email Authentication Header (SPF/DKIM/DMARC/BIMI)

Header shows: SPF=pass (mail.vendor.com), DKIM=fail, From: billing@corp.com, DMARC record: v=DMARC1; p=reject; adkim=r; aspf=r. Verdict: REJECTED. Even though SPF passed for mail.vendor.com, it failed domain alignment with the visible From: corp.com header and DKIM failed—so DMARC p=reject drops the spoofed email.

MAIN NOTE — Order of Volatility & Legal Hold (Obj. 4.8)

Always collect forensic evidence from most volatile to least volatile: 1. CPU registers/cache → 2. Live RAM → 3. Network state & running processes → 4. Local disk → 5. Remote logs → 6. Offline archives/tapes. Never power off a live compromised host before capturing RAM—isolate it via EDR or switch port instead.

SCENARIO & EXAM TRAP — Asset Discovery vs. Immediate Blocking

Scenario: An automated script blocked 40 undocumented devices found on a hospital subnet—taking down legacy infusion-pump monitors. Exam Trap: When a scan discovers unknown assets, the FIRST step is always identify, classify, and reconcile with the asset inventory—never blindly block or replace before knowing what the devices do.

WORKED EXAMPLE / WORKOUT 4.2 — Mapping IAM Federation & Privileged Access

(1) Enterprise web SaaS SSO using signed XML assertions → SAML 2.0. (2) Mobile app requesting delegated API access + user identity via JSON Web Tokens → OAuth 2.0 + OIDC. (3) Automated Windows service needing passwordless auto-rotation → gMSA. (4) Eliminating standing Domain Admin rights → PAM + Just-in-Time (JIT).

TOPIC NOTE — SIEM vs. SOAR & Monitoring Protocols (Obj. 4.4 & 4.6)

SIEM aggregates, normalizes, and correlates logs to raise alerts; SOAR executes automated multi-tool playbooks (enrichment, ticketing, containment) with human approval gates on destructive actions. Use SNMPv3 (authPriv) for encrypted device telemetry and NetFlow/IPFIX for network flow metadata.

CHAPTER 4 EXAM ESSENTIALS — FINAL REVIEW CHECKLIST

Chapter Summary

Domain 4 is the operational core of Security+. It is also the largest part of the exam, at 27%. Asset management underpins everything: acquire through approved channels, assign an owner and a custodian, keep the inventory honest by enumeration, monitor for drift — and at the end of life, sanitize or destroy the media and keep the certificate.

Application security testing divides by method: SAST reads the code, DAST probes the running application, SCA checks the third-party components, and the SBOM is the inventory that makes SCA answerable. Identity operations run on the lifecycle: Provision accounts from HR-driven role definitions.

Change them without privilege creep. Deprovision leavers within minutes. Prove it, with account audits and permission reviews. MFA combines different factor types: knowledge, possession, inherence, location, and behavior. FIDO2 passwordless authentication removes the shared secret entirely. PAM vaults privileged credentials, with just-in-time elevation.

Know the identity attacks cold: Brute force hammers one account. Password spraying tries a few common passwords across many accounts. It stays under lockout thresholds. Credential stuffing replays leaked pairs. Access decisions follow RBAC, ABAC, MAC, DAC, or rule-based models. All are tightened by least privilege and separation of duties.

Automation and SOAR playbooks handle high-volume, repetitive work. They work only inside guardrails: human approvals, scope limits, rate limits, testing, and logging. Incident response runs in order: preparation, detection, analysis, containment, eradication, recovery, lessons learned.

Forensics preserves evidence by order of volatility. It images through a write blocker. It verifies hashes. It maintains chain of custody. Legal hold overrides normal deletion. Monitoring rests on SIEM correlation, SOAR action, EDR/XDR behavior, DLP, and IDS/IPS tuned against a baseline.

Underneath the tools: SCAP standardizes automated configuration checking against benchmarks, agents collect deep local data while agentless methods trade depth for reach, and SNMP traps let devices report events the moment they happen. Unpatchable vulnerabilities get compensating controls. Or they get a time-boxed exception.

SPF authorizes senders. DKIM signs the message. DMARC sets policy. Endpoints and mobile devices layer allow lists, host firewalls, HIDS/HIPS, encryption, and MDM. They block sideloaded apps and jailbroken devices. Three more areas complete the operational picture.

The command-line lab makes monitoring and forensics concrete: nmap proves which ports, services, and versions a host exposes. tcpdump and Wireshark prove what is actually on the wire. ss and netstat name the local process behind a connection.

dig and nslookup interrogate DNS — including the records behind SPF, DKIM, and DMARC. curl tests web servers and APIs, without a browser. openssl inspects certificates. It proves which TLS versions a server accepts. exiftool exposes the metadata hiding inside files — above all, GPS location.

SOAR connects playbooks to the rest of the stack: Webhooks push events in real time. APIs are polled for lookups and reconciliation. Enrichment adds threat-intelligence, asset, and identity context — before any decision. Actions run as least-privilege service identities, with vaulted, scoped credentials.

Destructive steps pause for human approval, inside strict blast-radius limits. The worked phishing-triage scenario shows that flow end to end. Mobile security extends from managing the device to governing how it connects: NFC can be relayed, despite its 4-centimeter range.

RFID tags can be skimmed and cloned, when they recite static IDs. eSIM and physical SIM both fall to SIM swapping, rather than theft. USB OTG invites rogue peripherals and silent exfiltration. Bluetooth separates bluejacking nuisance from bluesnarfing theft.

Tethering quietly bypasses every network control — unless MDM requires a strong hotspot password and a VPN.

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. Deprovisioning
B. Provisioning
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. Credential stuffing
B. Brute force
C. Password spraying
D. Rainbow table attack

3. A company is retiring 40 laptops that stored confidential customer data. The laptops will be donated to a local charity once they are wiped. Which action MUST be completed before the laptops leave the building?

A. Delete user files and empty the recycle bin on each laptop
B. Remove the laptops from the asset register so they are no longer tracked
C. Sanitize each drive using an approved method, and record the sanitization for each asset
D. Reinstall the operating system on each laptop from its recovery partition

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. A compensating control
B. Risk transference
C. Patch management
D. An exception with expiry

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. Archived backup tapes from last month
B. The server’s BIOS settings
C. A forensic image of the hard drive
D. The contents of RAM and live network connections

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. TLS opportunistic encryption
B. DMARC policy enforcement
C. SPF
D. DKIM

7. A payroll server is being entered into the asset register. The HR director is accountable for the data it holds and decides who may access it. The server team patches the machine and enforces the technical controls on it. In asset management terms, the HR director is the:

A. Asset custodian
B. Data processor
C. Asset owner
D. Asset auditor

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. Host-based firewall
B. Data loss prevention
C. Signature-based antivirus
D. Application allow list

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. Giving the playbook permanent administrator rights on the systems
B. Making the playbook run as fast as possible
C. Testing the playbook and scoping/testing its actions so it cannot disable accounts at uncontrolled scale
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. Sideloading
C. Containerization failure
D. Geofencing bypass

11. During an incident, an analyst runs ss -tulpn on a compromised Linux server. What information does this command give the investigation?

A. The server's listening and connected sockets, together with the processes that own them
B. The host firewall's rule set in evaluation order
C. A summary of disk usage by directory
D. A list of user sessions and their login times

12. A SOAR playbook automatically isolates any host an IDS alert names. After a false positive isolates the CEO's laptop during a board meeting, the team changes the playbook so that isolating executive and other high-impact assets first requires an analyst to approve the action. Which design principle has the team applied?

A. Fail-open automation
B. Human-in-the-loop control for consequential actions
C. Playbook deduplication
D. Indicator enrichment before action

13. First responders reach a running server that is part of an active intrusion. Following the order of volatility, the lead responder captures the contents of RAM before the machine is shut down and its disk imaged. Why is memory captured first?

A. RAM images are smaller and faster to store than disk images
B. Memory is the most volatile evidence: its contents vanish when power is removed, while the disk survives shutdown
C. The disk's encryption key can be read after imaging completes
D. Chain of custody legally begins with the newest evidence

14. A company's DMARC record has sat at p=none for a year while spoofed invoices in its domain reach customers. Monitoring shows all legitimate sending services now pass SPF and DKIM alignment. What is the correct next step to make receivers actually stop the spoofed mail?

A. Add possible sending IPs to the SPF record
B. Move the DMARC policy to p=reject so failing mail is refused at delivery
C. Shorten the DKIM key to 1024 bits so more servers can verify it
D. Publish a second DMARC record with p=quarantine as a backup

15. After enforcing DMARC with a reject policy, a marketing and security team wants verified recipients' email clients to display the company's authenticated trademarked logo beside incoming messages. Which standard enables this?

A. Simple Mail Transfer Protocol (SMTP) TLS opportunistic encryption
B. Sender Policy Framework (SPF) listing authorized mail relays
C. DomainKeys Identified Mail (DKIM) signing message headers
D. Brand Indicators for Message Identification (BIMI) with a VMC

16. A SOC deploys an agentic AI triage assistant that can query the SIEM and recommend firewall blocks. Management wants to ensure the AI cannot autonomously isolate critical production domain controllers without human sign-off. Which control directly addresses this risk?

A. Implementing operational guardrails with human-in-the-loop approval
B. Increasing the model's context window for longer log files
C. Allowing the agent unrestricted API tokens for faster containment
D. Disabling SIEM log retention to reduce prompt token usage

Answer key

1. A — 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 — Confidential media must be sanitized with a method (cryptographic erase or destruction) before leaving organizational control, and the sanitization recorded. "Delete user files and empty the recycle bin on each laptop" is incorrect because deleting files removes only pointers; the data remains recoverable. "Reinstall the operating system on each laptop from its recovery partition" is incorrect because a reinstall overwrites only part of the drive — old data survives in untouched areas. "Remove the laptops from the asset register so they are no longer tracked" is incorrect because the register is updated during decommissioning; deleting the record first destroys tracking and leaves the drive data untouched.

4. A — 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. D — 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. C — The asset owner is accountable for the asset: the owner classifies its data and makes the access decisions — here, the HR director. "Asset custodian" is incorrect because the custodian is the party that implements and maintains the controls day to day — here, the server team. "Data processor" is incorrect because a data processor is a third party that processes personal data on someone else's behalf, not an internal accountability role. "Asset auditor" is incorrect because an auditor independently checks controls; auditors do not own assets or decide access.

8. D — 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. C — 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. B — 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.

11. A — ss is the modern socket-investigation tool: with -tulpn it lists TCP and UDP sockets, listening and connected, with the owning process — what you need to spot a backdoor listener or suspicious outbound connection. "A list of user sessions and their login times" is incorrect because sessions and login times come from who/last-style commands. "The host firewall's rule set in evaluation order" is incorrect because firewall rules come from nft/iptables listings, not socket state. "A summary of disk usage by directory" is incorrect because disk usage is du/df territory, unrelated to network connections.

12. B — Safe automation separates reversible, low-impact actions (which can run unattended) from consequential, hard-to-reverse ones, which pause for a human decision — human-in-the-loop. The isolation still happens; a person now owns the blast radius. "Playbook deduplication" is incorrect because deduplication merges duplicate alerts into one case and says nothing about approval. "Indicator enrichment before action" is incorrect because enrichment adds context to indicators before triage, not authority over actions. "Fail-open automation" is incorrect because fail-open describes a control allowing traffic when it breaks — the opposite spirit of adding a checkpoint.

13. B — The order of volatility ranks evidence by how fast it disappears. RAM holds running processes, network connections, and often decryption keys — and it is gone the moment power is cut, so it is collected first; the disk can wait. "RAM images are smaller and faster to store than disk images" is incorrect because size and speed are not the criterion; volatility is. "The disk's encryption key can be read after imaging completes" is incorrect because keys may be recovered from the memory image itself — an argument for capturing RAM, but the governing principle is its volatility. "Chain of custody legally begins with the newest evidence" is incorrect because chain of custody documents handling from the first item collected, whatever it is.

14. B — p=none is monitor-only: receivers report but still deliver spoofed mail. Once monitoring proves legitimate sources align, raising the policy to p=reject instructs receivers to refuse mail that fails — the step that stops the invoices. "Add possible sending IPs to the SPF record" is incorrect because bloating SPF risks lookup limits without enforcing failures. "Shorten the DKIM key to 1024 bits so more servers can verify it" is incorrect because a weaker DKIM key reduces security and is unrelated to enforcement. "Publish a second DMARC record with p=quarantine as a backup" is incorrect because a domain may publish only one DMARC record; a second makes the policy invalid.

15. D — BIMI (Brand Indicators for Message Identification) pairs with an enforced DMARC policy and a Verified Mark Certificate (VMC) to display a verified brand logo in supporting mail clients. Why the others are wrong — A: STARTTLS encrypts SMTP transit without verifying brand imagery; B: SPF specifies authorized sending IPs but does not display brand logos; C: DKIM cryptographically signs messages for integrity rather than providing logo display.

16. A — Operational guardrails with human-in-the-loop approval constrain agentic AI actions, preventing high-impact changes (like isolating domain controllers) without explicit analyst authorization. Why the others are wrong — B: A larger context window improves log ingestion but does not restrict autonomous actions; C: Unrestricted API tokens increase blast radius instead of enforcing safety boundaries; D: Disabling log retention harms visibility and compliance without adding action controls.

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

This guidebook is free to read. Get the full SY0-801 practice exam — 800 questions, 18 PBQs and 3 capstone labs — with the complete PDF and unlimited online access that never expires.

Get SY0-801 Full Access — $10