macos community v1.0.0

codesign

Create, manipulate and verify code signatures.

📋 Live Preview
codesign
codesign

Sandbox: execFile · Timeout: 30s

Capabilities

security.defenseevasion.bypass

Examples

Ad-hoc codesigning an app bundle: This command forcefully re-signs the MyApp.app application with an ad-hoc signature, applying the signature deeply to all nested code within the app

codesign --force --deep -s - MyApp.app

Detection

TypeRule / Indicator
other https://github.com/jamf/jamfprotect/blob/main/custom_analytic_detections/adhoc_codesigning.yaml Jamf Protect: Detect ad-hoc codesigning activity

Documentation

The codesign command is used to create, check, and display code signatures, as well as inquire into the dynamic status of signed code in the system.

References