dashboard
Fail
Audited by Gen Agent Trust Hub on Jun 17, 2026
Risk Level: HIGHCOMMAND_EXECUTIONREMOTE_CODE_EXECUTIONDATA_EXFILTRATIONPROMPT_INJECTION
Full Analysis
- [COMMAND_EXECUTION]: The server logic in
scripts/dashboard.mjsis vulnerable to command injection via the/outputs/route. ThefileNameparameter is extracted from the URL and used in anexecSynccall to theafconvertutility. Although the path is checked for traversal, the filename is not sanitized for shell metacharacters (e.g.,;,&,|), allowing an attacker or a maliciously named generated file to execute arbitrary shell commands.- [REMOTE_CODE_EXECUTION]: The dashboard server usesAccess-Control-Allow-Origin: '*'andAccess-Control-Allow-Methods: 'GET,POST,OPTIONS'. Combined with the lack of authentication, this allows any website the user visits in their browser to interact with the local API. An attacker could trigger the/api/generate/endpoint, which invokes the Claude agent to execute shell commands, leading to remote code execution on the user's host machine.- [DATA_EXFILTRATION]: The server exposes sensitive metadata and document chunks from the user's~/.notebook-plugin/directory through the/api/stateand/api/eventsendpoints. Due to the permissive CORS configuration, this sensitive information can be read and exfiltrated by any malicious website visited by the user while the dashboard is running.- [PROMPT_INJECTION]: The skill is vulnerable to indirect prompt injection. The/api/generate/endpoint accepts atopicstring from the request body and interpolates it directly into a complex prompt sent to the Claude agent without proper escaping or boundary markers. This allows the topic content to potentially override agent instructions and execute unauthorized commands via the agent's shell access. [Ingestion points: scripts/dashboard.mjs POST /api/generate/]; [Boundary markers: Absent]; [Capability inventory: spawn of claude, bun, uv; execSync of afconvert]; [Sanitization: Absent].
Recommendations
- AI detected serious security threats
Audit Metadata