MITRE ATLAS 2026.10 · AML.T0037 · High severity
Data from Local System
Adversaries collect credentials, `.env` secrets, SSH keys, browser tokens, and sensitive local files from developer laptops, CI runners, or agent sandboxes via compromised ML packages, IDE extensions, or hijacked local coding assistants. Because AI development environments frequently hold cloud keys and model-hub tokens in plaintext, local collection rapidly escalates into cloud-wide compromise.
Technique dossier overview
- Category
- Infrastructure and access
- Severity
- High
- Attack surface
- Tool-Using Agents & MCP · Model Weights & Supply Chain
- Framework maturity
- Realized
- Platforms
- Enterprise
- Tactics
- Collection
- Catalog entry modified
How the mechanism works
- An attacker gains local execution through a malicious ML package, poisoned `.cursorrules` file, backdoored MCP server, or prompt-hijacked coding agent.
- File-read tools, local shell invocations, or install-time scripts sweep standard home-directory credential paths, environment variables, and repository configs.
- Harvested secrets and local source files are staged for exfiltration over outbound API calls or hidden tool parameters.
Detection & telemetry signals
- Endpoint EDR or agent file-access logs catching unexpected reads against `~/.ssh`, `~/.aws`, `~/.config`, or `.env` files by an AI agent or Python install process.
- IDE coding assistants generating or running obfuscated shell commands that inspect environment variables or dump keychain entries.
- DLP monitors flagging local config files or token prefixes inside outbound agent tool parameters.
Architectural defensive countermeasures
- Restrict local coding agents and MCP file tools explicitly to scoped workspace project directories, denying access to home-directory dotfiles, SSH keys, and OS keychains.
- Replace long-lived static `.env` cloud keys on developer workstations with short-lived, hardware-MFA-gated SSO sessions.
- Run third-party ML tools, notebooks, and untrusted repositories inside ephemeral devcontainers lacking host credential mounts.
- Require explicit user confirmation showing exact file paths before local agents read outside the current project root or invoke network-capable tools.
Framework crosswalk (OWASP LLM Top 10 & NIST AI RMF)
- OWASP LLM Top 10 (2025)
- OWASP rationale
- Local system data collection harvests host secrets (LLM02) via over-broad local file/shell agent tools (LLM06) or trojanized packages and extensions (LLM03).
- NIST AI RMF functions
- NIST AI RMF guidance
- Apply NIST AI RMF GOVERN and MANAGE by sandboxing local AI tools strictly to project directories and replacing static workstation credentials with ephemeral tokens.
Mapped defensive controls
- Control Access to AI Models and Data at Rest AML.M0005
Lock down stored model weights, LoRA adapters, training corpora, vector indexes, and backups with strict least-privilege IAM, private networking, and zero public bucket ACLs.
- Restrict Library Loading AML.M0011
Eliminate unsafe deserialization (Python pickle, torch.load) and block arbitrary dynamic code/library loading when handling untrusted model weights, datasets, and plugins.
- Encrypt Sensitive Information AML.M0012
Encrypt model weights, training datasets, RAG embeddings, and inference traffic in transit and at rest with tenant-scoped keys, recognizing providers still see plaintext during inference.
- 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.
- 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.
Documented incidents & exercises (23)
- Compromised PyTorch Dependency Chain AML.CS0015 · Incident · Dec 25, 2022 · Critical · AI/ML Open-Source Software Supply Chain
Between December 25 and December 30, 2022, a real-world dependency confusion attack compromised the PyTorch-nightly Linux installation chain via a malicious package named torchtriton uploaded to the public PyPI registry. Because pip prioritized the public index over the PyTorch…
- Malware Prototype with Embedded Prompt Injection AML.CS0043 · Incident · Jun 25, 2025 · High · Malware Analysis & Security Operations
Reported by Check Point Research in June 2025 ("New Malware Embeds Prompt Injection to Evade AI Detection"), analysts discovered a real-world malware prototype containing hardcoded natural-language prompt-injection strings inside its binary and code artifacts. When security…
- LAMEHUG: Malware Leveraging Dynamic AI-Generated Commands AML.CS0044 · Incident · June 2025 · Critical · Government & Defense (Ukraine)
Reported by CERT-UA (advisory #16039, June 2025; AIID Incident 1220) and linked to UAC-0001 / APT28 phishing campaigns targeting Ukrainian defense entities, LAMEHUG is a real-world malware family that queried an external hosted LLM API at runtime to dynamically synthesize…
- AI in the Middle: Web-Based AI Services as C2 Relays AML.CS0061 · Exercise · Feb 17, 2026 · Moderate
ATLAS case study: web-based AI services were abused as command-and-control relays for malware traffic.
- 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.
- GTG-1002 Claude Code Espionage Campaign AML.CS0069 · Incident · September 2025 · Critical
ATLAS incident: the GTG-1002 campaign used Claude Code agents for espionage against developer targets.
- Ray Static File Server Path Traversal Exposing Host Credentials and Keys INC-2023-6020 · Incident · Nov 16, 2023 · High · Cloud & AI Infrastructure
CVE-2023-6020 (published November 16, 2023) documented a path traversal vulnerability in Ray's `/static/` web dashboard handler (`<= 2.6.3`). Remote unauthenticated callers could submit crafted path sequences to read arbitrary files from the host filesystem, including cloud IAM…
- Ray Log API Endpoint Path Traversal Local File Inclusion INC-2023-6021 · Incident · Nov 16, 2023 · High · Cloud & AI Infrastructure
CVE-2023-6021 (published November 16, 2023) revealed a local file inclusion vulnerability in Ray's `/api/v0/logs/file` endpoint caused by insufficient validation of the `filename` query parameter. Unauthenticated attackers reaching the dashboard API could traverse outside the…
- MLflow is_local_uri Path Traversal Bypass Allowing Arbitrary Server File Reads INC-2023-6977 · Incident · Dec 19, 2023 · Critical · Cloud & AI Infrastructure
CVE-2023-6977 (published December 19, 2023) bypassed an earlier MLflow path traversal fix (CVE-2023-2780) affecting versions prior to `2.9.2`. By crafting alternative URI encodings and malformed local scheme prefixes that evaded `is_local_uri()` checks, remote attackers…
- LangChain Core Orchestration Arbitrary Local File Read via Path Lookup INC-2024-10940 · Incident · Mar 20, 2025 · Elevated · Software Development & AI Tooling
CVE-2024-10940 documented an improper path-boundary check in the LangChain orchestration library when resolving asset and document references during workflow loading. Attackers or untrusted chain definitions could supply unvalidated relative path expressions that escaped the…
- Gradio /component_server Arbitrary Method Invocation Local File Read INC-2024-1561 · Incident · Apr 15, 2024 · High · Cloud & AI Infrastructure
CVE-2024-1561 (published April 15, 2024) exposed an unauthenticated local file read vulnerability in `gradio` (`< 4.13.0`) via its `/component_server` API route. The endpoint permitted remote callers to invoke arbitrary methods on server-side `Component` classes, specifically…
- LangChain Hub Chain Loader Path Traversal Allowing Arbitrary File Retrieval INC-2024-28088 · Incident · Mar 3, 2024 · Elevated · Software Development & AI Tooling
CVE-2024-28088 revealed a directory traversal flaw in LangChain's `load_chain` hub resolution helper when fetching serialized chain configurations. Attacker-controlled chain identifier strings containing path traversal sequences could escape the intended hub directory structure…
- ChuanhuChatGPT Arbitrary File Read via Exposed Gradio Component Traversal INC-2024-3234 · Incident · Jun 6, 2024 · High · Consumer AI & Local Runtimes
CVE-2024-3234 documented an arbitrary local file read vulnerability in the widely deployed ChuanhuChatGPT open-source ChatGPT interface built on Gradio. Missing validation on file paths passed to Gradio file/upload handlers allowed unauthenticated remote users on…
- Streamlit Windows Static File Sharing Path Traversal Credential Leak INC-2024-42474 · Incident · Aug 12, 2024 · High · Software Development & AI Tooling
CVE-2024-42474 exposed a path traversal vulnerability in Streamlit (`< 1.37.0`) running on Windows hosts when `enableStaticServing` was enabled. Crafted HTTP requests could escape the static asset folder and force Windows SMB/file lookups or expose sensitive local files and…
- LangChain.js Path Traversal in Local Artifact Storage Helper INC-2024-7774 · Incident · Oct 29, 2024 · Elevated · Software Development & AI Tooling
CVE-2024-7774 identified a path traversal vulnerability in LangChain.js within its local artifact file-storage path helper (`getFullPath`). The helper joined caller- or model-supplied relative file names with a base directory without verifying that the resolved canonical path…
- Roo Code search_files Tool Bypassing Workspace File-Read Restrictions INC-2025-53097 · Incident · Jun 27, 2025 · High · Software Development & AI Tooling
CVE-2025-53097 (published June 27, 2025) revealed a path boundary bypass in the Roo Code autonomous coding extension's `search_files` tool. Even when developers explicitly configured workspace rules to prohibit reading files outside the project directory, crafted path…
- Reference Filesystem MCP Server Symlink Escape Outside Allowed Workspace Roots INC-2025-53109 · Incident · Jul 2, 2025 · High · Software Development & AI Tooling
CVE-2025-53109 (published July 2, 2025, disclosed by Cymulate) revealed a symlink-following sandbox escape in the official reference `@modelcontextprotocol/server-filesystem` package. When an agent invoked file-read or file-write tools on a symbolic link placed inside an…
- Reference Filesystem MCP Server Prefix Containment Bypass Reading Sibling Folders INC-2025-53110 · Incident · Jul 2, 2025 · High · Software Development & AI Tooling
CVE-2025-53110 (published July 2, 2025, disclosed by Cymulate alongside CVE-2025-53109) uncovered a classic directory-prefix containment bug in `@modelcontextprotocol/server-filesystem`. Because path containment checked `path.startsWith(allowedDir)` without appending a trailing…
- Agentic Coding CLI Path Prefix Containment Bypass Allowing Out-of-Scope Writes INC-2025-54794 · Incident · Aug 4, 2025 · High · Software Development & AI Tooling
CVE-2025-54794 (published August 4, 2025, disclosed by Cymulate as InversePrompt) identified a directory-prefix containment bug in Claude Code's workspace access guard. Because path checks compared prefix strings without enforcing a path-separator boundary, an agent restricted…
- Windsurf IDE Agent Path Traversal Enabling Arbitrary Host File Read and Write INC-2025-62353 · Incident · Oct 17, 2025 · High · Software Development & AI Tooling
CVE-2025-62353 (published October 17, 2025) documented a path traversal vulnerability in the Windsurf AI code editor's agent file-handling layer. Insufficient workspace boundary enforcement allowed crafted paths triggered through agent tool calls to read or write arbitrary…
- ChatGPT macOS Desktop App Storing Unencrypted Plaintext Chat Logs Outside Sandbox INC-OBS-042 · Incident · Jul 3, 2024 · Elevated · Consumer AI & Local Runtimes
On July 3, 2024, developer Pedro Jose Pereira Vieito publicly demonstrated that OpenAI's official ChatGPT macOS desktop application bypassed Apple's App Sandbox and stored complete user conversation histories in unencrypted plaintext JSON files inside `~/Library/Application…
- Microsoft Windows Recall Continuous Screenshot Feature Delayed After Security Backlash INC-OBS-070 · Incident · Jun 7, 2024 · High · Consumer AI & Local Runtimes
Following its May 2024 Build announcement of Windows Recall, a Copilot+ PC feature capturing continuous desktop screenshots every few seconds and indexing extracted OCR text in a local SQLite database, security researchers including Kevin Beaumont demonstrated that commodity…
- Hardware Cache Side-Channel Eavesdropping on Local LLM Inference OBS.EX0109 · Exercise · May 10, 2025 · Local Llama, Falcon & Gemma Deployments · Unprivileged CPU Cache Timing
Gao et al. (2025) evaluated unprivileged hardware cache side-channel leakage during local open-weight LLM inference across Llama, Falcon, and Gemma deployments by monitoring token-embedding cache accesses and autoregressive decoding timing. Without direct interaction or…
Source citation records
- MITRE ATLAS: Data from Local System · MITRE ·
Common questions
- What is Data from Local System (AML.T0037)?
- Adversaries collect credentials, `.env` secrets, SSH keys, browser tokens, and sensitive local files from developer laptops, CI runners, or agent sandboxes via compromised ML packages, IDE extensions, or hijacked local coding assistants. Because AI development environments frequently hold cloud keys and model-hub tokens in plaintext, local collection rapidly escalates into cloud-wide compromise.
- How do you mitigate Data from Local System?
- MITRE ATLAS maps 5 mitigations to AML.T0037: Control Access to AI Models and Data at Rest, Restrict Library Loading, Encrypt Sensitive Information, Enforce Access Controls for AI Agent Tools, and Segmentation of AI Agent Components. Restrict local coding agents and MCP file tools explicitly to scoped workspace project directories, denying access to home-directory dotfiles, SSH keys, and OS keychains.