AI-Generated PowerShell Malware: An Experimental Framework and Dataset
Not on the map. Why?
Abstract (arXiv)
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.
Key facts. No citing papers in the map yet (data through 14 Oct 2026). Builds on 17 of its 64 references that are in the map. First posted on arXiv 29 Jun 2026.
Builds on
17 of 64 references.
References · 17
- 2023Lost in the Middle: How Language Models Use Long Contextscited by 3,455
- 2024Qwen2.5-Coder Technical Reportcited by 1,203
- 2024DeepSeek-Coder: When the Large Language Model Meets Programming -- The Rise of Code Intelligencecited by 1,181
- 2024Yi: Open Foundation Models by 01.AIcited by 719
- 2022Selection-Inference: Exploiting Large Language Models for Interpretable Logical Reasoningcited by 334
- 2024Latent Adversarial Training Improves Robustness to Persistent Harmful Behaviors in LLMscited by 173
- 2024A Survey on LLM-based Code Generation for Low-Resource and Domain-Specific Programming Languagescited by 66
- 2022Out of the BLEU: how should we assess quality of the Code Generation models?cited by 65
- 2024An LLM-Assisted Easy-to-Trigger Backdoor Attack on Code Completion Models: Injecting Disguised Vulnerabilities against Strong Detectioncited by 40
- 2025The dark deep side of DeepSeek: Fine-tuning attacks against the safety alignment of CoT-enabled modelscited by 12
- 2025AutoPentester: An LLM Agent-based Framework for Automated Pentestingcited by 6
- 2024The Power of Words: Generating PowerShell Attacks from Natural Languagecited by 3
5 more
- 2025CyberLLMInstruct: A Pseudo-malicious Dataset Revealing Safety-performance Trade-offs in Cyber Security LLM Fine-tuningcited by 3
- 2025AutoMalDesc: Large-Scale Script Analysis for Cyber Threat Researchcited by 1
- 2025Casting a SPELL: Sentence Pairing Exploration for LLM Limitation-breakingcited by 1
- 2026RedShell: A Generative AI-Based Approach to Ethical Hackingcited by 1
- 2026Generating Synthetic Malware Samples Using Generative AIcited by 1
Built on by
Not cited yet.