Coder Social home page Coder Social logo

klebertiko / ansible-cuckoo Goto Github PK

View Code? Open in Web Editor NEW

This project forked from julianoborba/ansible-cuckoo

0.0 2.0 0.0 13.18 MB

This is a Ansible script for building a ready to go Cuckoo Sandbox server.

License: GNU General Public License v3.0

Python 90.24% Shell 5.65% Batchfile 4.11%

ansible-cuckoo's Introduction

Synopsis

This is a fully functional updated standalone Ansible script for building a Cuckoo Sandbox server out of box. The following capabilities are included:

  • Cuckoo Sandbox v2 inside virtual environment
  • Yara v3
  • Volatility v2
  • Suricata IDS v4
  • Java v8 and Elasticsearch v5
  • Moloch v0.5
  • Support for ESX, vSphere, KVM and AVD (with pre-configured avd image) machinery
  • Current using VirtualBox v5 machinery with Extensions Pack
  • Django-based Web Interface and MongoDB
  • PostgreSQL
  • SSDeep
  • Tcpdump
  • M2Crypto
  • Tor

Installation

This installation process has been success tested against a fresh install of Ubuntu 16.04 Desktop (amd64) and Ubuntu 17.10 Minimal (amd64) with the following package options:

  • openssh-server

Also, ensure a cuckoo1.[ova/ovf] file in your ADMIN - detailed below - home folder.

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

apt update & apt dist-upgrade

You may want to install Ansible with the install_ansible.sh script, for Ubuntu only.

You also may need log in via ssh first before run Ansible to ensure the ssh key of your remote machine into your system.

You can customize your target Ubuntu distro and the server network interface under:

--extra-vars "distribution=artful nic=enp0s3"

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

  1. Clone this repository: git clone https://github.com/MalwareReverseBrasil/Ansible-Cuckoo.git
  2. 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. Note: the comma after the HOST is not a typo. Ansible is expecting a list, so the comma is required
    • ADMIN is a user with sudo privileges on the server
    • PASSWORD is the user ADMIN password
  3. Run the following command inside cuckoo-playbook folder:
ansible-playbook -i inventories/production site.yml --extra-vars "distribution=artful nic=enp0s3"

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, Moloch, Suricata, Cuckoo API, Rooter, Sandbox and it's web interface will start up automatically. If you need to restart everything after some shutdown do:

sudo suricata -D --user=cuckoo --group=cuckoo --unix-socket=cuckoo.socket
sudo systemctl start molochcapture.service
sudo systemctl start molochviewer.service
sudo /opt/cuckoo/bin/cuckoo rooter &

As cuckoo user:

. /opt/cuckoo/bin/activate
(cuckoo)$ cuckoo api --host 0.0.0.0 --port 8880 &
(cuckoo)$ cuckoo web runserver 0.0.0.0:8881 &
(cuckoo)$ cuckoo -d &

Find yourself

ansible-cuckoo's People

Contributors

julianoborba avatar

Watchers

James Cloos avatar Kleber Almeida Toyota 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.