Sample Triage
Triage is the first stop for an unknown sample: in minutes and without running it, you decide what it is, how risky it is, and how much analysis it deserves. Not every sample justifies a full reverse-engineering effort; triage separates “this is a known PUP” from “this is a new loader worth digging into.” It’s pure defensive work: classify to prioritize.
Threat model
Section titled “Threat model”The analyst works with finite resources and an alert queue. Orderly triage avoids two costly mistakes: burning hours on something trivial and filing as noise something that was the first link of an intrusion. The rule is to scale effort with uncertainty: start cheap (metadata, reputation) and go deep only if the sample stays opaque or is clearly malicious.
It also governs the order of volatility and chain of custody if the sample comes from a real incident: what you touch may be evidence (see DFIR — chain of custody).
Triage flow
Section titled “Triage flow”flowchart TD
A[Sample] --> B[Identify file<br/>hash · real type · size]
B --> C[Reputation<br/>VT · MalwareBazaar · CTI]
C --> D{Known?}
D -->|Yes| E[Classify family<br/>and close or enrich]
D -->|No| F[Quick static signals<br/>strings · imports · entropy]
F --> G{Suspicious?}
G -->|Yes| H[Escalate: static/dynamic]
G -->|No| I[Mark low risk + save IOCs]
File identification
Section titled “File identification”First of all, know what the file is (don’t trust the extension):
- Hashes: SHA-256 as the primary identifier; MD5/SHA-1 only for compatibility with older sources. They’re the lowest indicator on the Pyramid of Pain, but essential for searching.
- Real type: the header rules.
MZ→ PE (Windows),\x7fELF→ ELF (Linux),cafebabe/feedface→ Mach-O (macOS),PK→ ZIP/Office/JAR,%PDF→ PDF. - Size and format: a 20 MB “document” or a
.pdfthat is actually a PE is already a signal.
# basic identification (on a copy, in the lab)sha256sum sample.binfile sample.bin# view the first bytes / magicxxd sample.bin | headReputation and context (CTI)
Section titled “Reputation and context (CTI)”- VirusTotal / MalwareBazaar / Hybrid Analysis: have they seen it before? What family do the engines assign? Careful: AV names are noisy and don’t always agree.
- Hash in your own feeds and on CTI platforms (MISP): it may already be tied to a campaign.
- Operational privacy: uploading a sample to a public service makes it visible to third parties. If it comes from a sensitive incident, don’t upload it; search by hash or use a private sandbox. A classic defender OPSEC mistake.
Quick static signals
Section titled “Quick static signals”Without disassembling yet, a few hints separate “look closer” from “file away” (detail lives in Static analysis):
- Readable strings: URLs, paths, API names, messages. If there are almost no useful strings, it usually means packing/encryption.
- High entropy (close to 8 bits/byte) in code sections: a strong hint of packing or encryption (see Obfuscation and packing).
- Suspicious imports: injection, crypto, network, or process-manipulation APIs clustered together; or an almost empty import table (dynamic resolution).
- Packer/compiler signatures (DIE/Detect It Easy) and imphash to group with similar samples.
Red Team
Section titled “Red Team”Triage also helps in authorized exercises: before using a custom tool, the operator checks its footprint (how these same steps would look) with utilities like ThreatCheck or DefenderCheck, to understand which signature fires. It’s the same triage, but looking in the mirror: if your artifact is catalogued instantly, the blue team will see it too. The goal is still to measure detection, not to evade for its own sake.
Blue Team
Section titled “Blue Team”Detection and classification
Section titled “Detection and classification”- Automate triage: a pipeline that computes hashes, queries reputation, extracts strings/imports, and scores risk offloads work from the analyst.
- Group by imphash, fuzzy hashing (ssdeep, TLSH), and CAPA for family clustering, not just by exact hash.
Telemetry
Section titled “Telemetry”- Keep metadata for every triaged sample (hash, origin, verdict) for correlation and to detect reappearances.
- Feed your detections with confirmed IOCs (YARA and Sigma).
Response
Section titled “Response”If triage confirms maliciousness and the sample comes from a production host, jump to incident response: isolate, preserve, hunt the same footprint across the fleet.
CVEs and real-world cases
Section titled “CVEs and real-world cases”- Imphash triage, popularized by Mandiant, remains a cheap and effective way to group families by their import table.
- TLSH and ssdeep (fuzzy hashing) relate variants that change few bytes —exactly what the daily repacking of many families does— without an exact hash match.
- ATT&CK: triage mainly feeds the CTI and classification phase; findings are later mapped to concrete techniques during analysis.
Testing checklist
Section titled “Testing checklist”- SHA-256 hash computed and real type confirmed (by header, not extension)
- Reputation checked without breaking OPSEC (don’t upload sensitive samples)
- Strings, imports, and entropy reviewed
- Packer/compiler identified (DIE) and imphash computed
- Risk verdict and decision: file away / escalate to static/dynamic
- Metadata and IOCs saved for correlation