Cert EspressoLearn. Practise. Find your flow.

A LITTLE FOCUS.
A BIG NEXT STEP.

Your pace. Your space.
CompTIA · SecurityX CAS-005

Incident response analysis

SecurityX CAS-005 · Lesson 24 of 24 · 3:42:46

YouTube loads only after you press play. This chapter opens at its timestamp in the full course. Watch on YouTube ↗

Learning with these videos? Subscribe for new courses and exam-style questions.

In this lesson

Prepare for the CompTIA SecurityX (CAS-005) exam. In this lesson: sandboxing, IoC extraction, code stylometry, and reverse engineering, volatile and non-volatile evidence, host, network, and metadata analysis, JTAG, timelines and root cause analysis, CWPP, preparedness exercises, and insider threats. Includes three original practice questions, with Thornbury Biotech, a fictional biotech company whose security architect designs and runs its security, as the example.

Study notes

The text of this lesson, to read at your own pace. Information as of November 2026.

Encrypted files on Thursday

On a Thursday, a Thornbury researcher's laptop starts encrypting files on a shared drive, and the EDR isolates it within a minute. The incident team now has a laptop, a malware sample, network captures, and a suspicious email, and leadership wants to know how it happened, and whether it is over. This lesson covers how responders analyze each kind of evidence.

Malware analysis

Malware analysis starts safely: sandboxing runs a sample in an isolated, instrumented environment, and detonation means letting it execute there, to watch what it does. The sandbox reports files written, registry changes, processes launched, and network connections, but some malware detects sandboxes and stays quiet, so analysts vary the environment. IoC extraction pulls hashes, domains, IP addresses, mutex names, and file paths from the results, so the team can block them, and search for them across the company. Code stylometry compares how code is written, its structure, compiler choices, and habits, to match a sample to known variants, measure code similarity, and support attribution to a group. Attribution stays a judgment, because attackers reuse and imitate each other's code, so it needs several independent clues.

Reverse engineering

Reverse engineering explains what a sample does when the sandbox is not enough, like hidden functions, encryption keys, or triggers. For a compiled binary, disassembly turns machine code into assembly instructions, and decompilation goes further, rebuilding approximate source code that is easier to follow. Byte code, like Java or .NET intermediate code, keeps much more structure, so decompilers can recover code that is close to the original. Malware authors fight back with packing, obfuscation, and anti-debugging tricks, so analysts unpack samples, often in memory, before analysis. Reverse engineering is slow and needs specialists, so teams reserve it for samples that matter, and share the results as indicators and detection rules.

Storage, host, and network evidence

Volatile data disappears at power off, so collect it first, following the order of volatility: CPU state and memory, then running processes and network connections, then disk. Memory analysis reveals what disk analysis misses: injected code, decrypted malware, encryption keys, and command lines of processes that leave no file. Non-volatile storage analysis works on a forensic image, taken with a write blocker and verified with a hash, so the original stays untouched, and the evidence holds up. Host analysis reviews logs, persistence locations like services and scheduled tasks, user activity, and installed software, while network analysis uses packet captures and flow data to find command and control, and data leaving. Data recovery and extraction retrieve deleted files, carve fragments from unallocated space, and pull data from phones and cloud accounts, always documented with a chain of custody.

Metadata and hardware

Metadata analysis often answers who, when, and where: email headers show the path a message took, the sending servers, and authentication results like SPF, DKIM, and DMARC. Images can carry camera details, timestamps, and GPS coordinates, and audio and video files carry device and editing information, which also helps spot manipulated media. Files and file systems keep creation, modification, and access times, plus owners and paths, but attackers can alter timestamps, so compare several sources. Hardware analysis reaches devices that offer no normal interface, like IoT boards, through JTAG, a debugging port that can dump memory and firmware directly from the chip. These methods can alter or damage evidence, so trained specialists perform them, on copies whenever possible.

Timeline, root cause, and response

Timeline reconstruction merges events from logs, file systems, memory, and network data into one ordered story, with clocks normalized to a single time zone. It shows the first point of entry, the attacker's path, and what they touched, which drives both the scope of containment and any notification duties. Root cause analysis asks why the attack succeeded, not just how, like a missing patch, a phishing email that bypassed filters, or an exposed credential, and keeps asking why until it reaches a process failure that can be fixed. Threat response then contains, eradicates, and recovers: isolate systems, block indicators, remove persistence, reset credentials, and restore from clean backups. In the cloud, a cloud workload protection platform, or CWPP, protects and investigates workloads like virtual machines, containers, and serverless functions, with runtime visibility across providers.

Readiness and insider threats

Preparedness exercises test the plan before a real incident: tabletop exercises walk leaders through a scenario, and simulations make technical teams act on realistic systems. Each exercise ends with lessons learned, revised playbooks, and fixes with owners, or it was only theater. Insider threats come from people with legitimate access, whether malicious, careless, or compromised, so they bypass many perimeter controls. Warning signs include unusual data access, large downloads before a resignation, attempts to reach systems outside one's role, and disabled security tools. Responding requires care: involve human resources and legal teams early, preserve evidence quietly, and apply least privilege and monitoring to everyone, not just to suspects.

Recap

Let's recap. Sandboxes detonate samples safely, IoCs are extracted and shared, and code stylometry supports variant matching, similarity, and careful attribution. Disassembly and decompilation open binaries and byte code when the sandbox is not enough. Volatile data comes first, then forensic images, host and network analysis, metadata from headers, images, media, and files, and JTAG for hardware. Timelines show the path, root cause analysis shows why, threat response contains and recovers, and CWPP covers cloud workloads. And exercises prepare the team, while insider threats call for quiet evidence, HR and legal, and least privilege for everyone.

Quick checks for this lesson

The 3 questions of this lesson, as plain text. The button above runs them with shuffled choices and the reason behind every choice.

  1. Thornbury’s analysts want to see which files, registry keys, and network connections a suspicious attachment creates, without risking the network. What should they do?

    • Open it on a spare laptop at someone’s desk
    • Disassemble the attachment before anything else
    • Detonate it in an isolated sandbox
    • Upload it to a public online scanning service
    Show the answer

    Detonate it in an isolated sandbox

    A sandbox runs the sample in isolation, and reports its files, registry changes, processes, and connections. “Open it on a spare laptop at someone’s desk” would risk infecting the network from a real desk. “Disassemble the attachment before anything else” would take far longer, and it shows code rather than behavior. And “Upload it to a public online scanning service” could alert the attacker, and share sensitive data publicly.

  2. A ransomware sample on a Thornbury server deletes itself after running and leaves no file on disk, but the server is still powered on. What should the responders capture first?

    • A full memory image
    • A disk image after shutdown
    • The email headers of the last message
    • A JTAG dump of the motherboard
    Show the answer

    A full memory image

    Memory is the most volatile evidence, and it still holds the running code, keys, and command lines that left no file. “A disk image after shutdown” would destroy the memory contents by shutting down first. “The email headers of the last message” is not related to a process running on the server. And “A JTAG dump of the motherboard” is for devices without normal interfaces, and it would be slow and risky here.

  3. Two weeks after handing in a resignation letter, a Thornbury scientist downloads thousands of research files at night, and tries to open a project share outside their team. What should the security team do first?

    • Confront the scientist in front of the team
    • Delete the scientist’s account at once and tell everyone
    • Ignore it until the last working day
    • Involve HR and legal, and preserve evidence quietly
    Show the answer

    Involve HR and legal, and preserve evidence quietly

    These are classic insider warning signs, and HR and legal guidance, with quietly preserved evidence, keeps the response fair and usable. “Confront the scientist in front of the team” would tip off the scientist, and could lead to deleted evidence. “Delete the scientist’s account at once and tell everyone” would act before the facts are known, and would alert the scientist too. And “Ignore it until the last working day” would let the data loss continue.