chart-image
Pass
Audited by Gen Agent Trust Hub on Oct 6, 2026
Risk Level: SAFECOMMAND_EXECUTIONINDIRECT_PROMPT_INJECTION
Full Analysis
- [COMMAND_EXECUTION]: The capability definitions in
CAPABILITY.md(e.g., forlineChartandbarChartmethods) construct shell commands by directly interpolating user-provided variables such as${title}and${options}. - Evidence:
- File:
CAPABILITY.md - Lines like
node /data/clawd/skills/chart-image/scripts/chart.mjs --type line --data "$(cat /tmp/chart-data.json)" --title "${title}" ...perform shell interpolation. - Malicious input for the
titlefield (e.g.,\"; touch /tmp/pwned; echo \") could result in the execution of arbitrary commands in the agent's environment. - [INDIRECT_PROMPT_INJECTION]: The skill processes external, potentially untrusted data to generate visualizations, creating a surface for indirect prompt injection or metadata-based attacks.
- Ingestion points: The
dataarray andtitlestring inCAPABILITY.mdare external inputs that enter the agent's execution context. - Boundary markers: There are no explicit boundary markers or instructions to the agent to ignore malicious patterns embedded within the chart data or metadata.
- Capability inventory: The skill possesses the ability to execute shell commands (
nodescripts) and write files to the/tmpdirectory. - Sanitization: While
JSON.stringifyis used to write data to a temporary file, thetitlefield is interpolated into a shell command without sanitization or escaping of shell metacharacters.
Audit Metadata