Binary Ninja Blog


Supporting a processor in Binary Ninja is about more than teaching a disassembler its opcodes. Our Architecture API lets plugins describe how instructions interact across parallel packets, pipeline stages, and entire functions. For Digital Signal Processors (DSPs), that flexibility is the difference between recognizing instructions and recovering the program they actually execute. For background on custom control-flow recovery, I recommend reading my earlier post on function-level basic block analysis.

In this post, we’ll demonstrate how we used our API to model Texas Instruments TMS320 C6x and produce useful decompilation from its exposed instruction pipeline. We’ll start with parallel packets and compact instruction encodings, then work through loads whose results arrive several cycles later, branches issued in other branches’ delay slots, and software-pipelined loops. Even a block containing only a NOP can require context from earlier blocks to recover its outgoing control flow.

For reverse engineers, the payoff is being able to follow calls, assignments, and loops instead of manually untangling instruction schedules. For architecture plugin authors, we’ll show how context-aware control-flow recovery, lifting, and disassembly make that possible – and how the same APIs can accommodate execution models that don’t fit an instruction-at-a-time approach.

Read article

Earlier this year, I showed how to break encrypted USB drives with time-travel debugging (slides) at RE//verse. After having a lot of recent success with AI-assisted reverse engineering and vulnerability research, I wanted to see how well AI could handle the same tasks.

The results exceeded my expectations. For one encrypted USB drive, the investigation uncovered a backdoor that let me decrypt files with alternative passwords. AI also reproduced my earlier research in seven minutes using static analysis. I tried it on two more USB-protection products I had not studied before, and it broke those too.

Read article

Caped Binja flying over the city. >

We’re back with a small R2 update for those who only use our stable branch. This R2 improves on our Krypton 6.0 release with crash fixes, hardening of the PE and ELF loaders, Linux compatibility improvements, as well as bug-fixes for the MSP430 architecture, DWARF, Mach-O, Ghidra Export, and the debugger.

As always, customers with active support on the development branch have access to these changes and more.

Read article

Binary Ninja’s Time Travel Debugging integration is amazing. A common question I get asked is why you have to install WinDbg from within Binary Ninja instead of using an existing version from the Microsoft Store.

The short answer is that the WinDbg DLLs in C:\Program Files\WindowsApps cannot be loaded by binaryninja.exe.

But why not?

Read article

I recently stayed at an vacation rental with a strange Wi-Fi setup. After I selected the network (SSID) and entered the WPA2 password, I was presented with a captive portal asking for a bunch of information instead of being given Internet access:

A reconstructed StayFi captive portal with property-specific content replaced by placeholders

This immediately caught my eye. Captive portals are common at hotels or on open networks, but I had not expected one at this vacation rental after entering the Wi-Fi password. So I decided to find out what was going on.

Read article

In Binary Ninja’s debugger, when you set a breakpoint and add a condition like rax == 0x1234, it just works. Let’s take a look into how that works and what sorts of conditions you can use.

This post tells the story of the conditional breakpoint with a side-quest to explore Binary Ninja’s expression parser which is the feature that makes it possible.

Read article

Caped Binja flying over the city. >

Binary Ninja 6.0 (Krypton) is here! This is a major version bump, and it’s worth the wait. We’ve shipped a brand new MCP server, a new Binary Similarity feature, and a complete overhaul of the Plugin Manager as the new Extension Manager. Under the hood, you’ll find major improvements to performance and memory usage, a refactored calling convention to properly represent structure parameters and return values, and added HLIL structure initializers. On the scripting side, we’ve updated the bundled Python version to 3.13 and included it on Linux. We’ve also added a new TMS320C6x architecture, a new user wizard to ease migration, and a long list of debugger improvements. And those are still only some of the new features detailed below.

We’re also improving the free edition. We’ve added the highly requested armv8 (AArch64) architecture as well as the above-mentioned MCP server. Additionally, we’re also shipping a new Linux ARM64 build of the free version. Next, as previously announced, with this release we’re putting our new pricing and packaging into effect. Finally, thanks to everyone who participated in our 10 year celebration! We’re looking forward to another decade!

Note: A second stable (R2) with stability improvements and bug fixes is now available.
Read article

Is Microsoft shipping a hidden binary to your computer – inside the registry?

A few weeks ago I was watching a YouTube video that covered my earlier research on the UCPD driver, and for a split second I saw a registry key that I have been searching for an example of for some time. I contacted the video’s author and obtained the key from his machine. It was Base64 encoded and to my surprise, once I decoded it, it started with MZ.

Sure enough, it’s a valid Windows executable sitting inside a registry key. This post is the story of both taking it apart as well as the bug I found that means the whole mechanism is dead anyway.

Read article

Ten years snuck up on us. It was only a few months ago that we realized how close we were to ten years of shipping Binary Ninja to customers. It’s been an exciting journey and we’ve seen a lot of changes along the way. Our goal was nothing short of shaking up the decompilation market. We wanted to introduce some new ideas and challenge the status quo in how decompilation was done.

Read article

When we kicked off our tenth anniversary a few days ago, we promised a dedicated post with specifics behind our upcoming pricing changes and the rationale behind them. This is it! Much like we’ve done previously, we’ll walk through the changes and give you plenty of time beforehand.

The short version:

  • Non-Commercial is getting cheaper
  • Commercial is going up in price
  • Our “introductory” Ultimate pricing is ending
  • The renewal discount is changing and rewards auto-renewal
  • Enterprise is moving from one-size-fits-all bundles to an add-on structure
  • Finally, yes, despite industry trends, the product will remain a perpetual license
Read article