Skip to content
KitploitKITPLOIT
ToolsExploitsBlog
Log in
Submit
ToolsExploitsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

FeedsContactPrivacy© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
ida-efiutils — Some scripts for IDA Pro to assist with reverse engineering EFI binaries | Kitploit
Tools/GitHubGitHub/snare/ida-efiutils
Embedded Systems SecurityReverse EngineeringHardware & IoT SecurityBinary AnalysisFirmware Analysis
GitHubsnare/ida-efiutils

ida-efiutils

Some scripts for IDA Pro to assist with reverse engineering EFI binaries

View Repository
309674212 years agoReviewed by Kitploit
Share

EFI scripts for IDA Pro

Some IDA scripts to assist with reverse engineering EFI executables.

This package contains the following files:

  1. efiutils.py - IDAPython module with some helper functions

  2. efiguids.py - A collection of known GUIDs for EFI protocols

  3. efiguids_ami.py - A collection of known GUIDs for protocols used in the AMI BIOS

  4. behemoth.h - A giant header containing a collection of type and structure definitions for EFI

  5. structs.idc - An IDC script containing some struct definitions (superseded by behemoth.h)

  6. te_image.bt - An 010 Editor template for TE binary images

  7. te_loader.py - An IDA Pro loader script for TE binary images

This is my first attempt at IDA scripting, so please forgive me and let me know if I've reinvented wheels/done anything silly.

Functions

The main useful functions are described below. See code and docstrings for more information on other functions.

rename_tables()

Finds the first entry point for the binary, tries to track the parameters that were passed to the entry point function and rename global variables in which the key EFI tables are stored. The following renaming operations are performed:

  1. Global where ImageHandle ends up is renamed to gImageHandle.

  2. Global where SystemTable ends up is renamed to gSystemTable.

  3. Global where SystemTable->BootServices ends up is renamed to gBootServices.

  4. Global where SystemTable->RuntimeServices ends up is renamed to gRuntimeServices.

Call instructions will only be followed one level deep, as most executables copy the table references in the entry point or a function called from the entry point. Change MAX_STACK_DEPTH if necessary.

update_structs()

Finds cross-references to tables renamed above, and updates their names to be struct offsets from the appropriate structs. If rename_tables() failed you'll need to rename things manually as above for this to work properly.

For example:

    mov     rax, cs:qword_whatever
    call    qword ptr [rax+150h]

Becomes:

    mov     rax, cs:gBootServices
    call    [rax+EFI_BOOT_SERVICES.UninstallMultipleProtocolInterfaces]

rename_guids()

Finds GUIDs in data segments and renames them. 470 protocol GUIDs were pulled out of the TianoCore source, and proprietary Apple (and other vendor) GUIDs will be added as they are encountered.

go()

Convenience method that does all of the above.

Usage

  1. Load up your EFI binary in IDA Pro

  2. Import behemoth.h to define the necessary data structures

  3. Add the structures from local types to your IDB

  4. Run efiutils.py to add it to python's path (or do this by some other method)

  5. Have a look at the code/docstrings, but probably:

     import efiutils; efiutils.go()
    

To use the te_loader.py TE image loader, install it as you would any other loader. On OS X this is done by copying or symlinking it inside the loaders folder at idaq.app/Contents/MacOS/loaders/.

Download Tool

Most Popular

View all →

Discover the most used tools by our community.

  • 1

    ghostlock-app

    yukonga/ghostlock-app

    One-tap Android kernel exploit app for CVE-2026-43499, providing privilege escalation via kernel module loading, with offset extraction and on-device analysis tools.

    951
  • 2

    wifit3

    derv82/wifit3

    Wifite but USB-only & cross-platform.

    743
  • 3

    OsintHunter

    letox4/osinthunter

    🎯 The ultimate OSINT toolkit: investigation graph, confidence scoring, alias families, map, timeline and reports. 49 modules, 400+ sites, no API keys required.

    668
  • 4

    jumpserver

    jumpserver/jumpserver

    JumpServer is an open-source Privileged Access Management (PAM) platform that provides DevOps and IT teams with on-demand and secure access to SSH, RDP, Kubernetes, Database and RemoteApp endpoints through a web browser.

    492
  • 5

    SafeLine

    chaitin/safeline

    Self-hosted WAF and reverse proxy that filters malicious HTTP traffic, blocks SQL injection, XSS, and bot attacks, with rate limiting and dynamic HTML/JS encryption.

    446
  • 6

    mcp-reverse

    1llu50ry/mcp-reverse

    MCP server exposing 180+ reverse-engineering tools that aggregate Ghidra, IDA, x64dbg, Frida and 56 other backends with native binary parsers and a 4,200-skill knowledge base.

    337

Explore all tools

Browse our collection of tools

View all tools →