← Back to feed

Marimo CVE-2026-39987 Exploited by LLM Agent for Post-Compromise Cloud Credential Theft and Lateral Movement

Date: 2026-06-12
Tags: malware, prompt-injection

Executive Summary

An unknown threat actor has been observed using a large language model (LLM) agent to conduct post-compromise actions after obtaining initial access following the exploitation of a publicly-accessible Marimo network. The attacker compromised an internet-reachable Marimo notebook via CVE-2026-39987, extracted two cloud credentials from the compromised host, replayed them through a fanned-out egress pool to retrieve an SSH private key from AWS Secrets Manager, and used that key to drive eight short SSH sessions against a downstream SSH bastion server. This represents one of the first documented cases of LLM agents autonomously conducting multi-stage post-exploitation workflows without human direction between steps.

Campaign Summary

FieldDetail
Campaign / MalwareMarimo RCE → LLM Agent Post-Exploitation Chain
AttributionUnknown (unattributed threat actor) (confidence: none)
TargetOrganizations running exposed Marimo notebook instances in cloud environments
VectorCVE-2026-39987 pre-authenticated RCE + autonomous LLM agent orchestration
Statusactive
First Observed2026-05-31

Detailed Findings

CVE-2026-39987 refers to a critical pre-authenticated remote code execution vulnerability impacting all versions of Marimo prior to and including 0.20.4. The post-compromise workflow demonstrates orchestration: initial RCE → credential extraction from environment → AWS API calls via stolen credentials → Secrets Manager key retrieval → SSH lateral movement. This attack chain bypasses traditional endpoint defenses by using cloud-native APIs (AWS Secrets Manager) accessed through legitimate credentials, leaving minimal forensic evidence.

MITRE ATT&CK Mapping

TechniqueIDContext
Exploit Public-Facing ApplicationT1190CVE-2026-39987 RCE in Marimo pre-auth endpoint
Unsecured CredentialsT1552.001Cloud credentials extracted from compromised Marimo environment
Lateral MovementT1021.004SSH sessions via stolen AWS private key against bastion

IOCs

Domains

_Sysdig disclosed incident details; specific C2/actor infrastructure not published_

Full URL Paths

_Sysdig disclosed incident details; specific C2/actor infrastructure not published_

Splunk Format

_No IOCs available for Splunk query_

Package Indicators

marimo (versions <= 0.20.4)

Detection Recommendations

Identify and isolate exposed Marimo instances (should not be internet-accessible); apply CVE-2026-39987 patches immediately (version > 0.20.4); monitor AWS CloudTrail for unauthorized Secrets Manager API calls from development/notebook environments; establish network segmentation preventing notebook VPC egress to production bastions; track LLM API usage in post-compromise forensics; implement credential rotation policies for cloud service accounts used in development notebooks.

References