Skip to content

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

License

Notifications You must be signed in to change notification settings

julianoborba/Ansible-Cuckoo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 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;
  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
    • 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, Suricata, Moloch, Cuckoo Rooter alongside API, Web interface and Cuckoo itself will start up automatically.

If you need to restart everything, enable reboot_system Ansible role by uncomment it, and comment the other roles, in the site.yml file and run the ansible-playbook again (we will enhance this in the future).

Find yourself

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published