malware-triage
БесплатноЗапускает вложенные скриптыНе проверенRapid static assessment, classification, and prioritization of malware samples. Use for the first look at any unknown file — hashes, file type, packing…
Об этом скилле
Malware Triage
First phase for every sample. You run static tools on the host, interpret the output, classify the sample, and decide the next phase. Target: 5-15 minutes per sample.
Execution Model
- You run the commands. You have Bash. Execute every command in this skill yourself and interpret the output. Do not ask the user to run tools or paste results unless a tool is missing and cannot be installed.
- Locate skill files. Scripts and reference files ship in this skill's directory. Set
R="${CLAUDE_PLUGIN_ROOT:-<dir containing this SKILL.md>}"once (when installed as a plugin$CLAUDE_PLUGIN_ROOTis set; otherwise it is this skill folder). Your working directory is the user's analysis workspace, so prefix every script path below with$R, e.g.python3 "$R"/scripts/ioc_extract.py. - Never execute the sample. Only static tools touch it:
file,strings,pe_info.py,upx -d,7z l, hashing. Nochmod +x, nowine, no./sample. - Never upload the sample to any service without explicit consent. Hash lookups are fine; file uploads are not.
- Script paths are relative to this skill directory. From the repo/skill root:
malware-triage/scripts/pe_info.py,malware-triage/scripts/hash_calculator.py,scripts/ioc_extract.py. Resolve them from wherever this SKILL.md lives. - Tool check first. Run once per session; note what is missing and degrade rather than stop:
command -v file strings upx 7z yara; python3 -c "import pefile" 2>&1 | tail -1 # pefile missing -> pip install pefile (needed by pe_info.py) - Big outputs: never
cata strings dump. Save to a file,wc -l, thengrep/head. - Ask the user only for: the sample path, context (where it came from, incident ID, anything already known), and reputation results if no MCP server is available.
Workflow
Step 1 — Identify and hash
S=/path/to/sample
file "$S"; ls -l "$S"
python3 malware-triage/scripts/hash_calculator.py "$S"
Record MD5/SHA1/SHA256, size, file output. Then route on the file output:
file says |
Action |
|---|---|
Mono/.Net assembly |
Record hashes, hand back to orchestrator → specialized-file-analyzer (check this before PE) |
Microsoft Office, PDF document, ELF, MS Windows shortcut, Zip/RAR/7-zip, ISO 9660, Microsoft Disk Image, HTML document, script/text |
Record hashes, hand back to orchestrator → specialized-file-analyzer |
PE32 / PE32+ (not .NET) |
Continue below |
data / unrecognized |
Continue at Unknown Files |
Step 2 — Reputation
- MCP available (VirusTotal, Threat Intel / MalwareBazaar): look up the SHA256. Record detection ratio, family labels, first-seen date, tags. Look up any imphash and section hashes too.
- No MCP: give the user the SHA256 and ask them to check VirusTotal / MalwareBazaar while you continue. Do not block on it. Zero detections on a fresh hash means nothing; 0 detections on an old hash is informative.
- Reputation is a hint, not the verdict. Static findings override AV labels.
Step 3 — PE static summary
python3 malware-triage/scripts/pe_info.py "$S" # add --json for structured output
Read every section of the output. What matters:
| Output | Interpretation |
|---|---|
.NET: YES |
Stop, route to specialized-file-analyzer |
| Compile timestamp in the future / before 2000 | Forged; ignore for dating. Rich header linker info is harder to fake |
Overall entropy > 7.0, or executable section > 6.8, or ! markers |
Packed/encrypted — see Packed Samples |
Entry point outside .text/CODE, or in last section |
Packer stub or appended code |
Import count < 10, or only LoadLibrary/GetProcAddress/VirtualAlloc |
Runtime API resolution — packed or deliberately hiding imports |
| Suspicious import categories (injection, keylogging, network, anti-debug, crypto, persistence) | Map each to a capability; cross-check with references/indicators.md |
| Overlay present | Appended data: config, second-stage payload, or installer archive. Carve it: python3 -c "..." using the reported offset, then file the result |
| Signature present | Verify claimed signer; revoked/self-signed/mismatched = red flag. Unsigned is neutral |
| PDB path | Project/user names, build environment — high-value attribution string |
| Resources with high entropy or large size | Embedded payload. Note type/size; extract in deep analysis |
| TLS callbacks | Code runs before entry point — anti-debug or early unpacking |
| Version info mimicking Microsoft/Adobe/etc. while unsigned | Masquerading |
Step 4 — Strings and IOCs
W=triage_$(basename "$S") # work dir
mkdir -p "$W"
strings -a -n 6 "$S" > "$W/strings_ascii.txt"
strings -a -n 6 -e l "$S" > "$W/strings_wide.txt" # UTF-16LE, essential for Windows binaries
wc -l "$W"/strings_*.txt
python3 scripts/ioc_extract.py "$W"/strings_*.txt # de
Установить malware-triage в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл malware-triage?
Rapid static assessment, classification, and prioritization of malware samples. Use for the first look at any unknown file — hashes, file type, packing, imports, strings, initial IOCs, threat level, and the decision on which deep-analysis phase comes next. Claude runs the static tooling on the host itself; the sample is never executed.
Как установить скилл malware-triage?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл malware-triage запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic