Recent Malware Campaigns Use AI to Generate Commands and Search Files

· Original article ↗

Summary

Recent campaigns used AI prompts in malware to generate commands, search files, or attempt destructive actions. The article says these approaches often failed and discusses possible motives and defensive implications.

Key points

  • LameHug prompted an LLM to generate commands to collect system information and copy documents; it encoded its requests in base64.
  • Malicious code inserted into the Amazon Q Developer Extension attempted to direct an AI agent to delete local files and cloud resources; the command did not successfully run in customer environments, according to AWS.
  • Malicious Nx package versions used prompts with Claude, Gemini, and Q to search for sensitive files and credentials; some prompts tried to bypass LLM guardrails.
  • PromptLock, later identified as an academic project, used a local LLM to interpret files and generate a personalized ransom note.
  • The author says generated code varied and appeared to fail in several cases, while remote AI service requests could create audit trails or enable providers to intervene.
  • The article recommends ensuring detections work with non-deterministically generated code and controlling AI tools so malicious actors cannot operate them.

Article Details

Event Type
Multiple reported incidents and campaigns in which malware or compromised software payloads invoked AI/LLMs to generate or execute commands, including the LameHug malware, the Amazon Q Developer Extension compromise, the s1ngularity supply-chain attack, and the PromptLock academic project.
Impact
Reported impacts included collection of system and document information by LameHug, attempted destructive actions against files and accessible cloud resources through the compromised Amazon Q Developer Extension (the AWS security bulletin said the command did not run successfully in customer environments), and theft of secret credentials from environments using malicious Nx package versions in the s1ngularity supply-chain attack. PromptLock was later found to be part of an academic project.

MITRE ATT&CK

Malware

Vendors

Products

Tools

Countries

Related Articles