Giter VIP home page Giter VIP logo

ansible-cuckoo's Introduction

Synopsis

This is a fully functional updated standalone Ansible Playbook for building a Cuckoo Sandbox server out of box. It is successfully tested on a Ubuntu 18.04(bionic)AMD64 with the following capabilities are included:

  • Cuckoo Sandbox v2.0.6 inside virtual environment
  • Yara v3.9
  • Volatility v2.6
  • Suricata IDS v4.1
  • Java v8 and Elasticsearch v5.6
  • Moloch v1.8
  • Support for vSphere(should work for ESXi as well)
  • Django-based Web Interface and MongoDB
  • PostgreSQL for simultanous analyzes on multiple sandboxes
  • SSDeep
  • Tcpdump
  • M2Crypto
  • Tor
  • INetSim

Prerequisites

The playbook automatically integrates Cuckoo to systemd. It creates the following services: cuckoo.service, cuckoo_api.service, cuckoo_web.service and cuckoo_rooter.service. If you dont have a vpn to route traffic through, disable the Openvpn role in cuckoo-playbook/site.yml and remove openvpnclient.service from cuckoo-playbook/roles/start_up_cuckoo/files/cuckoo_rooter.service at the top of the file, otherwise Cuckoo will fail to start.

It is very important that you change the config files before you start the playbook.

  • cuckoo-playbook/inventories/production/hosts (for remote installation) or cuckoo-playbook/inventories/staging/hosts (for local installation)

  • cuckoo-playbook/inventories/production/hosts

  • cuckoo-playbook/roles/cuckoo/files/cuckoo.conf

  • cuckoo-playbook/roles/cuckoo/files/vsphere.conf

  • cuckoo-playbook/roles/cuckoo/files/routing.conf

  • cuckoo-playbook/roles/elasticsearch/files/elasticsearch.yml

  • cuckoo-playbook/roles/suricata/files/suricata

  • cuckoo-playbook/roles/tor/files/torrc

  • Change variables in cuckoo-playbook/inventories/production/group_vars/all or cuckoo-playbook/inventories/staging/group_vars/all depending on your setup(remote/local) to reflect correct distribution and NIC names.

  • Change IP-address in cuckoo-playbook/roles/start_up_cuckoo/files/cuckoo_api.service and cuckoo-playbook/roles/start_up_cuckoo/files/cuckoo_web.service to reflect your setup.

Installation

The playbook aims to succesfully install to a fresh install of Ubuntu 18.04 Server(amd64) with the following package options:

  • openssh-server
  • python 2.7

After the base OS install a dist-upgrade was conducted:

apt update & apt dist-upgrade

Installation of the Cuckoo environment is done with the following steps:

  1. Clone this repository;

  2. Refer to prerequisites for files to edit before running the playbook.

  3. Replace the placeholders in cuckoo-playbook/inventories/production/hosts with the correct ones for your installation, where:

    • HOST is the IP address of the server to install Cuckoo to
    • ADMIN is a user with sudo privileges on the server
    • PASSWORD is the user ADMIN password
  4. Run the following command inside cuckoo-playbook folder:

ansible-playbook -i inventories/production site.yml

By default, Cuckoo will be installed to /opt/cuckoo inside a virtual environment and a cuckoo user and group will be created. These values can be modified at group_vars file:

cuckoo_user: 'cuckoo'
cuckoo_dir: '/opt/cuckoo'

Usage

Once the installation has completed, Suricata, Moloch, Cuckoo Rooter alongside API, Web interface and Cuckoo itself will start up automatically.

Disclaimer

This Playbook is created for use as a part of a Bachelor Thesis. It's environment has been successfully run on a ESXi host connected to a vCenter(vSphere).

ansible-cuckoo's People

Contributors

julianoborba avatar desiqvel avatar stronningen 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.