Can we generate shellcodes via natural language? An empirical study

By Pietro Liguori, Erfan Al-Hossami, Domenico Cotroneo, Roberto Natella, Bojan Cukic, Samira Shaikh. 2021

34 citations recorded by the source corpus.

Writing software exploits is an important practice for offensive security analysts to investigate and prevent attacks. In particular, shellcodes are especially time-consuming and a technical challenge, as they are written in assembly language. In this work, we address the task of automatically generating shellcodes, starting purely from descriptions in natural language, by proposing an approach based on Neural Machine Translation (NMT). We then present an empirical study using a novel dataset (Shellcode_IA32), which consists of 3200 assembly code snippets of real Linux/x86 shellcodes from public databases, annotated using natural language. Moreover, we propose novel metrics to evaluate the accuracy of NMT at generating shellcodes. The empirical analysis shows that NMT can generate assembly code snippets from the natural language with high accuracy and that in many cases can generate entire shellcodes with no errors.

Subfields: Information Systems, Code Generation & Program Synthesis, Privacy & Security, Signal Processing

How researchers see this paper

The researchers whose trusted networks rank it highest, strongest advocate first. Every researcher gets a different order.

In Information Systems

  1. Armando Solar-Lezama
  2. Koushik Sen
  3. Naman Jain
  4. Tianjun Zhang
  5. Ion Stoica
  6. Rishabh Singh
  7. Mosharaf Chowdhury
  8. Charles Sutton

In Code Generation & Program Synthesis

  1. Armando Solar-Lezama
  2. Koushik Sen
  3. Rishabh Singh

In Privacy & Security

  1. Koushik Sen
  2. Ion Stoica

In Signal Processing

  1. Armando Solar-Lezama
  2. Koushik Sen
  3. Tianjun Zhang
  4. Ion Stoica
  5. Patrice Godefroid
  6. Andrea Arcuri
  7. Gordon Fraser

Citations in the corpus