apple-music
Pass
Audited by Gen Agent Trust Hub on Mar 7, 2026
Risk Level: SAFECOMMAND_EXECUTIONEXTERNAL_DOWNLOADSPROMPT_INJECTIONDATA_EXFILTRATION
Full Analysis
- [COMMAND_EXECUTION]: The skill utilizes the system's
osascriptutility to perform operations in the Music application on macOS. - Evidence: The file
src/applemusic_mcp/applescript.pyconstructs and executes AppleScript usingsubprocess.run(['osascript', '-e', script]). This is the core mechanism for playback control and local library management. - Mitigation: The implementation includes an
_escape_for_applescriptfunction insrc/applemusic_mcp/applescript.pythat escapes backslashes and double quotes in user-provided strings before they are interpolated into the script, reducing the risk of command injection. - [EXTERNAL_DOWNLOADS]: The skill connects to the official Apple MusicKit API to provide catalog search and discovery features.
- Evidence: Functions in
src/applemusic_mcp/auth.pyandsrc/applemusic_mcp/server.pycommunicate withhttps://api.music.apple.com/v1. This targets a well-known service and is a documented feature of the skill. - [PROMPT_INJECTION]: The skill presents a surface for indirect prompt injection by processing untrusted data that is used in system commands.
- Ingestion points: User-provided parameters for track names, artist names, and playlist names across the tools defined in
src/applemusic_mcp/server.py. - Boundary markers: Data is wrapped in double quotes within AppleScript templates.
- Capability inventory: The skill can control media playback, manage playlists, and access library metadata through the Music application on macOS.
- Sanitization: Basic character escaping (backslashes and quotes) is applied in
src/applemusic_mcp/applescript.pyto prevent string breakout during command construction. - [DATA_EXFILTRATION]: The skill accesses sensitive local files to manage authentication and configuration.
- Evidence:
src/applemusic_mcp/auth.pyreadsconfig.jsonand.p8private keys from the~/.config/applemusic-mcp/directory. These files are necessary for the skill to authenticate with the Apple MusicKit API. This access is limited to the skill's own configuration directory.
Audit Metadata