Instrument Android at Runtime.
Lightweight ARM64 toolkit for security researchers. Hook functions, manipulate memory, and analyze native code - all without ptrace or TCP.
- No ptrace
- Unix Domain Sockets
- Lua 5.4
Why Renef?
Less complexity. More control.
Renef was built for researchers who need something minimal, stealthy, and fully controllable.
Heavy frameworks are hard to extend
Minimal and focused - easy to understand and modify
TCP communication is easily detected
Unix Domain Sockets - process-level isolation
ptrace triggers security checks
memfd + shellcode injection avoids detection
Limited control over internals
Full ownership - tweak anything you want
How Renef Works
A lightweight client-server architecture with memfd-based injection.
Client CLI
macOS / Linux
Server
Android ARM64
Target Process
libagent.so + Lua
- 1Client CLI
Client connects via TCP port 1907 (ADB-forwarded) to the server running on Android
- 2Server
Server injects payload using memfd + shellcode - no ptrace required
- 3Target Process
libagent.so executes Lua scripts inside the target process context
Everything you need for ARM64 analysis
A focused toolkit with the capabilities that matter most.
renef › feature/native_hooking
Native Hooking
PLT/GOT and inline trampoline hooks for ARM64. Intercept any native function with Capstone-based disassembly.
renef › feature/memory_ops
Memory Operations
Scan, read, write, and patch memory at runtime. Search for patterns and modify values on the fly.
renef › feature/lua_scripting
Lua Scripting
Embedded Lua 5.4 engine with intuitive API. Write powerful instrumentation scripts with minimal boilerplate.
renef › feature/java_hooks
Java Hooks
JNI-based Java method interception. Hook Java methods without touching the native layer.
renef › feature/stealth_mode
Stealth Mode
memfd + shellcode injection avoids ptrace. Unix Domain Sockets instead of TCP for on-device communication.
renef › feature/interactive_tui
Interactive TUI
Text-based UI for memory scanning operations. Real-time feedback and interactive exploration.
Real-world applications
Battle-tested techniques for security research and reverse engineering.
Up and running in minutes
Clone, build, and start instrumenting Android apps.
Requires: macOS or Linux, ADB, Android device with ARM64 architecture
# Clone and buildgit clone https://github.com/Ahmeth4n/renefcd renef && make# Push server to deviceadb push server /data/local/tmp/adb shell chmod +x /data/local/tmp/server# Start server on deviceadb shell /data/local/tmp/server &# Forward portadb forward tcp:1907 localabstract:renef# Connect and start instrumenting./renef -s com.byteria.keepsafe
Ready to instrument?
Renef is open source and free to use. Dive into the code, contribute features, or just use it in your security research.
- Open Source
- ARM64 Native
- Lua Scripting
- No ptrace