analysis
Triage and audit radare2 binaries via r2xsql — find suspicious behavior, surface crypto/network/persistence APIs, hunt high-complexity functions, and run…
от radareorg★ 23 звезды на GitHub
Установить analysis в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
When to use
Pick this skill when the task is open-ended investigation:
- "is this binary malicious?"
- "does it touch the network / filesystem / registry?"
- "where does it use cryptography?"
- "what are the suspicious functions worth reading?"
For specific lookups (one symbol, one xref, one string), use the
typed skills (disassembly, data, xrefs).
Workflow
A typical triage pass:
- Orient —
binaryfor bintype/arch/bits and quick counts, orbininfofor the same facts as ONE typed row (also carries thehas_nx/has_canary/has_pi/has_vamitigation flagsbinaryonly exposes as loosekey/valuerows). - Surface APIs —
importsgrouped by library; flag crypto, network, persistence, anti-debug DLLs. - Find anchors —
stringsmatchingpassword,key, URLs, command lines, suspicious paths. - Pivot —
xrefsfrom interesting imports/strings to callers, then to those callers' callers. - Annotate — use the
annotationsskill to leave comments and flags marking what you found; persist with r2'sPs <name>before you exit. Analysis annotations do not require-w; binary byte writes do.
Recipes
-- 0) mitigation posture (has this binary been hardened?)
SELECT has_nx, has_canary, has_pi, has_va FROM bininfo;
-- 1) binary type + counts at a glance
SELECT key, value FROM binary
WHERE key IN ('bintype','arch','bits','os','func_count','import_count','string_count');
-- 2) crypto API surface (any combination of common naming)
SELECT name, module FROM imports
WHERE name LIKE 'Crypt%' OR name LIKE '%AES%'
OR name LIKE 'BCrypt%' OR name LIKE '%RC4%'
OR name LIKE '%MD5%' OR name LIKE '%SHA%';
-- 3) network surface
SELECT name, module FROM imports
WHERE module IN ('WS2_32.dll','WINHTTP.dll','WININET.dll','URLMON.dll','DNSAPI.dll');
-- 4) anti-debug surface
SELECT name FROM imports
WHERE name IN ('IsDebuggerPresent','CheckRemoteDebuggerPresent','NtQueryInformationProcess');
-- 5) persistence surface
SELECT name, module FROM imports
WHERE name LIKE 'Reg%Set%' OR name LIKE 'Create%Service%'
OR name LIKE '%Schedule%' OR name LIKE 'WinExec' OR name LIKE 'ShellExecute%';
-- 6) suspicious string anchors
SELECT addr, content FROM strings
WHERE content LIKE 'http%' OR content LIKE 'cmd.exe%'
OR content LIKE 'powershell%' OR content LIKE '%HKEY_%'
OR content LIKE 'C:\\%' OR content LIKE '\\Run\\%';
-- 7) high-complexity functions (often crypto loops or state machines)
SELECT addr, name, cc FROM funcs WHERE cc > 25 ORDER BY cc DESC;
-- 8) functions that touch ANY crypto import (pivot from 2)
WITH crypto_imps AS (
SELECT addr FROM imports
WHERE name LIKE 'Crypt%' OR name LIKE 'BCrypt%'
)
SELECT DISTINCT f.name, f.cc
FROM xrefs x
JOIN crypto_imps c ON c.addr = x.to_addr
LEFT JOIN funcs f ON f.addr = x.from_func
WHERE x.type = 'CALL'
ORDER BY f.cc DESC;
Triage output template
After the recipes, summarize for the user:
- File: bintype/arch/bits, function count, mitigation flags (
has_nx/has_canary/has_pi/has_va). - API surface: crypto = …, network = …, anti-debug = …, persistence = ….
- Notable strings: …
- Recommended reading order: list of
(addr, name, why)to look at. - Suggested annotations to persist (use the
annotationsskill).
Caveats
- Import-based triage misses dynamic API resolution
(
LoadLibrary/GetProcAddress). For those, hunt the strings for the API names and pivot viaxrefs. - High
ccdoesn't mean "interesting" by itself — combine with the API/string anchors before deciding.
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
- 01
Bash - 02
Read
FAQ
Что делает скилл analysis?
Triage and audit radare2 binaries via r2xsql — find suspicious behavior, surface crypto/network/persistence APIs, hunt high-complexity functions, and run multi-table queries that combine code, data, and xrefs.
Как установить скилл analysis?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл analysis запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
skill-creator
AnthropicCreate 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…
discernment-nudge
AnthropicAfter you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
data-consolidate
AnthropicJoins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
inspection-to-capa
AnthropicRuns the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…