Shellcode Generation: A Resource Efficient Approach using Fine-tuned LLMs

Mukh Ram, V. Viswajeet Krishna, M Pranavkrishnan, Priyanka C. Nair, Deepa Gupta · 2024

In order to create better shellcode for offensive cybersecurity, this study investigates the use of large language models (LLMs) such as Mistral and Llama. It focuses on LLM optimizations to improve shellcode accuracy and efficiency with the goal of quickly locating and taking advantage of software vulnerabilities. To optimize shellcode generation, several model parameters are tuned through controlled experiments, with the BLEU score serving as the primary criterion for impartial evaluation. This study achieved a BLEU-1 score of $\mathbf{0. 8 5 0 6,}$ highlighting the effectiveness of the optimization and finetuning strategies. The study explores the subtle aspects of LLMs that influence the creation of shellcode, such as their capacity for learning, their ability to adjust to the peculiarities of cybersecurity, and their ability to replicate complex patterns into effective shellcode. This project intends to expand knowledge of using LLMs for shellcode development by submitting significant experimentation and research, providing insights into more efficient vulnerability exploitation strategies in cybersecurity.

Read the paper · More papers on PaperTik