Table of Contents

Click Here to Return To the CompTIA SecurityX Course Page

Security Engineering is 31% of the CompTIA SecurityX (CAS-005) exam — the single heaviest domain. This module covers how you implement, configure, and troubleshoot the controls an architect designed. Build deep hands-on familiarity with cryptography, hardware roots of trust, and IAM troubleshooting, because this domain rewards depth over breadth.

Engineering is where designs meet reality. You configure identity systems, harden endpoints, root trust in hardware, secure industrial systems, automate at scale, and match the right cryptographic primitive to each job. Expect performance-based questions here — CompTIA will ask you to read output, diagnose failures, and recommend fixes.

Troubleshooting IAM Components

You diagnose identity failures across a wide variety of protocols. Understanding the common failure mode for each is more useful on the exam than memorizing every field.

ComponentRoleMost common failure
SAML 2.0Web SSO via signed XML assertionsClock skew between IdP and SP; misconfigured ACS URL
OpenID ConnectOAuth-based authentication layerInvalid redirect URI; mismatched nonce
OAuth 2.0Delegated authorizationScope misconfiguration; token leakage via referrer head
MFA / TOTPSecond factor using time-based codesClock drift beyond the leeway window
KerberosTicket-based authentication on Windows/ADClock skew over 5 minutes breaks TGT requests
PAMPrivileged access management and credential vaultingVault misconfiguration; broken session brokering
802.1XPort-based network access controlRADIUS certificate mismatch; supplicant configuration error
LDAP / ADDirectory servicesReplication failure; improper ACLs on OUs

Kerberos and SAML both break when system clocks drift. On the exam, when MFA or SSO is failing, check time synchronization before anything else.

Privileged Access Management in Depth

PAM platforms protect administrative accounts through:

  • Credential vaulting — stores privileged passwords and rotates them automatically.
  • Just-in-time (JIT) access — grants elevated rights only for the duration of an approved task, then revokes them.
  • Session recording — captures full privileged sessions for audit and forensic review.
  • Dual control — requires a second approver before releasing a high-value credential.

PAM is the architectural answer when the threat model includes insider threat and credential theft.

Endpoint and Server Security

You harden the hosts where attackers land after initial access.

ControlWhat it doesStops
EDRRecords endpoint telemetry; responds to threats autonomously or with analyst guidancePost-exploitation activity
XDRExtends EDR across endpoints, network, cloud, and email into one correlated viewCross-vector attacks
MDRManaged EDR/XDR operated by a third party on your behalfGap when internal SOC capacity is limited
Application controlAllowlists approved executables; blocks everything elseMalware, living-off-the-land binaries
HIPS/HIDSMonitors host activity for attack signatures or anomaliesKnown exploit patterns
MDMEnforces policy on mobile devices: encryption, PIN, remote wipeLost or stolen device data exposure
SELinuxApplies mandatory access control labels on LinuxProcess breakout, privilege escalation

EDR, XDR, and MDR are frequently tested as a progression. EDR is the tool. XDR extends visibility. MDR is EDR operated by a service provider.

Linux Host Hardening

On Linux, you apply defense-in-depth at the kernel and process level:

  • SELinux enforces MAC policies so a compromised nginx process cannot read /etc/shadow.
  • AppArmor provides a simpler MAC alternative using path-based profiles.
  • seccomp restricts which system calls a process may make, shrinking the kernel attack surface.
  • auditd logs security-relevant events to a tamper-resistant log stream.

Threat-Actor TTPs

You identify attacker behavior by mapping it to MITRE ATT&CK, the framework covered in Governance, Risk, and Compliance .

TTP CategoryWhat attackers doKey indicators
Initial accessPhishing, exploit public-facing app, valid accountsUnusual login times, new source IPs
ExecutionPowerShell, cmd, scripting engines, WMIEncoded commands, unusual parent processes
PersistenceScheduled tasks, registry run keys, new servicesUnexpected scheduled tasks, new admin accounts
Privilege escalationToken manipulation, UAC bypass, sudo abuseProcesses running in unexpected security contexts
Credential dumpingLSASS memory dump, SAM database, DCSyncMimikatz signatures, unusual LSASS access
Lateral movementPass-the-hash, PsExec, RDP, SMB sharesUnusual inter-host connections, SMB traffic
Defense evasionLog clearing, timestomping, process injectionMissing log entries, process hollow detection
ExfiltrationDNS tunneling, HTTPS to unusual destinationsLarge outbound transfers, long DNS queries

Credential dumping and lateral movement are the two TTPs most central to ransomware and APT intrusions. Know how to detect them in SIEM data.

Network Infrastructure Security

You troubleshoot and harden the protocols that keep traffic authentic and confidential.

TechnologyProtectsTroubleshooting tip
DNSSECDNS integrity; prevents record spoofingCheck signature validation with dig +dnssec
SPFAuthorizes sending IPs for a domainToo many DNS lookups (>10) cause permerror
DKIMSigns email messages cryptographicallyKey rotation must sync with DNS TTL
DMARCInstructs receivers on SPF/DKIM failuresStart with p=none to observe, then enforce
TLS 1.3Traffic confidentiality and integrityWatch for weak cipher suites and expired certificates
HSTSForces HTTPS; prevents downgradePreload list requires minimum 1-year max-age
# Check a domain's email authentication records during troubleshooting
dig +short TXT example.com | grep "v=spf"
dig +short TXT _dmarc.example.com
dig +short TXT selector1._domainkey.example.com

Network Attack Techniques

You recognize attacks against infrastructure protocols:

  • BGP hijacking redirects internet traffic by announcing more specific prefixes. Mitigation: RPKI route origin validation.
  • ARP poisoning poisons the Layer 2 cache to intercept traffic on a local segment. Mitigation: dynamic ARP inspection on switches.
  • DNS spoofing injects false DNS records. Mitigation: DNSSEC validation.
  • SSL stripping downgrades HTTPS to HTTP. Mitigation: HSTS with preloading.

Hardware Security Technologies

You root trust in hardware because software-only attestation can be subverted by software.

TechnologyRoleKey detail
TPM 2.0Stores keys and boot measurements on the motherboardCannot be extracted; tied to the physical board
HSMHardware appliance for high-volume cryptographic operationsFIPS 140-2/3 validated; used for CA key storage
vTPMSoftware-emulated TPM for virtual machinesProvides measured boot in virtualized environments
Secure BootFirmware validates bootloader signatures before executingBlocks bootkit malware
Measured BootRecords each boot stage hash into TPM PCR registersEnables remote attestation of boot integrity
Self-encrypting drive (SED)Encrypts data at drive firmware level using AESDecrypt key protected by authentication credential

TPM PCR registers lock boot measurements. If the boot software changes, the PCR value changes and the stored key becomes unavailable. This is the mechanism behind BitLocker’s pre-boot integrity check.

Hardware Root of Trust

The chain of trust starts at hardware and extends to firmware, bootloader, OS, and application:

  1. Firmware (UEFI) verifies the bootloader signature (Secure Boot).
  2. Bootloader measures itself and components into TPM PCR registers (Measured Boot).
  3. OS verifies its own components against the TPM measurements.
  4. Remote attestation allows a remote verifier to confirm the chain is intact.

A broken link at any stage breaks the chain. This is why a compromised BIOS is so catastrophic.

Specialized and Legacy Systems

You secure systems that cannot run conventional endpoint agents.

OT, SCADA, and ICS Security

Operational technology controls physical processes in manufacturing, utilities, and transportation. These systems were designed for availability and determinism, not security.

OT ComponentRoleSecurity challenge
PLCExecutes control logic for machineryNo authentication; proprietary protocols
HMIOperator interface to SCADAOften Windows XP-era, unpatched
HistorianLogs process dataBridges OT and IT networks
RTURemote terminal unit in field devicesLow bandwidth, no encryption

The Purdue Model (ICS reference architecture) organizes OT into five levels: field devices, control, supervisory, manufacturing operations, and enterprise IT. You enforce network segmentation between levels and monitor passively with OT-aware sensors. For a critical look at fundamental weaknesses in this space, read why OT/ICS/PLC cybersecurity is fundamentally broken .

IoT and Embedded Systems

  • IoT devices ship with weak defaults, minimal update mechanisms, and no EDR. Segment them on a dedicated VLAN and monitor traffic behavior.
  • SoC and embedded systems have constrained resources. Secure the network perimeter around them and apply firmware signing.

Automation to Secure the Enterprise

Manual processes cannot scale. You automate repeatable security tasks.

Tool / FrameworkUse case
PowerShellWindows automation, AD management, incident response scripts
Bash / PythonLog analysis, API calls, orchestration
IaC (Terraform, Ansible)Version-controlled, repeatable infrastructure deployments
SOAROrchestrates playbooks; reduces analyst time per alert
SCAPFramework for expressing security configurations and compliance checks
OVALMachine-readable vulnerability and configuration definitions
XCCDFChecklist format for expressing security guidance

For a hands-on introduction to infrastructure automation, see Ansible for Beginners .

SOAR in the Security Operations Workflow

SOAR platforms automate the first response to common alert types — phishing, brute force, malware — by running predefined playbooks: isolate the endpoint, reset the credential, capture forensic data, and create a ticket. An analyst reviews the output rather than performing each step manually. The result is faster containment and consistent evidence collection.

Advanced Cryptography

Core Concepts

ConceptWhat it doesExam shorthand
SymmetricOne key for encryption and decryption; fast for bulk dataAES-256, ChaCha20
AsymmetricKey pair; solves key distribution and digital signaturesRSA, ECDSA, Ed25519
HashingOne-way; produces a fixed-length digest for integritySHA-256, SHA-3
HMACKeyed hash; adds authentication to a message digestUsed in TLS, API auth
Forward secrecyEphemeral keys so a stolen long-term key cannot decrypt past sessionsECDHE in TLS 1.3
Key stretchingIterative hashing to slow brute force on passwordsPBKDF2, bcrypt, Argon2
Homomorphic encryptionCompute on encrypted data without decryptingPrivacy-preserving analytics

Post-Quantum Cryptography

Quantum computers running Shor’s algorithm can break RSA, ECC, and Diffie-Hellman. NIST finalized the first post-quantum standards in 2024:

AlgorithmTypeReplaces
ML-KEM (CRYSTALS-Kyber)Key encapsulation / key exchangeECDH, RSA key exchange
ML-DSA (CRYSTALS-Dilithium)Digital signaturesECDSA, RSA signatures
SLH-DSA (SPHINCS+)Hash-based signatures; no lattice dependencyECDSA (conservative backup)

The CAS-005 exam tests awareness of post-quantum migration, not implementation details. Know that ML-KEM and ML-DSA are the primary NIST PQC standards and that “harvest now, decrypt later” is the threat that makes migration urgent.

Cryptographic Use Cases

Use caseBest approachWhy
Bulk data encryptionAES-256-GCMFast, authenticated encryption
Key transportRSA-OAEP or ML-KEMAsymmetric; keeps the key secret
Digital signaturesECDSA or ML-DSANon-repudiation and integrity
Password storageArgon2idMemory-hard; resists GPU cracking
Sensitive data in databaseTokenizationToken has no mathematical relation to original
Software distributionCode signing (Authenticode, GPG)Proves source and detects tampering
Long-term data confidentialityPost-quantum hybridCombine classical + PQC during migration period

Side-Channel Attacks

Side-channel attacks derive secrets from physical observations rather than breaking math:

  • Timing attacks measure execution time to infer key bits.
  • Power analysis monitors power consumption during cryptographic operations.
  • Cache-timing attacks exploit CPU cache behavior (Spectre, Meltdown class).

Mitigations include constant-time implementations and hardware-isolated execution environments.

Engineering Exam Tips

  • Kerberos and SAML both fail on clock skew. Check NTP synchronization before deeper troubleshooting.
  • TPM stores keys; HSM performs high-volume operations. Know which is appropriate for each scenario.
  • Post-quantum: ML-KEM for key exchange, ML-DSA for signatures.
  • Application control (allowlisting) stops living-off-the-land attacks that bypass signature-based AV.
  • SELinux provides MAC; it confines processes even after compromise.
  • Forward secrecy (ECDHE) prevents session decryption even if the server private key is later stolen.

Next Steps

With controls engineered, move to Security Operations to learn how to monitor, hunt, and respond to threats against these systems. Review Security Architecture for the design context behind the engineering choices. Return to the CompTIA SecurityX Course and test your readiness with the CompTIA SecurityX Practice Test .