AI-Generated PowerShell Malware: An Experimental Framework and Dataset
Luciano Pianese, Vittorio Orbinato, Pietro Liguori, Roberto Natella
Abstract
Generative AI has emerged as a significant cybersecurity threat, with several recent attack campaigns leveraging LLMs to generate code for malicious purposes via scripting languages such as PowerShell. Consequently, for cybersecurity analysts, it is imperative to investigate the offensive capabilities of AI code generators. In this paper, we propose an experimental framework to assess LLM-generated PowerShell malware, which comprises a novel sandbox approach for dynamic analysis of AI-generated malware. Furthermore, we present a novel, manually curated dataset of real-world PowerShell malware, annotated in natural language to assist the training and evaluation of LLMs. Finally, this study evaluates permissive, open-weight LLMs adapted to PowerShell malware generation. Our results reveal a high degree of similarity between real malware and LLM-generated ones in terms of triggered OS malicious events, with a median Jaccard index of 84.5% and 48.4% of instances achieving complete overlap.
Create a lesson
Metadata
- Categories
- cs.CR, cs.AI
Related papers
ThreatVisionAI: A Hybrid CNN-ViT Framework for Image-Based Malware Classification
Shared title terminologycs.CRAllyson Taylor, Prashanth BusiReddyGari
A Multi-task Mixture of Experts Framework for Malware Classification, Packing Detection, and Family Attribution
Shared title terminologycs.CRJithin S., Roshin Sleeba C., Anvin Mariya P. B. et al.
PRISM: PE Relational Inter-Section Matrix. A 2D Section-Aware Dataset for Static PE Malware Detection
Shared title terminologycs.CRJosé M. Sacristán, Ana I. González-Tablas
TurboFHE: An Efficient and Scalable Multi-GPU Framework for Homomorphic LLM Inference
Shared title terminologycs.CRHonghui You, Haoping Yang, Wenzhe Wang et al.
An LLM-Assisted Multi-Objective AutoML Framework for Efficient Network Intrusion Detection
Shared title terminologycs.CRAilin Barzegar, Khalil El-Khatib, Li Yang
Poisoning Attacks and Collaborative Defense Framework for LightRAG-Based Construction Regulation Knowledge
Shared title terminologycs.CRYingyan He