tldraw-api
Pass
Audited by Gen Agent Trust Hub on Jul 19, 2026
Risk Level: SAFEREMOTE_CODE_EXECUTIONPROMPT_INJECTION
Full Analysis
- [REMOTE_CODE_EXECUTION]: The skill provides an interface to execute arbitrary JavaScript code on the local tldraw application server via the
/execand/api/searchendpoints. - Evidence: The
scripts/tldraw_api.shscript usescurlto POST JavaScript code from local files or strings tohttp://127.0.0.1:[PORT]/api/doc/[ID]/exec. - [REMOTE_CODE_EXECUTION]: The skill implements dynamic loading to hook into the application's internal renderer modules at runtime.
- Evidence: The
desktop_bridge_prefixinscripts/tldraw_api.shusesawait import(src)where the path is discovered dynamically by searching the DOM for script tags matching specific patterns. - [PROMPT_INJECTION]: The skill creates a surface for indirect prompt injection by ingesting and processing content from tldraw documents that may originate from untrusted sources.
- Ingestion points:
scripts/tldraw_api.sh(viashapes,bindings, andserializecommands) andreferences/api.md(viaapi.getShapes). - Boundary markers: No delimiters or explicit warnings are provided when the agent reads document data.
- Capability inventory: The skill can execute arbitrary JS in the application, write/save files to the local system, and capture screenshots.
- Sanitization: While the script safely quotes arguments using
jqwhen building JavaScript strings, it does not sanitize the content retrieved from documents before presenting it to the agent's context.
Audit Metadata