Git Product home page Git Product logo

master-thesis-public's Introduction

Master Thesis written back in 2021

Important information

Project source code (written in c++) is password protected since it could potentially be used against its purpose (which is to protect intellectual property by obsuscating programs) - for instance to obfuscate malware.

You can use the provided password to unzip the source_code.zip file (if you didn't receive the password, you won't be able to see the source code). You can use the following command:

  • 7za x source_code.zip -p

Scope

Implementation of the tool named VMObf that performs software obfuscation using virtualization technique.

Algorithm used

All the details regarding algorithm, implementation and evaluation can be found in VMObf.pdf.

In short, obfuscation algorithm runs for each function in a program separately, in five main steps:

  • Split basic blocks of a given function so that it contains < c (some constant) instructions.
  • Divide graph of the function into connected components chosen randomly each time.
  • Each connected component becomes a single instruction of the Virtual Machine (VM).
  • Each instruction is provided with local variables it needs and returns the modified ones along with the next VM instruction address.
  • Since each selected connected component of original graph of the function (VM instruction) may have possibly many entry points and end points, instruction input / output depends on additional argument (passed to this instruction) telling which code it should execute.

Requirements

In order to run VMObf, the following tools should be installed:

  • llvm-11
  • clang++-11

Installation and use

  • Clone the repository.
  • VMObf can be started in two different ways (on Linux):
    • using runVMObf.sh
    • using runVMObf_optimized.sh

Each script expects a single argument: name of a file with .cpp extension. Scripts will automatically build the project.

The first script runs VMObf on an unoptimized code produced by clang. The second one runs VMObf on an optimized code.

Note that, for more complicated programs, obfuscation may take some time (even up to several minutes).

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.