idapython

Execute IDAPython snippets and files within SQL environments.

38|7|Updated Mar 1, 2026
One-click install
npx skills add https://github.com/allthingsida/idasql-skills --skill idapython-allthingsida
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: idapython
Source: https://github.com/allthingsida/idasql-skills/tree/main/plugins/idasql/skills/idapython
Command: npx skills add https://github.com/allthingsida/idasql-skills --skill idapython-allthingsida

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill bridges the gap between SQL queries and IDA Pro's powerful Python scripting capabilities, allowing you to execute IDAPython code directly within your SQL workflow for advanced analysis and automation.

Core Features & Use Cases

  • Snippet Execution: Run small Python code snippets directly within SQL queries.
  • File Execution: Execute entire Python scripts stored on your system.
  • Sandbox Isolation: Isolate Python execution environments using sandbox keys for state persistence and security.
  • Use Case: Automatically extract processor-specific register names by executing an IDAPython snippet that queries the IDA SDK, and then process this list of names using SQL.

Quick Start

Enable IDAPython execution by running the command: PRAGMA idasql.enable_idapython = 1;

Frequently Asked Questions about idapython

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I execute IDAPython code within an SQL environment?

To execute IDAPython code within an SQL environment, enable the feature using the command PRAGMA idasql.enable_idapython = 1. This allows you to run Python snippets or full script files directly through SQL queries.

Can I use IDA Pro SDK automation tools directly inside SQL queries?

Yes, you can leverage IDA Pro SDK automation inside SQL queries. By running IDAPython snippets, you can access the SDK for in-depth analysis, extract processor-specific data, and process the results using SQL.

What is the best way to run an entire Python script file for reverse engineering from SQL?

The best way to run an entire Python script file for reverse engineering from SQL is using this Skill's file execution capability. It executes complete scripts stored on your system while maintaining access to IDA Pro's SDK.

Does IDAPython execution support sandbox isolation for managing Python state?

Yes, IDAPython execution supports sandbox isolation. You can use sandbox keys to isolate Python execution environments, ensuring state persistence and security across multiple calls within your SQL workflow.

How does executing Python snippets via SQL help with IDA Pro analysis?

Executing Python snippets via SQL bridges SQL queries and IDA Pro scripting, allowing you to automatically extract data like processor-specific register names from the IDA SDK and immediately process that list using SQL.