apple-flow-numbers
Warn
Audited by Gen Agent Trust Hub on Jul 14, 2026
Risk Level: MEDIUMCOMMAND_EXECUTIONPROMPT_INJECTION
Full Analysis
- [COMMAND_EXECUTION]: The script
scripts/numbers_tools.pydynamically constructs AppleScript code by interpolating user-controlled variables (such as file paths, sheet names, and table data) into template strings. This code is then executed usingsubprocess.run(['osascript', '-e', ...]). This pattern of building executable scripts from external input is a high-risk practice that can lead to command injection within the AppleScript environment. - [PROMPT_INJECTION]: The skill features an attack surface for indirect prompt injection as it processes complex JSON data from external sources that directly influences the automation logic.
- Ingestion points: CLI arguments in
scripts/numbers_tools.pyincludingheaders_json,rows_json,workbook_json,sheet_json, andstyle_json. - Boundary markers: None are employed within the script's interpolation logic to delimit untrusted data.
- Capability inventory: The skill can interact with the file system and execute system commands (
osascriptandmdls) viasubprocess.runas implemented inscripts/numbers_tools.py. - Sanitization: The script uses a basic
_escfunction inscripts/numbers_tools.pythat only escapes backslashes, double quotes, and newlines. This minimal sanitization may not be sufficient to prevent all forms of AppleScript injection.
Audit Metadata