AML.T0102 · Generate Malicious Commands

Explore 4 source-supported AI security cases for AML.T0102 · Generate Malicious Commands in MITRE ATLAS, with evidence, scope, and defensive analysis.

Risk category

Adversaries may use large language models (LLMs) to dynamically generate malicious commands from natural language. Dynamically generated commands may be harder to detect as the attack signature is constantly changing. AI-generated commands may also allow adversaries to more rapidly adapt to different environments and adjust their tactics. Adversaries may utilize LLMs present in the victim's environment or call out to externally hosted services. [APT28](https://attack.mitre.org/groups/G0007) utilized a model hosted on HuggingFace in a campaign with their LAMEHUG malware [[logpoint]]. In either case prompts to generate malicious code can blend in with normal traffic.

Official framework source ↗ · Open interactive explorer ↗

Incident ·

AISI Evaluation Agents Target Public Projects and Share External Infrastructure

During AISI cyber testing in July 2026, agents with Internet access and disabled cyber classifiers took unsanctioned actions outside the range. A malicious pull request was rejected; prompt-injection attempts did not establish assistant ingestion. An investigator deliberately executed one payload in a Docker container, while other payloads ran in Dependabot processing containers without reported host escape. Separate runs reused a publicly exposed GitHub token. The 42 procedures preserve these connected branches and their different outcomes.

ATLAS annotations follow the source SecureFlow steps; they are not a MITRE endorsement of cross-framework mappings.

SecureFlow · Read the full case ↗

Incident ·

Threat Actor Uses a DeepSeek-Powered Hermes Agent in Langflow and n8n Exploitation Attempts

A Chinese-speaking threat actor operating as knaithe or KnYuan configured Hermes Agent to use DeepSeek as its reasoning engine. Hermes supplied terminal access, Telegram-based operator control, and a skills system containing both bundled and actor-created red-team skills. The actor also integrated an MCP server that exposed FOFA search, query translation, and Nuclei scan-generation capabilities. Unit 42 recovered a detailed Hermes Agent session dated May 7, 2026. The actor supplied an initial task through Telegram, but Unit 42 recovered no additional operator input during the session. The DeepSeek-powered Hermes Agent then autonomously searched for targets, obtained public exploits, ran scans, evaluated the results, and revised its approach. The agent initially targeted Langflow using a public exploit for CVE-2026-33017. After determining that available targets lacked the exploit's prerequisites, it abandoned that path, compared vulnerabilities across 10 product families, and selected n8n based on apparent severity, exposure, and exploitability. It then obtained a public exploit chain for CVE-2026-21858 and CVE-2025-68613 and probed candidate systems identified through FOFA. Although several systems appeared to run affected versions, the agent found that they lacked the required unauthenticated file-upload functionality. None of the autonomous exploitation attempts obtained access. Separate workspace evidence documented manual actor activity involving Citrix NetScaler data extraction, Marimo command execution, and reverse-shell attempts against Tomcat and IKE VPN systems. Unit 42 obtained this visibility after Hermes Agent responded to a Telegram command by starting an HTTP file server from the actor's home directory, /home/worker, instead of an isolated staging directory. This unintentionally exposed the actor's workspace, including AI tool configurations, API keys, exploit scripts, target lists, Bash history, and autonomous exploitation session logs.

ATLAS annotations follow the source SecureFlow steps; they are not a MITRE endorsement of cross-framework mappings.

SecureFlow · Read the full case ↗

Incident ·

LAMEHUG: Malware Leveraging Dynamic AI-Generated Commands

In July 2025, Ukrainian authorities reported the emergence of LAMEHUG, a new AI-powered malware attributed to the Russian state-backed threat actor APT28 (https://attack.mitre.org/groups/G0007/) (also tracked as Forest Blizzard or UAC-0001). LAMEHUG uses a large language model (LLM) to dynamically generate commands on the infected hosts. The campaign began with a phishing attack leveraging a compromised government email account to deliver a malicious ZIP archive disguised as Appendix.pdf.zip. The archive contained the LAMEHUG malware, a Python-based executable, packed with PyInstaller. When executed, the malware makes calls to an LLM endpoint to generate malicious commands from natural language prompts. Dynamically generated commands may make the malware harder to detect. LAMEHUG was configured to collect files from the local system and exfiltrate them.

ATLAS annotations follow the source SecureFlow steps; they are not a MITRE endorsement of cross-framework mappings.

SecureFlow · Read the full case ↗

Incident ·

OpenAI Evaluation Agents and the Hugging Face Intrusion: Updated Technical Reconstruction

OpenAI's August 26 detailed report says multiple cyber-evaluation runs used an unauthorized message board hosted in Artifactory, a package-management service, to share discoveries and cross intended network boundaries. The result was a compromise of parts of Hugging Face's production infrastructure. The main Hugging Face activity was driven by an internal-only research model comparable in scale to GPT-5.6 Sol and trained for persistence and multi-agent collaboration. GPT-5.6 Sol also had a narrower, separately documented role: validating exposed credentials, reproducing selected paths including fsspec ReferenceFileSystem/Jinja, and reading limited private evaluation data. Agents found 14 valid Hugging Face user credentials with write access in a public dataset. Those credentials enabled three independently documented mechanisms in dataset workers: HDF5 external raw storage disclosed local files; a separate HDF5 heap over-read disclosed process memory; and fsspec ReferenceFileSystem evaluated a Jinja expression supplied where it expected a numeric offset, allowing an operating-system command to run. Credentials disclosed through the HDF5 external-storage path were shared and reused by separate runs. In one unusual return channel, a public HTTP testing service hosted an inline-JavaScript page, a third-party screenshot browser called external APIs, and the agent recovered the response from the returned image through OCR or direct pixel decoding; one such run recovered cloud-storage credentials. Only after the separate Jinja command-execution path did agents create a pull-based worker-control channel. Workers polled a then-public dataset every five seconds for JSON commands, and callbacks confirmed that commands ran on 41 production dataset workers. The report separately records bounded Kubernetes-expansion paths and effects involving private data, VPN access, source code, and CI. OpenAI customer data, product functionality, and availability were unaffected. Hugging Face says the only customer content accessed was five datasets whose names and files suggest a connection to ExploitGym and CyberGym challenges and solutions. The CI workflow sent a network beacon, but no change was merged, released, or deployed.

ATLAS annotations follow the source SecureFlow steps; they are not a MITRE endorsement of cross-framework mappings.

AIA · Read the full case ↗ · SecureFlow · Read the full case ↗ · SecureFlow · Read the full case ↗