obsidian-visuals
Fail
Audited by Gen Agent Trust Hub on Aug 2, 2026
Risk Level: HIGHCOMMAND_EXECUTIONREMOTE_CODE_EXECUTION
Full Analysis
- [COMMAND_EXECUTION]: The helper script
scripts/generate_diagram.pyimplements a mathematical expression evaluator using the Pythoneval()function to render custom plots. - Evidence: The
plot_functioninscripts/generate_diagram.pytakes the--exprargument directly from the command line and passes it intoeval(). - Risk: While the script attempts to restrict the evaluation environment to a specific dictionary of math functions,
eval()is notoriously difficult to secure in Python. An attacker could potentially craft a payload to bypass these restrictions, leading to arbitrary code execution on the host machine. - [REMOTE_CODE_EXECUTION]: The skill instructions in
SKILL.mdandreferences/python-diagrams.mdencourage the AI agent to construct and execute shell commands targeting thegenerate_diagram.pyscript based on user-provided descriptions. - Evidence: The agent is instructed to use the command
python scripts/generate_diagram.py --type function --expr "..."to handle complex visualizations. - Risk: If the agent naively interpolates user input into the
--exprflag, a prompt injection attack could lead the agent to execute malicious Python code through the script'seval()sink.
Recommendations
- AI detected serious security threats
Audit Metadata