GoSecure
malboxes
Python

Builds malware analysis Windows VMs so that you don't have to.

Last updated Jun 30, 2026
1.0k
Stars
137
Forks
27
Issues
0
Stars/day
Attention Score
41
Language breakdown
Python 48.5%
PowerShell 19.7%
JavaScript 11.9%
Batchfile 5.7%
Ruby 5.6%
Shell 5.5%
โ–ธ Files click to expand
README

= Malboxes :toc: preamble :toclevels: 2 :twob: https://twitter.com/obilodeau :twhg: https://twitter.com/hugospns // github stuff ifdef::env-github[:github:]

ifndef::github[] // local logo image::docs/logos/main.svg[Malboxes Logo] endif::[]

ifdef::github[] // logo on github image::https://raw.githubusercontent.com/GoSecure/malboxes/master/docs/logos/main.svg?sanitize=true[Malboxes Logo]

.Project health // Travis Build Status image:https://img.shields.io/travis/GoSecure/malboxes/master.svg[Build Status (Travis CI), link=https://travis-ci.org/GoSecure/malboxes] // BlackHat Arsenal 2017 image:https://raw.githubusercontent.com/toolswatch/badges/master/arsenal/usa/2017.svg?sanitize=true[Black Hat Arsenal, link=https://www.toolswatch.org/2017/06/the-black-hat-arsenal-usa-2017-phenomenal-line-up-announced/] // Gitter Chat image:https://badges.gitter.im/malboxes/Lobby.svg[link="https://gitter.im/malboxes/Lobby?utmsource=badge&utmmedium=badge&utmcampaign=pr-badge&utmcontent=badge"] endif::[]

Builds malware analysis Windows virtual machines so that you don't have to.

https://github.com/gosecure/malboxes

== Requirements

  • Python 3.3+
  • https://www.packer.io/docs/install/index.html[Packer]
  • vagrant: https://www.vagrantup.com/downloads.html
  • https://www.virtualbox.org/wiki/Downloads[VirtualBox] or an vSphere / ESXi server

=== Minimum specs for the build machine

  • At least 5 GB of RAM
  • VT-X extensions strongly recommended
=== Fedora

dnf install ruby-devel gcc-c++ zlib-devel vagrant plugin install winrm winrm-fs

=== Debian

apt install vagrant git python3-pip === Ubuntu

apt install git python3-pip

=== ArchLinux

pacman -Sy vagrant packer python-pip git

== Installation

=== Linux/Unix

  • Install git and packer using your distribution's packaging tool
(packer is sometimes called packer-io)
  • Install vagrant from their website : https://www.vagrantup.com/downloads.html (Installing from some distributions' packaging tools have caused issues).
  • pip install malboxes:
+ sudo pip3 install git+https://github.com/GoSecure/malboxes.git#egg=malboxes

=== Windows

NOTE: Starting with Windows 10 Hyper-V is always running below the operating system. Since VT-X needs to be operated exclusively by only one Hypervisor https://github.com/GoSecure/malboxes/issues/39[this causes VirtualBox (and malboxes) to fail]. To disable Hyper-V and allow VirtualBox to run, issue the following command in an administrative command prompt then reboot: bcdedit /set hypervisorlaunchtype off

==== Using Chocolatey

The following steps assume that you have https://chocolatey.org/[Chocolatey] installed. Otherwise, follow the <>.

  • Install dependencies:
+ choco install python vagrant packer git virtualbox +
  • Refresh the console
+ refreshenv +
  • Install malboxes:
+ pip3 install setuptools pip3 install -U git+https://github.com/GoSecure/malboxes.git#egg=malboxes

==== Manually

  • Install https://www.virtualbox.org/wiki/Downloads[VirtualBox],
https://www.vagrantup.com/downloads.html[Vagrant] and https://git-scm.com/downloads[git]
  • https://www.packer.io/downloads.html[Install Packer], drop the packer binary
in a folder in your user's PATH like C:\Windows\System32\
  • https://www.python.org/downloads/[Install Python 3] (make sure to add
Python to your environment variables)
  • Open a console (Windows-Key + cmd)
+ pip3 install setuptools pip3 install -U git+https://github.com/GoSecure/malboxes.git#egg=malboxes

=== To deploy on AWS (optional) Run this command after normal installation: vagrant plugin install vagrant-aws

NOTE: The AWS feature has only been tested on Linux for the moment and EC2 does not support 32-bit desktop version of Windows 10.

== Usage

=== Box creation

This creates your base box that is imported in Vagrant. Afterwards you can re-use the same box several times per sample analysis.

Run:

malboxes build