apple-notes-local-dev-loop
Pass
Audited by Gen Agent Trust Hub on Sep 9, 2026
Risk Level: SAFEINDIRECT_PROMPT_INJECTIONDYNAMIC_EXECUTIONCOMMAND_EXECUTION
Full Analysis
- [INDIRECT_PROMPT_INJECTION]: The skill implements a test helper function that is vulnerable to JXA injection, potentially allowing arbitrary code execution within the context of the Notes application.
- Ingestion Point: The
titleparameter in thecreateTestNotefunction withinSKILL.mdaccepts arbitrary string input. - Boundary Markers: None present. The input is processed as part of a raw script string.
- Capability Inventory: The skill utilizes
execSyncto runosascript, which can control system applications and access local data. - Sanitization: None. The code uses template literals to insert the
titledirectly into a JavaScript string passed toosascript(name: "${title}"). An attacker could provide a payload that breaks out of the string quotes to execute unauthorized JXA commands. - [DYNAMIC_EXECUTION]: The skill relies on the dynamic generation and execution of scripts.
- In
src/dev/watch-runner.ts, the skill monitors a local directory and automatically executes any changed.jsfiles viaosascriptwhenever they are saved. - In
src/dev/test-notes.ts, therunJxafunction assembles and executes JXA script strings at runtime usingexecSync. - [COMMAND_EXECUTION]: The skill uses
child_process.execSyncto execute shell commands, specifically invoking the macOSosascriptutility. This allows the skill to programmatically interact with system applications, which, if misused, could lead to unauthorized data access or system modification.
Audit Metadata