
macOS offensive security toolkit featuring dylib injection, HID keylogger, and in-memory JXA/Python payload runners for red team operations and post-exploitation.
macOS Offensive Tools
Example XCode project for Audio Unit Plugins
Migration tool plugin
Installer plugin
Authentication Plugin
Source code for dylib injection. Based off of code from Jonathan Levin http://newosxbook.com/src.jl?tree=listings&file=inject.c
IOHIDManager keylogger
Rust library for in-memory JXA execution
Prerequisites
Mythic JXA Payload. Saved to disk
Build Steps
PAYLOAD and KEY environment variables with cargo build to generate the lib. KEY will be used as a static XOR key.PAYLOAD=apfell.js KEY=SOMEKEY cargo build --releasetarget/release/libjxa_runner.dylib/private/tmp/jxa_runner.logPAYLOAD=apfell.js KEY=SOMEKEY cargo testRust library for in-memory Python execution
Prerequisites
Python Payload. Saved to disk
Build Steps
PAYLOAD and KEY environment variables with cargo build to generate the lib. KEY will be used as a static XOR key.PAYLOAD=medusa.py KEY=SOMEKEY cargo build --releasetarget/release/libpython_runner.dylib/private/tmp/python_runner.logPAYLOAD=script.py KEY=SOMEKEY cargo test