Static triage answers three questions without running anything: is it malicious, what is it capable of, and what happens next. It is the cheapest analysis you can do and the step that prevents wasting sandbox time on clean files or missing a packed payload's real nature. This skill covers the standard triage pass: hashes and reputation, strings, imports, headers, capabilities, and the report format that routes the sample correctly. Scope: analyze only samples you are authorized to handle, in an isolated lab, during authorized DFIR or malware research. Static analysis does not execute the sample, but handle every file as hostile: no double-clicking, no preview handlers, analysis tools only.
Quick Workflow
- Hash the sample (md5, sha1, sha256) and check reputation sources and your internal database before doing anything else.
- Identify the file type and packer status with DIE; note compiler, bitness, and entropy.
- Extract strings with FLOSS (decoded strings included) and review for IOCs: URLs, IPs, mutexes, PDB paths, registry keys.
- Review imports: which DLLs and APIs, and do they match the strings story?
- Run capa and read the capability list top to bottom.
- Inspect PE headers and sections in PE-bear: entry point, section names, timestamps, certificates.
- Write the triage verdict: malicious/suspicious/clean, family guess, capabilities, and recommended next step.
1. Hashes and reputation first
sha256sum sample.exe
# aabbcc... (example)
# Check your internal DB and public reputation before analysis
# (use your org's approved lookup tooling; never upload sensitive samples
# to public sandboxes without authorization)
A known hash with a known verdict ends triage in one step. A known hash with conflicting verdicts means you analyze anyway and note the dispute. An unknown hash with a recent compile timestamp and a packed profile is the classic "new variant" shape: prioritize it.
2. Strings: the fastest window into intent
# FLOSS extracts static, stack, and decoded strings
floss -n 8 sample.exe -o strings.txt
# Hunt the high-value patterns
grep -iE "http|\\.onion|\\.ru|\\.cn" strings.txt | sort -u | head -20
grep -iE "mutex|Global\\\\" strings.txt | sort -u
grep -iE "\\\\Run|CurrentVersion" strings.txt | sort -u
grep -iE "\\.pdb" strings.txt | sort -u
Example output shape from a loader:
http://beacon.example-cdn[.]net/api/v2/beacon
Global\NimbusSyncMutex_7f3a
Software\Microsoft\Windows\CurrentVersion\Run
Z:\Builds\ProjectNimbus\Release\loader.pdb
cmd.exe /c powershell -enc
Read strings as a narrative: C2 URL plus Run key plus powershell means persistent loader with remote control. Strings that contradict each other (a Tor address plus a clearnet beacon) mean multi-protocol C2 or a configurable implant: note both.
3. Imports: what the binary is allowed to do
# Quick import list via capa or a PE parser
capa -v sample.exe 2>/dev/null | grep -A5 "imports" | head -30
Group imports by capability, not alphabetically:
- Process: CreateProcess, CreateRemoteThread, WriteProcessMemory, VirtualAllocEx (injection capability)
- Persistence: RegSetValueEx, CreateService, COM task scheduler APIs
- Network: InternetOpen, HttpSendRequest, WSAConnect, getaddrinfo
- Crypto: CryptEncrypt, BCryptEncrypt (ransomware or C2 encryption)
- Evasion: IsDebuggerPresent, Sleep, GetTickCount, CPUID
A dozen imports total with only LoadLibraryA and GetProcAddress means packed or API-hashed: the real imports are hidden and you must unpack or go dynamic. Hundreds of imports with no network APIs on a "downloader" means the network code is resolved at runtime: same conclusion.
4. PE headers and sections
In PE-bear, check in order:
- Entry point: which section holds it.
.textis normal; the last section or an oddly named one suggests a packer stub. - Sections: names, entropy, raw vs virtual size. UPX0-style zero-raw sections and 7.9-entropy sections are packer tells.
- Timestamp: compile date. Future dates, 1970, or round suspicious values are common fakeries; a 2024 timestamp on a "new" 2026 sample suggests a builder reuse.
- Certificate: signed or not, and by whom. Stolen certificates happen; an unknown signer on a system-looking binary is a red flag.
- Rich header / linker version: mismatches with the claimed compiler suggest tampering.
Example PE-bear findings shape:
Entry point: 0x0040A310 in section UPX1 (abnormal)
Imports: 14 total (kernel32: LoadLibraryA, GetProcAddress, VirtualAlloc)
Timestamp: 2026-10-20 03:14:07 (3 days ago, plausible)
Verdict: packed with UPX -> route to unpacking
5. capa: capabilities as a checklist
capa sample.exe
Example output shape:
+------------------------+-------------------------------------------------+
| ATT&CK Tactic | ATT&CK Technique |
+------------------------+-------------------------------------------------+
| DEFENSE EVASION | Obfuscated Files or Information [T1027] |
| EXECUTION | Command and Scripting Interpreter [T1059] |
| PERSISTENCE | Registry Run Keys / Startup Folder [T1547.001] |
+------------------------+-------------------------------------------------+
| CAPABILITY | NAMESPACE |
+------------------------+-------------------------------------------------+
| create mutex | host-interaction/mutex |
| encode data using XOR | data-manipulation/encoding/xor |
| send HTTP request | communication/http/client |
+------------------------+-------------------------------------------------+
Read capa twice: once for the ATT&CK mapping (your report's technique
list), once for the capability namespaces (your mental model of what it
does). capa rules also name the exact functions and strings behind each
hit with -v; use that to feed YARA string selection.
6. The triage report
Keep it short and routable. Template:
Sample: sample.exe
SHA256: aabbcc... (truncated in notes, full in DB)
Verdict: MALICIOUS (confidence: high)
Family: Nimbus loader (matches internal rule Trojan_Nimbus_Loader)
Type: PE32, packed UPX 5.0, unpacked payload 240 KB
Caps: HTTP beaconing, Run-key persistence, process injection,
XOR string encoding (capa: T1071, T1547.001, T1055, T1027)
IOCs: beacon.example-cdn[.]net, Global\NimbusSyncMutex_7f3a
Next: sandbox detonation for behavior timeline; YARA rule exists,
no new rule needed.
Verdict scale: MALICIOUS (multiple corroborating indicators), SUSPICIOUS (one strong indicator, needs dynamic), CLEAN (reputable hash or clearly legitimate), UNKNOWN (packed beyond quick triage, route to unpacking). Every verdict names its evidence; "looks bad" is not a verdict.
Edge cases
- Empty strings and tiny imports on a flagged file: assume packed until proven otherwise; do not verdict CLEAN on a packed sample.
- .NET assemblies: strings and imports look different (metadata tables, not IAT). Use DIE's .NET info and dnSpy-style metadata review instead of classic import analysis.
- Scripts (ps1, js, vba): the "strings" are the code. Read them directly; obfuscated scripts need deobfuscation before triage, not after.
- Signed malware: check the signer, then check whether the signature validates and whether the file hash matches known-good for that signer. Stolen certs are common in targeted intrusions.
- Very large files (100 MB+): often installers with bundled malware. Triage the installer behavior separately from the dropped payload.
- Corrupted headers: some malware damages its own headers to break tools. If PE-bear chokes, try DIE and raw parsing before concluding the file is not PE.
- Non-PE targets (ELF, Mach-O, firmware blobs): switch tooling (readelf, capa supports ELF) but keep the same question order.
Escalation
- If triage says packed and automatic unpackers fail, escalate to manual unpacking (malware-packer-triage) before any verdict beyond SUSPICIOUS.
- If strings show credential theft or wiper behavior, escalate priority immediately: those families get same-day sandbox and detection, not queue order.
- If the sample matches no known family and shows novel capabilities, escalate to full reverse engineering and notify threat intel; novel implants are intel products, not just tickets.
- If reputation sources conflict on a hash, trust your own analysis and document why; external verdicts are inputs, not decisions.
Detection and defender view
Triage output is detection input. Every MALICIOUS verdict should produce or confirm at least one detection: a YARA rule for the payload, a hash for the EDR blocklist, network IOCs for the proxy, behavior patterns for Sigma. Write the ATT&CK mapping into the ticket so the SOC sees techniques, not just a filename. Track triage metrics that matter to defense: time from receipt to verdict, percentage verdictable statically, and how often sandbox later contradicts the static verdict (that delta is your triage quality score). Feed contradicted cases back into training: each one is a lesson about which indicator lied.
Key references
- Mandiant FLARE capa: https://github.com/mandiant/capa
- Mandiant FLARE FLOSS: https://github.com/mandiant/flare-floss
- Detect It Easy: https://github.com/horsicq/Detect-It-Easy
- PE-bear: https://github.com/hasherezade/pe-bear
- MITRE ATT&CK: https://attack.mitre.org/
- Practical Malware Analysis (Sikorski and Honig), Chapters 1-7 (static analysis fundamentals)
- SANS FOR610 cheat sheets: https://www.sans.org/posters/
See also
static-triage: Use it instead when the triage must include entropy and section analysis plus a headless Ghidra pass.
