Join our Newsletter — 33% off our NHI Course
Home› Guides› MITRE ATLAS AML.T0025 Exfiltration via Cyber Means: Detection,…
Guide AI Threats & Model Security

MITRE ATLAS AML.T0025 Exfiltration via Cyber Means: Detection, Mitigation and Response

PDF for newsletter subscribers · free to read online

← All guides
By NHI Mgmt Group, edited by Lalit Choda Updated 11 November 2026 12 min read
On this page

Model weights, training datasets, notebooks and the AI API keys around them are stolen the old-fashioned way far more often than through clever model attacks. MITRE ATLAS tracks this as AML.T0025 Exfiltration via Cyber Means: adversaries move AI artifacts or other useful information out through traditional channels, and ATLAS points to the ATT&CK Exfiltration tactic (TA0010) for the detail. This guide maps the AI-specific assets to the ATT&CK channels, shows where AI infrastructure differs from ordinary servers (GPU clusters, model registries, notebooks, agent runtimes), and sets out detection, prevention and response for AI platform and SOC teams. Agent-driven exfiltration through tools is covered separately in the Agent Egress Control and Network Isolation Guide.

Key takeaways

  • Same channels, different loot. AML.T0025 uses the ordinary ATT&CK exfiltration channels; what changes is the target: weights, datasets, embeddings, evaluation data and AI service credentials.
  • ATLAS records it in real incidents. Case studies linked to AML.T0025 include the PyTorch torchtriton dependency attack, ShadowRay and the Hugging Face organisation confusion research.
  • Size is a signal, but not always. A frontier model's weights are large and noisy to move; an API key, a LoRA adapter or a fine-tuning dataset is small and quiet.
  • AI compute is often over-connected. GPU clusters and notebooks commonly have broad internet egress for package and model downloads, which is the same path data leaves by.
  • The one ATLAS mitigation is access control. ATLAS links AML.M0005 Control Access to AI Models and Data at Rest to this technique; egress control, monitoring and short-lived credentials have to be added from general practice.

How the technique works

ATLAS defines AML.T0025 in two sentences: adversaries may exfiltrate AI artifacts or other information relevant to their goals via traditional cyber means, and the ATT&CK Exfiltration tactic gives more information. ATLAS rates it as realised. In practice it is the last step of an intrusion into AI infrastructure. ATLAS techniques such as AML.T0035 AI Artifact Collection and AML.T0036 Data from Information Repositories come first; AML.T0025 is how the collected material leaves.

ATT&CK channel (v20)How it applies to AI assets
T1041 Exfiltration Over C2 ChannelImplants on GPU nodes or notebook servers send collected keys and small artifacts back over their control channel
T1048 Exfiltration Over Alternative ProtocolDNS or other non-HTTPS protocols; the PyTorch torchtriton binary sent data out as encrypted DNS queries
T1567 Exfiltration Over Web ServiceUploads to attacker-owned model hubs, code repositories, cloud storage or webhooks, which blend with normal ML traffic to the same services
T1537 Transfer Data to Cloud AccountCopying weights or datasets from your bucket to an attacker-controlled account in the same cloud, often without crossing your network edge
T1020 Automated Exfiltration and T1030 Data Transfer Size LimitsScripted collection from training jobs, and chunking large checkpoints to stay under alert thresholds

The channel guides go deeper: see T1567 Exfiltration Over Web Service and T1048 Exfiltration Over Alternative Protocol.

What gets taken

AI assetWhere it livesTypical size and noise
Base or fine-tuned model weightsModel registry, object storage, serving nodes, training checkpointsGigabytes to terabytes; large transfers are visible if anyone watches
Adapters (for example LoRA) and small task modelsExperiment trackers, notebook home directoriesMegabytes; easy to move quietly
Training and evaluation datasetsData lake, feature store, labelling platformsVariable; often contain personal or licensed data
Embeddings and vector indexesVector databases used for retrievalModerate; can reveal the source documents
System prompts, agent configurations and tool definitionsCode repositories, agent platformsTiny; reveal guardrails and integrations
AI service and platform credentialsEnvironment variables, notebooks, CI secrets, cluster nodesBytes; the highest value per byte

Weight protection levels and storage are covered in Securing AI Model Weights. This page focuses on the exfiltration step across all of these assets.

Where it shows up

  • Exposed AI compute frameworks: ATLAS case study AML.CS0023 records ShadowRay: Ray's Jobs API allows remote execution without authentication, clusters exposed to the internet were exploited from September 2023, and adversaries could use the victims' compute and steal valuable information. See the ShadowRay 2024 breach page and the Ray and AI Compute Cluster Security Guide.
  • Poisoned ML dependencies: ATLAS case study AML.CS0015 records the PyTorch-nightly compromise. PyTorch's advisory states that a malicious torchtriton package on PyPI, installed between 25 and 30 December 2022, collected system information, environment variables, $HOME/.ssh/* and the first 1,000 files in the home directory, and uploaded them via encrypted DNS queries. See the PyTorch torchtriton Supply Chain Attack 2022.
  • Model hub organisation abuse: ATLAS case study AML.CS0027 describes a researcher who created look-alike organisations on Hugging Face; employees joined them, giving the researcher access to models they uploaded.
  • Notebook and experiment servers: notebooks hold tokens in cells and environment variables and often run with broad egress. See the Jupyter Server Security Guide.
  • Insiders: people with legitimate registry or bucket access can copy checkpoints to personal storage through the same ordinary channels, so the same controls and logs apply.

Detection

Data sourceWhat to look forD3FEND
Object storage access logs (model and dataset buckets)Bulk reads of checkpoint or dataset prefixes by an identity that normally only writes, or reads from a new network locationD3-UBA
Cloud control plane logsBucket policy changes that add an external principal, replication rules to an unknown account, snapshot sharing (T1537)D3-OAM
Egress proxy and firewall logs from GPU, training and notebook subnetsLarge or sustained uploads, new destinations, uploads to model hubs or storage under accounts that are not yoursD3-NTA
DNS logsHigh-entropy subdomains or unusual query volume from build and training hosts (the torchtriton pattern)D3-NTA
Model registry audit logsDownloads of production or unreleased models outside deployment pipelinesD3-UBA
Endpoint and container runtime telemetryArchive creation over checkpoint directories, reads of credential files and environment dumps by unexpected processesD3-SFA

Baseline first. Training jobs legitimately pull terabytes and push checkpoints, so absolute volume rules produce noise. Build baselines per identity and per destination: which workload identities write checkpoints, which pipelines download models, which external hosts each subnet reaches. Then alert on departures.

Prevention and hardening

  • AML.M0005 Control Access to AI Models and Data at Rest: ATLAS asks for access controls on internal model registries, limited internal access to production models, and training data access only for approved users. ATLAS notes access controls can prevent exfiltration.
  • Default-deny egress from AI compute: route package and model downloads through an internal mirror or proxy with an allowlist, and block direct internet egress from training and serving nodes. This removes most channels in the table above. See the Cloud Egress Filtering guide.
  • Data perimeters: restrict model and dataset buckets so they can only be read from your own network and only shared with principals in your own organisation, which blocks T1537 copies to outside accounts.
  • Keep control planes private: NHI Mgmt Group recommends not binding Ray to 0.0.0.0, blocking unauthorised access with firewall rules or security groups, and putting an authorisation proxy in front of the dashboard if it must be reachable.
  • Encrypt and separate keys: AML.M0012 Encrypt Sensitive Information applies to weights at rest; keep the decryption keys under a different identity from the storage reader, so a copied bucket is not a usable model.
  • Remove credentials from compute: replace static AI and cloud keys in environment variables with short-lived workload identity, so harvested environments yield little.

Implementation and decision guidance

Egress control on AI compute breaks jobs if it is switched on in one step. A phased rollout we recommend (NHI Mgmt Group):

  1. Observe (two to four weeks): log all egress from training, serving and notebook networks through a proxy in pass-through mode. Record destinations per workload identity.
  2. Build the allowlist: group destinations into package indexes, model hubs, your own storage and AI APIs. Move package and model downloads to an internal mirror where possible.
  3. Enforce on a pilot ring: switch one cluster or team to default-deny, with a documented exception route and a named owner who can approve new destinations quickly.
  4. Expand and harden: roll out to the remaining rings, add data perimeter conditions to model and dataset buckets, and turn on alerts for policy and replication changes.
  5. Roll back safely: keep the pass-through policy ready to reapply per ring, so a broken training run can be restored in minutes while the allowlist is fixed.
SituationStart withThen add
Small team using hosted model APIs and a few notebooksRemove keys from notebooks, scope hub tokens, turn on storage loggingEgress allowlist on the notebook environment
Organisation fine-tuning its own models on private dataRegistry and bucket access control (AML.M0005), data perimeter on dataset bucketsBaselined storage analytics per identity
Organisation training or serving high-value proprietary modelsDefault-deny egress on all AI compute, encrypted weights with separate key custodyInsider controls and the weight security levels in Securing AI Model Weights

Measuring it

  • Egress coverage: percentage of AI compute subnets behind default-deny egress.
  • Static key count: number of long-lived AI and cloud keys found on compute hosts and notebooks, trending to zero.
  • External principals: number of model or dataset buckets readable by principals outside your organisation.
  • Time to rotate: median time from a host being declared compromised to every readable credential being rotated.
  • Alert precision: share of storage and egress alerts on AI subnets that analysts confirm as worth investigating.

Where identity fits

Almost every case study linked to AML.T0025 involves stolen or exposed machine credentials: Hugging Face and OpenAI tokens on Ray nodes, SSH keys in home directories, cloud keys in environment variables. The stolen credential is both the loot and the means of the next exfiltration. Our recommendations (NHI Mgmt Group):

  • Inventory AI credentials: list every AI service key, model hub token and cloud identity used by training, serving and notebooks, with an owner.
  • Scope hub tokens: give pipelines read-only, repository-scoped model hub tokens; keep write tokens for publishing pipelines only. See the Hugging Face Security Guide.
  • Rotate on suspicion: treat any host where exfiltration is suspected as having lost every credential it could read, and rotate them all.

Response

  1. Identify the asset and the channel: which artifact, how much, to where, through which identity. Use storage and egress logs together.
  2. Contain the identity: disable the workload identity or user, revoke its sessions and keys, and remove any external principals or replication rules added to buckets.
  3. Contain the host: isolate affected nodes or notebook servers, preserving memory and disk where the platform allows.
  4. Rotate exposed credentials: every AI, cloud, database and SSH credential readable on the host, as PyTorch advised for affected nightly installs.
  5. Assess what the loss means: stolen weights may allow offline attack staging against your model; stolen datasets may be a personal data breach; stolen system prompts reveal guardrails to bypass.
  6. Close the path and record: fix the egress or access gap, and log the incident against AML.T0025 and the ATT&CK channel used. The Data Exfiltration Playbook covers the general response steps.

Framework mapping

FrameworkReferenceRelevance
MITRE ATLASAML.T0025 (tactic AML.TA0010); preceding AML.T0035, AML.T0036Technique and collection steps
MITRE ATLAS mitigationsAML.M0005, AML.M0012Access control and encryption of AI assets
MITRE ATT&CK v20TA0010; T1041, T1048, T1567, T1537, T1020, T1030Channels used
NIST SP 800-53 Rev. 5AC-4, SC-7, AC-6, SI-4, AU-6Information flow, boundary protection, least privilege, monitoring
NIST CSF 2.0PR.DS-01, DE.CM-01, DE.CM-09, RS.MI-01Data at rest, network and runtime monitoring, containment
MITRE D3FENDD3-OTF, D3-NTA, D3-UBA, D3-OAMOutbound filtering and analytics

Common failure patterns

  • Open egress for convenience: GPU nodes allowed to reach the whole internet so jobs can pull packages and models, which also lets data leave anywhere.
  • Volume rules on training subnets: thresholds tuned for office networks either fire all day or get disabled; baselines per identity work better.
  • Ignoring small artifacts: watching only for terabyte transfers while API keys, adapters and system prompts leave in kilobytes.
  • Control planes on the internet: compute framework dashboards exposed without authentication, as in ShadowRay.
  • Personal hub accounts: staff publishing or syncing company models through personal model hub accounts or organisations nobody verified, which AML.CS0027 shows can be impersonated.

Practitioner checklist

  • List every location that holds weights, adapters, datasets, embeddings and system prompts, with the identities that can read each.
  • Enforce default-deny egress on training, serving and notebook networks, with downloads through an allowlisted mirror or proxy.
  • Restrict model and dataset buckets to your own network and organisation, and alert on policy or replication changes.
  • Turn on and retain object storage, model registry and DNS logs for AI subnets, and baseline them per identity.
  • Keep compute framework control planes private and authenticated.
  • Replace static AI and cloud keys on compute with short-lived workload identity and scoped hub tokens.
  • Write the AI exfiltration response steps into the incident plan, including full credential rotation for affected hosts.
  • Tag incidents with AML.T0025 and the ATT&CK channel so trends are visible.

Standards and references

Related NHI Mgmt Group resources: Securing AI Model Weights · Agent Egress Control and Network Isolation Guide · Data Exfiltration Guide · MITRE ATLAS Guide

PDF for subscribers

Take this guide with you

Every section, table and checklist in one PDF, with links to the sources and related guides. Subscribe to our weekly NHI & AI Identity Journal and we’ll email you a download link.

Free weekly newsletter

Subscribe to the NHI & AI Identity Journal

The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.

Bonus 33% off our NHI Course when you subscribe.

NHIMG Editorial Note
Researched and written by the NHI Mgmt Group editorial team using AI tools, under the editorial direction of Lalit Choda. Facts are drawn from the sources listed on this page and checked by our automated quality process. Last updated 11 November 2026. Spotted an error? Use our contact page.
NHI Mgmt Group, the independent authority on Non-Human Identity, IAM and Agentic AI security. nhimg.org

PDF Downloads for Newsletter Subscribers

Get the guide

Enter your details and we’ll email you a download link.

The full guide is free to read online. The PDF is a thank you for subscribing.

Fill in all fields marked * and tick the PDF box to continue.