Skip to content

Latest commit

 

History

History
18 lines (11 loc) · 1.05 KB

README.md

File metadata and controls

18 lines (11 loc) · 1.05 KB

Shape-Shifting Malicious Code in Software Backdoors via Language Models

Overview

This repository contains the code we developed, along with cover files generated by our approach. It also includes the real development files used in our experiments. Since no public implementation of the English Shellcode method is available, we tried our best to implement this method and provide it in the repository as well.

The code in this reporitory is divided into two part:

  • The prompts: The prompts used in our experiments.
  • The decoder: Several decoder implementations, including those described in the paper as well as customized versions that handle padding. The decoders works with block size 2 by default.

Payload Reconstruction

Several decoders are provided in Shell, Python, and Perl, along with a customized decoder for padded cover files. You can run

cat poem.txt | ./decoder/decoder.sh | xxd

to verify the correctness of the payload encoded in the poem example shown in the paper in Figure 1.

More details can be found in the directory decoder.