Skip to content

Masterwhiece/gMBA

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

3 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

gMBA: Expression Semantic Guided Mixed Boolean-Arithmetic Deobfuscation

This repository contains the official implementation and dataset for the paper:

πŸ“„ paper

gMBA: Expression Semantic Guided Mixed Boolean-Arithmetic Deobfuscation Using Transformer Architectures
[Accepted at Findings of ACL2025]

πŸ” Overview

Mixed Boolean-Arithmetic (MBA) expressions are widely used in software obfuscation to hinder reverse engineering and malware analysis.
gMBA presents a novel Transformer-based sequence-to-sequence model that deciphers obfuscated MBA expressions into their simplified forms.

Unlike prior approaches, gMBA leverages:

  • Semantic features from the expression via automatically constructed truth tables
  • A lightweight yet expressive Transformer architecture guided by these semantics

⁉️ How to use

git clone https://github.com/your-username/gMBA.git
cd gMBA
pip install -r requirements.txt

You may need to install torch series by the commands below

pip install torch==2.0.0+cu117 -f  https://download.pytorch.org/whl/torch_stable.html

pip install torchtext==0.6.0 -f https://download.pytorch.org/whl/torch_stable.html

pip install torchdata==0.6.0 -f https://download.pytorch.org/whl/torch_stable.html

Then just run your notebook files!

πŸ“‚ Project Structure

.
β”œβ”€β”€ data/
β”‚   β”œβ”€β”€ train_s.csv
β”‚   β”œβ”€β”€ train_s-bool_tt_added.csv
β”‚   β”œβ”€β”€ train_s-arith_tt_added.csv
β”‚   β”œβ”€β”€ train_s-both_tt_added.csv
β”‚   β”œβ”€β”€ test.csv
β”‚   β”œβ”€β”€ test-bool_tt_added.csv
β”‚   β”œβ”€β”€ test-arith_tt_added.csv
β”‚   └── test-both_tt_added.csv
β”‚
β”œβ”€β”€ baseline/
β”‚   β”œβ”€β”€ transformer_baseline.py
β”‚   └── ...
β”‚
β”œβ”€β”€ addition/
β”‚   β”œβ”€β”€ transformer_add.ipynb
β”‚   └── ...
β”œβ”€β”€ concat_token/
β”‚   β”œβ”€β”€ transformer_cat_tok.ipynb
β”‚   └── ...
β”œβ”€β”€ concat_hiddim/
β”‚   β”œβ”€β”€ transformer_cat_hiddim.ipynb
β”‚   └── ...
β”‚
β”œβ”€β”€ README.md
└── requirements.txt

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors