cropfig
Fail
Audited by Gen Agent Trust Hub on Sep 9, 2026
Risk Level: HIGHCOMMAND_EXECUTIONEXTERNAL_DOWNLOADSINDIRECT_PROMPT_INJECTION
Full Analysis
- [COMMAND_EXECUTION]: The script
export_deck.pyis vulnerable to AppleScript injection. In functions_export_keynote_pdfand_export_powerpoint_pdf, file paths derived from theDECK_FILEenvironment variable or command-line arguments are interpolated directly into AppleScript strings using f-strings (e.g.,set theDoc to open POSIX file "{deck_abs}"). These strings are executed viaosascript. An attacker can escape the string literal with a double quote and append malicious AppleScript commands, leading to arbitrary code execution as the current user. - [EXTERNAL_DOWNLOADS]: The skill's documentation explicitly requires the installation of third-party libraries including
pymupdf,numpy, andpillowviapip. These are well-known packages used for PDF manipulation and image processing. - [INDIRECT_PROMPT_INJECTION]: The skill exhibits an indirect prompt injection surface as it processes untrusted file paths and regex patterns from environment variables without validation.
- Ingestion points:
DECK_FILEandRESULT_PATTERNenvironment variables, as well as positional command-line arguments. - Boundary markers: None present; inputs are treated as trusted strings.
- Capability inventory: Execution of AppleScript (
osascript) and LibreOffice (soffice) viasubprocess.runinexport_deck.py; file system modifications inupload_figures.pyandcrop_figures.py. - Sanitization: No escaping or sanitization is performed on file paths before their inclusion in shell-executed AppleScript or on regex patterns before compilation.
Recommendations
- AI detected serious security threats
Audit Metadata