Skip to content

Revolutionizing ELF Binary Patching with Shiva

Ryan O'Neill

Ryan O'Neill (ElfMaster) presents Shiva, a revolutionary JIT binary patching system and custom ELF interpreter that loads and links relocatable C patches at runtime.

Summary

The Evolution of ELF Binary Patching

Patching compiled Linux ELF binaries without source code has historically relied on fragile hex editing, text padding injection, or rudimentary binary hooks.

Introducing Shiva: A JIT ELF Interpreter and Linker

Ryan O'Neill (ElfMaster) introduces Shiva, an advanced JIT binary patching system that loads and dynamically links modular C-authored patch files directly into running processes.

Advanced Linker Chaining and Userland Execution

Shiva resurrects classic concepts like userland-exec while introducing novel multi-dynamic-linker chaining, function splicing, and binary transformation capabilities.

Maintaining Insecure Legacy Code and Red-Team Applications

Demonstrations highlight Shiva's dual-use potential: enabling engineers to hot-patch critical security flaws in legacy proprietary binaries while allowing red teams to inject modular in-memory implants.

Related talks

Main Stage·41 min

  • DEF CON
  • Hardware
  • Date: Aug 2025
  • Location: Las Vegas

Jeroen 'Jeroen' Domburg

Demonstrates hardware hacking and reverse engineering to run custom Linux kernels and open software on inexpensive USB webcams.

embeddedlinuxhardware+2