---
name: malware-triage
description: Guides safe triage of an unknown sample — identify the file type, hash it, check hashlookup, run quick static analysis, and decide malicious vs benign without executing it. Use when the user hands over a suspicious file or attachment and asks whether it is malicious, wants a first look at a sample, or needs hashes and a verdict before deeper analysis.
license: Apache-2.0
metadata:
  verified: "2026-10-20"
---

# Malware triage workflow

marq runs none of the tools below. Run them in your own isolated analysis sandbox
on a copy of the sample, and never execute or "detonate" it outside that sandbox.

## Order of operations

1. **Identify** — `rabin2 -I` for format/arch, `exif_metadata` for
   document/media. Don't trust the extension; check the magic.
2. **Hash & check reputation first** — compute sha256 (`sha256sum`), then look it up via the `security-apis` skill:
   `hashlookup` (known-good NSRL = stop, it's legit software) and `ORKL`
   (hash appears in a threat report → you have attribution + a name).
3. **Capabilities** — `capa <file>`: what it _does_ (persistence, injection,
   C2, anti-analysis), mapped to ATT&CK. This is the fastest "what is this".
   When a binary needs the full structure/packing/IOC dive, go to the
   `malware-static` skill.
4. **Strings** — `rabin2 -z`: pulls embedded C2 URLs, mutexes,
   registry paths. (Plain strings only; encoded/obfuscated strings need an
   off-box deobfuscator — note the gap if capa flags obfuscation.)
5. **Docs** — if it's Office/RTF, go to the `malware-maldoc` skill instead.
   Script lures (LNK/HTA/JS/VBS/PowerShell/batch/HTML-smuggling/ClickFix) →
   `load_skill malware-scripts`.

## Read the signals

- **Packed?** rabin2/capa flags high section entropy (>7.0), tiny import table,
  UPX/section names like `.UPX0`. Packed → capa sees little until unpacked;
  note it and pivot to dynamic analysis elsewhere — `load_skill malware-dynamic`
  for the safe off-box hand-off.
- **Anti-analysis** capa hits (debugger/VM/sandbox checks) = it expects to be
  watched; raises confidence it's malicious.
- **Imports** tell intent: `WININET`/`ws2_32` (network), `CreateRemoteThread`
  (injection), `CryptEncrypt` (ransomware/packer), `RegSetValue` (persistence).

## Decide & record

- Malicious verdict needs **≥2 independent signals** (capa behaviour + bad
  reputation + suspicious strings), not one AV hit. "No signal" ≠ benign → mark
  unknown.
- `report_finding`: title = malware family/behaviour, evidence = the capa rules
  - IOCs (hashes, C2 from strings). Pivot every IOC through
    `load_skill ioc-pivoting`. Note third-party verdicts as _claims_, not fact.
