Giter Site home page Giter Site logo

osx_boubou's Introduction

.-. .-')                           .-. .-')                            
\  ( OO )                          \  ( OO )                           
  ;-----.\  .-'),-----.  ,--. ,--.   ;-----.\  .-'),-----.  ,--. ,--.   
  | .-.  | ( OO'  .-.  ' |  | |  |   | .-.  | ( OO'  .-.  ' |  | |  |   
  | '-' /_)/   |  | |  | |  | | .-') | '-' /_)/   |  | |  | |  | | .-') 
  | .-. `. \_) |  |\|  | |  |_|( OO )| .-. `. \_) |  |\|  | |  |_|( OO )
  | |  \  |  \ |  | |  | |  | | `-' /| |  \  |  \ |  | |  | |  | | `-' /
  | '--'  /   `'  '-'  '('  '-'(_.-' | '--'  /   `'  '-'  '('  '-'(_.-' 
   `------'      `-----'   `-----'    `------'      `-----'   `-----'    
A mach-o virus infector

Copyright (c) fG!, 2012,2013 - [email protected] - http://reverse.put.as
All rights reserved.

This is the sample code for OS.X/Boubou presented at Hitcon'12 in Taipei.

Does it job by modifying the Mach-O header of the target and adding a new
library command.
The library contains the "malware" payload and can be used for different
purposes, such as stealing information or backdoor without using traditional
LaunchDaemons.

The code is composed by two parts, the infector which will try to infect all
applications it can find in a given path (configured at configuration.h),
starting by frameworks and then main binary, and the library, which will decrypt
and restore bytes stolen by the infector.

I tried to cleanup the code and make it a bit better from the original PoC,
which was a mess copy & pasted from many other personal projects.
It's definitely not commercial malware grade code (and that's not my intent!)
and it contains quite simple (and easily detected) "design" decisions. It can be
 improved a lot!

The goal here is to show how it's done and hopefully get detection and
protections developed.
Hitcon was in July 2012 and as far as I know there's nothing implemented
against this PoC. Maybe with some PoC code out things can change.

This version only works against non-fat binaries/frameworks, either 32 or 64
bits.

Enjoy,
fG!

TODO:
- Finish LC_MAIN entrypoint code
- Code to infect main binary if frameworks fail (only infects main in debug
compile)


osx_boubou's People

Stargazers

Dmitriy Rodionov avatar Michael Drozdovsky avatar kim4apple avatar  avatar  avatar Andrey Yurkevich avatar 公众号:iOS逆向 avatar Jack avatar Zhang avatar aquaxp avatar Victor Roemer avatar  avatar fuy avatar Alice Atlas avatar JV avatar Jorge Ouahbi avatar  avatar Tobias Salzmann avatar Mikhail Sosonkin avatar NoScripter avatar Henry Pitcairn avatar 乐星宇 avatar  avatar vince avatar Claud Xiao avatar nootropic avatar  avatar Satnam Narang avatar h0wl avatar  avatar Max Bazaliy avatar  avatar Jardel Weyrich avatar midnite_runr avatar ZW Cai avatar Chris Williams avatar Łukasz Przytuła avatar Darren Martyn avatar  avatar stuff i'd rather not have attributed to me avatar Ivan Zorin avatar eric.hsu avatar ipfans avatar obaby avatar Dave Clayton-Wagner avatar b avatar Eric Broska avatar Alexander Smirnov avatar David Leon Gil avatar hardBox avatar Shayan Eskandari avatar Guanshan Liu avatar Michael Hood avatar Tao Xu avatar Steeve Barbeau avatar  avatar Ethan Lin avatar Chris Whiteford avatar  avatar 0xc010d avatar Byungho avatar Pepi Zawodsky avatar Eric Gallager avatar Nicolas Seriot avatar

Watchers

Aaron Alexander avatar  avatar James Cloos avatar fG! avatar johnnycannuk avatar  avatar  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.