apple-photos
Fail
Audited by Gen Agent Trust Hub on Sep 17, 2026
Risk Level: HIGHCOMMAND_EXECUTIONDATA_EXFILTRATIONPRIVILEGE_ESCALATIONINDIRECT_PROMPT_INJECTION
Full Analysis
- [COMMAND_EXECUTION]: The script
scripts/photos-search-content.shunsafely interpolates user-provided search queries into an AppleScript block executed viaosascript. An attacker or malicious user could provide a crafted query to execute arbitrary AppleScript, which in turn can execute arbitrary shell commands via thedo shell scriptcommand. - [COMMAND_EXECUTION]: Multiple scripts, including
scripts/photos-search-person.sh,scripts/photos-export.sh, andscripts/photos-info.sh, perform unsafe interpolation of user-supplied arguments (such as person names or UUIDs) directly into SQLite query strings. This creates a SQL injection vulnerability that allows for unauthorized data extraction from the Photos database. - [PRIVILEGE_ESCALATION]: The skill instructions in
SKILL.mdrequire the user to grant 'Full Disk Access' to the terminal application. This permission is extremely broad, allowing the agent to bypass macOS privacy protections (TCC) not just for Photos, but also for sensitive data in other applications like Mail, Messages, and Safari. - [DATA_EXFILTRATION]: The skill accesses highly sensitive personal data, including face recognition IDs, GPS location coordinates, and private images. The
scripts/photos-export.shscript specifically copies private images to/tmp/photo_export.jpg. Since/tmpis a world-readable directory on macOS, this exposes private user content to any other user or process on the system. - [INDIRECT_PROMPT_INJECTION]: The skill processes untrusted metadata (such as photo filenames and person names) from the Photos database without sanitization, creating an attack surface for indirect prompt injection.
- Ingestion points: User-influenced data like filenames and recognized person names are retrieved from
Photos.sqlitein several scripts. - Boundary markers: None; the data is retrieved and processed as raw text.
- Capability inventory: The skill can execute shell commands (
sqlite3,mkdir,cp,sips), AppleScript (osascript), and write to the file system. - Sanitization: The retrieved metadata is interpolated into command strings and returned to the agent context without any escaping or validation.
Recommendations
- AI detected serious security threats
Audit Metadata