AI Security AI安全 8h ago Updated 3h ago 更新于 3小时前 51

New ENCFORGE Ransomware Targets AI Model Files in Langflow RCE Attack 新型ENCFORGE勒索软件在Langflow远程代码执行攻击中针对AI模型文件

A new ransomware variant named ENCFORGE specifically targets AI infrastructure, including model weights, vector indexes, and training datasets. The attack leverages CVE-2025-3248, an unauthenticated Remote Code Execution vulnerability in Langflow versions prior to 1.3.0. The threat actor, identified as JADEPUFFER, demonstrates advanced evasion techniques by iteratively constructing Python scripts to escape the container and encrypt host files. ENCFORGE is a compiled Go binary that uses AES-256-C JADEPUFFER攻击组织利用Langflow未授权RCE漏洞(CVE-2025-3248)部署新型Go语言勒索软件ENCFORGE,专门针对AI基础设施文件进行加密。 ENCFORGE恶意软件精准锁定PyTorch/TensorFlow权重、向量索引及训练数据集等约180种AI相关扩展名,采用AES-256-CTR混合RSA-2048加密,无数据外泄行为。 攻击者通过Docker Socket逃逸容器限制,以特权模式挂载宿主机根文件系统,成功在宿主环境中执行勒索软件,展现了极高的自适应与持久化能力。 该事件标志着勒索软件攻击重心从传统业务数据向高价值AI资产(模型权重、训练数据)转移,且攻

75
Hot 热度
70
Quality 质量
72
Impact 影响力

Analysis 深度分析

TL;DR

  • A new ransomware variant named ENCFORGE specifically targets AI infrastructure, including model weights, vector indexes, and training datasets.
  • The attack leverages CVE-2025-3248, an unauthenticated Remote Code Execution vulnerability in Langflow versions prior to 1.3.0.
  • The threat actor, identified as JADEPUFFER, demonstrates advanced evasion techniques by iteratively constructing Python scripts to escape the container and encrypt host files.
  • ENCFORGE is a compiled Go binary that uses AES-256-CTR encryption and deliberately targets specific AI file formats like GGUF, SafeTensors, and FAISS indexes.

Why It Matters

This incident highlights a critical shift in cyber threats where attackers are moving beyond general data theft to specifically destroying proprietary AI assets, which are often irreplaceable and expensive to recreate. It underscores the severe risks associated with exposing AI development tools like Langflow to the internet without proper authentication, serving as a stark warning for organizations deploying open-source AI frameworks.

Technical Details

  • Vulnerability: The entry point is CVE-2025-3248, a CVSS 9.8 RCE flaw in Langflow <1.3.0 that exposes the /api/v1/validate/code endpoint without authentication.
  • Malware Specifications: ENCFORGE is a static Go 1.22.12 ELF binary packed with UPX 5.20, hidden as /.lockd. It uses AES-256-CTR for data encryption and RSA-2048 for key wrapping, employing region-based encryption for performance.
  • Targeted File Types: The malware scans for approximately 180 extensions, focusing on AI-specific formats such as PyTorch/TensorFlow checkpoints, Hugging Face SafeTensors, ONNX, GGUF/GGML, FAISS indexes, and Parquet/Arrow datasets.
  • Attack Chain: The operator utilized the Docker socket (/var/run/docker.sock) to create privileged containers with host PID and filesystem namespaces, allowing it to break out of the container and execute the ransomware on the host system via nsenter.
  • Evasion Techniques: The attacker bypassed signature-based detection by building Python scripts incrementally over several minutes, using base64 encoding within exec() calls to avoid triggering shell-level command searches.

Industry Insight

  • Organizations must immediately patch Langflow to version 1.3.0 or later and ensure that no AI development interfaces are exposed to the public internet without robust authentication and network segmentation.
  • Security teams should monitor for anomalous Docker socket access and privileged container creation, as these are strong indicators of container breakout attempts targeting host-level resources.
  • AI providers and enterprises should treat model weights and training data as high-value assets requiring specialized backup and integrity monitoring strategies, distinct from traditional IT data protection.

TL;DR

  • JADEPUFFER攻击组织利用Langflow未授权RCE漏洞(CVE-2025-3248)部署新型Go语言勒索软件ENCFORGE,专门针对AI基础设施文件进行加密。
  • ENCFORGE恶意软件精准锁定PyTorch/TensorFlow权重、向量索引及训练数据集等约180种AI相关扩展名,采用AES-256-CTR混合RSA-2048加密,无数据外泄行为。
  • 攻击者通过Docker Socket逃逸容器限制,以特权模式挂载宿主机根文件系统,成功在宿主环境中执行勒索软件,展现了极高的自适应与持久化能力。
  • 该事件标志着勒索软件攻击重心从传统业务数据向高价值AI资产(模型权重、训练数据)转移,且攻击者具备自动化脚本构建与即时修复失败尝试的高级威胁智能特征。

为什么值得看

本文揭示了针对AI供应链和基础设施的新型定向攻击手法,警示AI从业者必须将模型资产安全纳入核心防御体系。同时,它展示了攻击者如何利用常见的开发工具链漏洞(如Langflow)进行容器逃逸,为云原生环境下的AI安全防护提供了关键的实战案例参考。

技术解析

  • 漏洞利用与入口:攻击利用Langflow版本低于1.3.0的CVE-2025-3248漏洞,该漏洞允许未经身份验证的攻击者在/api/v1/validate/code端点执行任意Python代码,CVSS评分高达9.8。
  • 恶意软件特性:ENCFORGE是基于Go 1.22.12编译的静态ELF二进制文件,使用UPX加壳。其核心逻辑是扫描并加密特定扩展名的文件,包括SafeTensors、GGUF、FAISS索引、Parquet数据集等,采用区域加密策略以加速过程,并通过内嵌RSA公钥保护对称密钥。
  • 容器逃逸技术:攻击者首先通过RCE获取容器内权限,发现Docker Socket暴露后,动态构建Python脚本绕过检测。最终利用Docker API创建特权容器(挂载宿主机PID命名空间和根文件系统),通过nsenter技术将ENCFORGE注入宿主进程并执行,实现从容器到宿主机的横向移动。
  • 隐蔽性与持久化:恶意载荷隐藏为.lockd文件以避开目录列表,运行时删除自身痕迹。勒索信中包含联系邮箱e783973397@proton.me,作为前后两次攻击活动的强关联证据。

行业启示

  • 强化AI组件安全基线:Langflow等AI编排工具若存在高危RCE漏洞,将成为攻击者进入核心数据区的跳板。企业需立即修补已知漏洞,并对所有暴露给网络的AI服务接口实施严格的身份验证和网络隔离。
  • 重构容器安全边界:Docker Socket的暴露是容器逃逸的典型根源。应遵循最小权限原则,禁止容器访问宿主机Socket,或使用更安全的替代方案(如Kaniko、Buildah)进行镜像构建,防止特权容器滥用。
  • 建立AI资产专项防护:鉴于勒索软件开始专门针对模型权重和训练数据,企业应建立独立的AI资产备份机制(离线备份),并监控针对特定AI文件扩展名的异常加密行为,将其纳入SIEM/SOC的重点告警规则中。

Disclaimer: The above content is generated by AI and is for reference only. 免责声明:以上内容由 AI 生成,仅供参考。

Security 安全 Open Source 开源 Agent Agent