4: 4.0 Security Operations

    Apply common security techniques to computing resources

    Security techniques applied to computing resources are the workhorse of any operations team. The objective is to take a heterogeneous fleet of mobile phones, workstations, switches, routers, cloud workloads, servers, industrial control systems, embedded boards, real-time operating systems, and IoT sensors, and bring each one to a known, documented, defended state. The exam asks scenario questions where a candidate must pick the correct technique for a stated combination of device, threat, and constraint. The pattern is always the same: define the baseline, deploy it, maintain it, and watch for drift.

    The reason this section carries so much weight in the operations domain is that most real incidents trace back to a missing baseline, an un-hardened device, or a wireless deployment that skipped the design step. A laptop with default local-admin credentials, an unsegmented IoT thermostat, or a switch with port 23 open is the foothold an attacker needs. The techniques below sit between the architecture decisions of the prior chapter and the monitoring tooling of the next sections; they convert architecture intent into running configuration.

    The section also folds in the "use data sources to support an investigation" objective. Hardening and monitoring share the same telemetry: the firewall log that detects an attack also proves a baseline was in place; the endpoint log that triggers an alert also feeds a forensic timeline. Treating logs as a single asset is the discipline this section teaches.

    Secure baselines: establish, deploy, maintain

    A secure baseline is the documented, approved configuration that every member of a device class must match. Establishing the baseline starts with a reference standard, typically a CIS Benchmark, a DISA STIG, or a vendor hardening guide, plus the organisation's own additions for local risk. The baseline is versioned, signed off, and stored alongside the asset register so an auditor can match a device's running state against the approved revision. Without an established baseline, configuration drift is invisible: there is nothing to drift from.

    Deployment turns the baseline document into running configuration. For workstations this means a build image plus Group Policy or a configuration profile from an MDM. For servers this means an image registry, a configuration management tool (Ansible, Chef, Puppet, DSC, or a cloud-native equivalent), and an automated pipeline that rebuilds non-conforming hosts. For network gear this means a templated configuration pushed from a network controller. For cloud infrastructure this means Infrastructure as Code modules that bake the baseline into every spin-up. The exam wants the candidate to recognise that "deploy" means apply at scale, repeatably, and that manual one-off configuration is not deployment.

    Maintenance is the loop that closes the baseline. It includes scheduled rescans against the standard, drift detection that fires when a setting changes outside the change-management process, and a documented exception process for the cases where a control cannot be applied. The baseline document itself is updated as vendor settings change and as new threats are added.

    💡 Exam Trap: A scenario describes a server farm where each host was hardened manually at build, but no one rescans afterwards. The team is following the establish step and the deploy step, not the maintain step. The fix is scheduled compliance scanning against the baseline.

    ⚠️ Anti-Pattern: Treating the secure baseline as a one-off project rather than a living document. The CIS Benchmark for an operating system version is revised on a fixed cadence; a baseline frozen at the build date is out of date by the first patch cycle.

    Hardening targets

    Different device classes share the same baseline pattern but use different knobs.

    Hardening targetPrimary controlsCommon traps
    Mobile devicesMDM-pushed profile, device encryption, screen-lock policy, app allow list, remote wipePersonal apps on a managed device blurring the BYOD-versus-corporate line
    WorkstationsStandard image, Group Policy or MDM profile, EDR agent, host firewall, removed local-admin rightsLocal-admin restored for "convenience" by a help-desk script
    SwitchesDisable unused ports, disable HTTP and Telnet, enable SSH with key auth, enable 802.1X, set port security MAC limitsLeaving the default VLAN as VLAN 1 and trunking it everywhere
    RoutersCentralised AAA with TACACS+ or RADIUS, login banner, restrict management plane to the OOB network, disable proxy ARP and source routingTreating the routing table as the only attack surface and forgetting the management plane
    Cloud infrastructureIaC modules carrying the baseline, account-level guardrails (SCPs, Azure Policy, Org policies), private endpoints, default-deny security groupsA workload deployed click-by-click in the console, bypassing IaC entirely
    ServersMinimal OS install, removed unnecessary software, HIPS, host firewall, configuration enforcement agent, secure bootBuild images that still ship a development tool chain into production
    ICS/SCADASegmented OT network, unidirectional gateway where possible, vendor-supported patches only, anti-malware permitted by the vendorApplying an IT patch directly to a PLC without vendor sign-off and causing a process trip
    Embedded systemsSigned firmware, locked bootloader, disabled debug ports (JTAG/UART), minimal interfacesLeaving the JTAG header populated on production hardware
    RTOSVendor-shipped configuration, no general-purpose package management, strict memory and task isolationTreating an RTOS like a Linux box and trying to bolt on EDR
    IoT devicesNetwork segmentation onto a dedicated VLAN or SSID, firmware update channel, certificate-based device identity, default credential changesPutting cameras on the corporate LAN because PoE was convenient

    💡 Exam Trap: A question lists Patch Tuesday actions for a Windows file server and asks why the same approach fails on a PLC. The right answer is that the ICS vendor must approve the patch first, because an unapproved firmware update can take a physical process offline.

    📊 Limit: Embedded and RTOS devices typically lack the memory and CPU headroom for a full EDR agent. Hardening is achieved through firmware signing, restricted interfaces, and upstream network controls rather than on-device telemetry.

    Wireless devices and installation considerations

    Wireless hardening starts before any access point is mounted. A site survey measures coverage, interference, and capacity for the intended user density; the output is a heat map showing signal strength and channel allocation. Designing from a heat map produces the right number of access points at the right power level, which keeps the wireless attack surface from leaking past the building perimeter. Designing without one tends to result in either dead spots that drive users onto rogue access points, or over-powered radios that broadcast a corporate SSID into the car park.

    The installation considerations also include physical placement (above the ceiling tile, not below it; away from microwave ovens and lift shafts), the channel plan (non-overlapping 2.4 GHz channels; DFS-aware 5 GHz; 6 GHz where licensing permits), and PoE switching capacity to feed the radios. Hardening the access point itself follows the switch pattern: change the default admin credentials, disable HTTP, restrict management to an OOB VLAN, and verify firmware is signed.

    Mobile solutions and deployment models

    Mobile Device Management (MDM) is the control plane for phones and tablets. It pushes the configuration profile, enforces encryption, applies the app allow list, controls split between corporate and personal containers, and triggers a remote wipe when a device is lost or an employee leaves. MDM platforms also push certificates, Wi-Fi and VPN profiles, and conditional-access posture signals into the identity provider.

    The deployment model decides who owns the device and what the user can install on it.

    ModelDevice ownershipUser installs personal apps?Best fitKey risk
    BYOD (Bring Your Own Device)UserYes, freelyCost-sensitive, low-risk user populationsMixing personal and corporate data; loss of control on jailbroken devices
    COPE (Corporate-Owned, Personally Enabled)EmployerYes, within an MDM-managed work profileRegulated industries that still want some personal usePersonal apps inside the corporate container if profile separation is misconfigured
    CYOD (Choose Your Own Device)EmployerYes, within policy, from a vetted catalogueMid-risk populations that need device choiceProcurement and support complexity from multiple hardware lines

    The connection methods that mobile solutions use are cellular, Wi-Fi, and Bluetooth. Each carries a distinct threat profile: cellular is hard to passively intercept but vulnerable to SS7-class downgrade attacks; Wi-Fi inherits the access-point's authentication strength; Bluetooth is short-range but historically rich in pairing and protocol flaws. The hardening guidance is to disable a radio when not in use, require secure pairing modes (Secure Connections, no Just Works on sensitive devices), and prefer enterprise Wi-Fi over open hotspots.

    🎯 Scenario: Northwind's compliance lead wants a managed phone fleet for the regulated trading desk but does not want to ban personal apps. The right model is COPE: the firm owns the hardware, the MDM enforces a managed work profile with the trading apps inside, and the user keeps a personal profile for their own apps. BYOD would mix data states; CYOD would still leave the firm without container separation if MDM is not enforced.

    Wireless security settings

    The wireless security settings field on the exam is dense with acronyms. The baseline is WPA3, which adds Simultaneous Authentication of Equals (SAE) to replace WPA2's PSK handshake and removes the vulnerable PMF-optional pattern. WPA3-Personal uses SAE; WPA3-Enterprise uses 802.1X with EAP, and at the highest assurance tier uses a 192-bit suite (Suite B). AAA for enterprise wireless is delivered by RADIUS (802.1X); the supplicant authenticates against the RADIUS server, which decides whether to permit access and which VLAN to assign.

    The cryptographic protocol is the cipher suite used to protect the air interface: AES-CCMP for WPA2, AES-GCMP for WPA3-Enterprise 192-bit. The authentication protocol is the EAP method that proves the supplicant's identity: EAP-TLS (mutual certificate, the strongest), PEAP (server certificate plus inner MS-CHAPv2), EAP-TTLS (server certificate plus inner password method). The exam tests the distinction: cryptographic protocol protects the data path, authentication protocol proves identity.

    Northwind wireless authentication flow
    
     [Supplicant: laptop with EAP-TLS profile]
     |
     | 1. 802.1X EAPOL-Start over Wi-Fi
     v
     [Authenticator: WPA3-Enterprise AP / WLC]
     |
     | 2. RADIUS Access-Request (EAP payload)
     v
     [Authentication server: RADIUS]
     |
     | 3. RADIUS Access-Accept + VLAN attribute
     v
     AP places client on VLAN 20 (employees)
    

    💡 Exam Trap: A question lists "WPA3-Enterprise" and asks which protocol authenticates the user. The cryptographic protocol (GCMP) protects the data; the authentication protocol (EAP-TLS, PEAP, or EAP-TTLS) authenticates the user. Picking GCMP for the user-authentication slot is the trap.

    Application security techniques

    Application hardening reuses host hardening discipline at the software layer. Input validation rejects untrusted data before it reaches a parser or database, defeating injection at the source; the validator runs server-side, because client-side checks can be bypassed. Secure cookies set the Secure, HttpOnly, and SameSite attributes to prevent transport over plaintext, JavaScript access, and cross-site replay. Static code analysis (SAST) inspects source for known weakness patterns at commit time; dynamic analysis (DAST) probes the running application for the same weaknesses from the outside. Code signing attaches a vendor signature to a release, so the consumer can verify it has not been tampered with after build.

    Application controlWhen it runsWhat it catchesCommon limitation
    Input validationInside every server-side handlerInjection, XSS, traversalSkipped on "internal" endpoints
    Secure cookiesSet at session creationSession hijack, XSS theft, CSRFMissing SameSite on a sensitive cookie
    SASTPre-commit, in CICommon weakness patterns, unsafe APIsFalse positives if rules are not tuned
    DASTPost-deploy, in stagingRuntime injection, mis-auth, exposed filesCannot reach code paths without a workflow
    Code signingAt releaseTampered or substituted binaryLost when the signing key is mishandled

    ⚠️ Anti-Pattern: Relying on client-side JavaScript validation as the only input check. An attacker bypasses the browser; the server has to enforce the same checks server-side.

    Sandboxing and monitoring

    Sandboxing isolates suspicious or untrusted code so that any damage stays contained. Mail gateways detonate attachments in a sandbox before delivery. EDR tools spawn suspicious processes in a constrained job object. Browser engines compartmentalise tabs into renderer sandboxes. The sandbox is a compensating control: if a payload is malicious, blast radius is limited to the sandbox.

    Monitoring is the always-on partner of every control above. Without telemetry the team cannot tell whether the baseline is holding, whether a wireless rogue has appeared, whether an MDM profile is enforced on every enrolled device, or whether a sandbox detonated something interesting. Monitoring is treated in depth in the alerting-and-monitoring section; here it is enough to note that every hardening technique above produces a log or metric, and that log is part of the operational picture.

    Data sources to support an investigation

    When an alert fires, the analyst's quality depends on which logs are available, in what format, and for how long. The exam consolidates a fixed set of sources.

    SourceWhat it tells the analystWhere it lives
    Firewall logsAllowed and denied flows, NAT translations, IDS verdicts on UTM/NGFWFirewall management, syslog to SIEM
    Application logsAuthentication, business-event trace, error stacksApp server, container stdout, SIEM
    Endpoint logsProcess create, file write, registry change, EDR detectionsEndpoint agent, EDR cloud, SIEM
    OS-specific security logsWindows Security Event Log, Linux auditd, macOS Unified LogLocal host, forwarded to SIEM
    IPS/IDS logsSignature and anomaly detections with packet excerptSensor management plane, SIEM
    Network logsNetFlow / IPFIX records, DNS queries, proxy access logsFlow collector, DNS server, proxy, SIEM
    MetadataHeaders, timestamps, file hashes, EXIF, email envelopeEmbedded in the artefact itself
    Vulnerability scansHost posture, CVE matches, missing patchesScanner database, ticket system
    Automated reportsPeriodic health, compliance, vulnerability summariesEmail, ticket, dashboard
    DashboardsReal-time aggregation across the aboveSIEM, BI tool, NOC video wall
    Packet capturesByte-exact record of a flow at the time of captureCapture appliance, analyst workstation

    Decision Anchor. Choose firewall logs when the question is whether a flow was permitted or blocked. Choose endpoint logs when the question is what a process did on the host. Choose packet captures when only the byte-level content of a session answers the question. Choose IDS/IPS logs when the question is whether a known attack signature matched.

    💡 Exam Trap: A scenario asks which source confirms whether a file was actually written to disk. The right answer is endpoint logs from EDR or an OS audit subsystem, not firewall logs (which only see the flow that delivered the file) and not IDS logs (which only see the network signature match).

    Section decision tree

    The decision tree underlines that maintenance and telemetry are the common steps across every target class.


    Continue with the interactive course

    Track your progress, jump into practice questions and use the Shark AI tutor inside the CompTIA - Security+ learning hub.