ENCFORGE: JADEPUFFER Escapes a Langflow Container and Runs Ransomware Built for AI Model Files
Sysdig watched JADEPUFFER, an operator it assesses to be AI-driven, re-enter a Langflow instance (an open source framework for building LLM applications) through CVE-2025-3248, an unauthenticated code-execution flaw. From the container it reached the host's Docker socket, started a privileged container sharing the host's process namespace, and launched ENCFORGE on the host: Go ransomware that targets model checkpoints, vector indexes and training datasets. Sysdig observed the commands, a failed download, the escape scripts and the live run; the victim and file count are not stated.
Same instance, same way in. Sysdig's first JADEPUFFER report, published July 1, 2026, described an intrusion into an internet-facing Langflow instance. Its July 20 report covers the operator's return to that instance through the same flaw: CVE-2025-3248, where Langflow's /api/v1/validate/code endpoint executes Python sent without authentication. CISA listed it as exploited in May 2025, and Langflow 1.3.0 fixed it.
Credentials first, then the Docker socket. Sysdig observed the operator search the environment for cloud keys, database connection strings and API tokens, probe internal services, and try the credentials against internal database and cache services. It then found /var/run/docker.sock and confirmed that the Docker daemon answered. Sysdig's point: access to this socket is equivalent to root on the host, because any process that can write to it can request a privileged container with the host filesystem mounted.
A failed download, then an escape written on the spot. A curl download of the ransomware from 34.153.223[.]102:9191 did not land. The operator then wrote and revised Python scripts through the same Langflow channel. Sysdig's timeline lists seven versions between 12:07:01 and 12:12:28, and the report counts six scripts and five minutes and 24 seconds to a working host escape.
From container to host. The final script called the Docker API over the socket and created short-lived containers with Privileged: True, PidMode: host and the host root mounted at /host. Inside them, nsenter --target 1 joined the host's namespaces, so later commands ran on the host. The script copied the binary lockd out of the application container, ran it once in scan-only mode, started it with --lock, and counted files ending in .locked. How the binary reached the container after the failed download is not stated.
What ENCFORGE does. Sysdig retrieved and analyzed the binary. With --lock, it stops processes holding file locks, encrypts regions of each matching file with AES-256-CTR, protects the key with an embedded RSA-2048 public key, renames the file to .locked, leaves a ransom note and deletes itself. About 180 extensions are targeted, including .safetensors, .gguf and .ckpt for models, .faiss for vector indexes, and .parquet for datasets.
What the evidence does not show. The binary has no network code and Sysdig saw no evidence of data leaving, so the only leverage is the encrypted files. The report does not name the victim or say how many files were encrypted. Sysdig estimates 75,000 to 500,000 US dollars to rebuild one fine-tuned model; training data on the same host must be reconstructed first, and vector indexes after that.
The whole escape ran through the host's Docker socket, reachable inside the Langflow container. Run Langflow under an enforced container baseline: non-root and outside the socket's group, no privilege escalation, capabilities dropped, and no container-runtime socket or host path among its volumes. The daemon check fails, and the container-creation request has nothing to reach. Kubernetes can enforce this at pod admission; a standalone Docker host has no such check, so review the Compose file itself.
Deployed AI Software Vulnerability Remediation Lifecycle
Very High
Langflow 1.3.0 fixed CVE-2025-3248 by requiring authentication on the code-validation endpoint. Rebuild on a fixed release, deploy it to every instance and read back each running image digest. Close the finding only after an unauthenticated request to /api/v1/validate/code is rejected on the instance as configured: a later Langflow advisory notes that default AUTO_LOGIN gives any caller a superuser token. It also lists releases through 1.8.2 as affected by a separate flaw, CVE-2026-33017, fixed in 1.9.0.
ENCFORGE's leverage is the absence of a second copy. Keep every promoted model version in object storage with retention lock, record its digest in a signed recovery manifest, and keep the serving host, Langflow and deployment identities out of the backup-writer role. Root on the container host then cannot delete or overwrite the stored versions. This is recovery, not prevention: encryption still happens, and work since the last stored version is lost.
Sysdig notes that when training data sits on the same host as the models, recovery is blocked until that data exists again, and vector indexes can be rebuilt only afterwards. Restore each affected dataset from the most recent trusted pre-intrusion snapshot into a new, isolated location, verify every member's digest against the backup manifest, then rebuild indexes and retrain. The snapshot must be immutable and stored where the compromised host could not write.
The entry request carried no credential. An authenticating gateway in front of Langflow's API refuses any request without a verified, short-lived key before it reaches /api/v1/validate/code, provided no network path reaches the Langflow port around the gateway. Unlike the fixed release, this holds even when Langflow's own login stays at its permissive default. It covers machine callers only, and a caller with a valid key can still submit code to that endpoint.
The operator read cloud keys, database connection strings and API tokens from Langflow's environment and tried them against internal services, so every secret that process could read must be treated as known. Revoke and reissue each one at the system that verifies it, move every consumer to the new value, and confirm with a fresh attempt that the old value is refused. Tokens and sessions already issued from those secrets need separate revocation.
The second report is itself the case for this control: the same Langflow instance, entered again through the same flaw. After remediation, an independent tester replays the incident's own requests in an isolated copy of each affected instance: the unauthenticated validation request, then the Docker socket check from inside the container. The path counts as closed only when no code runs and the daemon cannot be reached. The replay verifies fixes; it performs none.
Infrastructure as Code (IaC) Security Scanning for AI Systems
Medium
A socket mount is visible in the deployment definition long before anyone exploits it. Where Langflow is deployed from version-controlled definitions, make an infrastructure-as-code scan a required check that blocks any container definition mounting a container-runtime socket, setting privileged mode or joining a host namespace. Test the rule in the format actually used. The gate never sees a container started by hand or created through the Docker API, as in this intrusion.
The first delivery attempt was a plain HTTP download from 34.153.223[.]102 on port 9191. Default-deny egress enforced outside the Langflow container, with only the destinations the workflows need allowed, refuses that connection and any later callback. In this session the download had already failed and the binary still arrived by a route the report does not describe, so egress control removes the easiest delivery path without deciding the outcome.
Before turning to the Docker socket, the operator probed internal services with /dev/tcp and tried harvested credentials against internal database and cache services. Least-privilege rules between components, such as a security group on each database that admits only the services that must connect, limit a compromised Langflow host to the backends its workflows use. Backends Langflow is allowed to reach stay exposed to stolen credentials.
What Defenders Should Do Now
Check what the Langflow container can reach. In each running Langflow container, list mounts and the process user. Pass: no container-runtime socket or host path is mounted, the process is not root or in the socket's group, and a harmless version request to /var/run/docker.sock fails. Add the same rule to the deployment pipeline so such a definition cannot be merged.
Confirm the entry is closed, not just patched. Releases before 1.3.0 are exposed to CVE-2025-3248, and Langflow's advisory for CVE-2026-33017 lists releases through 1.8.2 as affected and 1.9.0 as fixed, so upgrade to at least 1.9.0. Then send unauthenticated requests to /api/v1/validate/code and /api/v1/auto_login from outside the trusted network. Pass: both are refused.
Prove that models and data can come back. Pick one production model and one training dataset. Pass: an immutable copy exists where the Langflow host and its credentials cannot write or delete, its digest matches the recorded manifest, and a restore into an isolated location completes.
Rotate what the Langflow process could read. On any host that ran a vulnerable release, list secrets in environment variables, instance metadata and credential files, revoke and reissue each at its issuer, and confirm the old value is refused. Sysdig also advises keeping model provider API keys out of Langflow's runtime environment.
Test the network limits around Langflow. From the container, try one connection to an unapproved external address and one to an internal service the workflows do not use. Pass: both are blocked outside the container.
Alert on the escape pattern. On a staging host, trigger and confirm alerts for an application process calling the Docker API, a container created with privileged mode and the host PID namespace, nsenter --target 1 from a container, and mass renames to .locked in model directories.
2 additional considerations
Runtime alerts on the container host
The escape took minutes and left distinct traces on the host: an application process calling the Docker API, a container created with privileged mode and the host PID namespace, nsenter joining the namespaces of PID 1, and many files renamed to .locked.
Recommendation: Security operations can add host runtime rules for each of those signals, as Sysdig lists them, and route them to an on-call responder or an automated containment action. This needs a sensor that sees host process and container-engine events. The rules detect; they stop nothing unless a response follows within minutes.
A filtering proxy for workloads that do need the container engine
Some workloads, such as build runners or tools that launch sandboxes, cannot simply drop the Docker socket.
Recommendation: For those, the platform team can place a socket proxy between the workload and the daemon and allow only the specific API calls the workload needs, which is Sysdig's advice. Where a workload must create containers, an engine-side authorization rule can additionally reject privileged mode, host namespaces and host path mounts. Langflow itself needs no container-engine access, so this is for other workloads.
Conclusion
The operator reached the host because of two conditions in the target environment: a Langflow release still open to a flaw publicly known to be exploited for more than a year, and a container that could talk to the host's Docker daemon. AIDEFEND ↗ maps this path to three places to act: container isolation that keeps the runtime socket away from Langflow, remediation and authenticated access that close the entry, and retention-locked model versions with data restoration that turn encrypted files into a restore job.