comfyui-node-outputs
Pass
Audited by Gen Agent Trust Hub on Oct 25, 2026
Risk Level: SAFECOMMAND_EXECUTIONINDIRECT_PROMPT_INJECTIONDATA_EXFILTRATION
Full Analysis
- [INDIRECT_PROMPT_INJECTION]: The
CustomSaveNodecode example takes a user-providedprefixinput that is used to construct file paths without sanitization. An attacker or a subverted agent could provide a prefix containing directory traversal characters (e.g.,../../) to write files to arbitrary locations on the filesystem. - Ingestion points:
prefixinput in theCustomSaveNodeclass (SKILL.md). - Boundary markers: None present; the prefix is interpolated directly into a filename string.
- Capability inventory: File system write access via
pil_image.save()(SKILL.md). - Sanitization: Absent; the code directly joins the output directory with the unsanitized prefix-based filename.
- [COMMAND_EXECUTION]: The skill documents and provides examples for node execution logic that performs file system operations, including saving images, audio, and 3D models using both built-in helpers and manual
ospath operations. - Evidence: Use of
os.path.join,folder_paths.get_output_directory(), andpil_image.save()in theCustomSaveNodeexample. - [DATA_EXFILTRATION]: The skill provides examples of embedding workflow metadata (the
promptandextra_pnginfo) directly into saved image files usingPIL.PngImagePlugin.PngInfo. While standard for ComfyUI, this facilitates the storage and potential exfiltration of internal agent instructions or configuration within media files. - Evidence:
metadata.add_text("prompt", json.dumps(cls.hidden.prompt))inCustomSaveNode.
Audit Metadata