comfyui security audit

    by Sean Michael

    1

    Identify and triage malicious models, risky custom nodes, and dangerous workflows in ComfyUI.

    Free

    Security scanned

    Works with the AI Agents you already use

    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

    SeverityCategoryFile/PackFindingVerdict
    CRITICALModelmodels/checkpoints/new_style_xl.ckptMalicious Pickle opcode os.system detected at offset 0x452.True Positive
    MEDIUMNode Packcustom_nodes/ComfyUI-ManagerNetwork call to github.com found in glob.py.Benign
    MEDIUMNode Packcustom_nodes/unknown-upscalerUnsigned binary execution found in utils.py:102.Needs Review
    INFOWorkflowscanned_workflow.json2 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 .exe without a clear purpose described in the README. This is suspicious as upscalers typically use Python-based tensors.

    Next steps

    1. Move new_style_xl.ckpt to a quarantine folder or delete it using rm ~/ComfyUI/models/checkpoints/new_style_xl.ckpt.
    2. I can investigate the unknown-upscaler code further if you provide the content of utils.py.
    3. 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

    1. Environment discovery locates your ComfyUI installation path and confirms scanning permissions.
    2. Scanner deployment installs the TensorTrap CLI and the ComfyUI-TensorTrap node pack for local analysis.
    3. Static analysis runs model scans and node audits via terminal commands without executing any untrusted code.
    4. 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. 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. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 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
    PythonGit

    Permissions

    Terminal / Shell
    Read Files
    Listed15 days ago

    What's inside

    Frequently Asked Questions

    This skill protects your local machine by scanning for 'Pickle' malware, unauthorized network requests in custom nodes, and malicious logic hidden within JSON workflow files, preventing system compromise or data theft.

    The skill is designed for any AI agent with terminal and file system access. It utilizes the TensorTrap CLI to perform analysis locally on your ComfyUI installation path.

    The audit uses static analysis, meaning it inspects the code and file headers without actually executing the untrusted files, ensuring your system remains safe during the scanning process.

    You get a set of agent instructions that walk your AI agent through a full ComfyUI security audit. The agent finds your install and asks for your consent, then installs the open-source TensorTrap scanner with pip. It scans your models, audits your custom nodes and checks your workflows, then reports what it found by severity. After that it can triage each finding as a true positive, false positive, benign, or needs review. The skill contains no scripts or binaries. Everything it runs comes from TensorTrap's public PyPI and GitHub releases.

    While it significantly reduces risk by identifying known attack patterns and suspicious opcodes, it is not a sandbox; custom nodes still run with full system permissions, so a 'clean' scan should be treated as a risk reduction rather than a total guarantee of safety.

    Detection comes from TensorTrap, so coverage improves as TensorTrap gets updated. During setup the agent installs the TensorTrap version that's current on PyPI. If you already have it installed, run `pip install --upgrade tensortrap` before an audit to get the latest detection rules. The skill doesn't download signatures on its own or update in the background.

    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.

    Free