Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

malware-triage

БесплатноЗапускает вложенные скриптыНе проверен

Rapid static assessment, classification, and prioritization of malware samples. Use for the first look at any unknown file — hashes, file type, packing…

gl0bal01от gl0bal01★ 56 звёзд на GitHub10 установок в других каталогах

Об этом скилле

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_ROOT is 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. No chmod +x, no wine, 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 cat a strings dump. Save to a file, wc -l, then grep/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
Полный SKILL.md на GitHub

Установить malware-triage в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

references/indicators.mdreferences/triage_checklist.mdscripts/hash_calculator.pyscripts/pe_info.py

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 запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить malware-triage с