Skip to content

Mach-O Objective-C Symbol Support #1817

Closed

Description

@fuomag9

Does anyone know if you can get mach-o binaries function names from the binary or eventually import them? Ghidra/hopper/ida have them

Activity

  1. fuomag9 commented on Jul 16, 2020

    @fuomag9
    Author

    image
    image
    As you can see the function in binary ninja doesn't have either the class nor the name it has in hopper, it gets the address name instead

  2. fuomag9 commented on Jul 16, 2020

    @fuomag9
    Author

    According to Peter on slack this is a bug
    image

  3. changed the title [-]Does anyone know if you can get mach-o binaries function names from the binary or eventually import them? [/-] [+]Binary ninja fails to parse symbol tables in Mach-O binaries.[/+] on Jul 16, 2020
  4. changed the title [-]Binary ninja fails to parse symbol tables in Mach-O binaries.[/-] [+]Binary ninja fails to parse symbol tables in Mach-O binaries[/+] on Jul 16, 2020
  5. jeffli678 commented on Jul 16, 2020

    @jeffli678
    Contributor

    Yeah I also encounter this from time to time.

  6. fuomag9 commented on Jul 16, 2020

    @fuomag9
    Author

    Yeah I also encounter this from time to time.

    My mach-o binaries come from .ipa files all the time, I've never had symbol tables parsed in binary ninja unfortunately and I've tried on all OS supported by binary ninja

  7. jeffli678 commented on Jul 16, 2020

    @jeffli678
    Contributor

    Exactly, ipa files are problematic. I might look into this.

  8. self-assigned this
    on Jul 16, 2020
  9. self-assigned this
    on Aug 3, 2020
  10. bpotchik commented on Aug 3, 2020

    @bpotchik
    Member

    I just found and fixed a bug related to parsing the dynamic table. Related bug is #1862. Unsure if it fixes the issue encountered here. If you are able to check please report back. Thanks!

    The other fix is in 2.1.2319-dev.

  11. fuomag9 commented on Aug 3, 2020

    @fuomag9
    Author

    I just found and fixed a bug related to parsing the dynamic table. Related bug is #1862. Unsure if it fixes the issue encountered here. If you are able to check please report back. Thanks!

    The other fix is in 2.1.2319-dev.

    I'm on Version 2.1.2319-dev Personal (Build ID 7d13301) and unfortunately the issue is still present, hopper can correctly display the classes names and functions, meanwhile binary ninja just calls them by their address. :(

  12. hubert3 commented on Aug 23, 2020

    @hubert3

    Confirm version 2.1.2346-dev is still missing many symbols in a Mach-O binary that Hopper and IDA display.

    Binary Ninja seems to get some symbols from the application's main executable binary but fewer from a Mach-O framework library

  13. bpotchik commented on Aug 25, 2020

    @bpotchik
    Member

    @hubert3 would you happen to have a binary you can share? You can DM me on slack if you like. Thanks!

  14. fuomag9 commented on Sep 6, 2020

    @fuomag9
    Author

    Sample binary here (The main Zoom binary inside the .ipa is the one to analyze)
    I'd have uploaded it here but it's too heavy for github

  15. changed the title [-]Binary ninja fails to parse symbol tables in Mach-O binaries[/-] [+]Mach-O Objective-C Symbol Support[/+] on Feb 14, 2021
  16. bpotchik commented on Feb 14, 2021

    @bpotchik
    Member

    This requires some extra objective c analysis which we do not currently have built into the core Mach-O loader. You can potentially use https://github.com/trailofbits/ObjCGraphView to apply the proper analysis in the mean time.

    You can track #362, #419, and #420 for native objective c support in the future.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

No labels
No labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions