MacSubstrate is a platform tool for interprocess code injection on macOS, with the similar function to Cydia Substrate on iOS. Using macSubstrate, you can inject your plugins (.bundle
or .framework
) into a mac app (including sandboxed apps) to tweak it in the runtime.
Also Read IDB – Tool To Simplify Some Common Tasks For iOS Pentesting & Research
/Applications
and launch it.
step 3 and step 4 can be switched
Once a plugin is installed by macSubstrate, it will take effect immediately. But if you want it to work whenever the target app is relaunched or macOS is restarted, you need to keep it running and allow it to automatically launch at login.
It supports plugins of .bundle
or .framework
, so you just need to create a valid .bundle
or .framework
file. The most important thing is to add a key macSubstratePlugin
into the info.plist
, with the dictionary value:
Key | Value |
---|---|
TargetAppBundleID | the target app’s CFBundleIdentifier , this tells it which app to inject. |
Description | brief description of the plugin |
AuthorName | author name of the plugin |
AuthorEmail | author email of the plugin |
Please check the demo plugins demo.bundle and demo.framework for details.
macSubstrate also provides Xcode Templates
to help you create plugins conveniently:
ln -fhs ./macSubstratePluginTemplate ~/Library/Developer/Xcode/Templates/macSubstrate\ Plugin
Welcome pull requests of your own plugins to Plugins.
Cybersecurity tools play a critical role in safeguarding digital assets, systems, and networks from malicious…
MODeflattener is a specialized tool designed to reverse OLLVM's control flow flattening obfuscation through static…
"My Awesome List" is a curated collection of tools, libraries, and resources spanning various domains…
CVE-2018-17463, a type confusion vulnerability in Chrome’s V8 JavaScript engine, allowed attackers to execute arbitrary…
The blog post "Chrome Browser Exploitation, Part 1: Introduction to V8 and JavaScript Internals" provides…
The exploitation of CVE-2018-17463, a type confusion vulnerability in Chrome’s V8 JavaScript engine, relies on…