m4b / m4b/goblin

Apple code signing Mach-O data structures

Open
#269 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Rust
Stars
1.5k
Forks
202
PR merge metrics
No merged PRs in 30d

Description

I wanted to share that I have just published a crate that implements support for Apple's code signatures: https://crates.io/crates/tugger-apple-codesign.

I'm mentioning this in the goblin issue tracker because a) I used goblin extensively (thank you so much for goblin!) b) there are a lot of data structures related to code signing embedded in the Mach-O and goblin may want to consider parsing them.

If goblin were interested in parsing these data structures, you have choices of how deep into the data structures you want to go. If you are interested in learning more, most of the Mach-O primitives are defined in https://github.com/indygreg/PyOxidizer/blob/main/tugger-apple-codesign/src/macho.rs. https://github.com/indygreg/PyOxidizer/blob/main/tugger-apple-codesign/src/specification.rs has some more documentation.

I'm not volunteering to add the support to goblin: just informing you for your consideration. I'm also here to consult if you want to pick my brain.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading tugger-apple-codesign/src/macho.rs and tugger-apple-codesign/src/specification.rs to understand the referenced Mach-O code-signing structures, then inspect goblin’s existing Mach-O parsing scope. Done means agreeing on whether goblin should support these structures and defining a concrete implementation scope.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
reverse-engineering
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.