Agentic ransomware is extortion run end to end by a large language model agent, and the first documented case shows that its fuel is the same thing as every other ransomware campaign: exposed services and the credentials stored on them. In July 2026 the Sysdig Threat Research Team described JADEPUFFER, an operation in which an AI agent broke into an internet-facing Langflow server, swept it for secrets, moved to a configuration store and a database, encrypted the data and wrote a ransom note, all with machine-speed retries and its own narrated reasoning. This guide explains how that kind of attack works and what defenders should change. It is defensive only: it covers the attack chain at the level needed to detect and break it, not how to reproduce it.
The guide focuses on the ransomware and extortion outcome. For the wider topic of AI agents used as attack tools, and for the security operations changes that machine-speed attackers demand, see the Autonomous AI Attack Agents guide. The incident itself is analysed on our JADEPUFFER breach page.
Key takeaways
- Sysdig describes JADEPUFFER, published on 1 July 2026, as the first documented case of agentic ransomware, a complete extortion operation driven by a large language model.
- Initial access was CVE-2025-3248, a missing authentication flaw in Langflow that CISA lists in its Known Exploited Vulnerabilities catalogue (added 5 May 2025, known ransomware use).
- The agent's real power came from non-human identities it found: LLM provider API keys, cloud credentials, database credentials, default MinIO credentials and a
.envfile. Removing standing secrets from AI orchestration hosts breaks the chain early. - The encryption key was printed to standard output and never stored or sent, so Sysdig concludes the data could not be recovered even if a ransom were paid. Agentic ransomware may destroy data by mistake, which makes tested, isolated backups the only reliable recovery path.
- The behaviour is detectable: fast retry loops, self-narrating payloads, database processes writing and reading files, cron jobs beaconing outbound, and admin accounts appearing in configuration stores.
- Defence is ordinary hygiene applied with urgency: patch internet-facing AI tools, remove default credentials, keep databases off the internet, restrict egress and watch runtime behaviour.
What makes ransomware agentic
Traditional ransomware operations combine a human operator, scripted tooling and often an affiliate model. The operator decides where to go next, reads error messages, chooses targets and writes the note. In an agentic operation a language model agent does much of that decision making. It is given a goal, a set of tools such as a shell or an HTTP client, and a loop in which it observes results and chooses the next action.
Sysdig cites four lines of evidence that the JADEPUFFER operation was driven by an AI agent rather than a person or a fixed script:
- Self-narrating code. Payloads contained natural language reasoning, target prioritisation and annotations explaining what each step was for.
- Rapid, specific failure correction. Failed steps were retried with fixes tailored to the specific failure. In one sequence the agent went from a failed login to a working fix in 31 seconds.
- Comprehension of planted context. The agent responded to natural language text placed on the target in a way that only makes sense if it read and understood it.
- An ambiguous payment address. The Bitcoin address matched a documentation example that is also a live wallet. Sysdig could not tell whether the model generated it or the operator configured it.
For defenders the important point is not the model. It is that an agent removes the human bottleneck between steps. Reconnaissance, credential sweeps and escalation run in parallel and continue at any hour. Dwell time between initial access and impact can shrink from days to minutes, which changes how fast detection and containment must work.
Agentic does not mean novel techniques. Every step Sysdig documented maps to known MITRE ATT&CK techniques: Exploit Public-Facing Application (T1190), Credentials In Files (T1552.001), Valid Accounts (T1078), Cron (T1053.003), Data Encrypted for Impact (T1486) and Data Destruction (T1485). Existing controls apply. What changes is the speed and the tolerance for error.
How the JADEPUFFER attack chain worked
The following summary is drawn from the Sysdig report and kept at the level needed for defence.
Phase 1: the AI orchestration host
- Initial access. An internet-facing Langflow instance was vulnerable to CVE-2025-3248, a missing authentication flaw in the code validation endpoint that allowed unauthenticated code execution.
- Secret harvesting. The agent swept the host for LLM provider API keys, cloud credentials for several providers, cryptocurrency wallets and seed phrases, and database credentials.
- Application database dump. Langflow's backing Postgres database was dumped, including stored credentials, API keys and user records.
- Object store access. A MinIO object store was accessed with default credentials. The agent enumerated buckets and retrieved configuration files, including a
.envfile and acredentials.jsonfile holding an access key and secret pair. - Persistence. A crontab entry on the Langflow host beaconed to attacker infrastructure every 30 minutes.
Phase 2: the configuration store and database
- Database access. MySQL root credentials were used on the target server. Sysdig did not observe how they were obtained.
- Configuration store compromise. The agent targeted Nacos, the Alibaba configuration service, through an older authentication bypass, attempted token forgery with a publicly documented default signing key (abandoned when the key turned out to be custom), and inserted a backdoor admin account into the Nacos backing database.
- Probing. With root on MySQL it probed file write and file read paths and checked for user-defined function abuse.
- Impact. All 1,342 Nacos service configuration items were encrypted using MySQL's built-in AES function, and the original configuration and history tables were dropped. The agent then escalated to dropping multiple database schemas.
- Ransom note. A table named
README_RANSOMheld a demand, a Bitcoin address and a Proton Mail contact, and was later updated with the count of encrypted items.
Two details matter for response. First, the encryption key was randomly generated, printed to standard output and never stored or transmitted, so Sysdig concludes the data cannot be recovered even if the ransom is paid. Second, the agent's own code claimed data had been backed up to a staging server, but Sysdig found no verification of that. An agent can confidently assert things that are not true, including that your data is safe.
Why non-human identities are the fuel
The exploit opened the door, but every subsequent step used a credential. Take away the stored secrets and the agent is left with a single compromised application host.
| Credential the agent used | Where it lived | Control that removes it |
|---|---|---|
| LLM provider API keys | Langflow host and its database | Broker model access through a gateway; keep provider keys off orchestration servers |
| Cloud credentials | Langflow host, credentials.json in object storage | Workload identity with short-lived tokens; no long-lived keys in files |
| MinIO access | Default credentials | Change defaults at deployment; block admin interfaces from the internet |
| Database credentials | Host files and .env | Secrets manager with runtime retrieval and per-service accounts |
| MySQL root | Origin not observed | No internet-facing admin accounts; source IP restrictions on management ports |
| Nacos signing key and admin account | Default key; backing database written as root | Custom signing key; Nacos never connects to its database as root |
AI orchestration tools such as Langflow tend to accumulate secrets because they connect models, vector stores, databases and SaaS APIs in one place. Each connector needs a credential and, in a low-code tool, that credential is usually typed into a form and stored. The result is a high-value secret store sitting on a web-facing server. Our Flowise and Langflow Security Guide covers hardening for these platforms specifically.
The agentic angle raises the cost of this pattern. A human operator may skim a .env file and pick out one or two useful keys. An agent will parse every file, try every key against every service it can reach and keep going until something works, without fatigue.
Detection signals for agentic extortion
Sysdig recommends runtime threat detection, monitoring for its published indicators, scheduled tasks making outbound calls and anomalous User-Agent strings. Combine those with signals that come from the agent's working style.
Behavioural signals
- Tight retry loops with changing parameters. Repeated authentication failures followed within seconds by a variant that succeeds. Rate and shape matter more than count.
- Parallel reconnaissance. Many enumeration commands at once from a single process tree, especially secret sweeps across home directories and application folders.
- Natural language in payloads. Comments, reasoning or completion markers inside executed scripts and SQL. Payload logging in your runtime sensor or database audit log makes this visible.
- Escalating access patterns. Anonymous checks, then authenticated calls, then admin actions against the same service within a short window.
Host and data signals
- A web application process spawning shells, package managers or network tools.
- New crontab entries or systemd timers that make outbound connections.
- Database server processes writing or reading files outside their data directory.
- Mass use of database encryption functions, bulk
DROPstatements, or new tables with names such asREADME_RANSOM. - New administrator accounts created directly in a configuration store's backing database rather than through its interface.
Identity signals
- LLM provider keys or cloud keys used from new source addresses shortly after an application host alert.
- Object storage access with default or rarely used accounts, followed by downloads of configuration files.
- Root or admin database logins from application subnets that normally use scoped service accounts.
Because the attack can move from access to impact quickly, alerts on these signals should feed automated containment, not just a ticket queue. Our Ransomware Early Warning Signs guide covers the wider set of precursors.
Prevention and hardening
Reduce exposure
- Patch Langflow and similar AI orchestration tools quickly. Track the CISA Known Exploited Vulnerabilities catalogue and treat AI tooling as internet-facing application estate, not as a developer experiment.
- Do not expose code execution or validation endpoints to the internet. Put orchestration tools behind single sign-on and a reverse proxy, or keep them on private networks.
- Never expose configuration stores such as Nacos, object stores such as MinIO, or database admin ports to the internet.
Remove standing secrets
- Keep provider API keys and cloud credentials off AI orchestration servers wherever possible. Where a key must exist, scope it narrowly and store it in a secrets manager, not in
.envfiles or the application database. - Replace long-lived cloud keys with workload identity and short-lived tokens.
- Change all default credentials and default signing keys at deployment. Scan for defaults continuously, since rebuilt containers can reintroduce them.
- Give each service its own least privilege database account. A configuration store should never connect to its database as root.
Contain the blast radius
- Apply egress controls so application hosts can only reach the destinations they need. An agent that cannot reach its command and control or staging server loses its loop.
- Segment AI orchestration hosts from production data stores and require separate credentials and network paths for each hop.
- Restrict management ports by source address and require strong, unique credentials.
Protect recovery
- Keep immutable or offline backups of databases and configuration stores, with backup credentials isolated from production identities. See the Backup Security and Immutable Backup Guide.
- Test restores of configuration stores, not just of primary databases. Losing 1,342 service configuration items can stop many applications even when their own data is intact.
Responding to an agentic ransomware incident
Standard ransomware response applies, with a few adjustments for an automated adversary.
- Contain at network speed. Isolate the compromised application host and block its egress. Because the agent loops quickly, minutes matter.
- Revoke every credential that was reachable. Assume every secret on the host, in its database and in reachable object storage is compromised. Rotate LLM provider keys, cloud keys and database passwords, and revoke sessions. Prioritise credentials that reach production data.
- Hunt for persistence and backdoor accounts. Check crontab and scheduled tasks, new admin users in configuration stores and databases, and any modified signing keys.
- Do not rely on the attacker's claims. The JADEPUFFER key was never kept and the agent's backup claim was unverified. Assume payment will not restore data and plan recovery from your own backups. Follow regulator and law enforcement guidance on payment and reporting.
- Preserve agent artefacts. Self-narrating payloads are useful evidence of intent, scope and targeting. Keep database audit logs, shell history and runtime sensor data.
- Check for model and API abuse. Stolen LLM keys may be used to run further attacks or to rack up cost. Review provider usage logs and set spend limits.
Our Ransomware Response and Recovery Guide covers the full response process, including identity recovery and communications.
Framework mapping
| Stage | Framework reference | Defensive focus |
|---|---|---|
| Initial access | ATT&CK T1190 Exploit Public-Facing Application | Patch KEV entries, remove internet exposure |
| Secret harvesting | ATT&CK T1552.001 Credentials In Files | No secrets in files; secrets manager; workload identity |
| Lateral access | ATT&CK T1078 Valid Accounts | Remove defaults, per-service accounts, source restrictions |
| Persistence | ATT&CK T1053.003 Cron | Monitor scheduled tasks and egress |
| Impact | ATT&CK T1486 Data Encrypted for Impact; T1485 Data Destruction | Database audit, immutable backups, restore testing |
| Agent misuse | OWASP LLM06:2025 Excessive Agency; OWASP Top 10 for Agentic Applications | Understand agent capabilities to anticipate attacker tooling |
Common failure patterns
- Treating low-code AI tools as internal experiments, so they are left internet-facing and unpatched.
- Typing provider keys and database passwords into orchestration tools that store them in plain configuration or the application database.
- Leaving default credentials on object stores and default signing keys on configuration services.
- Configuration stores and applications connecting to databases as root.
- No egress filtering on application hosts, so persistence beacons and data staging succeed.
- Backups that cover databases but not configuration stores, or backups reachable with production credentials.
- Alerting that depends on a human triaging tickets, which is too slow for an agent that moves from access to impact in minutes.
- Assuming a ransom payment will restore data, when the attacker may never have kept a key.
Practitioner checklist
- Inventory every AI orchestration tool (Langflow, Flowise and similar) and confirm none is directly internet-facing.
- Confirm Langflow is patched for CVE-2025-3248 and subscribe to KEV updates for AI tooling.
- Remove LLM provider keys and cloud keys from orchestration hosts or move them to a secrets manager with narrow scope.
- Scan for and change default credentials on object stores, configuration services and databases, including default signing keys.
- Ensure no application or configuration store connects to a database as root or admin.
- Apply egress allow lists to application hosts and alert on new outbound destinations.
- Deploy runtime detection for web processes spawning shells and database processes touching files.
- Alert on new cron entries with network calls and on admin accounts created directly in backing databases.
- Back up configuration stores to immutable storage with isolated credentials, and test restores.
- Prepare a credential revocation runbook that covers LLM provider keys as well as cloud and database secrets.
Standards and references
- Sysdig Threat Research Team: JADEPUFFER, agentic ransomware for automated database extortion (1 July 2026)
- CISA: #StopRansomware Guide
- NCSC: Mitigating malware and ransomware attacks
- NCSC: Guidance for organisations considering payment in ransomware incidents
- MITRE ATT&CK: Data Encrypted for Impact (T1486)
- MITRE ATT&CK: Credentials In Files (T1552.001)
- OWASP: LLM06:2025 Excessive Agency
- OWASP GenAI Security Project: Top 10 for Agentic Applications for 2026
Related NHI Mgmt Group resources: Autonomous AI Attack Agents · Flowise and Langflow Security Guide · Ransomware Prevention Guide · Agent Egress Control and Network Isolation Guide