scripting-ida-with-idapython

scripting-ida-with-idapython is a skill for Claude Code, Codex from meltedinhex/analyst-ai-pack. It costs 75 tokens per session (724 once invoked), scanned A, original, Apache-2.0.

An automation workflow for IDA Pro, a program used to inspect compiled software, using Python scripts. It can generate scripts for listing functions, decoding strings, renaming functions, and exporting results without opening the graphical interface.

In plain words
What is it for?
Use it to create IDAPython scripts, process samples with IDA’s headless command, and export analysis data such as functions and strings.
Why use it?
It removes repetitive manual work when examining many files. Batch mode makes the same static analysis steps repeatable across samples.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to create IDAPython scripts, process samples with IDA’s headless command, and export analysis data such as functions and strings.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/meltedinhex/analyst-ai-pack/scripting-ida-with-idapython
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 meltedinhex/analyst-ai-pack --skill scripting-ida-with-idapython
Clone the repo
git clone --depth 1 https://github.com/meltedinhex/analyst-ai-pack

Made for: Claude Code, Codex.

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 scripting-ida-with-idapython

README.md
[![agentmods](https://agentmods.dev/badge/skills/meltedinhex/analyst-ai-pack/scripting-ida-with-idapython/github.svg)](https://agentmods.dev/skills/meltedinhex/analyst-ai-pack/scripting-ida-with-idapython)
Your own site
<a href="https://agentmods.dev/skills/meltedinhex/analyst-ai-pack/scripting-ida-with-idapython"><img src="https://agentmods.dev/badge/skills/meltedinhex/analyst-ai-pack/scripting-ida-with-idapython/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 scripting-ida-with-idapython

Your own site · 80×15
<a href="https://agentmods.dev/skills/meltedinhex/analyst-ai-pack/scripting-ida-with-idapython"><img src="https://agentmods.dev/badge/skills/meltedinhex/analyst-ai-pack/scripting-ida-with-idapython.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 75 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 724 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.
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.00075 $0.00724
Opus 5 $0.00037 $0.00362
Sonnet 5 $0.00015 $0.00145
Haiku 4.5 $0.00007 $0.00072

Measured 5d ago against content hash 5fa2e2d10f37, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

scripting-ida-with-idapython 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 5d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/analyst.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

skills/scripting-ida-with-idapython/SKILL.md · 93 lines

What it actually says

Scripting IDA Pro With IDAPython

When to Use

  • You use IDA Pro and want to automate repetitive analysis — enumerate functions, decode strings, apply signature-based renames, and export results — via IDAPython.
  • You need a headless idat batch invocation to process many samples.

Do not use IDA's debugger (-r) on untrusted samples on your host — these scripts drive static analysis. Work in an isolated environment.

Prerequisites

  • IDA Pro with IDAPython, and the samples to analyze.

Safety & Handling

  • IDA static analysis does not execute the sample; keep the input directory isolated.

Workflow

Step 1: Generate an analysis script

python scripts/analyst.py script --emit functions,strings --out ida_export.py

Emits an IDAPython script using the real API (idautils.Functions, idc.get_func_name, idautils.Strings) that writes results to JSON next to the IDB.

Step 2: Generate the headless batch command

python scripts/analyst.py batch --script ida_export.py --input sample.exe

Builds the idat -A -S"script" input invocation (auto-mode, run script, no UI) for batch runs.

Step 3: Run and collect

Execute the batch command per sample and aggregate the JSON exports.

Step 4: Iterate

Extend the generated script with signature renames (FLIRT) and decompiler (ida_hexrays) output as needed.

Validation

  • The generated script uses real IDAPython API calls.
  • The batch command uses -A (auto) and -S (script) correctly.
  • JSON output is produced per processed IDB.

Pitfalls

  • IDAPython API drift between IDA 7.x and 9.x — target your version.
  • Forgetting -A leaves IDA waiting for interactive input in batch.
  • Decompiler calls require a licensed Hex-Rays decompiler.

References

Files

What ships with it

3 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. 5d ago First seen · 93 lines · 75 tokens per session scan A 5fa2e2d10f37

Subscribe to this mod's changes

scripting-ida-with-idapython is a skill published in the GitHub repository meltedinhex/analyst-ai-pack (22 stars, last pushed 2mo ago), licensed Apache-2.0. It adds 75 tokens to every session and 724 once invoked, about $0.0004 per session on Opus 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-09-03.

Related

Other skills, from other repositories

analyzing-malicious-pdf-with-peepdf

Perform static analysis of malicious PDF documents using peepdf, pdfid, and pdf-parser to extract embedded JavaScript, shellcode, and suspicious objects.

pinkpixel-dev/skills-collection-1 · 43 tokens

analyzing-golang-malware-with-ghidra

Reverse engineer Go-compiled malware in Ghidra by parsing Go buildinfo and pclntab structures, recovering stripped/obfuscated function names (e.g. via GoResolver), and extracting embedded module/dependency strings and types from Go binaries. Use when analyzing a Go-language malware sample, deobfuscating a…

mukul975/Anthropic-Cybersecurity-Skills · 95 tokens

analyzing-malicious-pdf-with-peepdf

Perform static analysis of malicious PDF documents using peepdf, pdfid, and pdf-parser to extract embedded JavaScript, shellcode, and suspicious objects. Use when triaging a suspicious PDF attachment from a phishing email, analyzing a PDF-based exploit document, or building detection signatures for weaponized PDF…

mukul975/Anthropic-Cybersecurity-Skills · 73 tokens

IDA-Skill

A skill for reverse-engineering software with IDA Pro, a program for examining compiled applications. It uses IDAPython scripts to inspect disassembly, decompiled code, strings, imported functions, and references between code locations.

miunasu/IDA-Skill · 40 tokens

analyzing-malicious-pdf-with-peepdf

A Chinese-language skill for examining suspicious PDF files with peepdf, pdfid, and pdf-parser. It is intended for static malware analysis, which studies a file without running it.

killvxk/cybersecurity-skills-zh · 50 tokens

analyzing-malicious-pdf-with-peepdf

Perform static analysis of malicious PDF documents using peepdf, pdfid, and pdf-parser to extract embedded JavaScript, shellcode, and suspicious objects.

26zl/cybersec-toolkit · 43 tokens