Reversecore MCP
v3.1.0Security-first MCP server for reverse engineering, malware analysis, forensics, and SAST.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
audit_source_code
Perform a security audit on a source code file (SAST). This tool analyzes source code (C, C++, Python, Go, etc.) to identify potential security vulnerabilities such as buffer overflows, injection flaws, and weak cryptography. It provides a structured breakdown of dangerous patterns found in the code to guide deeper manual or AI-driven analysis. Use this tool when you have access to original source code or when you want to analyze decompiled output exported to a file.
| Parameter | Type | Description |
|---|---|---|
file_path * | string | Path to the source code file. |
language | Optional language hint (e.g., 'c', 'python'). If None, inferred from extension. |
run_file
Identify file metadata using the ``file`` CLI utility.
| Parameter | Type | Description |
|---|---|---|
file_path * | string | |
timeout | integer |
copy_to_workspace
Copy any accessible file to the workspace directory. This tool allows copying files from any location (including AI agent upload directories) to the workspace where other reverse engineering tools can access them. Supports files from: - Claude Desktop uploads (/mnt/user-data/uploads) - Cursor uploads - Windsurf uploads - Local file paths - Any other accessible location
| Parameter | Type | Description |
|---|---|---|
source_path * | string | Absolute or relative path to the source file |
destination_name | Optional custom filename in workspace (defaults to original name) |
create_directory
Create a new sub-directory within the workspace. This tool allows AI agents to dynamically create isolated sub-workspaces for different tasks or sessions.
| Parameter | Type | Description |
|---|---|---|
directory_path * | string | Relative or absolute path of the directory to create. Must be within the workspace boundary. |
list_workspace
List all files in the workspace directory. Returns: ToolResult with list of files in workspace
scan_workspace
Batch scan all files in the workspace using multiple tools in parallel. This tool performs a comprehensive scan of the workspace to identify files, analyze binaries, and detect threats. It runs 'run_file', 'parse_binary_with_lief', and 'run_yara' (if rules exist) on all matching files concurrently. **Workflow:** 1. Identify files matching patterns (default: all files) 2. Run 'file' command on all files 3. Run 'LIEF' analysis on executable files 4. Run 'YARA' scan if rules are available 5. Aggregate results into a single report
| Parameter | Type | Description |
|---|---|---|
file_patterns | List of glob patterns to include (e.g., ["*.exe", "*.dll"]). Default is ["*"] (all files). | |
timeout | integer | Global timeout for the batch operation in seconds. |
retrieve_truncated_output
Retrieve a continuation slice of a truncated output artifact from the workspace. Enables AI agents to recover the omitted tail of large tool outputs without using lossy head/tail commands or causing response budget overflows.
| Parameter | Type | Description |
|---|---|---|
artifact_path * | string | Workspace-relative or absolute path to the saved output artifact (e.g. 'outputs/cmd_abc123.log'). |
length | integer | Maximum number of bytes to retrieve (default: 64KB, max: 1MB). |
offset | integer | Byte offset in the artifact to begin reading from (0-indexed). |
batch_execute
Execute a batch of repeated or heterogeneous analysis operations within bounded resources. Enables AI agents to perform bulk decompilations, cross-reference searches, tagging, and static analysis sweeps in a single MCP request, eliminating round-trips while isolating individual item failures and enforcing strict execution quotas.
| Parameter | Type | Description |
|---|---|---|
operations * | array | List of tool invocation specifications. Each item must contain 'tool' (str) and 'arguments' (dict). An optional 'id' (str) can be provided for correlation. Example: [{'id': 'fn1', 'tool': 'r2_decompil… |
atomic | boolean | If True, runs all operations inside an atomic transaction. If any operation fails, state changes are rolled back. |
item_timeout | integer | Per-item timeout in seconds (default: 30s, max: 300s). |
max_concurrency | integer | Maximum number of parallel operations (default: 4, max: 16). Set to 1 for strict sequential execution. |
stop_on_error | boolean | If True, halts execution on first item error and returns partial results. |
total_timeout | integer | Overall timeout for entire batch execution in seconds (default: 120s, max: 600s). |
transaction_begin
Begin a new state mutation transaction. Checkpoints current Reversecore state (annotation database, memory sessions, report sessions, and reversible workspace artifacts). Subsequent mutations can be committed atomically or rolled back cleanly to this checkpoint.
| Parameter | Type | Description |
|---|---|---|
auto_rollback_on_error | boolean | If True, encountering a non-reversible action in strict mode automatically triggers rollback. |
description | Optional detailed description of the intended mutations. | |
name | Optional human-readable name or intent for the transaction (e.g. 'patch_function_auth'). | |
strict | boolean | If True, any non-reversible action (e.g., external subprocess execution) is rejected immediately. |
transaction_commit
Commit the active transaction and persist changes into the undo history. Atomically commits all mutations executed since transaction_begin, records affected objects in the security audit trail, and adds the transaction to the undo stack.
| Parameter | Type | Description |
|---|---|---|
transaction_id | Optional ID of the transaction to commit. If omitted, commits the currently active transaction. |
transaction_rollback
Roll back the active transaction and restore pre-transaction Reversecore state. Restores the SQLite annotation database, memory sessions, report session metadata, and tracked workspace artifacts to their exact pre-transaction state.
| Parameter | Type | Description |
|---|---|---|
reason | Optional reason for the rollback (e.g. 'verification check failed'). | |
transaction_id | Optional ID of the transaction to roll back. If omitted, rolls back the currently active transaction. |
transaction_status
Inspect current transaction state, uncommitted mutations, and undo/redo history. Provides visibility into active transaction status, affected resources, whether non-reversible actions have occurred, and available undo/redo steps.
| Parameter | Type | Description |
|---|---|---|
transaction_id | Optional transaction ID to query. If omitted, returns active transaction status and history. |
transaction_undo
Undo the last committed transaction(s). Restores Reversecore state to the checkpoint prior to the committed transaction, and moves the undone transaction to the redo stack.
| Parameter | Type | Description |
|---|---|---|
steps | integer | Number of committed transactions to undo (default 1). |
transaction_redo
Redo the last undone transaction(s). Re-applies the committed state of previously undone transactions.
| Parameter | Type | Description |
|---|---|---|
steps | integer | Number of undone transactions to redo (default 1). |
recommend_analysis_plan
Recommend a goal-aware, depth-tiered analysis plan composed of existing MCP tools. Given a file, objective, and depth tier, evaluates tool availability, active profile constraints, and external dependencies to synthesize a sequential tool pipeline with conditional branches, stop conditions, and rationales.
| Parameter | Type | Description |
|---|---|---|
architecture | Target architecture if known (e.g. 'x86', 'x86_64', 'arm', 'arm64', 'mips'). Defaults to 'x86_64'. | |
depth | string | Analysis depth tier: quick (fingerprinting/fast triage), standard (balanced workflow), deep (broader emulation/deobfuscation/fuzzing). |
objective | string | Analysis objective: static_triage, malware_triage, vulnerability_research, unpacking_deobfuscation, incident_reconstruction, patch_review, forensics. |
profile | Active or requested MCP tool profile: full, static, malware, forensics, vuln-research. | |
sample_format | Explicit binary or data format (pe, elf, macho, pcap, memory, disk, source, generic). Auto-detected if target_file is provided. | |
target_file | Optional path to target binary, capture, or source sample in workspace (e.g. 'sample.exe', 'dump.raw'). | |
time_budget_seconds | Optional time or resource budget in seconds (e.g. 30 for quick, 120 for standard, 300+ for deep). |
create_case_state
Create a persistent machine-readable analysis case bound to sample SHA-256 integrity.
| Parameter | Type | Description |
|---|---|---|
sample_path * | string | Path to target binary or artifact in workspace to bind this case to. |
case_name | Optional descriptive case name (e.g. 'lockbit_v3_loader', 'incident_2026_host01'). | |
hypotheses | Optional initial hypotheses list (each with title, category, evidence_level, rationale). | |
initial_phase | string | Initial analysis phase: intake, triage, hypothesis_generation, deep_analysis, verification, reporting, completed. |
session_id | Optional linked memory or reporting session UUID. | |
targets | Optional initial inspection targets (each with target, kind, priority, reason, expected_next_step). |
get_case_state
Retrieve persistent analysis case state by ID or sample path.
| Parameter | Type | Description |
|---|---|---|
case_id | Unique case ID (e.g. 'case_sample.exe_a1b2c3'). Required if sample_path not given. | |
full_details | boolean | If True, returns complete history including all steps; if False, returns compact summary. |
sample_path | Optional sample path to look up latest case bound to this file's SHA-256. |
update_case_state
Incrementally update case state, phase, hypotheses, targets, blockers, or artifacts.
| Parameter | Type | Description |
|---|---|---|
case_id * | string | Unique ID of the analysis case to update. |
add_artifact | Attach an artifact reference (name, artifact_type, path, uri, sha256, metadata). | |
add_blocker | Add a blocking condition (target, reason, blocked_by, suggested_resolution). | |
add_hypothesis | Add a new hypothesis (title, category, evidence_level, evidence_refs, rationale). | |
add_step | Record a completed operation (step_id, tool_name, summary, output_summary). | |
add_target | Add or update an inspection target (target, kind, priority, reason, expected_next_step, blockers). | |
force_phase | boolean | If True, allows stepping backward in phase progression or resetting phases. |
phase | New analysis phase: intake, triage, hypothesis_generation, deep_analysis, verification, reporting, completed. | |
resolve_blocker | Target name to clear blocking status for. | |
update_hypothesis | Update an existing hypothesis (hyp_id, status, evidence_refs, contradictions, rationale, evidence_level). | |
update_target | Update target status (target_id_or_name, status, reason). |
resume_case_state
Resume an existing analysis case with hash verification and actionable guidance.
| Parameter | Type | Description |
|---|---|---|
case_id * | string | Unique ID of the analysis case to resume. |
sample_path | Optional sample path to verify against case's bound SHA-256. | |
verify_hash | boolean | If True, verifies that sample file on disk matches stored SHA-256. |
list_case_states
List persistent analysis cases.
| Parameter | Type | Description |
|---|---|---|
limit | integer | Maximum number of cases to return. |
phase | Optional phase filter (intake, triage, hypothesis_generation, deep_analysis, verification, reporting, completed). |
export_handoff_bundle
Export a portable analyst handoff bundle for a sample. The bundle records sample identity, scope and tool provenance, what is established vs. unresolved, relevant annotations, and integrity digests for every section and artifact reference.
| Parameter | Type | Description |
|---|---|---|
sample_path * | string | Workspace path of the sample the investigation is about. |
artifact_paths | Workspace files (reports, YARA/Sigma rules, dumps) to reference by SHA-256. Files are referenced, never embedded. | |
case_id | Case to include. Defaults to the latest case bound to the sample hash. | |
include_annotations | boolean | Include bookmarks, structures and types for the sample. |
output_name | Output filename only (default '<sample>_<hash8>.rchandoff.json'). Written inside the workspace. | |
session_id | Memory session to include. Defaults to the case's linked session. |
import_handoff_bundle
Verify and import an analyst handoff bundle. Integrity digests are checked first, then the sample hash, and only then is state written. Existing local cases and annotations are never overwritten: an already-known case is imported under a new ID and conflicting annotations are reported and left as-is. Missing optional artifacts are reported without affecting the rest of the import.
| Parameter | Type | Description |
|---|---|---|
bundle_path * | string | Workspace path of the .rchandoff.json bundle. |
dry_run | boolean | Verify and report what would be imported without writing anything. |
target_file_path | Local sample whose SHA-256 must match the bundle. Strongly recommended: a mismatch aborts before anything is attached. |
plan_next_analysis_targets
Generate an evidence-ranked next-analysis plan for an active case. Ranks inspection targets deterministically based on evidence references, priority level, active hypotheses, and blocker readiness. Provides concrete recommended tools and next steps.
| Parameter | Type | Description |
|---|---|---|
case_id * | string | Unique identifier of the analysis case state (e.g. 'case_a1b2c3d4'). |
include_blocked | boolean | If True, includes targets with unresolved blockers in the ranking. |
limit | integer | Maximum number of ranked targets to include in the plan (1 to 25). |
min_priority | Optional minimum priority tier filter ('critical', 'high', 'medium', 'low'). |
populate_case_queue_from_triage
Extract prioritized inspection leads from triage results and populate the case queue. Parses suspicious APIs, high-entropy sections, anti-analysis checks, diff changes, and network/memory IOCs into prioritized targets with rationale and evidence links. Skips targets that are already completed.
| Parameter | Type | Description |
|---|---|---|
case_id * | string | Unique identifier of the analysis case state (e.g. 'case_a1b2c3d4'). |
triage_data * | Triage findings dictionary or JSON string (imports, strings, anti_analysis, diff, injections, network, sections). | |
max_items | integer | Maximum number of priority targets to extract and add to the queue. |
add_priority_target
Manually add an evidence-driven analysis target to the active case queue.
| Parameter | Type | Description |
|---|---|---|
case_id * | string | Unique identifier of the analysis case state. |
target * | string | Target symbol, address, function, artifact, or subsystem to inspect (e.g. 'sym.decrypt_config', '0x1400010a0'). |
blockers | Prerequisite targets or actions that must be completed before inspecting this target. | |
evidence_refs | Evidence reference identifiers supporting this target (e.g. ['import:VirtualAllocEx', 'string:https://c2.onion']). | |
expected_next_step | string | Prescribed next analysis technique (e.g. 'decompile + xrefs + taint', 'simulate in ESIL'). |
kind | string | Kind of target: 'function', 'import', 'string', 'diff', 'patch', 'memory', 'pcap', 'section', 'hypothesis', 'cve'. |
priority | string | Priority tier: 'critical', 'high', 'medium', 'low'. |
reason | string | Evidence-based rationale explaining why this target should be inspected next. |
update_priority_target
Update a target's lifecycle status, unblock dependent targets on completion, and record findings.
| Parameter | Type | Description |
|---|---|---|
case_id * | string | Unique identifier of the analysis case state. |
status * | string | New lifecycle status: 'pending', 'active', 'completed', 'deferred', 'blocked', 'rejected'. |
target * | string | Target ID (e.g. 'tgt_1234abcd') or target identifier (e.g. 'sym.decrypt_config'). |
findings | List of analysis findings or conclusions uncovered during inspection of this target. | |
priority | Optional updated priority tier: 'critical', 'high', 'medium', 'low'. | |
reason | Rationale for status update or completion summary notes. |
resolve_target_blocker
Resolve an explicit blocking dependency for a target, transitioning it to pending status.
| Parameter | Type | Description |
|---|---|---|
case_id * | string | Unique identifier of the analysis case state. |
target * | string | Target identifier whose blocking dependency has been resolved. |
resolution_note | string | Explanation of how the blocking condition was satisfied or bypassed. |
explain_patch
Analyze differences between two binaries and explain changes in natural language. This tool combines binary diffing with decompilation to help understand security patches. It identifies changed functions, decompiles them, and uses heuristics to explain the nature of the changes (e.g., "Added bounds check", "Replaced unsafe API").
| Parameter | Type | Description |
|---|---|---|
file_path_a * | string | Path to the original binary (e.g., vulnerable version). |
file_path_b * | string | Path to the modified binary (e.g., patched version). |
function_name | Optional specific function to analyze. If None, analyzes top changes. |
assemble_instructions
Assemble assembly instruction strings into raw machine byte values using Keystone.
| Parameter | Type | Description |
|---|---|---|
assembly_code * | string | The assembly instruction(s) to compile (separated by newlines or semicolons). |
arch | string | Target architecture (e.g., 'x86', 'arm', 'arm64', 'mips', 'sparc', 'ppc', 'systemz'). |
base_address | string | Base address of instructions, useful for resolving relative offsets (hex or decimal string). |
mode | string | Target mode/width (e.g., '16', '32', '64' for x86; 'arm', 'thumb' for arm). |
inspect_analysis_view
Paginate and filter a retained analysis result by its ``evidence_id``. When a tool is called with ``detail="summary"``, it caches the complete output in the session EvidenceCache and returns an ``evidence_id`` (e.g. ``ev_8f3a92b1c4d0``). Use ``inspect_analysis_view`` to inspect specific pages or filter items without flooding the LLM context window. Pass ``evidence_id="list"`` to view all retained evidence handles in the current session.
| Parameter | Type | Description |
|---|---|---|
evidence_id * | string | Retained evidence identifier (e.g. 'ev_8f3a92b1c4d0'), or 'list' to enumerate all cached evidence records in the session. |
facet | Optional facet name to inspect (e.g. 'instructions', 'lines', 'strings', 'functions', 'files', 'packages', 'literals'). Defaults to primary facet. | |
filter_query | Optional case-insensitive substring filter applied before slicing. | |
limit | integer | Maximum number of items to return per page (default: 50, max: 500). |
offset | integer | Zero-based starting item index for pagination (default: 0). |
search_guidance
Search reverse engineering playbooks, tool recipes, and documentation on demand. Use this tool when encountering an unfamiliar target format (e.g. Go/Rust binaries, Electron ASAR bundles, Unity IL2CPP metadata), workflow (summary-first paging, feature reconstruction), or architecture question instead of guessing parameters.
| Parameter | Type | Description |
|---|---|---|
query * | string | Search keywords (e.g. 'go binary', 'asar', 'il2cpp', 'paging', 'reconstruct', 'emulation'). |
category | Optional category filter (e.g. 'workflow', 'modern-runtimes', 'user-guide', 'api'). | |
limit | integer | Maximum number of matching sections to return (default: 10, max: 30). |
read_guidance_section
Read the full markdown content of a specific guidance section by its locator.
| Parameter | Type | Description |
|---|---|---|
locator * | string | Section locator returned by ``search_guidance`` (e.g. 'playbook:go-rust-reversing#gopclntab-and-crates' or 'docs/EMULATION.md#overview'). |
max_chars | integer | Maximum characters to return (default: 4000, max: 20000). |
create_memory_session
Create a new memory session to store memories. Use this when starting a new reverse engineering analysis. The session name should be descriptive and follow a template format like 'malware_analysis_2024_001' or 'game_cheat_detection'.
| Parameter | Type | Description |
|---|---|---|
name * | string | Template name for the session (e.g., 'malware_sample_001') |
binary_name | Name of the binary being analyzed (optional) | |
binary_path | Path to binary for automatic hash calculation (optional) |
save_memory_item
Save important information to long-term memory. Use this to remember: - Function addresses and their purposes - Vulnerability patterns discovered - API call sequences - User instructions and preferences - Interesting strings or structures
| Parameter | Type | Description |
|---|---|---|
content * | string | The actual content to remember (text or JSON string) |
memory_type * | string | Type of memory: - 'finding': Analysis discoveries - 'pattern': Code/behavior patterns - 'instruction': User preferences/instructions - 'context': General context information |
session_id * | string | Session ID from create_memory_session |
category | Optional category: - 'function': Function-related info - 'vulnerability': Security issues - 'string': Important strings - 'structure': Data structures - 'api': API usage patterns | |
importance | integer | Importance level 1-10 (default 5, higher = more important) |
user_prompt | The user's prompt when this was discovered (optional) |
recall_memory_item
Search and recall memories from past analyses. Use this when you need to remember something from earlier, or when the user asks about previous findings.
| Parameter | Type | Description |
|---|---|---|
query * | string | Search query (keywords or phrases) |
limit | integer | Maximum number of results (default 10) |
memory_type | Filter by type ('finding', 'pattern', 'instruction', 'context') | |
session_id | Limit search to specific session (optional) |
list_memory_sessions
List all analysis sessions with timestamps and status. Use this to see what analyses have been done before, or to find a session to resume.
| Parameter | Type | Description |
|---|---|---|
limit | integer | Maximum number of sessions to return |
status | Filter by status ('in_progress', 'completed', 'paused') |
get_memory_session_detail
Get complete details and context for a specific session. Use this when resuming an analysis or reviewing past work. Returns all memories and patterns associated with the session.
| Parameter | Type | Description |
|---|---|---|
session_id * | string | Session ID to retrieve |
resume_memory_session
Resume a previous analysis session with full context restoration. Use this when the user says "continue where we left off" or "resume yesterday's analysis".
| Parameter | Type | Description |
|---|---|---|
binary_name | Find latest session for this binary (optional) | |
session_id | Specific session ID to resume (optional) |
complete_memory_session
Mark an analysis session as completed with a summary. Use this when finishing an analysis to save a summary for future reference.
| Parameter | Type | Description |
|---|---|---|
session_id * | string | Session ID to complete |
summary * | string | AI-generated summary of the analysis findings |
save_pattern
Save a code/behavior pattern for cross-session similarity search. Use this when you discover a notable pattern that might appear in other samples. This enables "Hey, this looks similar to before!"
| Parameter | Type | Description |
|---|---|---|
pattern_signature * | string | Normalized pattern signature for matching Example: "VirtualAlloc,WriteProcessMemory,CreateRemoteThread" |
pattern_type * | string | Type of pattern: - 'api_sequence': Sequence of API calls - 'code_pattern': Assembly/code pattern - 'behavior': Behavioral pattern |
session_id * | string | Current session ID |
description | Human-readable description of the pattern |
find_similar_patterns
Find similar patterns from previous analyses. Use this to check if current findings match anything from past analyses. Enables knowledge transfer across projects.
| Parameter | Type | Description |
|---|---|---|
pattern_signature * | string | Pattern to search for |
current_session_id | Exclude current session from results | |
limit | integer | Maximum results |
pattern_type | Limit to specific type (optional) |
get_relevant_context
Get relevant context from past analyses for current work. Use this proactively when analyzing something new to check if there's relevant knowledge from previous sessions.
| Parameter | Type | Description |
|---|---|---|
description * | string | Description of what you're currently analyzing |
current_session_id | Current session to exclude | |
limit | integer | Maximum relevant items |
update_memory_session_time
Update the cumulative analysis time for a session. Call this periodically to track how long an analysis takes.
| Parameter | Type | Description |
|---|---|---|
duration_seconds * | number | Additional time to add (in seconds) |
session_id * | string | Session ID |
get_server_health
Get the current health status and resource usage of the MCP server. Use this to monitor the server's uptime, memory consumption, and tool execution statistics. Returns: ToolResult containing: - uptime_seconds: Server uptime - memory_usage_mb: Current memory usage in MB - status: 'healthy' or 'degraded' - tool_stats: Summary of tool execution success/failure
get_tool_metrics
Get detailed execution metrics for specific or all tools.
| Parameter | Type | Description |
|---|---|---|
tool_name | Optional tool name to filter results |
cve_synthesize_harness
Synthesize LibFuzzer/AFL++ C/C++ test harness and format dictionary (.dict) for target parser. Analyzes target headers, exports, and sample files to extract candidate parser functions, magic byte signatures, and generate ready-to-compile LLVMFuzzerTestOneInput harness code.
| Parameter | Type | Description |
|---|---|---|
header_or_binary_path * | string | Path to target header (.h), source (.c/.cpp), or binary. |
sample_file_path | Optional path to a valid sample file to extract dictionary tokens. | |
target_function | Optional target function name to fuzz. | |
timeout | Maximum execution timeout in seconds. |
cve_fuzz_target
Execute hybrid fuzzing campaign with Sanitizer tracking and angr concolic seed solver. Runs target fuzzer binary with AddressSanitizer, detects coverage stalls, and uses angr symbolic execution to solve magic byte constraints.
| Parameter | Type | Description |
|---|---|---|
target_binary_path * | string | Path to compiled fuzzer binary in workspace. |
corpus_dir | Optional directory with seed testcases. | |
dictionary_path | Optional path to AFL++ dictionary file (.dict). | |
enable_angr_concolic | boolean | Whether to trigger angr symbolic solving when stalled. |
max_total_time_seconds | integer | Max fuzzing duration in seconds (default: 20s). |
timeout | Maximum execution timeout in seconds. |
cve_triage_crash
Triage AddressSanitizer/UBSan crash log and compute CWE and CVSS v3.1 rating. Extracts bug class (heap-buffer-overflow, UAF, double-free), faulting PC, memory access type, allocation/free/crash callstacks, and calculates CVSS score and vector.
| Parameter | Type | Description |
|---|---|---|
crash_log_or_text * | string | Raw ASan log text or path to crash log file. |
timeout | Maximum execution timeout in seconds. |
cve_minimize_poc
Minimize crash testcase payload via delta-debugging and generate standalone PoC scripts. Bsects crash input to find the smallest reproducible byte sequence, and generates standalone Python (subprocess/pwntools) and C reproduction code.
| Parameter | Type | Description |
|---|---|---|
binary_path * | string | Path to target binary in workspace. |
crash_input_path * | string | Path to crash-inducing input file. |
target_function | Optional target parser function name. | |
timeout | Maximum execution timeout in seconds. |
hunt_cve_vulnerabilities
Run one-click CVE hunting against a compiled LibFuzzer target executable. This pipeline does not compile source or header files. Generate and compile a harness for those targets separately, then pass the resulting executable here. Performs end-to-end vulnerability discovery: 1. Hybrid fuzzing and angr concolic branch solving 2. ASan crash triage, CWE mapping, and CVSS v3.1 scoring 3. Testcase minimization and standalone PoC generation 4. Vendor-ready Security Advisory Markdown report draft
| Parameter | Type | Description |
|---|---|---|
target_path * | string | Path to a compiled LibFuzzer executable. Generate and compile a harness for source or header targets before passing the executable to this pipeline. |
options | Optional configuration dictionary (e.g. fuzz_duration, target_function). | |
sample_file_path | Optional path to a valid sample file. | |
timeout | Maximum execution timeout in seconds. |
deobfuscate_strings
Recover dynamically constructed stack strings and emulated loop strings in a binary. Scans function basic blocks for stack stores (byte/word/dword constants) and micro-emulates tight loops (XOR/additive/rolling ciphers) to capture decrypted strings.
| Parameter | Type | Description |
|---|---|---|
file_path * | string | Path to the binary file in the workspace. |
function_address | Optional function offset or symbol (e.g. '0x140001000' or 'main'). | |
timeout | Maximum execution time in seconds. |
resolve_api_hashes
Detect dynamic PEB/TEB walking and resolve 32-bit API hashes to Windows export symbols. Matches constants found in instructions or data sections against precomputed hash tables (ROR13, CRC32, MurmurHash3, FNV-1a, DJB2, SDBM) for standard Windows libraries (ntdll, kernel32, user32, advapi32, ws2_32, wininet, winhttp, etc.).
| Parameter | Type | Description |
|---|---|---|
file_path * | string | Path to the binary file to analyze. |
algorithm | Hash algorithm name ('ror13', 'crc32', 'djb2', 'fnv1a', etc.) or 'auto'. | |
custom_hashes | Optional custom mapping of hash strings (e.g. '0x7c0dfcaa') to API names. | |
timeout | Maximum execution time in seconds. |
eliminate_dead_code
Analyze opaque predicates and identify unreachable basic blocks in a function CFG. Detects algebraic/constant opaque predicates (e.g. zero-flag tests, constant comparisons, redundant jumps) and computes effective reachable blocks to simplify control flow analysis.
| Parameter | Type | Description |
|---|---|---|
file_path * | string | Path to the binary file to analyze. |
function_address | Optional target function address or name (e.g. '0x140001000'). | |
timeout | Maximum execution time in seconds. |
run_deobfuscation_pipeline
Run all deobfuscation engines concurrently and assemble a unified intelligence report. Executes stack string recovery, emulated loop decryption, API hash resolution, and opaque predicate dead code elimination, producing a comprehensive report with threat tags and detected malware capabilities.
| Parameter | Type | Description |
|---|---|---|
file_path * | string | Path to the binary file to analyze. |
options | Optional configuration dictionary (e.g. {'algorithm': 'ror13', 'function_address': 'main'}). | |
timeout | Maximum execution time in seconds. |
memory_list_symbols
List available Volatility3 symbol tables for a memory dump. Volatility3 requires OS-specific symbol tables (ISF files) to run most plugins. Use this tool to inspect which symbol tables are currently available, then load the appropriate one using ``memory_load_symbols`` before running analysis plugins.
| Parameter | Type | Description |
|---|---|---|
dump_path * | string | Path to the memory dump file (e.g., .raw, .vmem, .mem). |
memory_analyze
Run a Volatility3 plugin against a memory dump file. Supports Windows, Linux, and macOS memory dumps. Heavy plugin operations (malfind, psscan, netscan) are queued via ARQ for non-blocking execution.
| Parameter | Type | Description |
|---|---|---|
dump_path * | string | Path to the memory dump file (.raw, .vmem, .mem, .dmp). |
_bypass_queue | boolean | Internal — set True to skip ARQ queueing. |
extra_args | Additional plugin arguments as a space-separated string (e.g., "--pid 1234"). | |
plugin | string | OS-qualified Volatility3 plugin name. Run ``memory_analyze`` with plugin='help' to see supported plugins. Bare names such as ``pslist`` are rejected because they can match plugins from multiple operat… |
symbol_path | Optional path to an ISF symbol table file. Required for some plugins on unknown OS versions. |
memory_list_processes
List Windows processes from a memory dump.
| Parameter | Type | Description |
|---|---|---|
dump_path * | string | Path to the memory dump file. |
include_hidden | boolean | If True, also run psscan to detect hidden/unlinked processes. Hidden processes may indicate rootkits or process injection. |
memory_detect_injections
Detect Windows process injection using the Volatility3 windows.malfind plugin. Uses the ``malfind`` plugin to identify memory regions with executable permissions that contain suspicious patterns (MZ headers, shellcode signatures).
| Parameter | Type | Description |
|---|---|---|
dump_path * | string | Path to the memory dump file. |
_bypass_queue | boolean | Internal — set True to skip ARQ queueing. |
memory_extract_strings
Extract ASCII and Unicode strings from a memory dump.
| Parameter | Type | Description |
|---|---|---|
dump_path * | string | Path to the memory dump file. |
detail | string | Detail level - 'full' (complete strings list) or 'summary' (counts & samples) |
limit | integer | Maximum number of strings to return (default: 500). |
min_length | integer | Minimum string length to include (default: 6). |
memory_dump_module
Dump a Windows module or DLL from a memory dump via Volatility3.
| Parameter | Type | Description |
|---|---|---|
dump_path * | string | Path to the memory dump file. |
process_name * | string | Name of the target process (e.g., 'explorer.exe'). |
module_name | Exact module/DLL name to dump. If None, dumps all modules for the specified process. | |
output_dir | Workspace directory under which a unique run directory is created for the dumped modules. Defaults to the workspace directory. |
disk_list_partition
List partition layout of a disk image using Sleuth Kit mmls.
| Parameter | Type | Description |
|---|---|---|
image_path * | string | Path to the raw disk image file (.img, .dd, .raw, .iso). |
disk_list_files
List all files and directories in a disk/filesystem image.
| Parameter | Type | Description |
|---|---|---|
image_path * | string | Path to the disk or filesystem image file. |
directory | string | Directory path within the image to list (default: root '/'). |
include_deleted | boolean | If True, also show deleted/unallocated files (marked with '*'). |
limit | integer | Maximum number of entries to return (default: 1000). |
offset | Partition start offset in sectors (from disk_list_partition output). Leave None if image_path is a filesystem image (not a full disk image). | |
recursive | boolean | If True, recursively list all subdirectories. |
disk_recover_deleted
Recover a deleted file from a disk/filesystem image by inode number. Use ``disk_list_files`` with ``include_deleted=True`` first to find the inode number of the deleted file, then pass it to this tool.
| Parameter | Type | Description |
|---|---|---|
image_path * | string | Path to the disk or filesystem image file. |
inode * | string | Inode number of the file to recover (from disk_list_files output). |
output_path * | string | Destination path to write the recovered file. |
offset | Partition start offset in sectors (from disk_list_partition). |
disk_analyze_mft
Analyze the NTFS Master File Table (MFT) for file timeline and metadata. Provides full filesystem metadata including file creation/modification/access times, which is critical for establishing a forensic timeline.
| Parameter | Type | Description |
|---|---|---|
image_path * | string | Path to an NTFS disk or filesystem image. |
limit | integer | Maximum MFT entries to return (default: 500). |
offset | Partition start offset in sectors (from disk_list_partition). |
disk_extract_file
Extract a live (non-deleted) file from a disk image by inode number.
| Parameter | Type | Description |
|---|---|---|
image_path * | string | Path to the disk or filesystem image file. |
inode * | string | Inode number of the file to extract. |
output_path * | string | Destination path to write the extracted file. |
offset | Partition start offset in sectors. |
disk_hash_verify
Compute and verify the integrity hash of a disk image or recovered file. Essential for forensic chain of custody — verifies that an image has not been tampered with since acquisition.
| Parameter | Type | Description |
|---|---|---|
image_path * | string | Path to the disk image or file to hash. |
algorithm | string | Hash algorithm to use ('sha256', 'sha1', 'md5'). Default: 'sha256'. |
expected_hash | Optional expected hash value to verify against. |
pcap_analyze
Summarize sessions, protocols, and packet statistics from a PCAP file. Provides a high-level overview including total packets, unique hosts, protocol distribution, top talkers, and session summary — ideal as a first-pass triage of a PCAP capture.
| Parameter | Type | Description |
|---|---|---|
pcap_path * | string | Path to a PCAP or PCAPNG capture file. |
max_packets | integer | Maximum number of packets to process (default: 10,000). For large captures, use a smaller value or filter first. |
pcap_list_connections
List all unique IP/port connections observed in a PCAP capture.
| Parameter | Type | Description |
|---|---|---|
pcap_path * | string | Path to a PCAP or PCAPNG capture file. |
max_packets | integer | Maximum packets to process (default: 50,000). |
protocol | Filter by protocol ('tcp', 'udp', or None for all). |
pcap_extract_dns
Extract DNS queries and responses from a PCAP capture. Useful for identifying C2 domain lookups, DGA patterns, DNS tunneling, and suspicious resolution activity.
| Parameter | Type | Description |
|---|---|---|
pcap_path * | string | Path to a PCAP or PCAPNG capture file. |
include_responses | boolean | If True, also extract DNS response records (A, AAAA, MX, TXT). |
max_packets | integer | Maximum packets to process (default: 50,000). |
pcap_extract_c2
Detect potential C2 traffic patterns in a PCAP capture. Detects: - Beaconing behavior (periodic connections to same host) - Connections to known suspicious ports - Unusually long/persistent connections - DNS-over-HTTPS (DoH) patterns
| Parameter | Type | Description |
|---|---|---|
pcap_path * | string | Path to a PCAP or PCAPNG capture file. |
beacon_threshold_sec | integer | Maximum jitter window (seconds) to consider as beaconing. |
max_packets | integer | Maximum packets to process (default: 100,000). |
pcap_reconstruct_stream
Reconstruct TCP stream payload from a PCAP capture. Selects one TCP flow using its four endpoint values and reassembles each direction independently by TCP sequence number. Gaps remain explicit, and retransmissions or conflicting overlaps are counted rather than duplicated.
| Parameter | Type | Description |
|---|---|---|
dst_ip * | string | Destination IP address of the stream. |
dst_port * | integer | Destination TCP port of the stream. |
pcap_path * | string | Path to a PCAP or PCAPNG capture file. |
src_ip * | string | Source IP address of the stream. |
max_bytes | integer | Maximum unique payload bytes to reconstruct per direction (default: 1 MB). |
max_packets | integer | Maximum packets to process (default: 10,000). |
src_port | Optional source TCP port. If omitted, a source port is inferred only when exactly one flow matches the IP addresses and destination port. |
artifact_collect
Collect and normalize forensic artifacts from analysis results. Use this tool to register artifacts discovered during memory, disk, or network analysis. Artifacts are normalized and stored for subsequent correlation with ``artifact_correlate_ioc`` and YARA rule generation via ``artifact_generate_yara``.
| Parameter | Type | Description |
|---|---|---|
artifacts * | array | List of artifact dictionaries. Each should have at least a 'value' or 'name' key. Additional fields are stored as metadata. |
artifact_type | string | Type of artifact (see ARTIFACT_TYPES for valid values). |
source | string | Human-readable source label (e.g., 'memory_malfind', 'pcap_c2_detect'). |
artifact_correlate_ioc
Correlate collected forensic artifacts against IoC patterns. Runs IoC extraction patterns (IP, URL, hash, CVE, registry) against all artifact values to automatically enrich them with threat intelligence signals. Uses the existing ``extract_iocs`` infrastructure from the malware module.
| Parameter | Type | Description |
|---|---|---|
artifacts * | array | List of normalized artifacts (from ``artifact_collect`` output). |
check_domains | boolean | Extract and flag suspicious domains. |
check_hashes | boolean | Extract and flag file hashes (MD5/SHA1/SHA256). |
check_ips | boolean | Extract and flag suspicious IP addresses. |
artifact_generate_yara
Auto-generate YARA rules from collected forensic artifacts. Integrates with the adaptive vaccine pipeline to create detection signatures from suspicious strings, process names, network indicators, and injection patterns found during forensics analysis.
| Parameter | Type | Description |
|---|---|---|
artifacts * | array | List of artifacts (from ``artifact_collect`` or ``artifact_correlate_ioc``). |
output_path | Optional path to save the generated .yar rule file. If None, returns rule content only. | |
rule_name | string | Base name for the generated YARA rule (default: 'forensics_auto'). |
artifact_timeline
Build a chronological event timeline from multi-source forensic artifacts. Aggregates artifacts from memory, disk (MFT timestamps), and network captures into a single unified timeline, sorted by timestamp.
| Parameter | Type | Description |
|---|---|---|
artifacts * | array | List of artifacts (from ``artifact_collect`` or ``artifact_correlate_ioc``). Source timestamps such as ``mtime`` are preferred; ``collected_at`` is retained separately and used only when no source tim… |
sort_order | string | Sort order — 'asc' (oldest first) or 'desc' (newest first). |
artifact_report
Export a comprehensive forensics investigation report. Combines artifact collection summary, IoC correlation results, timeline, and optionally auto-generated YARA rules into a structured Markdown report.
| Parameter | Type | Description |
|---|---|---|
artifacts * | array | All collected and enriched artifacts from the investigation. |
analyst | string | Analyst name to include in the report header. |
case_name | string | Name/identifier for this forensics case. |
include_yara | boolean | If True, auto-generate and include YARA rules in the report. |
output_path | Optional path to save the report as a Markdown file. |
Radare2_open_file
Opens a binary file with radare2 for analysis. Call this tool before any other r2mcp tool. Use an absolute file_path.
| Parameter | Type | Description |
|---|---|---|
file_path * | string | Absolute path to the binary file to analyze |
arch | ||
bits |
Radare2_close_file
Close the currently open radare2 session for a file.
| Parameter | Type | Description |
|---|---|---|
file_path * | string | Path to the file to close |
Radare2_analyze
Run binary analysis with optional depth level.
| Parameter | Type | Description |
|---|---|---|
file_path * | string | Path to the binary file |
arch | Optional architecture (e.g., 'mips', 'arm64', 'riscv', 'x86_64') | |
bits | Optional architecture bits (e.g., 32, 64) | |
level | integer | Analysis depth as an INTEGER from 0 to 4 (default: 2). IMPORTANT: Must be an integer. Do NOT pass strings like "full", "deep", or "auto" — those will be rejected. 0 = aa (basic, fastest) 1 = aaa (a… |
Radare2_run_command
Execute a raw radare2 command directly. NOTE: Only analysis commands are allowed. Write and shell commands are blocked.
| Parameter | Type | Description |
|---|---|---|
command * | string | The radare2 command to execute |
file_path * | string | Path to the binary file |
Radare2_calculate
Evaluate a math expression using radare2's number parser. Useful for: 64-bit math, resolving addresses for symbols, avoiding hallucinated results.
| Parameter | Type | Description |
|---|---|---|
expression * | string | Math expression to evaluate (e.g., "0x100 + sym.flag - 4") |
file_path * | string | Path to the binary file |
Radare2_list_functions
List all functions discovered during analysis.
| Parameter | Type | Description |
|---|---|---|
file_path * | string | Path to the binary file |
filter | Regular expression to filter results | |
only_named | boolean | If true, exclude functions with numeric suffixes |
Radare2_list_functions_tree
List functions and their successors (call tree).
| Parameter | Type | Description |
|---|---|---|
file_path * | string | Path to the binary file |
Radare2_show_function_details
Display detailed information about a function.
| Parameter | Type | Description |
|---|---|---|
file_path * | string | Path to the binary file |
address | Function address (uses current if not specified) |
Radare2_get_current_address
Show the current seek position and function name.
| Parameter | Type | Description |
|---|---|---|
file_path * | string | Path to the binary file |
Radare2_get_function_prototype
Retrieve the function signature at the specified address.
| Parameter | Type | Description |
|---|---|---|
address * | string | Address of the function |
file_path * | string | Path to the binary file |
Radare2_set_function_prototype
Set the function signature (return type, name, arguments).
| Parameter | Type | Description |
|---|---|---|
address * | string | Address of the function |
file_path * | string | Path to the binary file |
prototype * | string | Function signature in C-like syntax |
Radare2_show_headers
Display binary headers and file information.
| Parameter | Type | Description |
|---|---|---|
file_path * | string | Path to the binary file |
Radare2_list_sections
Display memory sections and segments from the binary.
| Parameter | Type | Description |
|---|---|---|
file_path * | string | Path to the binary file |
Radare2_list_imports
List imported symbols. Note: Use list_symbols for addresses with sym.imp. prefix.
| Parameter | Type | Description |
|---|---|---|
file_path * | string | Path to the binary file |
filter | Regular expression to filter results |
Radare2_list_symbols
Show all symbols (functions, variables, imports) with addresses.
| Parameter | Type | Description |
|---|---|---|
file_path * | string | Path to the binary file |
filter | Regular expression to filter results |
Radare2_list_entrypoints
Display program entrypoints, constructors and main function.
| Parameter | Type | Description |
|---|---|---|
file_path * | string | Path to the binary file |
Radare2_list_libraries
List all shared libraries linked to the binary.
| Parameter | Type | Description |
|---|---|---|
file_path * | string | Path to the binary file |
Radare2_list_strings
List strings from data sections with optional regex filter.
| Parameter | Type | Description |
|---|---|---|
file_path * | string | Path to the binary file |
cursor | Pagination cursor (line number to start from) | |
detail | string | Detail level - 'full' (complete strings list) or 'summary' (categorized counts & sample) |
filter | Regular expression to filter results | |
page_size | integer | Number of lines per page (default: 1000, max: 10000) |
Radare2_list_all_strings
Scan the entire binary for strings with optional regex filter. More thorough than list_strings, but slower.
| Parameter | Type | Description |
|---|---|---|
file_path * | string | Path to the binary file |
cursor | Pagination cursor | |
detail | string | Detail level - 'full' (complete strings list) or 'summary' (categorized counts & sample) |
filter | Regular expression to filter results | |
page_size | integer | Number of lines per page |
Radare2_list_classes
List class names from various languages (C++, ObjC, Swift, Java, Dalvik).
| Parameter | Type | Description |
|---|---|---|
file_path * | string | Path to the binary file |
filter | Regular expression to filter results |
Radare2_list_methods
List all methods belonging to the specified class.
| Parameter | Type | Description |
|---|---|---|
classname * | string | Name of the class to list methods for |
file_path * | string | Path to the binary file |
Radare2_disassemble
Disassemble a specific number of instructions from an address. Use this to inspect a portion of memory as code without depending on function analysis boundaries.
| Parameter | Type | Description |
|---|---|---|
address * | string | Address to start disassembly |
file_path * | string | Path to the binary file |
detail | string | Detail level - 'full' (complete instructions) or 'summary' (instruction count & preview) |
num_instructions | integer | Number of instructions to disassemble (default: 10, max: 1000) |
Radare2_disassemble_function
Show assembly listing of the function at the specified address.
| Parameter | Type | Description |
|---|---|---|
address * | string | Address OR symbol name of the function to disassemble. Accepts hex addresses (e.g. '0x401000', '0x8d4') as well as function/symbol names (e.g. 'main', 'sym.secret_backdoor', 'sym.process_request'). Sy… |
file_path * | string | Path to the binary file |
cursor | Pagination cursor | |
detail | string | Detail level - 'full' (complete instructions) or 'summary' (instruction count & preview) |
format | string | Output format - 'compact' (compact instruction tuples [addr, mnemonic, ops, comment]) or 'raw' (raw visual text output). Default: 'compact'. |
page_size | integer | Number of lines per page |
Radare2_decompile_function
Show C-like pseudocode of the function at the given address. Use this to inspect code in a function. Do not run multiple times on the same offset. Includes smart line windowing and function summary header.
| Parameter | Type | Description |
|---|---|---|
address * | string | Address of the function to decompile |
file_path * | string | Path to the binary file |
cursor | Legacy pagination cursor (overridden by line_offset if provided) | |
detail | string | Detail level - 'full' (complete decompiled code) or 'summary' (signature, metrics & preview) |
line_offset | integer | Starting line offset for windowed pseudocode (default: 0) |
max_lines | integer | Maximum lines of pseudocode per window (default: 200) |
page_size | integer | Legacy page size (overridden by max_lines if provided) |
Radare2_list_decompilers
Show all available decompiler backends.
| Parameter | Type | Description |
|---|---|---|
file_path * | string | Path to the binary file |
Radare2_use_decompiler
Select which decompiler backend to use.
| Parameter | Type | Description |
|---|---|---|
file_path * | string | Path to the binary file |
name * | string | Decompiler name (ghidra, r2dec, pdc) |
Radare2_xrefs_to
Find all code references TO the specified address.
| Parameter | Type | Description |
|---|---|---|
address * | string | Address to check for cross-references (hex or symbol name) |
file_path * | string | Path to the binary file |
limit | integer | Maximum number of xrefs to return (default: 50) |
Radare2_rename_function
Rename the function at the specified address.
| Parameter | Type | Description |
|---|---|---|
address * | string | Address of the function to rename |
file_path * | string | Path to the binary file |
name * | string | New function name |
Radare2_rename_flag
Rename a flag (variable or data reference) at the specified address.
| Parameter | Type | Description |
|---|---|---|
address * | string | Address of the flag |
file_path * | string | Path to the binary file |
name * | string | Current flag name |
new_name * | string | New flag name |
Radare2_set_comment
Add a comment at the specified address.
| Parameter | Type | Description |
|---|---|---|
address * | string | Address to add comment |
file_path * | string | Path to the binary file |
message * | string | Comment text |
run_radare2
Execute vetted radare2 commands for binary triage.
| Parameter | Type | Description |
|---|---|---|
file_path * | string | |
r2_command * | string | |
max_output_size | integer | |
timeout | integer |
trace_execution_path
Trace function calls backwards from a target function (Sink) to find potential execution paths. This tool helps identify "Exploit Paths" by finding which functions call a dangerous target function (like 'system', 'strcpy', 'execve'). It performs a recursive cross-reference analysis (backtrace) to map out how execution reaches the target. **Use Cases:** - **Vulnerability Analysis**: Check if user input (main/recv) reaches 'system' - **Reachability Analysis**: Verify if a vulnerable function is actually called - **Taint Analysis Helper**: Provide the path for AI to perform manual taint checkin…
| Parameter | Type | Description |
|---|---|---|
file_path * | string | Path to the binary file |
target_function * | string | Name or address of the target function (e.g., 'sym.imp.system', '0x401000') |
max_depth | integer | Maximum depth of backtrace (default: 2, reduce for speed) |
max_paths | integer | Maximum number of paths to return (default: 5) |
prioritize_sinks | boolean | Prioritize paths through dangerous sink APIs (default: True) |
timeout | Execution timeout in seconds (uses dynamic timeout if None) |
generate_function_graph
Generate a Control Flow Graph (CFG) for a specific function. This tool uses radare2 to analyze the function structure and returns a visualization code (Mermaid by default) or PNG image that helps AI understand the code flow without reading thousands of lines of assembly.
| Parameter | Type | Description |
|---|---|---|
file_path * | string | Path to the binary file (must be in workspace) |
function_address * | string | Function address (e.g., 'main', '0x140001000', 'sym.foo') |
format | string | Output format ('mermaid', 'json', 'dot', or 'png'). Default is 'mermaid'. |
timeout | integer | Execution timeout in seconds |
analyze_xrefs
Analyze cross-references (xrefs) for a specific address using radare2. Cross-references show the relationships between code blocks - who calls this function (callers) and what it calls (callees). This is essential for: - Understanding program flow - Tracing data dependencies - Identifying attack surfaces - Reverse engineering malware C&C **xref_type Options:** - **"to"**: Show who references this address (callers/jumps TO here) - **"from"**: Show what this address references (calls/jumps FROM here) - **"all"**: Show both directions (complete relationship map)
| Parameter | Type | Description |
|---|---|---|
address * | string | Function or address to analyze (e.g., 'main', '0x401000', 'sym.decrypt') |
file_path * | string | Path to the binary file (must be in workspace) |
limit | integer | Maximum number of xref entries to return per direction (default: 50) |
timeout | integer | Execution timeout in seconds (default: 300) |
xref_type | string | Type of cross-references to show: 'all', 'to', 'from' (default: 'all') |
r2_decompile
Decompile a binary function to pseudo-C using the r2ghidra plugin. Uses the ``pdg`` command which invokes the embedded Ghidra decompiler engine inside radare2 — no separate Ghidra or JDK installation required. Includes smart line windowing and function summary header for token efficiency.
| Parameter | Type | Description |
|---|---|---|
file_path * | string | Path to the binary (must be inside the workspace). |
function_address * | string | Function to decompile — name (``main``) or hex address (``0x401000``). |
detail | string | Detail level - 'full' (complete pseudocode) or 'summary' (signature, metrics & preview) |
line_offset | integer | Starting line offset for windowed output (default: 0). |
max_lines | integer | Maximum number of lines to return (default: 200). |
timeout | integer | Maximum execution time in seconds (default 300). |
r2_recover_structures
Recover C struct layouts from a function's memory access patterns. Analyses local variables (``afvf``), function arguments (``afvj``), and cross-references (``axtj``) to infer struct field offsets and types.
| Parameter | Type | Description |
|---|---|---|
file_path * | string | Path to the binary (must be inside the workspace). |
function_address * | string | Function whose local variables / struct usage to analyse. |
timeout | integer | Maximum execution time in seconds. |
r2_analyze_function
Return full metadata for a binary function via radare2. Retrieves name, size, cyclomatic complexity, arguments, local variables, call targets, and cross-references using radare2's JSON APIs.
| Parameter | Type | Description |
|---|---|---|
file_path * | string | Path to the binary (must be inside the workspace). |
function_address * | string | Function name or hex address. |
timeout | integer | Maximum execution time in seconds. |
r2_get_call_graph
Generate a caller/callee call graph for a function. Uses radare2's ``agCd`` (call-graph dot) and ``axtj`` (cross-reference JSON) commands to build a structured graph.
| Parameter | Type | Description |
|---|---|---|
file_path * | string | Path to the binary (must be inside the workspace). |
function_address * | string | Root function name or hex address. |
depth | integer | Maximum call depth to traverse (default 2). |
timeout | integer | Maximum execution time in seconds. |
r2_simulate_patch
Simulate a byte-level patch at an address and re-decompile. Copies the binary to a temporary workspace cache file, opens that copy in write mode, applies ``patch_bytes`` at ``address``, then runs r2ghidra's ``pdg``. The original file remains read-only throughout the simulation.
| Parameter | Type | Description |
|---|---|---|
address * | string | Target address (e.g. ``0x401020``). |
file_path * | string | Path to the binary (must be inside the workspace). |
patch_bytes * | string | Hex string of bytes to write (e.g. ``"9090"`` for 2 NOPs). |
timeout | integer | Maximum execution time in seconds. |
r2_list_structures
List all saved C struct definitions for a binary.
| Parameter | Type | Description |
|---|---|---|
file_path * | string | |
limit | integer | |
offset | integer |
r2_get_structure
Retrieve a single saved struct definition by name.
| Parameter | Type | Description |
|---|---|---|
file_path * | string | |
name * | string |
r2_create_structure
Save (or replace) a C struct definition in the annotation DB.
| Parameter | Type | Description |
|---|---|---|
fields * | ||
file_path * | string | |
name * | string |
r2_list_types
List all custom type definitions saved for a binary.
| Parameter | Type | Description |
|---|---|---|
file_path * | string | |
limit | integer | |
offset | integer |
r2_list_bookmarks
List all saved bookmarks / address annotations for a binary.
| Parameter | Type | Description |
|---|---|---|
file_path * | string | |
category | ||
limit | integer | |
offset | integer |
r2_add_bookmark
Add (or update) an annotated bookmark at a binary address.
| Parameter | Type | Description |
|---|---|---|
address * | string | |
comment * | string | |
file_path * | string | |
category | string |
r2_read_memory
Read raw bytes from a binary at a given virtual address.
| Parameter | Type | Description |
|---|---|---|
address * | string | |
file_path * | string | |
size | integer |
emulate_machine_code
Emulate machine code execution using radare2 ESIL (Evaluable Strings Intermediate Language). This tool provides safe, sandboxed emulation of binary code without actual execution. Perfect for analyzing obfuscated code, understanding register states, and predicting execution outcomes without security risks.
| Parameter | Type | Description |
|---|---|---|
file_path * | string | Path to the binary file (must be in workspace) |
start_address * | string | Address to start emulation (e.g., 'main', '0x401000', 'sym.decrypt') |
instructions | integer | Number of instructions to execute (default 50, max 1000) |
timeout | integer | Execution timeout in seconds |
get_system_time
Get accurate system timestamp from the server. Returns OS-level time data to prevent AI date hallucination. Includes multiple formats (ISO, Unix, human-readable) and timezone info. Returns: JSON with report_id, date formats, time formats, timezone info
set_timezone
Set the default timezone for timestamps.
| Parameter | Type | Description |
|---|---|---|
timezone * | string | Timezone name (UTC, Asia/Seoul, Asia/Tokyo, etc.) |
get_timezone_info
Get current timezone configuration and available options. Returns: JSON with current timezone, offset, and all available timezones
start_report_session
Start a new malware analysis session. Automatically tracks start time, sample hashes, IOCs, and MITRE techniques.
| Parameter | Type | Description |
|---|---|---|
analyst | string | Name of the analyst |
malware_family | string | Known malware family name |
sample_path | string | Path to the malware sample to analyze |
severity | string | Initial severity (low, medium, high, critical) |
tags | string | Comma-separated tags |
end_report_session
End the current analysis session.
| Parameter | Type | Description |
|---|---|---|
session_id | string | Session ID to end (uses current if not specified) |
status | string | Final status - "completed" or "aborted" |
summary | string | Brief summary of findings |
get_report_session_status
Get current session information and collected data.
| Parameter | Type | Description |
|---|---|---|
session_id | string | Session ID to query (uses current if not specified) |
list_report_sessions
List all analysis sessions with their status and duration. Returns: List of all sessions with summary information
add_ioc
Add an Indicator of Compromise to the current session.
| Parameter | Type | Description |
|---|---|---|
ioc_type * | string | Type of IOC (hashes, ips, domains, urls, files, registry, mutexes, emails) |
value * | string | The IOC value |
session_id | string | Session ID (uses current if not specified) |
add_analysis_note
Add a timestamped note to the analysis session.
| Parameter | Type | Description |
|---|---|---|
note * | string | The analysis note |
category | string | Note category (general, finding, todo, warning) |
session_id | string | Session ID (uses current if not specified) |
add_mitre_technique
Add a MITRE ATT&CK technique to the session.
| Parameter | Type | Description |
|---|---|---|
tactic * | string | MITRE tactic (e.g., "Defense Evasion", "Persistence") |
technique_id * | string | MITRE ID (e.g., "T1055", "T1547.001") |
technique_name * | string | Technique name |
session_id | string | Session ID (uses current if not specified) |
set_severity
Update the severity level of the analysis.
| Parameter | Type | Description |
|---|---|---|
severity * | string | Severity level (low, medium, high, critical) |
session_id | string | Session ID (uses current if not specified) |
create_analysis_report
Generate a comprehensive analysis report.
| Parameter | Type | Description |
|---|---|---|
analyst | string | Analyst name shown in report header. Default: "Security Researcher". |
classification | string | Report classification level. Options: "TLP:RED", "TLP:AMBER" (default), "TLP:GREEN", "TLP:WHITE". |
output_format | string | Output format. Must be "markdown" (default) or "json". IMPORTANT: The parameter name is 'output_format', NOT 'format'. |
sample_path | string | Path to the sample file. Only needed when not using a session (session_id takes precedence when provided). |
session_id | string | Session ID returned by start_report_session. Uses the most recent active session if not specified. |
template_type | string | Report template type. Options: - "full_analysis" (default) — complete technical report - "executive_summary" — high-level management brief - "ioc_report" — IOC-focused export -… |
generate_vex_report
Generate a CSAF 2.0 VEX JSON report from vulnerability findings. VEX (Vulnerability Exploitability eXchange) is a format for sharing the exploitability status of a software product in a machine-readable way.
| Parameter | Type | Description |
|---|---|---|
product_name * | string | Name of the analyzed binary or product. |
product_version * | string | Version, hash, or build identifier of the product. |
vulnerabilities * | string | JSON string containing a list of vulnerability objects. Each object should have: - id: str (e.g., "CVE-2023-1234") - description: str - confidence: str ("confirmed", "likely", "false_positive", etc.)… |
document_title | string | Title of the generated document. |
generate_sigma_rule
Generate a Sigma rule (YAML) for SIEM integration based on extracted IOCs or API calls.
| Parameter | Type | Description |
|---|---|---|
title * | string | Title of the Sigma rule |
api_calls | List of API functions to detect (e.g., VirtualAlloc, CreateRemoteThread) | |
category | string | Logsource category (e.g., process_creation, network_connection) |
description | string | Description of the rule |
iocs | List of IP addresses, URLs, or file hashes to detect | |
level | string | Severity level (low, medium, high, critical) |
product | string | Logsource product (e.g., windows, linux) |
get_job_result
Retrieve the status and result of a background job from the task queue.
| Parameter | Type | Description |
|---|---|---|
job_id * | string | The ID of the queued job to check. |