Skip to main content
QUICK REVIEW

[Paper Review] From Text to MITRE Techniques: Exploring the Malicious Use of Large Language Models for Generating Cyber Attack Payloads

P. V. Sai Charan, Hrushikesh Chunduri|arXiv (Cornell University)|May 24, 2023
Advanced Malware Detection TechniquesComputer Science28 citations
TL;DR

The paper systematically generates implementable code for the top-10 MITRE Techniques using ChatGPT and Google Bard, analyzes their effectiveness and safeguards, and discusses implications for attackers and defenders.

ABSTRACT

This research article critically examines the potential risks and implications arising from the malicious utilization of large language models(LLM), focusing specifically on ChatGPT and Google's Bard. Although these large language models have numerous beneficial applications, the misuse of this technology by cybercriminals for creating offensive payloads and tools is a significant concern. In this study, we systematically generated implementable code for the top-10 MITRE Techniques prevalent in 2022, utilizing ChatGPT, and conduct a comparative analysis of its performance with Google's Bard. Our experimentation reveals that ChatGPT has the potential to enable attackers to accelerate the operation of more targeted and sophisticated attacks. Additionally, the technology provides amateur attackers with more capabilities to perform a wide range of attacks and empowers script kiddies to develop customized tools that contribute to the acceleration of cybercrime. Furthermore, LLMs significantly benefits malware authors, particularly ransomware gangs, in generating sophisticated variants of wiper and ransomware attacks with ease. On a positive note, our study also highlights how offensive security researchers and pentesters can make use of LLMs to simulate realistic attack scenarios, identify potential vulnerabilities, and better protect organizations. Overall, we conclude by emphasizing the need for increased vigilance in mitigating the risks associated with LLMs. This includes implementing robust security measures, increasing awareness and education around the potential risks of this technology, and collaborating with security experts to stay ahead of emerging threats.

Motivation & Objective

  • Assess the potential for malicious use of LLMs to generate code implementing MITRE ATT&CK techniques.
  • Evaluate how ChatGPT and Google Bard perform in generating implementable payloads for top-10 techniques observed in 2022.
  • Compare prompt engineering efforts and error handling required to bypass safeguards between the two models.
  • Discuss ethical considerations and potential defensive uses of LLMs for security testing and threat simulation.

Proposed method

  • Identify the top-10 MITRE Techniques prevalent in 2022 based on the Red Report 2023 (Picus Security data).
  • Interact with ChatGPT and Google Bard to generate implementable code scenarios for each technique.
  • Attempt prompt engineering to bypass AI safeguards and generate code responses.
  • Execute generated code in a controlled sandbox environment to assess feasibility and errors.
  • Automate the process of pushing successful scripts to a GitHub repository for replication and sharing.
  • Provide comparative analysis of model performance, safeguard bypass efforts, and code generation effectiveness.
Figure 1: Methodology for generating implementable code for Top-10 MITRE Techniques
Figure 1: Methodology for generating implementable code for Top-10 MITRE Techniques

Experimental results

Research questions

  • RQ1Can LLMs generate implementable payloads for the top-10 MITRE techniques observed in 2022?
  • RQ2How do ChatGPT and Google Bard compare in terms of prompt engineering effort and success rate when bypassing safeguards?
  • RQ3What are the qualitative and practical differences in the code generated by the two models for common MITRE techniques?
  • RQ4How can offensive usage be balanced with defensive utility for security research and pentesting?

Key findings

  • ChatGPT and Bard can generate code snippets for several MITRE techniques after prompt adjustments.
  • ChatGPT showed success in generating certain techniques (e.g., T1059, T1003, T1486) with worked examples, though some cases required prompt modification.
  • Bard produced runnable code snippets for some techniques but faced stricter AI guidelines in others, requiring additional prompting strategies.
  • The study demonstrates potential risks and benefits: attackers may accelerate targeted attacks, while researchers can simulate realistic attacks to improve defenses.
  • The authors advocate for increased vigilance, robust security measures, and collaboration with security experts to mitigate risks associated with LLMs.
Figure 2: Failed Query in chatGPT
Figure 2: Failed Query in chatGPT

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.