Add more mutations
Currently, the tool makes the following mutations to the malware file
Add imports received from GAN
Add sections received from GAN
Append bytes to sections
Rename sections
UPX pack
UPX unpack
Add/Remove signature
Append a random number of bytes
To add your own mutations, follow the below steps
Step 1: Add the function
Make sure not to break the binary by modifying the PE format. Test your mutation before using it for training.
Go to gym_malware/envs/controls/manipulate2
and add a function in the MalwareManipulator
class
Once the function is built, make sure to add the function name in the ACTION_TABLE
in gym_malware/envs/controls/manipulate2
Last updated