Giter Site home page Giter Site logo

ansible-cuckoo's Introduction

Build Status

Ansible Playbook to install and configure Cuckoo Sandbox

This playbook was created for the support of ENISA CERT Trainings.

The playbook is tested on Ubuntu 14.04 x64. Based on ansible playbook structure three distinct roles, as described below, are defined:

  • Cuckoo: This role downloads cuckoo version 1.2 from official github repository and installs required dependencies.
  • Virtualbox: This role adds the official virtualbox ppa repository for Ubuntu and installs virtualbox.
  • Web: This role configures nginx web server and gunicorn in order to serve the cuckoo web application.

To install cuckoo on a local virtual machine clone this repo and issue the following commands:

sudo apt-add-repository ppa:ansible/ansible && apt-get update
sudo apt-get โ€“y install git ansible 
git clone https://github.com/ezeteze/ansible-cuckoo
cd ansible-cuckoo
sudo ansible-playbook -i hosts site.yml --connection=local

Windows XP guest machine is used to analyse malware samples. The installation is done automatically using VMCloak .

The following configuration changes are needed before starting up cuckoo for analysis:

  • Windows XP x86 ISO image: Place the windows XP image under /home/cuckoo/winxp3.iso. Naming and path are case sensitive and defined in file /usr/local/bin/cuckoo at line 41.
  • winxp3.conf: This is the VMCloak configuration file. It is placed under /home/cuckoo/cuckoo-1.2/conf/winxp3.conf. Edit the file and provide a valid serial key for the Windows XP installation. Additionally depending on the host machine edit the hostonly-adapter accordingly.

When finished copying the ISO image and have done the required changes on the configuration file you need to start cuckoo for the first time in order to automatically create the Windows XP guest machine. This can take up to an hour depending on your host machine. To start cuckoo change to user cuckoo and issue the following command:

cuckoo start

When the process has finished you should see a message similar to the following:

cuckoo@ubuntu:~$ cuckoo start
Since this is the first run, will now create the VM..
Warning: creating filesystem that does not conform to ISO-9660.
0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100%
INFO:vmcloak:Starting the Virtual Machine 'winxp' to install Windows.
INFO:vmcloak:Waiting for the Virtual Machine 'winxp' to connect back, this may take up to 30 minutes.
INFO:vmcloak:Virtual Machine 'winxp' created successfully.

 Cuckoo Sandbox 1.2
 www.cuckoosandbox.org
 Copyright (c) 2010-2015

2015-07-02 11:00:29,066 [lib.cuckoo.core.scheduler] INFO: Using "virtualbox" machine manager
2015-07-02 11:00:29,240 [lib.cuckoo.core.scheduler] INFO: Loaded 1 machine/s
2015-07-02 11:00:29,248 [lib.cuckoo.core.scheduler] INFO: Waiting for analysis tasks.

You can now browse to http://192.168.57.1 to submit files for analysis.

For more information check out the ENISA CERT resources at: http://www.enisa.europa.eu/activities/cert/training/training-resources/


ansible-cuckoo's People

Contributors

ezeteze avatar

Watchers

Jose Ramon Palanco avatar James Cloos avatar Guillermo C. 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.