National Cyber Warfare Foundation (NCWF)login

Inside IDAChef: CyberChef-style recipes baked directly into IDA Pro


0 user ratings
2026-10-29 07:32:07
milo
Red Team (CNA)
"Inside

IDAChef embeds a CyberChef-style recipe engine inside IDA Pro 9.x, letting reverse engineers chain 289 encoding, cipher, compression and hashing operations on database bytes during authorized binary analysis.








ToolExpOrx/IDAChef — a CyberChef-style recipe/operation toolkit embedded in IDA Pro 9.x
CategoryReverse engineering plugin / data transformation toolkit (Python, Apache-2.0)
Primary UseDecoding, decrypting and transforming strings and bytes from an IDA database — XOR, Base64, gzip, hashes — then patching results back into the binary or annotating them as comments
Safe UseStatic analysis of binaries you own or are contractually authorized to assess — malware research in isolated labs, CTF work, and internal software auditing
Telemetry NotePurely local tooling: it modifies only the IDA database (patches/comments) and prints bake logs to the IDA output window; no network calls beyond optional pycryptodome installation, leaving no footprint on analyzed systems

Anyone who has spent an afternoon reverse engineering a string obfuscation routine knows the workflow tax: dump bytes out of IDA Pro, paste them into CyberChef in a browser, fiddle with a recipe, paste the result back, repeat. IDAChef, from ExpOrx/IDAChef, eliminates that round trip by embedding a CyberChef-style operation engine directly inside IDA Pro 9.x as a dockable plugin written in Python. The premise is simple and the execution thorough: you build multi-step transformation chains — decoding, encryption, compression, hashing, extraction — and run them against bytes or strings pulled straight from your IDA database, then write results back into the binary or drop them as comments. For authorized analysts working through packed or obfuscated samples, this collapses an entire category of context-switching into a single hotkey.


The UI follows CyberChef's three-panel grammar almost beat for beat, which flattens the learning curve considerably. On the left sits a searchable, categorized operation browser where double-clicking an operation adds it to your recipe. The center column is the ordered recipe list with per-step argument editing and Up/Down/Remove/Clear controls for rearranging. On the right, the I/O panel offers multiple ways to source input: paste text directly, Get Selected Bytes from the Hex View or disassembly, Get String @ Cursor — with both ASCII and UTF-16LE detection — or From Clipboard. Output can be rendered as auto hex/text, hex, UTF-8, Latin-1, Base64, decimal bytes, a C array, Python bytes, or UTF-16LE text, and fed back via Output → Input for iterative analysis.


What elevates this from a curiosity to a daily driver is the IDA integration on the output side. Patch Bytes at Address writes the baked result directly into the IDA database at a specified address, and Set Comment at Address annotates a location with the decoded text — the classic move when you have just cracked a string decoder and want to label every obfuscated literal with its plaintext without leaving the disassembly. The README also describes batch processing: run a recipe across a whole address range of strings and patch the results back in one pass. That is exactly the tedious, error-prone manual labor that string-deobfuscation sessions generate, and automating it inside the tool is the strongest architectural argument for the plugin.


The headline number is 289 operations across 12 categories, and the distribution is worth examining because it reveals the author's priorities. Data format operations (50) cover the expected hex, Base64/32/45/58/62/85, binary, octal, charcode, URL encoding, HTML entities, Morse, Punycode, BCD and endian swaps. Encryption and encoding (51) ranges from the workhorses — byte and word-wise XOR, XOR Brute Force with scoring and crib support, ROT13/ROT47/ROT8000, RC4, AES in CBC/ECB/CTR/GCM, DES/3DES, Blowfish, RC2, ChaCha20, Salsa20 and the TEA family — through key derivation with PBKDF2 and HKDF. Hashing (34) includes the SHA family including real FIPS-180 SHA-0, Keccak, BLAKE2, an alphabet of CRCs including Modbus and XMODEM variants, NT Hash and LM Hash, plus entropy and frequency distribution, which is handy for judging whether a blob is encrypted or merely compressed.


The extractor and networking categories show a clear malware-analysis orientation. Thirteen extractors pull IPv4/IPv6 addresses, URLs, emails, domains, MAC addresses, file paths, hashes and dates out of decoded blobs, with RAKE keyword extraction on top. Eighteen networking operations include Defang/Refang IP & URL — a thoughtful nod to responsible reporting hygiene — HTTP response dechunking, header stripping, IPv4/TCP/UDP header parsing, CIDR range handling, and URI parsing. When a sample decodes to a config blob, you can go from ciphertext to a defanged IOC list without ever leaving the widget, which is precisely the moment this tool was built for.


Two engineering details deserve specific praise. First, the zero-dependency core: over 100 operations — all the encodings, XOR, gzip/zlib/lzma, SHA*, CRC, HMAC and the regex extractors — run on the Python standard library alone. Only AES/DES/RC4-family ciphers want pycryptodome, installed optionally into IDA's bundled Python with a single pip invocation, for example "/python3/python.exe" -m pip install pycryptodome. Second, the argument UI shows genuine field experience: AutoGrowLineEdit fields expand up to 520px so a 64-character hex key stays fully visible, and key fields display live byte-length hints like "32 chars → 16 bytes as Hex (AES-128 / DES3-ok)", turning green when the length matches a recognized key size. Short option lists of six choices or fewer render as radio buttons so every alternative is visible at a glance.


The Formula operation is the power-user gem. It compresses byte-level chains into a single step using an expression syntax: FromHex+XOR(0x55)+ADD(3) decodes hex, XORs with 0x55, and adds 3 modulo 256 in one shot; FromBase64+NOT+ROL(3) chains a decode, bitwise NOT, and rotate-left. The supported byte-level vocabulary is XOR, ADD, SUB, AND, OR, NOT, ROL, ROR, SHL, SHR, MUL and MOD, with hex or decimal keys and cyclic repetition for multi-byte keys. This maps almost one-to-one onto the arithmetic obfuscation patterns found in real packers and droppers, where a decoder stub is often just a handful of these primitives applied in sequence.


Interoperability with its ancestor is handled properly. Recipes serialize to JSON via Save Recipe/Load Recipe, and — notably — Load Recipe accepts recipes exported from CyberChef itself, mapping positional arguments onto IDAChef's schemas. That means an analyst's accumulated collection of CyberChef recipe files remains portable into the IDA-embedded workflow, which is the kind of migration path that decides whether a tool gets adopted. Live Auto Bake recomputes the entire chain on every parameter change, and each bake logs input, per-step output and final result to IDA's output window, truncated at 300 characters with step-indexed error messages.


Installation is manual but clean: copy both idachef_plugin.py and the idachef/ folder into the platform-appropriate IDA plugins directory — %APPDATA%\Hex-Rays\IDA Pro\plugins\ on Windows, ~/Library/Application Support/Hex-Rays/IDA Pro/plugins/ on macOS, ~/.idapro/plugins/ on Linux — then restart IDA and invoke the widget via Edit → Plugins → IDAChef or Ctrl-Alt-C. The source tree is sensibly organized into core/ (recipe, formula and operation plumbing), operations/ split by domain, and a ui/ layer with qt_compat.py handling Qt version differences, which suggests the plugin is meant to be extended rather than merely consumed — the README even documents how to add new operations.


At 22 stars the project is young and niche by nature, since it presupposes an IDA Pro 9.x license, but within that audience it addresses a real and recurring friction point. It is a local, offline, read-and-annotate tool: appropriate solely for analyzing software you own or are authorized to assess, such as malware in isolated research environments, CTF challenges, or internal code audits. The observability note cuts both ways — because everything happens inside the IDA database, defenders and reviewers can audit exactly what was patched and commented. For practitioners whose day involves peeling layers off obfuscated binaries, IDAChef is the kind of glue tool that quietly earns a permanent hotkey.



Official project repository for ExpOrx/IDAChef.

Download Tool

Educational analysis for authorized security professionals. Use only in controlled, authorized environments.






Source: OffensiveSec
Source Link: https://www.offsecblog.com/2026/10/inside-idachef-cyberchef-style-recipes.html


Comments
new comment
Nobody has commented yet. Will you be the first?
 
Forum
Red Team (CNA)



Copyright 2012 through 2026 - National Cyber Warfare Foundation - All rights reserved worldwide.