"The Rhysida Files" & AI-Driven Intrusions: Threat Actor Deploys OpenCode AI Coding Agent with Markdown Session State, Metabase CVE-2026-72898 Exploits, and Veeam Deletion
Metabase CVE-2026-72898 (CVSS 9.8) / AI Threat Profile (CWE-89 SQL Injection / CWE-287 Improper Authentication / Agentic AI Abuse)
Severity: CRITICAL (AI CODING AGENT AUTOMATES ACTIVE RANSOMWARE INTRUSIONS) (CVSS 9.8 Critical (Metabase Stacked SQL Injection))
Threat Actor: Russian-Speaking Rhysida Ransomware Affiliate / OpenCode AI Agent
Status: Investigated by CloudSEK ("The Rhysida Files"); Unsecured Staging Server Exposed Nov 28
Affected Systems: Metabase < 0.50.22 / 1.50.22; Enterprise SSL VPNs lacking MFA; Veeam Backups
Fixed In: Metabase 0.50.22 / 1.50.22; Mandatory FIDO2 MFA; Immutable Backups
In a groundbreaking intelligence disclosure published over the weekend, cybersecurity research firm CloudSEK released "Caught in 4K: The Rhysida Files", providing definitive forensic proof that human ransomware affiliates are actively integrating autonomous AI coding agents into live intrusion lifecycles. Investigating an unsecured operational staging server left exposed to the public internet by a Russian-speaking affiliate of the Rhysida ransomware syndicate, CloudSEK recovered custom C2 compilation scripts, operational notes, and the operator’s entire AI toolchain. The threat actor deployed an open-source coding agent (identified as OpenCode) equipped with a structured markdown memory architecture (task.md, facts.md, and progress.md) to maintain continuous contextual state across multi-day intrusions. The AI agent systematically discovered network topologies, automated the exploitation of a stacked SQL injection vulnerability in Metabase (CVE-2026-72898), located and purged Veeam network backups, and orchestrated the exfiltration of sensitive victim databases to Azure Blob Storage.

Anatomy of the AI Coding Agent Workflow: Solving Memory Decay
One of the primary historical limitations of applying LLMs to multi-stage cyber intrusions has been context window exhaustion and session memory decay. The Rhysida affiliate overcame this challenge by adopting an engineering pattern widely used by legitimate software developers:
1. Structured Markdown State Architecture
The operator configured OpenCode to read and write three persistent markdown files at the root of the operational directory before and after every execution turn:
task.md: Defined the high-level objective of the current intrusion phase (e.g., "Scan subnet 10.140.0.0/16, identify database hosts, exploit Metabase, and dump table schemas").facts.md: Stored confirmed environmental discoveries, including discovered domain controllers, administrator username patterns, open ports, and valid credentials.progress.md: Tracked the exact sequential execution status, noting which targets had been probed, which failed, and which had active C2 listeners established.
2. Re-Entry Prompts for Session Continuity
When the operator or automated script initiated a new AI agent session, it passed a standardized re-entry prompt:
"Read task.md, facts.md, and progress.md. Summarize current operational state in 2 sentences,
then proceed to the next incomplete task in progress.md without asking for confirmation."This allowed the threat actor to execute complex, multi-day intrusions with near-zero latency, maintaining unbroken continuity even if individual agent processes crashed or were restarted.
Weaponization: Exploiting Metabase SQLi (CVE-2026-72898) & Purging Backups
The AI coding agent was not merely generating boilerplate scripts; it was actively driving terminal execution and network payloads:
1. Metabase Unauthenticated Stacked SQL Injection
The operator directed the agent against perimeter and internal business intelligence servers running Metabase. The agent weaponized CVE-2026-72898—a critical vulnerability in Metabase’s password reset endpoint where user input in the token parameter is passed directly into a raw SQL query string:
POST /api/session/password_reset HTTP/1.1
Host: bi.victim-corp.com
Content-Type: application/json
{"token": "valid_token'; UPDATE core_user SET is_superuser=TRUE WHERE email='[email protected]';--"}The agent detected the vulnerability, executed the stacked query to grant superuser privileges to a designated account, extracted customer and financial tables, and streamed the data to an attacker-controlled Azure Blob storage container.
2. Automated Backup Discovery and Purging
To maximize extortion pressure, the AI agent executed automated PowerShell scripts designed to identify Veeam Backup & Replication repositories across domain-joined servers:
Get-VBRBackup | ForEach-Object { $_.Delete() }
vssadmin delete shadows /all /quietBy automating the discovery and deletion of local and network backups, the attacker eliminated the victim’s ability to recover without paying the extortion fee.
Detection Telemetry & Behavioral Signatures
Sigma Rule: Detecting AI Agent State File Patterns
title: Suspicious AI Agent State Tracking Files on Non-Dev Workstations
id: b4c2e178-90a1-43ef-89a2-aiagentstate2026
status: experimental
description: Detects the simultaneous creation or rapid reading of task.md, facts.md, and progress.md in temporary or staging directories.
logsource:
category: file_event
detection:
selection:
TargetFilename|endswith:
- ' ask.md'
- 'acts.md'
- 'progress.md'
Image|contains:
- 'python'
- 'opencode'
- 'node'
condition: selection
level: highYARA Rule: Rhysida AI Staging Artifacts
rule Rhysida_AI_Staging_Artifacts {
meta:
description = "Detects Rhysida AI agent orchestrator scripts and prompt templates"
author = "ColibriSec Threat Intelligence"
date = "2026-11-30"
strings:
$s1 = "Read task.md, facts.md, and progress.md" ascii
$s2 = "OpenCode" ascii nocase
$s3 = "UPDATE core_user SET is_superuser" ascii
$s4 = "VeeamBackup" ascii nocase
condition:
2 of them
}Defensive Countermeasures & AI Threat Governance
- Perimeter MFA Mandate: The root entry vector in nearly all cases remains stolen VPN or RDP credentials without MFA. Enforce FIDO2 hardware tokens on 100% of external access points.
- Patch Metabase: Ensure Metabase instances are upgraded to versions 0.50.22 or 1.50.22 or higher.
- Protect Backup Repositories: Disconnect Veeam and backup repositories from domain authentication. Utilize hardened, immutable Linux repositories with multi-person authorization required for backup deletion.
- Audit Local AI Runtimes: Restrict the execution of unauthorized AI coding agents and local LLM runtimes on enterprise endpoints.