comfyui
Fail
Audited by Gen Agent Trust Hub on Sep 13, 2026
Risk Level: HIGHREMOTE_CODE_EXECUTIONCOMMAND_EXECUTIONEXTERNAL_DOWNLOADSINDIRECT_PROMPT_INJECTION
Full Analysis
- [REMOTE_CODE_EXECUTION]: The skill includes functionality in
scripts/auto_fix_deps.pyandscripts/comfyui_setup.shto download and install third-party Python modules (custom nodes) and machine learning models from external registries and arbitrary user-provided URLs. Because ComfyUI custom nodes are executable Python code, this represents a significant external code execution surface. - [COMMAND_EXECUTION]: The skill utilizes
subprocess.runacross several scripts (e.g.,hardware_check.py,auto_fix_deps.py) to execute system commands, manage the ComfyUI server lifecycle, and interface with thecomfy-cliutility. Commands are constructed using lists rather than raw strings to mitigate shell injection risks. - [EXTERNAL_DOWNLOADS]: Setup and maintenance scripts automate the fetching of the
comfy-clitool, the ComfyUI framework, and various AI models from public sources like GitHub, PyPI, Hugging Face, and CivitAI. - [INDIRECT_PROMPT_INJECTION]: The skill processes complex workflow JSON files which can contain instructions for custom nodes.
run_workflow.pyand_common.pyimplement mitigations includingsafe_path_jointo prevent path traversal during output downloads and logic to prevent parameters from overwriting established link connections within the graph. - [SAFE]: The automated scan findings for remote code execution via
curl | python3inSKILL.mdandscripts/comfyui_setup.share confirmed as false positives. In all instances, the pipe targets the standard libraryjson.toolmodule (e.g.,python3 -m json.tool) for pretty-printing JSON output rather than executing the received data as a script.
Recommendations
- HIGH: Downloads and executes remote code from: http://127.0.0.1:$PORT/system_stats, http://127.0.0.1:8188/queue - DO NOT USE without thorough review
Audit Metadata