Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MachO: Support for overlay #1028

Closed
prabhu opened this issue Feb 27, 2024 · 3 comments
Closed

MachO: Support for overlay #1028

prabhu opened this issue Feb 27, 2024 · 3 comments

Comments

@prabhu
Copy link

prabhu commented Feb 27, 2024

Please describe what you would like to have in LIEF.
Binaries produced from dotnet have useful dependency dll information under the overlay.

For PE and ELF, we can access this attribute and retrieve the information. I am unable to find this attribute for MachO, so I was wondering if this is missing or if the information is available elsewhere.

Note: If the feature is not precise or if you want to have feedback first, you can open a discussion.

@romainthomas
Copy link
Member

I'll take a look at this overlay support in Mach-O. Thank you @prabhu for raising this point.

@romainthomas
Copy link
Member

Hi @prabhu
Do you have an example of Mach-O binary that would have an overlay?

@prabhu
Copy link
Author

prabhu commented May 1, 2024

@romainthomas any dotnet executable can be used. Below are couple of binaries. Please feel free to use them for testing purposes.

https://github.com/owasp-dep-scan/dosai/releases/download/v0.1.1/Dosai-osx-arm64
https://github.com/owasp-dep-scan/dosai/releases/download/v0.1.1/Dosai-osx-x64

In addition to adding overlays, I would appreciate it if you could offer a convenient API to extract the information. Currently, my project does some hacks to extract the json.

Thank you in advance!

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

No branches or pull requests

2 participants