← All posts

Practical Malware Analysis & Triage: The Field Guide I Wish I'd Had Going In

On this page

TCM Security’s Practical Malware Analysis & Triage course is the most practical malware-triage training I’ve come across. Seventeen modules, two named challenges (“Silly Putty,” “SikoMode”), and a final boss fight — TCM doesn’t undersell the gauntlet.

No course review here. This is the runbook: nine steps, in the order I actually run them, ending in a report template so the last mile doesn’t stall out the way it does for most people. Bookmark it, don’t read it front to back.

Step 0 — Build the lab contain it before it can run Step 1 — Basic static identify without running it Step 2 — Basic dynamic let it talk, on a leash Step 3 — Advanced static read the logic Step 4 — Advanced dynamic confirm it at runtime Step 5 — Anti-analysis get past what's fighting you Step 6 — Format-specific maldoc, shellcode, .NET, Go, mobile… Step 7 — Automation scale what doesn't need a human Step 8 — Report make it count for someone else

Step 0: Build the lab before you need it

Do this once, properly, and you never think about it again.

  1. Stand up two VMs on an isolated, host-only (or internal) network: a Windows analysis host (FLARE-VM) and a Linux simulation host (REMnux). No bridged adapter, no shared clipboard, no shared folders.
  2. Start INetSim on REMnux so it answers every DNS/HTTP/SMTP/FTP request the sample makes. This is what convinces malware it has a live internet connection and C2 to talk to.
  3. Keep FakeNet-NG on the FLARE-VM host as a fallback — same job as INetSim, running locally, useful when you want network simulation without leaving the Windows side.
  4. Verify isolation before you trust it: from REMnux, confirm you cannot reach your physical host or the real internet; from FLAREVM, confirm the same. If either one can escape, fix the network config before you touch a sample.
  5. Snapshot both VMs clean, right now, before anything has ever been detonated.
  6. No local hardware for two VMs? Build the same FLARE-VM/REMnux pair in an isolated cloud VPC instead, using infrastructure-as-code so you can tear it down and rebuild it in minutes. You trade a few cents an hour of cloud compute for not needing a beefy local host.
  7. Revert to the clean snapshot after every single sample. Not “when it looks like something changed” — every time.

A practical note on getting tools into an isolated VM with no browser access: certutil.exe is native to every Windows install and can pull a file down over HTTP with certutil -urlcache -split -f <url> out.exe. Handy for provisioning — but remember the exact same trick is one of the most common LOLBin download techniques in real malware, so recognize it in a process tree as fast as you’d use it yourself.

The workflow at a glance

Phase Goal Reach for Red flag you’re hunting
Lab setup Contain the sample, simulate enough internet to provoke it Isolated VM, snapshots, INetSim/FakeNet-NG —
Basic static Identify without running it PEStudio, strings/FLOSS, hashes, VirusTotal, MalAPI.io Suspicious imports, packed section entropy
Basic dynamic Observe default behavior Process Monitor, System Informer, Regshot, Wireshark Dropped files, persistence keys, C2 beacons
Advanced static Understand the logic IDA Free / Ghidra Anti-analysis checks, decryption routines
Advanced dynamic Confirm the logic at runtime x64dbg, memory dumping, Scylla Unpacked payload in memory
Anti-analysis Get past what’s fighting you Patching, breakpoint tricks, unpacking VM/debugger checks, timing loops
Format-specific Handle the actual delivery vehicle oletools, scdbg, CyberChef, dnSpy, GoReSym, jadx Depends on format — see below
Automation Scale the parts that don’t need a human CAPE/Cuckoo, notebook + VT API Consistent behavior across many samples
Reporting Make it usable by someone else The template below IOCs, TTPs, a clear verdict

Step 1: Basic static analysis (before you ever run it)

  1. Hash it first (MD5, SHA1, SHA256) and check the hash against VirusTotal, Filescan.io (free, and its automated report will hand you a first-pass IOC and ATT&CK mapping before you’ve done anything manually), and your own IOC history — you may be able to close this ticket in thirty seconds if it’s already known.
  2. Run it through PEStudio, and Detect It Easy if PEStudio doesn’t give you a clean answer on the packer. Check the compile timestamp, the section table, and the entropy of each section — anything north of ~7.0 entropy on a section is your packing signal, and DIE’s signature database will often name the packer outright.
  3. Pull strings with FLOSS, not plain strings. Plain strings misses anything stack-encoded, obfuscated, or otherwise hidden — FLOSS decodes the common obfuscation techniques automatically before extracting.
  4. Open the import address table and run every unfamiliar API through MalAPI.io — a free catalog built by researcher mrd0x specifically to flag which Windows APIs show up disproportionately in malware. WinHttpOpen next to CreateProcessA in the same binary is not subtle once you know what to look for.
  5. Write down your working hypothesis before moving to dynamic analysis: what do you think this does, and what would confirm or disprove it? This is the single habit that keeps a triage pass from turning into an unstructured wander through a disassembler.
# Steps 1 and 4 in one breath, before the sample ever touches disk twice
sha256sum sample.exe
floss sample.exe > floss_strings.txt        # not plain `strings` — see below

The static pass isn’t about fully understanding the sample — it’s about deciding how much dynamic and reverse-engineering effort the rest of the pass deserves.

Step 2: Basic dynamic analysis (let it talk, on a leash)

  1. Take a Regshot baseline of the registry before detonation.
  2. Set your Process Monitor filters before you detonate, not after — filter to the process name/PID you’re about to create, or you’ll drown in noise from the rest of the OS.
  3. Confirm INetSim/FakeNet-NG is running and listening so the sample gets DNS answers and fake services to talk to.
  4. Detonate, and let it run for a full minute or two — don’t stop it the instant something happens, some behavior (persistence, secondary downloads) is deliberately delayed.
  5. Take the second Regshot and diff against the baseline — new run keys, new services, and new scheduled tasks live here.
  6. Review the Process Monitor capture for file writes, registry writes, and any child processes spawned.
  7. Review the Wireshark capture for DNS lookups and HTTP(S) requests — this is usually where your C2 domain or IP shows up:
dns or http or tls.handshake.type == 1

Why this phase earns its keep on its own: the course’s first named challenge, “Silly Putty,” is a trojanized build of a completely ordinary tool — indistinguishable from the real thing until you watch what it actually does. That’s the exact shape of the “why did our EDR flag PuTTY” ticket that lands in a real inbox.

Static and dynamic together are usually enough to answer what it does. They’re not enough to answer how it decides what to do — that’s what pushes you into a disassembler next.

Step 3: Advanced static analysis (understand the logic)

  1. Load the sample into Ghidra or IDA Free and locate the entry point.
  2. Cross-reference every API call MalAPI.io flagged in Step 1 — find where in the disassembly each one is actually called, and what gets passed to it.
  3. Trace control flow backward from anything suspicious (a network call, a registry write, a process-creation call) to find the decision logic that leads to it — this is usually where a C2 domain, a mutex name, or a config blob gets decrypted or decoded just before use.
  4. Flag anything that looks like an anti-analysis check (unusual API calls with no obvious purpose, checks that branch based on a value you can’t yet explain) — don’t solve it yet, just mark it. You’ll come back to it in Step 5.
  5. Note every place where you’d want a breakpoint — you’re building your plan for Step 4, not executing it yet.

Step 4: Advanced dynamic analysis (confirm it at runtime)

  1. Set breakpoints in x64dbg at the addresses you flagged in Step 3.
  2. Step through and confirm the logic the disassembly implied — does the decrypted string match what you expected? Does the branch go where you thought?
  3. If the sample is packed, let it run until the unpacked payload is resident in memory, then dump it before it re-encrypts or exits.
  4. Rebuild the Import Address Table on the dumped payload with Scylla — a dump with a broken IAT won’t run or disassemble cleanly on its own.
  5. Re-run Step 1 and Step 3 against the freshly-unpacked binary. You now have a clean file to analyze instead of a wrapper.

This is where “SikoMode” stops being a fun name. The course’s second named challenge is where packing stops being theoretical — dump it live, rebuild the IAT, and suddenly you have a clean binary instead of a wrapper you can’t read.

One misread worth flagging here because it’s easy to make: reading a disassembled process-injection routine, it’s tempting to call the return value of OpenProcess “the PID.” It isn’t — OpenProcess returns a handle, not the process ID you passed in. Everything downstream in the injection chain (WriteProcessMemory, CreateRemoteThread, and friends) operates on that handle, not the PID. Misreading it quietly breaks your understanding of the rest of the chain.

Step 5: Defeat anti-analysis

  1. Identify what kind of check you’re looking at: debugger-presence (IsDebuggerPresent), timing-based (rdtsc deltas around a sleep), or environment-based (VM registry artifacts, MAC address prefixes, low core/RAM counts).
  2. For debugger checks: patch the check’s return value or NOP the conditional jump that acts on it, directly in x64dbg.
  3. For timing checks: either patch out the timing comparison, or use your debugger’s anti-anti-debug plugins to fake consistent timing.
  4. For environment checks: decide whether it’s faster to patch the check or to make your VM look more like a real host (this is a judgment call — for a one-off sample, patching is almost always faster).
  5. Re-run the sample after each patch to confirm you’ve actually cleared the check rather than just moved past one of several.

The pattern looks the same in almost every sample you’ll ever patch:

; Before — bails the moment a debugger is attached
call    IsDebuggerPresent
test    eax, eax
jnz     bail_out          ; <- flip this to jz, or NOP it outright

; After — the jump is never taken, execution just falls through
nop
nop

None of this is exotic — it’s the same handful of tricks in every packer and loader family, which is exactly why it’s worth drilling until it’s reflex.

Step 6: Handle the delivery format you’re actually looking at

The back half of the course is where “malware analysis” stops being one skill and becomes six adjacent ones. You don’t need mastery of all six — you need to recognize which one you’re looking at fast enough to reach for the right tool first.

Maldocs — see what’s inside before you ever open it in Office:

oleid suspicious.doc                  # macros? OLE or OOXML?
oledump.py -s 4 -v suspicious.doc     # dump and decompress stream 4

Then deobfuscate whatever string-building the macro does to hide its real payload URL or command line.

Shellcode — let an emulator run it instead of reading it cold:

scdbg.exe /f shellcode.bin /findsc

Watch for API-resolution-by-hash (the classic PEB-walking trick) rather than expecting readable import names.

Scripted delivery (PowerShell/JScript/VBS/HTA) — assume layered encoding and unwrap with CyberChef’s recipe chaining rather than scripting it by hand:

CyberChef recipe: From Base64 → Gunzip → From Base64

If it’s an .hta file specifically, remember it never runs in a browser — Windows hands it to mshta.exe, a signed, trusted binary. On a process tree, you’re hunting for mshta.exe with the file path as its argument, never a process literally named after the file. Follow the chain to whatever it ultimately downloads and executes.

.NET — open in dnSpy/ILSpy first; managed code decompiles close to original source far more often than native code does. If it looks obfuscated (ConfuserEx and similar), identify the obfuscator before fighting it symbol-by-symbol — most have known deobfuscation approaches.

Go — expect it stripped and enormous compared to an equivalent C binary; that’s normal for statically-linked Go, not a sign of anything unusual on its own. A Go-aware tool recovers function names from the runtime’s own structures before you fall back to manual analysis:

GoReSym -d ./sample.exe > recovered_symbols.json

Mobile — static teardown before anything else:

apktool d suspicious.apk
jadx -d out/ suspicious.apk

Read the manifest for the permission model first — it tells you what the app is even capable of. Reach for MobSF or an emulator plus Frida only if static analysis doesn’t answer the question.

Step 7: Automate what doesn’t need a human

Before you pick a tool, know what architecture you’re actually detonating on. “Sandbox” isn’t one thing — it’s three different approaches to the same problem, and they trade off against each other in opposite directions:

Architecture How it works Strength Weakness
Full-system emulation The entire CPU/hardware stack is emulated in software (QEMU-class) — nothing “real” exists underneath the sample Nothing for VM-detection checks to find, in principle Emulation is imperfect; sophisticated samples fingerprint the emulator’s own quirks instead. Slow.
Virtualization / hypervisor-based A real guest OS runs inside VirtualBox/VMware/Hyper-V, instrumented via hooks or a driver (Cuckoo, CAPE, most commercial detonation sandboxes) Fast, cheap to snapshot and revert, rich behavioral logging This is exactly the category Step 5’s anti-analysis checks (VM registry artifacts, MAC prefixes) are built to detect and refuse to run on
Bare-metal The sample runs on real, physical hardware — no hypervisor anywhere in the chain Defeats every VM/hypervisor detection trick outright, since there’s nothing to detect Resetting to clean means re-imaging a physical disk, not reverting a snapshot — throughput is far lower

Most day-to-day triage lives on virtualization-based sandboxes, for exactly the reason it’s the most detected category: speed matters more than stealth when you’re processing volume. Bare-metal is what you reach for once a sample has already proven it checks for a hypervisor and bails.

Don’t want to host any of this yourself? ANY.RUN is the same virtualization-based category above, run as a live, interactive service — you get an actual remote desktop to click around in mid-detonation, in a browser, with no lab to maintain. It’s a genuinely useful first stop for a fast look, with the same VM-detection caveat as any other hypervisor-based sandbox.

  1. Stand up a detonation sandbox (CAPE/Cuckoo-class — virtualization-based, per the table above) once you have more samples than analyst-hours to hand-triage them.
  2. Wire YARA scanning into the detonation pipeline so a known-family match happens without anyone watching the run:
    yara -r family_rules.yar /sandbox/detonation-output/
    
  3. For lighter volume, skip the full sandbox and wire a notebook (Jupyter or similar) to a dropbox folder and a VirusTotal API key instead — drop a sample in, get hashes, static indicators, and reputation data back before you’ve finished your coffee.
  4. Log every automated verdict somewhere queryable. The point of automation is a searchable history, not just a faster one-off answer.

Step 8: Write the report — the part that actually makes the work count

A triage pass that ends at “I understand the malware” and never becomes an artifact someone else can act on hasn’t actually finished. This is the module most courses (and most analysts) treat as an afterthought. Don’t.

Write in this order, not the order you did the analysis:

  1. Verdict first. One sentence: malicious or not, what family/type if known, and your confidence level. Whoever reads this report may only read this one sentence — make it count on its own.
  2. Sample identification. Hashes, file type, size, where it came from, when it was first seen. This is what lets someone else find the same file in their own environment.
  3. Behavioral summary in plain language, ordered by what a responder needs to act on first: how it persists, how it evades detection, what it communicates with, what it does to the host. Map each behavior to a MITRE ATT&CK technique ID — this is what lets a SOC turn your report into detection rules.
  4. Technical detail, for the analyst who comes after you: the static findings, the dynamic findings, the anti-analysis techniques encountered and how you got past them, key code snippets or disassembly where they matter.
  5. Indicators of Compromise as a structured table, not prose — hashes, IPs, domains, registry keys, file paths, mutex names. This table is what gets copy-pasted into a SIEM, so make every value exact and nothing else.
  6. The YARA rule, if you wrote one, in full — tight enough to catch the family without false-positiving on every packed binary in the wild.
  7. Recommendations, split into immediate containment actions and longer-term detection/prevention changes. Be specific — “block this domain” and “alert on this registry key” are actionable; “improve monitoring” is not.
  8. Appendix for anything too long for the body: full strings dumps, extended IOC lists, screenshots, references.

A few rules that make the difference between a report that gets read and one that gets skimmed and ignored:

  • The executive summary should be readable by someone who has never opened a debugger. Save the jargon for the technical-detail section.
  • State your confidence level explicitly wherever you’re not certain — “likely,” “confirmed,” “unable to determine” are all fine; silently presenting a guess as fact is not.
  • Date and version the report. Malware analysis conclusions get revised as more information comes in; make it obvious which version someone is reading.
  • If you can’t explain a finding in one sentence in the summary, it belongs in the technical section, not the top.

The template

Copy this directly — fill in the brackets, delete what doesn’t apply, keep the section order. Download it as a standalone .md file if you’d rather grab it than copy-paste.

# Malware Analysis Report: [Sample Name / Case ID]

**Analyst:** [Name]
**Date:** [YYYY-MM-DD]
**Classification:** [TLP:CLEAR / TLP:AMBER / internal only / etc.]
**Confidence:** [Low / Medium / High]

## 1. Executive Summary
[One paragraph, plain language, verdict first. Malicious or benign, family/type if
known, what it does in one sentence, and what should happen next.]

## 2. Sample Identification
| Field | Value |
|---|---|
| Filename | |
| MD5 | |
| SHA1 | |
| SHA256 | |
| File Type | |
| File Size | |
| First Seen | |
| Source / Delivery Vector | |

## 3. Classification & Verdict
- **Verdict:** [Malicious / Suspicious / Benign]
- **Family (if known):** 
- **Confidence:** [Low / Medium / High, and why]

## 4. Behavioral Summary (mapped to MITRE ATT&CK)
| Behavior | ATT&CK Technique | Notes |
|---|---|---|
| Persistence | | |
| Defense Evasion | | |
| Discovery | | |
| Command & Control | | |
| Impact | | |

## 5. Technical Analysis

### 5.1 Static Analysis
[Hashes already covered above. Import table findings, packer/entropy findings,
strings of interest, notable code structure.]

### 5.2 Dynamic Analysis
[Process behavior, file system changes, registry changes, network activity,
in the order observed.]

### 5.3 Anti-Analysis / Evasion Encountered
[What the sample tried, and how you got past it.]

## 6. Indicators of Compromise
| Type | Value | Context |
|---|---|---|
| SHA256 | | Sample hash |
| Domain | | C2 |
| IP | | C2 |
| Registry Key | | Persistence |
| File Path | | Dropped file |
| Mutex | | |

## 7. Detection
```yara
rule [RuleName]
{
    meta:
        author = "[Name]"
        date = "[YYYY-MM-DD]"
        description = "[What this catches and why]"
    strings:
        $s1 = "[string]"
    condition:
        [logic]
}
```

## 8. Recommendations

**Immediate (containment):**
- 

**Short-term (detection):**
- 

**Long-term (prevention):**
- 

## 9. Appendix
[Full strings output, extended IOC lists, screenshots, references.]

TCM’s own course ships a similar report template in its public labs repository if you want a second structure to compare against — the sections above are my own version, built to fit a SOC handoff rather than a training exercise, but the underlying logic (verdict first, IOCs as a table, recommendations split by urgency) is the same regardless of whose template you start from.

If you’re deciding whether to take it

The course rewards already having the fundamentals (a Windows internals baseline, comfort with a debugger, and — from the DFIR side I usually work — knowing what “normal” looks like before you go hunting for what isn’t) and then stress-tests them against formats you don’t hit every week. The two named challenges and the final boss fight are the actual test of whether the workflow above has become reflex yet, or is still something you’re consciously stepping through. Worth taking either way — but build the lab in Step 0 properly, snapshot it, and don’t skip the report-writing step at the end just because it isn’t reverse engineering.