Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Specification of signed binaries on OS X

I'm looking for a detailed description of the internal format of signed binaries on OS X. For Windows executable files Microsoft has published the specification but I'm unable to find the equivalent documentation for OS X applications (Mach-O binaries). The man page for the codesign command doesn't describe how the files are modified.

Anyone know where to find this information?

like image 862
Emmanuel Bourg Avatar asked Nov 03 '22 23:11

Emmanuel Bourg


1 Answers

When I faced the same problem I wasn't managed to find any description. It seems that the best way to find out the format is to check out sources of codesign utility. The sources can be found at

http://www.opensource.apple.com/source/security_systemkeychain/security_systemkeychain-55191/src/codesign.h

P.S. It's quite tricky to build them and I failed to do it.

Update: Take a look at the project isign at https://github.com/saucelabs/isign/ in which Apple's codesign was reimplemented in Python and can be run on Linux.

like image 61
CaptainRR Avatar answered Nov 15 '22 05:11

CaptainRR