pyghidra-scripting

pyghidra-scripting is a skill for Claude Code from cyberkaida/reverse-engineering-assistant. It costs 209 tokens per session (4,177 once invoked), scanned A, original, Apache-2.0.

A skill for running Python scripts inside an open Ghidra session through ReVa. Ghidra is a tool for examining compiled programs, and PyGhidra lets Python use its analysis tools.

In plain words
What is it for?
Finding, reading, creating, editing, and running Python scripts against the program currently open in Ghidra.
Why use it?
It lets an assistant inspect or modify the current program through scripts when the dedicated ReVa tools do not cover the needed operation.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the ReVa plugin — 6 skills, 1 MCP server shipped together

Good fit Finding, reading, creating, editing, and running Python scripts against the program currently open in Ghidra.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/cyberkaida/reverse-engineering-assistant/pyghidra-scripting
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add cyberkaida/reverse-engineering-assistant --skill pyghidra-scripting
Clone the repo
git clone --depth 1 https://github.com/cyberkaida/reverse-engineering-assistant

Made for: Claude Code.

Or install ReVa, the plugin that ships this one along with the rest of its 6 skills, 1 MCP server.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for pyghidra-scripting

README.md
[![agentmods](https://agentmods.dev/badge/skills/cyberkaida/reverse-engineering-assistant/pyghidra-scripting/github.svg)](https://agentmods.dev/skills/cyberkaida/reverse-engineering-assistant/pyghidra-scripting)
Your own site
<a href="https://agentmods.dev/skills/cyberkaida/reverse-engineering-assistant/pyghidra-scripting"><img src="https://agentmods.dev/badge/skills/cyberkaida/reverse-engineering-assistant/pyghidra-scripting/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for pyghidra-scripting

Your own site · 80×15
<a href="https://agentmods.dev/skills/cyberkaida/reverse-engineering-assistant/pyghidra-scripting"><img src="https://agentmods.dev/badge/skills/cyberkaida/reverse-engineering-assistant/pyghidra-scripting.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 209 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,177 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00209 $0.04177
Opus 5.5 $0.00084 $0.01671
Sonnet 5.5 $0.00042 $0.00835
Haiku 4.5 $0.00021 $0.00418

Measured 1mo ago against content hash a35e374ccf93, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

pyghidra-scripting scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

ReVa/skills/pyghidra-scripting/SKILL.md · 241 lines

How it starts

The opening of the file, as written. The whole thing — 241 lines — stays where its author put it; the contents beside it link to each section on GitHub.

PyGhidra scripting via ReVa

ReVa exposes five MCP tools under the scripts provider that let an assistant write, edit, run, and inspect Python scripts inside the same Ghidra session ReVa is serving. The Python code runs under PyGhidra (CPython 3 + JPype), so it has the full Ghidra Java API available — the FlatProgramAPI, DecompInterface, FunctionManager, everything.

This skill teaches when to reach for these tools, how to structure the Python you send to run-script, and the pitfalls that bite in practice.

The five tools at a glance

Tool Purpose Use when
run-script Execute Python against a program. Inline code, or by scriptPath / scriptName. The dedicated ReVa MCP tools don't cover what you need, or you want one tight pass over the program.
list-scripts Enumerate scripts across registered directories. Filterable by name/path; paginated. Discovering what's already saved before writing a new one.
read-script cat -n view of a script with offset / limit and a truncated flag. Reading an existing script before editing it. The numbered output is what edit-script lines up against.
write-script Create a new .py file (or full overwrite with overwrite: true). User-writeable dirs only. Saving a reusable script. Never reach for this just to bundle inline code — use run-script with code for one-shot use.
edit-script old_string → new_string replacement. Errors if old_string matches multiple places unless replace_all: true. Iterating on an existing script. Pair with read-script to see line context first.

Reach-for-it triggers

run-script is the escape hatch. Use it when:

  • You need to run a custom predicate over every function/symbol/instruction and the existing list/find tools don't filter the right way.
  • You need to combine multiple Ghidra API calls into one operation that would otherwise take many MCP round-trips.
  • You want to use a Ghidra API ReVa doesn't expose — e.g. DecompInterface low-level features, PCode analysis, custom AddressSet arithmetic, the data flow API directly, BinaryReader, etc.
  • You're prototyping; once it works and is reusable, save it with write-script.

Read the full file on GitHub · 241 lines

Files

What ships with it

5 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 241 lines · 209 tokens per session scan A a35e374ccf93

Subscribe to this mod's changes

pyghidra-scripting is a skill published in the GitHub repository cyberkaida/reverse-engineering-assistant (879 stars, last pushed today), licensed Apache-2.0. It adds 209 tokens to every session and 4,177 once invoked, about $0.0008 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories