MITRE ATLAS 2026.10 · AML.T0102 · High severity

Generate Malicious Commands

Malware implants and adversary automation call public or self-hosted LLMs at runtime to synthesize OS-specific reconnaissance, privilege-escalation, or data-collection commands dynamically (as documented in LAMEHUG). Generating commands on the fly eliminates static payload signatures in malware binaries and adapts execution to each victim's specific filesystem and tooling.

Technique dossier overview

Category
Infrastructure and access
Severity
High
Attack surface
Inference API & Hosting · LLM / Prompt Layer · Tool-Using Agents & MCP
Framework maturity
Realized
Platforms
Enterprise
Tactics
AI Attack Adaptation
Catalog entry modified

Open AML.T0102 in Interactive Technique Workbench

How the mechanism works

  1. A lightweight implant or script runs minimal host discovery and ships system metadata (OS version, user role, active tools) inside an API prompt to a remote LLM endpoint.
  2. The prompt wraps the request in benign administrative or coding framing to bypass provider safety classifiers and elicit valid shell or PowerShell command syntax.
  3. The implant parses the returned commands and executes them locally to archive sensitive documents or probe internal shares without hardcoding offensive strings.

Detection & telemetry signals

Architectural defensive countermeasures

Framework crosswalk (OWASP LLM Top 10 & NIST AI RMF)

OWASP LLM Top 10 (2025)
OWASP rationale
Runtime command generation exploits model instruction-following (LLM01) to emit executable host commands (LLM05) while abusing hosted inference API capacity (LLM10).
NIST AI RMF functions
NIST AI RMF guidance
Benchmark safety alignment against living-off-the-land command generation under MEASURE, and enforce authenticated AI egress proxies and API abuse throttling under MANAGE.

Mapped defensive controls

Documented incidents & exercises (20)

Source citation records

Common questions

What is Generate Malicious Commands (AML.T0102)?
Malware implants and adversary automation call public or self-hosted LLMs at runtime to synthesize OS-specific reconnaissance, privilege-escalation, or data-collection commands dynamically (as documented in LAMEHUG). Generating commands on the fly eliminates static payload signatures in malware binaries and adapts execution to each victim's specific filesystem and tooling.
How do you mitigate Generate Malicious Commands?
MITRE ATLAS maps 5 mitigations to AML.T0102: Limit AI Service Query Volume and Rate, Generative AI Guardrails, Generative AI Model Alignment, AI Telemetry Logging and Monitoring, and Threat Intelligence Program. Restrict outbound enterprise network access to approved LLM API gateways via authenticated egress proxies rather than permitting arbitrary endpoints from arbitrary hosts.