Generate Malicious Commands
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 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.
> curated attacks (2)
Hermes: DeepSeek-Powered Autonomous Offensive Campaign
An operator wired DeepSeek into the open-source Hermes Agent framework, controlled via Telegram, and after a single initial command the agent autonomously enumerated targets, selected vulnerabilities, sourced exploits, and launched attacks against 460+ targets across seven CVEs. Most autonomous attempts failed against authentication and patching; confirmed results were data exfiltration from three Citrix NetScaler targets and command execution on 11 Marimo endpoints.
LAMEHUG / PROMPTSTEAL: Malware That Queries an LLM at Runtime
Phishing-delivered Python malware queried Qwen2.5-Coder-32B-Instruct via the Hugging Face API to generate Windows reconnaissance and file-harvesting commands on the fly, then blindly executed whatever the model returned — the first live observation, per Google, of malware querying an LLM in live operations.