MITRE ATLAS 2026.10 · AML.T0018.001 · High severity
Manipulate AI Model: Modify AI Model Architecture
Adversaries tamper with a model's computational graph, layer definitions, custom operators, or routing gates to embed covert backdoor branches or arbitrary logic directly into the architecture. Unlike weight-only poisoning, architectural modifications alter execution flow structurally and can hide inside serialized graph definitions.
Technique dossier overview
- Category
- Training and model integrity
- Severity
- High
- Attack surface
- Model Weights & Supply Chain · Training & Fine-Tuning
- Framework maturity
- Demonstrated
- Platforms
- Predictive AI, Generative AI, Agentic AI
- Tactics
- AI Attack Adaptation, Persistence
- Catalog entry modified
How the mechanism works
- Attackers modify model graph files (such as ONNX, TorchScript, Keras configs, or MoE routing layers) before deployment or inside shared model hubs.
- Injected conditional branches, custom Lambda layers, or bypass connections inspect raw inputs for trigger patterns outside standard learned weights.
- When triggered during production inference, the modified graph overrides downstream predictions or invokes embedded custom operator code.
Detection & telemetry signals
- Structural graph-diff checks identifying unexpected nodes, custom ops, conditional branches, or Lambda layers relative to approved base architectures.
- Model scanners flagging non-standard tensor shapes, unsupported operator extensions, or executable graph expressions.
- Cryptographic signature or hash verification failures on model architecture manifests (`config.json` / graph protobufs).
Architectural defensive countermeasures
- Disallow arbitrary custom layers, executable graph ops, and untrusted computational graph formats in production inference runtimes.
- Load pretrained weights strictly into audited, version-controlled model architecture code owned by your engineering team rather than executing remote `trust_remote_code`.
- Verify cryptographic signatures and run deterministic structural graph diffs on every imported or updated model architecture.
- Execute independent red-team and anomaly evaluations after any architectural adjustment before production rollout.
Framework crosswalk (OWASP LLM Top 10 & NIST AI RMF)
- OWASP LLM Top 10 (2025)
- OWASP rationale
- Modifying model computational graphs exploits third-party model-loading supply chains (LLM03) to embed structural backdoors and logic tampering (LLM04).
- NIST AI RMF functions
- NIST AI RMF guidance
- Under NIST AI RMF GOVERN 6.1 and MEASURE, forbid dynamic remote architecture execution (`trust_remote_code`) and verify graph structure against signed baselines.
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.
- Validate AI Model AML.M0008
Run independent pre-release and post-fine-tuning assurance suites covering safety regressions, backdoor activation, alignment drift, and privacy leakage before promotion.
- Code Signing AML.M0013
Require cryptographic signatures and transparency-log verification on model artifacts, inference containers, agent skills, and MCP servers before deployment.
- Verify AI Artifacts AML.M0014
Verify provenance, SHA-256 digests, serialization safety, and behavioral integrity of every external dataset, model weight, LoRA adapter, and container prior to loading.
- AI Red Team AML.M0035
Conduct authorized, isolated manual and automated adversarial testing across models, RAG pipelines, and agents—tracking reproducible breach rates, Wilson confidence intervals, and patch verification.
Published empirical measurements (1)
- Attack success rate · 0.02%
RatePercent records parameter-modification fraction (0.02%) required for successful backdoor implantation rather than trigger ASR; confirms tiny diff footprints evade coarse checksum heuristics.
- Model
- GPT-6 Astra editing Qwen2.5-0.5B-Instruct
- Evaluation
- Weight-Space Programming Backdoor Edit Footprint (AG News)
- Defense
- Baseline model
- Reported
- Source and location
- Can LLMs Write Backdoors? An Empirical Security Study of Weight-Space Programming · arXiv (author preprint; peer-review status not inferred) · Abstract / Weight-Modification Footprint Finding
- Evidence provenance
- Primary-source checked
Related technique records
Documented incidents & exercises (6)
- Backdoor Attack on Deep Learning Models in Mobile Apps AML.CS0013 · Exercise · Jan 18, 2021 · High · Mobile Software & On-Device AI
Grounded in the DeepPayload research (January 2021), this exercise showed how adversaries can backdoor compiled deep-learning models extracted from public mobile application packages without needing training data or fine-tuning. By disassembling the computational graph of a…
- AI Model Tampering via Supply Chain Attack AML.CS0028 · Exercise · Sep 26, 2023 · High · Cloud-Native AI Infrastructure
Documented in September 2023 ("Silent Sabotage: Weaponizing AI Models in Exposed Containers"), researchers identified publicly accessible and misconfigured container registries hosting production AI serving images. With write access to exposed registries, an attacker can pull…
- Keras Arbitrary Code Injection via Malicious Lambda Layers in Legacy Models INC-2024-3660 · Incident · Apr 16, 2024 · Critical · Cloud & AI Infrastructure
CVE-2024-3660 (published April 16, 2024, disclosed by Oligo Security and JFrog) highlighted arbitrary code execution in TensorFlow Keras (`< 2.13`) when deserializing `.h5` or Keras models containing weaponized `Lambda` layers. Because Keras Lambda layers serialize arbitrary…
- Keras Model.load_model() safe_mode=True Bypass via Crafted config.json INC-2025-1550 · Incident · Mar 11, 2025 · Critical · Cloud & AI Infrastructure
CVE-2025-1550 (published March 11, 2025) revealed an arbitrary code execution bypass in Keras's `Model.load_model()` even when `safe_mode=True` was explicitly enforced. Attackers could modify the `config.json` manifest inside a `.keras` zip archive to reference arbitrary Python…
- Empirical Security Study of LLM-Driven Weight-Space Programming Backdoors OBS.EX0142 · Exercise · Nov 12, 2026 · 5 Editor LLMs Targeting MNIST MLP, CIFAR-10 ResNet-18 & Qwen2.5-0.5B-Instruct
Wang, Lu, and Li (2026) investigated whether general-purpose LLMs can directly inject backdoors into neural network checkpoints via Weight-Space Programming (WSP) from natural-language prompts without training data, forward passes, or gradients. Across five editor LLMs…
- Poisoning Backdoor-Critical Layers in Federated Learning Against Seven Defenses OBS.EX0154 · Exercise · Aug 8, 2023 · Federated Deep Neural Networks · 10% Malicious Clients vs. 7 Aggregation Defenses
Zhuang et al. (2023) identified backdoor-critical (BC) network layers that govern trigger sensitivity in federated learning and evaluated adaptive BC-layer-only poisoning against seven state-of-the-art aggregation defenses. Concentrating malicious weight updates solely in…
Source citation records
- MITRE ATLAS: Modify AI Model Architecture · MITRE ·
- Can LLMs Write Backdoors? An Empirical Security Study of Weight-Space Programming · arXiv (author preprint; peer-review status not inferred) ·
Common questions
- What is Manipulate AI Model: Modify AI Model Architecture (AML.T0018.001)?
- Adversaries tamper with a model's computational graph, layer definitions, custom operators, or routing gates to embed covert backdoor branches or arbitrary logic directly into the architecture. Unlike weight-only poisoning, architectural modifications alter execution flow structurally and can hide inside serialized graph definitions.
- How do you mitigate Manipulate AI Model: Modify AI Model Architecture?
- MITRE ATLAS maps 5 mitigations to AML.T0018.001: Control Access to AI Models and Data at Rest, Validate AI Model, Code Signing, Verify AI Artifacts, and AI Red Team. Disallow arbitrary custom layers, executable graph ops, and untrusted computational graph formats in production inference runtimes.