Skip to content

Peer signature check should require the hardened runtime and refuse get-task-allow #4377

Done

Description

@mstomar125

Found reviewing #4368 (stage 5 of remote tool approval). The SecCode requirement checks the Developer ID chain, the team id and the signing identifier but not the hardened runtime. A team-signed build without --options runtime, or one carrying get-task-allow or allow-dyld-environment-variables, still passes and could be injected by a same-user attacker. scripts/build-pkg.sh signs with --options runtime today and no entitlements file grants those, so this only matters for a differently built app.

Also check SecCodeCopySigningInformation flags for CS_RUNTIME and refuse get-task-allow on the peer. Low: the identifier 'nodespace' admits any team-signed binary with that name for ApproveTool (the system dialog still applies); CLI approvals do two SecCode lookups per request (correct, only slower).

Done when a team-signed peer without the hardened runtime is refused, with a test, and the positive case is confirmed on a signed build (#4365, #4367).

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions