arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2404.12893cs.CRcs.SE
收藏

语言的力量:从自然语言生成 PowerShell 攻击

The Power of Words: Generating PowerShell Attacks from Natural Language

Pietro Liguori, Christian Marescalco, Roberto Natella, Vittorio Orbinato, Luciano Pianese

AI总结:

本研究利用神经机器翻译从自然语言自动生成攻击性 PowerShell 代码,提出两个新数据集并评估多种模型,证明微调模型优于 ChatGPT,具备专门优势。

摘要:

由于 Windows 操作系统是最常被攻击的系统之一,PowerShell 语言已成为恶意行为者和网络安全专业人员(例如用于渗透测试)的关键工具。这项工作探索了 AI 代码生成中一个尚未开发的领域,即使用神经机器翻译(NMT)从自然语言描述自动生成攻击性 PowerShell 代码。为了训练和评估,我们提出了两个包含 PowerShell 代码样本的新数据集,一个具有人工策划的自然语言描述,另一个仅包含代码的数据集用于强化训练。我们对最先进的 NMT 模型进行了广泛评估,并对生成的代码进行了静态和动态分析。结果表明,使用我们的数据集调整 NMT 能有效生成攻击性 PowerShell 代码。与最广泛使用的 LLM 服务 ChatGPT 的比较分析揭示了我们的微调模型的专门优势。

英文摘要:

As the Windows OS stands out as one of the most targeted systems, the PowerShell language has become a key tool for malicious actors and cybersecurity professionals (e.g., for penetration testing). This work explores an uncharted domain in AI code generation by automatically generating offensive PowerShell code from natural language descriptions using Neural Machine Translation (NMT). For training and evaluation purposes, we propose two novel datasets with PowerShell code samples, one with manually curated descriptions in natural language and another code-only dataset for reinforcing the training. We present an extensive evaluation of state-of-the-art NMT models and analyze the generated code both statically and dynamically. Results indicate that tuning NMT using our dataset is effective at generating offensive PowerShell code. Comparative analysis against the most widely used LLM service ChatGPT reveals the specialized strengths of our fine-tuned models.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑