Hackers Are Hijacking Exposed ComfyUI Servers to Mine Cryptocurrency

Researchers at Censys have uncovered an active campaign targeting publicly exposed instances of ComfyUI, a popular platform used to run Stable Diffusion models.

Attackers are scanning cloud infrastructure for vulnerable deployments and exploiting misconfigured custom nodes that allow remote Python code execution. Once inside, they install malware that turns the machines into cryptocurrency miners, using tools like XMRig to mine Monero.

The compromised systems are also added to a botnet managed through a central command-and-control dashboard, which allows attackers to push new instructions or deploy additional malware. Security researchers say there are currently more than 1,000 internet-exposed ComfyUI instances, giving attackers enough targets to run opportunistic campaigns.

For anyone running AI tools on cloud servers or local infrastructure, this is a reminder that exposed services without authentication or proper security controls can easily become entry points for attackers.

Curious to hear from the community:

If you run AI tools like ComfyUI, do you keep them fully local, or expose them to the internet for remote access?