Coder Social home page Coder Social logo

ostentatiousoptimizer's Introduction

CodeQL Analysis Publish Docker Image Test Code

OstentatiousOptimizer

OstentatiousOptimizer is a project that uses the LLVM toolchain to obfuscate binaries to make reverse-engineering and attribution more difficult.

The OstentatiousOptimizer works by creating multiple LLVM opt "Passses", and allowing you to apply any number of them against your code base. Rather than the normal optimization passes, such as dead code elimination, memcpy optimization, memory to register promtions, etc. OstentatiousOptimizer will instead run obfuscation passes to try and make the code more complicated to reverse-engineer(while not affecting the runtime of the code).

Building

To build and test the project, you can use the Docker image on GHCR or build it yourself:

$ # Build the Docker Image
$ ./start-environment.sh
$ # Pull image from GHCR
$ sudo docker run -it --rm ghcr.io/cuckooexe/ostentatiousoptimizer

Then you can just use Make:

$ make clean test

Passes

The following are passes that are (or will be) included in OstentatiousOptimizer.

Status:

  • reliner
  • OpaquePredicates
  • BeyondTheGrave
  • Hell's Gate
  • Basic Block Scrambler

reliner

reliner will intelligently inline functions for some number of call instructions. That is, if there is a function, foo, which is called five times, it might be inlined for zero, one, or up to five of the call instructions.

OpaquePredicates

OpaquePredicates implements multiple classes of opaque predicates which will obfuscate the control flow graph of the binary.

BeyondTheGrave

BeyondTheGrave takes in a (configurable) library of code samples, and uses the library to inject: - Dead Instructions - Dead Blocks - Dead Functions

The Pass uses jmp instructions to ensure that the injected code is never called. This Pass can help disguise your tool as accomplishing something; by configuring the Pass to use specific code bases (i.e. has ffmpeg, libpng, etc.) the dead code might suggest to an automated scanner that your tool accomplishes something else.

Hell's Gate

Hell's Gate implementation in LLVM IR that will automatically translate Windows API Calls into "direct syscalls" whenever possible.

Basic Block Scrambler

Scramble Basic Blocks within a function and execute the appropriate relative jumps to maintain proper code flow.

ostentatiousoptimizer's People

Contributors

cuckooexe avatar

Stargazers

 avatar

Watchers

 avatar gmh avatar  avatar

Forkers

askyeye zmkeh

ostentatiousoptimizer's Issues

How to compile under windows

How to compile under windows

Not a big fan of compiling with mingw-w64 + wclang

  • mingw-w64 always has some weird issues like mingw.thread.h d3dx9 . . .

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.