macos-spm-app-packaging
Pass
Audited by Gen Agent Trust Hub on Oct 26, 2026
Risk Level: SAFECOMMAND_EXECUTIONINDIRECT_PROMPT_INJECTION
Full Analysis
- [COMMAND_EXECUTION]: The skill's templates include shell scripts that automate developer workflows by interacting with the local system and development tools.
compile_and_run.shandlaunch.shusepkillto manage running application instances andopento launch the packaged app.package_app.shuses standard macOS development tools includingswift build,codesign,lipo, andxattrto construct and sign the.appbundle.sign-and-notarize.shusesxcrun notarytoolandstaplerto submit the app for Apple's notarization service, which is a trusted process.- [INDIRECT_PROMPT_INJECTION]: The skill scaffolds new projects by generating code and configuration files from user-defined metadata.
- Scripts like
package_app.shgenerate system files such asInfo.plistand.entitlementsby interpolating variables like${APP_NAME}and${BUNDLE_ID}provided by the user. - The
SKILL.mdinstructions guide the agent to performsedoperations on thePackage.swiftfile to rename project targets based on user input. - Mitigation: The templates include regex validation (e.g.,
[[ "$APP_NAME" =~ ^[A-Za-z0-9][A-Za-z0-9_-]*$ ]]) to restrict these variables to safe alphanumeric character sets, preventing command injection or path traversal via project metadata.
Audit Metadata