automating-keynote
Fail
Audited by Gen Agent Trust Hub on Feb 17, 2026
Risk Level: HIGHCOMMAND_EXECUTIONREMOTE_CODE_EXECUTION
Full Analysis
- [COMMAND_EXECUTION] (HIGH): Potential AppleScript injection in
scripts/export_keynote_presentation.py. The script uses Python f-strings to interpolateinput_fileandoutput_filedirectly into an AppleScript string that is then executed viaosascript. An attacker providing a maliciously crafted file path (e.g., containing double quotes and newlines) could break out of the string literal and execute arbitrary AppleScript commands. - [COMMAND_EXECUTION] (HIGH): Similar AppleScript injection vulnerability in
scripts/create_keynote_presentation.py. Thetitleandsave_patharguments are interpolated into an AppleScript block without any sanitization or escaping, allowing for local code execution through the scripting bridge. - [REMOTE_CODE_EXECUTION] (MEDIUM): The documentation in
references/keynote-advanced.mdpromotes a 'Bridge Pattern' for chart generation. This pattern involves manually building AppleScript source code strings by concatenating JavaScript variables (likerowNamesanddataRows) and executing them viaapp.runScript(asScript). This is a dangerous pattern that bypasses standard API safety and introduces injection risks. - [INDIRECT_PROMPT_INJECTION] (LOW): The skill contains a vulnerability surface for indirect prompt injection in
scripts/markdown_to_keynote.py. - Ingestion points: The script reads and parses content from a user-supplied
.mdfile. - Boundary markers: None used; the script treats all header and list content as direct text for slides.
- Capability inventory: The skill allows full manipulation of Keynote, file system writes (exports), and indirect execution of AppleScript via other scripts in the package.
- Sanitization: None; the script directly assigns parsed markdown strings to slide placeholders via PyXA.
- [DATA_EXPOSURE] (LOW):
scripts/create_presentation.jscontains a hardcoded absolute path (/Users/richardhightower/...) which discloses local system username and directory structure.
Recommendations
- AI detected serious security threats
Audit Metadata