Objective-C Update
2024-10-17 01:33:37 Author: binary.ninja(查看原文) 阅读量:2 收藏

We’ve been very hard at work improving the experience for our iOS and macOS reverse engineers. You’ll want to keep an eye out for our upcoming 4.2 feature release announcement stream which includes some even juicier bits. In the meantime, hopefully this will tide you over.

This blog is a short summary of the current state of Objective-C analysis in Binary Ninja.

Automatic Analysis

Objective-C Loading

As mentioned in our 4.1 release notes, we have changed the Objective-C analysis so that no manual workflow/plugin loading is required. Instead, all changes are now implemented as an open source plugin and changes in our open source MachO BinaryView.

You can disable this via User Settings or on a per-view basis in Open with Options.

Disable Objective-C Plugin

Automatic Stub Inlining

More recent versions of apple’s compiler will automatically outline _objc_msgSend calls automatically, placing the outlined functions in the __objc_stubs section.

While providing some space savings, this has resulted in these binaries being much more laborious to analyze.

Binary Ninja can now automatically detect and analyze these outlined functions and fully reverse the optimization, allowing the rest of our suite to work better than ever.

Call Rewrites

As seen in the above comparison, we also try to trace down msgSend calls and rewrite them to the appropriate function if it is located within the binary.

Ivar Recovery

Objective-C Class instance variables are automatically recovered and names/types applied accordingly, making things easier to read through.

Ivar Recovery

CFString Support

Binary Ninja has full support for the CFString spec and will automatically annotate CFString metadata, and name them accordingly, so parsing them in our IL views is easier.

CFString List

CFString Inline

Category Support

Binary Ninja has full support for category methods and parses them like any other Objective-C method.

Categories

Architecture Improvements

We’ve added full support for ARMv7/Thumb2 binaries in addition to our existing Aarch64 support, meaning regardless of your target OS and architecture, you’re getting our full suite of analysis.

Arch improvements

We’re always working to improve our Objective-C analysis, and looking forward to shipping more powerful new tools to enable better capabilities for analyzing binaries from Apple platforms.


文章来源: https://binary.ninja/2024/10/16/objectivec-update.html
如有侵权请联系:admin#unsafe.sh