Same vulnerability, second attack with far greater damage
In July 2025, the same internet-facing Langflow server was breached not once but twice by the same attacker. The first intrusion, documented by Sysdig's Threat Research Team on July 1, was a relatively conventional exploitation of CVE-2025-3248 — a missing-authentication flaw in Langflow's code-validation endpoint. The vulnerability allowed anyone reaching that server to execute arbitrary Python code. On July 20, the attacker returned to the exact same server, still unpatchched. This time, the payload had changed entirely. Instead of a generic crypto-miner or data stealer, the attacker deployed a custom ransomware specifically built to corrupt trained AI model weights — the core intellectual property of any machine learning project.
Ransomware targets the most valuable AI asset: trained weights
Unlike traditional ransomware that encrypts documents, databases, or media files, this new strain reportedly focused exclusively on file formats associated with trained machine learning models — such as PyTorch's .pth, TensorFlow's .h5, and ONNX binaries. The attackers likely understood that altering even a single weight in a neural network can render months of training and costly GPU cycles useless. By corrupting model weights instead of encrypting them, the ransomware made ransom collection impossible: victims cannot pay to restore corrupted data because no decryption key can repair deliberately mangled floating-point numbers. Cybercriminals may have designed this as a destructive attack rather than a profit-seeking one, possibly aimed at crippling AI startups or research labs.
Langflow flaw CVE-2025-3248 remains a critical risk
The entry point for both attacks was CVE-2025-3248, a vulnerability in Langflow's code-validation endpoint that failed to require authentication. Langflow is a popular open-source tool for building and testing AI workflows, often deployed on cloud servers without proper network segmentation. The flaw allowed any actor with network access to the server to execute arbitrary Python code. Sysdig's researchers emphasized that the same unpatched server was exploited twice within three weeks, indicating that organizations are slow to apply fixes for vulnerabilities in experimental AI infrastructure. Given Langflow's widespread use in prototyping AI pipelines, many companies may have similar exposures. Security teams are advised to immediately audit any internet-facing Langflow instances and apply the vendor's patch — or restrict access via firewalls and VPNs.
Sysdig researchers warn of increasing attacks on AI infrastructure
The Sysdig Threat Research Team, which tracked both campaigns, noted that the second attack represented a significant evolution in adversary tactics. While the first incident likely involved cryptocurrency mining or data theft, the ransomware payload suggests attackers are now deliberately targeting machine learning pipelines to cause maximum operational damage. The researchers highlighted that AI model weights are often stored in accessible directories without backup redundancy — unlike traditional databases. This makes them especially vulnerable to targeted deletions or corruptions. The team recommended that organizations treat model weight directories with the same security rigor as code repositories or cryptographic keys, including version control, immutable snapshots, and strict access controls. The attack also underscores a broader trend: as AI becomes central to business operations, its specific assets become high-value targets for both cybercriminals and nation-state actors.
Implications for AI startups and enterprise security
For companies that have invested significant resources into training proprietary AI models, the inability to restore corrupted weights poses an existential threat. Even if backups exist, the training process is often not fully reproducible due to non-deterministic operations in GPU computations and data shuffling. Moreover, the attack erodes trust in AI system integrity: even if weights survive, teams may not be sure they haven't been subtly altered. The ransomware incident is a reminder that AI security is not only about preventing data leaks but also about preserving the integrity of the model itself. Going forward, security protocols for AI development environments must include hardened containers, strict network segmentation, and continuous monitoring for unusual file access patterns — especially targeting model weight directories.