Giter Site home page Giter Site logo

boa's Introduction

boa

Black-Box Python Reverse Engineering Platform

Old Demo Version

Introduction

boa is a (first of its kind) web-based automated reverse engineering platform that helps extrapolate original and readable Python source from a compiled and packed executables. It is useful for hackers and reverse engineers attempt to better understand the functionality of Python-built apps and/or malware. It undergoes the following when an executable sample is processed through its pipeline:

  • Executable Unpacking - parse out resources and code from binaries created with various packers.
  • Bytecode Decompilation/Patching - decompile and patch (if necessary) Python source from unpacked bytecode.
  • Deobfuscation - (TODO) attempt to recover readable source from bytecode and source-level obfuscation methods.
  • Static Analysis - scan relevant source files for detrimental security issues.
  • Report Generation - generate a user-friendly report on executable.

Features

  • Simple & intuitive web-based user interface to enhance workflow
  • Supports unpacking multiple types of Python-based packers/installers
  • Deep static analysis on decompiled source with bandit in order to discover low-hanging bugs and secrets
  • Report generation in order to display analysis results for consumption
  • File object storage with AWS S3 for successful samples

Usage

boa is designed to be either a self-hosted security tool, or hosted on the cloud. In either case, Docker is conveniently setup for fast and containerized deployment.

Docker

Use docker-compose up to run a local development boa setup:

$ docker-compose up

Manual

To build and start a local development instance:

$ pip install -r requirements.txt

# set envvars for S3 integration
$ export S3_BUCKET=<BUCKET_NAME>
$ export AWS_ACCESS_KEY_ID=<KEY_HERE>
$ export AWS_SECRET_ACCESS_KEY=<SECRET_FOR_KEY>

# now we can run!
$ python run.py

With a manually-built version of boa, artifacts during scanning are loaded into the artifacts/ folder in the project workspace, with a local PostgreSQL database instantiated at db/boascans.db.

Contributions

Interested in helping out with boa? Check out the issue tracker to see what can be done to help improve the state of the project!

License

MIT License

boa's People

Watchers

James Cloos avatar

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.