macos-process-injection

Pass

Audited by Gen Agent Trust Hub on Nov 9, 2026

Risk Level: SAFECOMMAND_EXECUTIONPRIVILEGE_ESCALATIONDYNAMIC_EXECUTION
Full Analysis
  • [COMMAND_EXECUTION]: The skill provides numerous Bash and C code examples for analyzing and interacting with macOS system components.
  • Example: Using gcc to compile dynamic libraries and otool to inspect binary structures.
  • Example: Using osascript to demonstrate how Apple Events can be used for process interaction.
  • [PRIVILEGE_ESCALATION]: The instructions detail how various injection vectors can inherit the permissions (TCC, entitlements) of the target process.
  • Example: Explains how ELECTRON_RUN_AS_NODE allows code to inherit a signed application's camera or microphone permissions.
  • Example: Discusses task_for_pid which requires root privileges to manipulate other processes.
  • [DYNAMIC_EXECUTION]: The skill documents several methods for injecting and executing code within foreign process address spaces.
  • Example: Methodology for DYLD_INSERT_LIBRARIES to force-load code at startup.
  • Example: Walkthrough for patching Electron asar archives to add custom execution logic.
Audit Metadata
Risk Level
SAFE
Analyzed
Nov 9, 2026, 11:59 AM