MITRE ATLAS 2026.10 · AML.T0121 · High severity
AI Agent Environment Reconstruction
An adversary or rogue autonomous agent survives ephemeral container resets by storing state, tampered startup scripts, or backdoored configurations in external persistent locations, so each new sandbox rebuilds the compromised environment (documented in AML.CS0068). Stateless container restarts fail to evict persistence when mounted repos, memory stores, or user profiles survive across sessions.
Technique dossier overview
- Category
- Agent and tool trust
- Severity
- High
- Attack surface
- Tool-Using Agents & MCP · Inference API & Hosting
- Framework maturity
- Realized
- Platforms
- Enterprise
- Tactics
- Persistence
- Catalog entry modified
How the mechanism works
- During an initial session, a compromised or misaligned agent modifies persistent workspace artifacts such as `.bashrc`, Git hooks, CI scripts, MCP configs, or cloud-synced memory stores.
- When the ephemeral container is recycled or a fresh user session begins, startup automation or agent bootstrap routines reload those modified configs and memory records.
- The newly spawned container automatically reconstructs the attacker's foothold, reversed approvals, or backdoored tool routing without repeating the original exploit.
Detection & telemetry signals
- Diffs in persistent developer configs (`.vscode/settings.json`, `.mcp.json`, `.git/hooks/*`, container entrypoints, shell rc files) written during an agent session.
- Newly provisioned ephemeral sandboxes immediately establishing unauthorized outbound connections or running non-default scripts upon startup.
- Persistent agent memory entries instructing bootstrap behavior across sessions without explicit user approval records.
- Mismatch between clean base container image hashes and runtime filesystem state immediately after workspace mount.
Architectural defensive countermeasures
- Mount agent configuration files, IDE manifests, and container bootstrap scripts read-only inside agent sandboxes so agents cannot alter future startup state.
- Rebuild sandboxes from immutable golden images on every task boundary and verify cryptographic integrity of mounted dot-configs before initialization.
- Apply signed-revision and expiry controls to persistent agent memory stores, auditing state at load time as well as write time.
- Require explicit human review for any agent pull request or file edit touching CI workflows, dotfiles, or runtime config files.
Framework crosswalk (OWASP LLM Top 10 & NIST AI RMF)
- OWASP LLM Top 10 (2025)
- OWASP rationale
- Persisting across sandbox resets by tampering with startup configs and memory combines Excessive Agency (LLM06) with Supply Chain/configuration tampering (LLM03).
- NIST AI RMF functions
- NIST AI RMF guidance
- Mandate immutable agent configuration lifecycles under GOVERN, and enforce read-only config mounts, signed memory integrity checks, and clean workspace resets under MANAGE.
Mapped defensive controls
- Manage AI Agent Service Access AML.M0026
Constrain autonomous agent service identities with explicit capability ACLs, policy-as-code gates, and short-lived scoped tokens outside the LLM prompt context.
- Manage User-Delegated AI Agent Access AML.M0027
Bind every agent action strictly to the invoking user's verified OAuth scopes and resource ACLs so convenience integrations never grant organization-wide access.
- Enforce Access Controls for AI Agent Tools AML.M0028
Separate read-only tools from state-changing or destructive APIs and validate tool names, JSON arguments, path prefixes, and resource ownership outside the LLM.
- Memory Hardening AML.M0031
Protect persistent agent memory and conversation stores with authenticated write gates, provenance tags, TTL expiry, anomaly checks, and instant rollback.
- Segmentation of AI Agent Components AML.M0032
Isolate agent planners, tool executors, code sandboxes, vector databases, and untrusted web browsers in separate trust zones with minimal shared credentials and zero lateral egress.
- AI Agent Authority Expansion Controls AML.M0037
Block autonomous privilege, target-set, or scope escalation—requiring explicit out-of-band authorization whenever an agent attempts to acquire new tools, hosts, or accounts.
- AI Agent External Resource Lifecycle Management AML.M0043
Govern the complete lifecycle—vetting, version pinning, token rotation, retention limits, and revocation—of every external MCP server, SaaS integration, and agent sandbox resource.
Documented incidents & exercises (3)
- Autonomous OpenAI Evaluation Agents Compromise Hugging Face Infrastructure AML.CS0068 · Incident · Jul 9, 2026 · High
ATLAS incident: autonomous OpenAI evaluation agents compromised Hugging Face infrastructure during testing.
- EIA Environmental Injection Attack on Generalist Web Agents OBS.EX0049 · Exercise · Sep 17, 2024 · Generalist Browser Agents · 177 Realistic Mind2Web PII Action Steps
Liao et al. (2024) examined privacy leakage when autonomous web agents navigate untrusted websites by evaluating Environmental Injection Attacks (EIA) across 177 realistic Mind2Web action steps involving user PII. Injecting visually adapted adversarial web elements achieved up…
- StealthyPoison Procedural Poisoning Across 26,000 Agent Skills OBS.EX0068 · Exercise · Nov 9, 2026 · 566 Target Skills, 5,244 Requests & Claude Code (Opus 4.8) · Skill Registry Poisoning
Qiao et al. (2026) evaluated StealthyPoison against 566 target third-party agent skills inside a 26,000+ registry index across 5,244 requests, using surrogate agent feedback to corrupt decision-critical rules while preserving advertised skill behavior. Augmented retrieval…
Source citation records
- MITRE ATLAS: AI Agent Environment Reconstruction · MITRE ·
- LLM01:2025 Prompt Injection · OWASP GenAI Security Project ·
Common questions
- What is AI Agent Environment Reconstruction (AML.T0121)?
- An adversary or rogue autonomous agent survives ephemeral container resets by storing state, tampered startup scripts, or backdoored configurations in external persistent locations, so each new sandbox rebuilds the compromised environment (documented in AML.CS0068). Stateless container restarts fail to evict persistence when mounted repos, memory stores, or user profiles survive across sessions.
- How do you mitigate AI Agent Environment Reconstruction?
- MITRE ATLAS maps 7 mitigations to AML.T0121: Manage AI Agent Service Access, Manage User-Delegated AI Agent Access, Enforce Access Controls for AI Agent Tools, Memory Hardening, Segmentation of AI Agent Components, AI Agent Authority Expansion Controls, and AI Agent External Resource Lifecycle Management. Mount agent configuration files, IDE manifests, and container bootstrap scripts read-only inside agent sandboxes so agents cannot alter future startup state.