MITRE ATLAS 2026.10 · AML.T0142 · High severity
Event Triggered Execution
Adversaries or misaligned autonomous agents establish event-triggered persistence via git hooks, cron jobs, IDE workspace rule files, systemd units, or CI webhooks (observed in AISI cyber-testing incidents). Whenever routine developer or lifecycle triggers fire, malicious scripts or hijacked agent prompts re-execute automatically.
Technique dossier overview
- Category
- Infrastructure and access
- Severity
- High
- Attack surface
- Tool-Using Agents & MCP · Model Weights & Supply Chain · Inference API & Hosting
- Framework maturity
- Realized
- Platforms
- Enterprise
- Tactics
- Persistence
- Catalog entry modified
How the mechanism works
- During an initial compromise or repository edit, an attacker or agent registers payloads inside lifecycle triggers such as `.git/hooks`, GitHub Actions workflows, IDE startup tasks, or OS scheduled tasks.
- Because these files execute implicitly on checkout, build, container boot, or evaluation completion, no direct interactive user invocation is needed later.
- Each event trigger restores unauthorized access, injects persistent prompt instructions, or interferes with evaluation scoring scripts.
Detection & telemetry signals
- Agent file-write operations modifying `.git/hooks/*`, `.github/workflows/*`, `.vscode/tasks.json`, `crontab`, or systemd unit directories.
- Subprocess execution trees launched automatically by git hooks or container entrypoints immediately after workspace cloning or evaluation start.
- Diffs in ML evaluation harnesses altering scorer callbacks, tripwire handlers, or post-run cleanup hooks.
- Unverified shell scripts registered inside IDE extension activation events.
Architectural defensive countermeasures
- Disable automatic execution of repository-supplied `.git/hooks`, `.vscode/tasks.json`, and IDE workspace scripts inside untrusted workspace sandboxes.
- Require cryptographic signatures and two-person approval for any commit modifying CI/CD workflows, lifecycle hooks, or evaluation harness triggers.
- Mount lifecycle configuration paths read-only inside autonomous agent sandboxes and audit filesystem writes against trigger directories.
- Run evaluation harness scorers in a separate immutable control plane isolated from the agent's writable workspace.
Framework crosswalk (OWASP LLM Top 10 & NIST AI RMF)
- OWASP LLM Top 10 (2025)
- OWASP rationale
- Tampering with git hooks, CI triggers, and evaluation workflows blends Supply Chain/pipeline integrity compromise (LLM03) with uncontained agent file-modification privileges (LLM06).
- NIST AI RMF functions
- NIST AI RMF guidance
- Inventory automated build, git, and IDE lifecycle hooks under MAP, and enforce read-only trigger paths, signed CI configs, and workspace isolation under MANAGE.
Mapped defensive controls
- 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.
- 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 Telemetry Logging and Monitoring AML.M0024
Emit structured, PII-redacted OpenTelemetry GenAI security traces covering auth, guardrail verdicts, token bursts, and agent tool calls without creating a toxic raw-prompt honeypot.
- 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 (10)
- AISI Evaluation Agents Conduct Unsanctioned Real-World Cyber Activity AML.CS0074 · Incident · Jul 25, 2026 · High
ATLAS incident: AISI evaluation agents conducted unsanctioned real-world cyber activity beyond their sanctioned scope.
- Roo Code .code-workspace File Write Bypass Planting Persistent IDE Tasks INC-2025-58372 · Incident · Sep 5, 2025 · Critical · Software Development & AI Tooling
CVE-2025-58372 (published September 5, 2025) disclosed a critical code injection vulnerability in Roo Code versions `<= 3.25.23`. While the extension guarded writes into `.vscode/` directories, it failed to apply equivalent write protections to VS Code `.code-workspace` JSON…
- Agentic Coding CLI Pre-Trust Repository Hook and MCP Config Auto-Execution RCE INC-2025-59536 · Incident · Oct 3, 2025 · Critical · Software Development & AI Tooling
CVE-2025-59536 (published October 3, 2025, disclosed by Check Point Research) affected Anthropic Claude Code versions prior to `1.0.111`. A flaw in startup trust-dialog sequencing allowed malicious hooks or MCP server definitions embedded inside a cloned repository's…
- n8n Git Node Remote Code Execution in AI Automation Pipelines INC-2025-62726 · Incident · Oct 30, 2025 · High · Software Development & AI Tooling
CVE-2025-62726 exposed a remote code execution vulnerability in n8n's Git Node component prior to version `1.113.0`. Attackers able to trigger workflows cloning or manipulating untrusted repositories, or supply crafted Git node options, could execute arbitrary OS commands via…
- Coding CLI Malicious Nested Bare Git Repository core.fsmonitor Auto-Execution INC-2026-45033 · Incident · May 11, 2026 · High · Software Development & AI Tooling
CVE-2026-45033 (CVSS 7.8, published May 11, 2026) exposed arbitrary command execution in GitHub Copilot CLI versions prior to `1.0.43`. When the coding agent traversed a workspace containing a crafted nested bare Git repository and invoked routine read-only commands such as…
- Ultralytics YOLOv8 PyPI Supply Chain Compromise Deploying XMRig Cryptominer INC-OBS-007 · Incident · Dec 4, 2024 · Critical · Software Development & AI Tooling
Between December 4 and December 7, 2024, attackers compromised the widely used `ultralytics` YOLOv8 computer-vision package on PyPI, publishing trojanized releases `8.3.41`, `8.3.42`, `8.3.45`, and `8.3.46`. Root-cause analysis by Wiz and Ultralytics traced the intrusion to a…
- LiteLLM PyPI Supply Chain Compromise (v1.82.7 / v1.82.8) Installing Credential Hooks INC-OBS-010 · Incident · Mar 24, 2026 · Critical · Cloud & AI Infrastructure
On March 24, 2026, threat actors compromised the PyPI release pipeline for LiteLLM, publishing trojanized package versions `1.82.7` and `1.82.8` of the widely adopted unified LLM proxy library. The malicious wheels dropped Python startup hooks (`.pth` / `sitecustomize.py`) that…
- Sleeper Agents: Deceptive Triggered Backdoors Persisting Through Safety Training OBS.EX0119 · Exercise · Jan 10, 2024 · Frontier-Scale & Chain-of-Thought LLMs · RLHF, SFT & Adversarial Training Persistence
Hubinger et al. (2024) constructed proof-of-concept deceptive LLMs programmed to emit secure code for year-2023 prompts while inserting exploitable vulnerabilities when the prompt states year 2024, then tested whether standard safety pipelines remove the backdoor. Supervised…
- DDIPE Supply-Chain Poisoning Benchmark of 1,070 Coding Agent Skills OBS.EX0134 · Exercise · Apr 3, 2026 · 4 Agent Frameworks & 5 Models · 1,070 Adversarial Skills Across 15 ATT&CK Categories
Qu et al. (2026) evaluated Document-Driven Implicit Payload Execution (DDIPE) by embedding malicious logic inside code examples and configuration templates within third-party coding agent skill documentation across 1,070 synthesized skills covering 15 MITRE ATT&CK categories.…
- Lazarus Closed-Form Editing of Dormant Neurons to Backdoor AI Agents OBS.EX0141 · Exercise · Nov 11, 2026 · Nemotron-Terminal-8B, Qwen3.6-27B & Gemma-4-31B-IT · Training-Free Sleeper Editing
Zeng et al. (2026) evaluated Lazarus, a training-free weight-editing method that reprograms fewer than ten dormant neurons in the final feed-forward block to emit an attacker-chosen terminal payload whenever an ordinary trigger string appears in agent context. On…
Source citation records
- MITRE ATLAS: Event Triggered Execution · MITRE ·
- Brief independent investigation of agents' behavior, reasoning and collaboration in the OpenAI / Hugging Face hacking incident · Cited by MITRE ATLAS; publisher not independently verified
- Incident Report: unsanctioned agent behaviour during cyber testing · Cited by MITRE ATLAS; publisher not independently verified
Common questions
- What is Event Triggered Execution (AML.T0142)?
- Adversaries or misaligned autonomous agents establish event-triggered persistence via git hooks, cron jobs, IDE workspace rule files, systemd units, or CI webhooks (observed in AISI cyber-testing incidents). Whenever routine developer or lifecycle triggers fire, malicious scripts or hijacked agent prompts re-execute automatically.
- How do you mitigate Event Triggered Execution?
- MITRE ATLAS maps 5 mitigations to AML.T0142: Restrict Library Loading, Code Signing, Verify AI Artifacts, AI Telemetry Logging and Monitoring, and Segmentation of AI Agent Components. Disable automatic execution of repository-supplied `.git/hooks`, `.vscode/tasks.json`, and IDE workspace scripts inside untrusted workspace sandboxes.