comfyui security audit
by Sean Michael
Identify and triage malicious models, risky custom nodes, and dangerous workflows in ComfyUI.
Free
comfyui security audit
Example session with this skill installed
Scan my ComfyUI install at ~/ComfyUI for any risks in the models and custom nodes. I just downloaded a few things from Civitai.
- Read your context and instructions
- Compiled the comfyui security audit
I have completed the security scan of your ComfyUI installation at ~/ComfyUI. I used TensorTrap to analyze 14 model files and 8 custom node packs.
Security Audit Results
| Severity | Category | File/Pack | Finding | Verdict |
|---|---|---|---|---|
| CRITICAL | Model | models/checkpoints/new_style_xl.ckpt | Malicious Pickle opcode os.system detected at offset 0x452. | True Positive |
| MEDIUM | Node Pack | custom_nodes/ComfyUI-Manager | Network call to github.com found in glob.py. | Benign |
| MEDIUM | Node Pack | custom_nodes/unknown-upscaler | Unsigned binary execution found in utils.py:102. | Needs Review |
| INFO | Workflow | scanned_workflow.json | 2 nodes use external API endpoints. | Benign |
Triage Details
- new_style_xl.ckpt: The scan found a specific instruction to execute system commands during model loading. This is a classic RCE (Remote Code Execution) exploit.
Action: Delete immediately.
- ComfyUI-Manager: The network activity is documented and required for checking updates. This is expected behavior for this specific pack.
- unknown-upscaler: The pack attempts to run a local
.exewithout a clear purpose described in the README. This is suspicious as upscalers typically use Python-based tensors.
Next steps
- Move
new_style_xl.ckptto a quarantine folder or delete it usingrm ~/ComfyUI/models/checkpoints/new_style_xl.ckpt. - I can investigate the
unknown-upscalercode further if you provide the content ofutils.py. - Avoid loading any workflows that reference the flagged checkpoint until it is removed.
Connects securely to your tools. The creator never sees your data.
About this skill
ComfyUI environments are vulnerable to malicious models and untrusted custom nodes that execute with full system permissions. This skill performs static analysis on your local install to identify malware, supply-chain attacks, and risky workflow patterns before they compromise your machine.
What it does
- Model scanning audits Safetensors, Pickle, and GGUF files for embedded malicious code or suspicious opcodes.
- Node auditing scans installed custom node packs for network calls, shell execution, or sensitive file access.
- Workflow analysis inspects JSON workflow files for known attack patterns or suspicious node configurations.
- Security triaging classifies findings as true positives, false positives, or benign based on code context and maintainer reputation.
- Remediation guidance points out critical threats and recommends next steps, such as quarantining a file, without changing any files itself.
How it works
- Environment discovery locates your ComfyUI installation path and confirms scanning permissions.
- Scanner deployment installs the TensorTrap CLI and the ComfyUI-TensorTrap node pack for local analysis.
- Static analysis runs model scans and node audits via terminal commands without executing any untrusted code.
- Contextual review analyzes flagged code blocks or workflow nodes to determine if the behavior matches the tool's purpose.
Frameworks & tools
This skill utilizes the TensorTrap security scanner (CLI) and the ComfyUI-TensorTrap node pack. It requires Python 3.10+ and standard ComfyUI directory structures.
Why this beats prompting it yourself
Manual code review of thousands of lines in custom nodes is impractical for most users, and binary model files cannot be read by standard LLMs. This skill automates the execution of specialized security tooling and provides expert-level triage of technical findings that non-security developers might miss.
Use cases
- Auditing a newly downloaded model from an unfamiliar source before loading it into VRAM.
- Checking a batch of updated custom nodes for hidden telemetry or unauthorized network calls.
- Validating a complex workflow JSON downloaded from Civitai or Discord for safety.
- Performing a routine security health check on a production ComfyUI environment.
Known limitations
This tool performs static analysis and cannot guarantee safety or act as a sandbox. A clean result reduces risk but does not eliminate it, as custom nodes run with full system access.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Free to use
No account required to browse
Trust & safety
Security scan
Security scan passed 15 days ago
- Free with an Agensi account
- Software
Python
Git
Permissions
What's inside
Frequently Asked Questions
New in Security
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Security.