Skip to content

CAPESandbox/CAPEvm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 

Repository files navigation

CAPEvm: CAPE Virtual Machine

🧪 Overview

CAPEvm is a pre-configured CAPE virtual machine optimized to run natively on a bare KVM hypervisor alongside target VMs.


🏗️ Architecture & Intent

The recommended deployment model follows a Flat-Hypervisor Topology:

  1. Host: A bare-metal Linux server (Ubuntu 24.04 recommended).
  2. Hypervisor: KVM/QEMU installed via the official CAPE utility script kvm-qemu.sh
  3. Guests: This CAPE vm running in parallel with your Windows analysis VMs, remotely managing the host hypervisor via 'kvmremote' machinery using libvirt.

🚀 Installation & Setup

1. Prepare the Hypervisor

We recommend using the official CAPE hypervisor installation script kvm-qemu.sh to set up the KVM hypervisor base.

# On your Host Machine
git clone https://github.com/kevoreilly/CAPEv2.git
cd CAPEv2/installer
sudo ./kvm-qemu.sh

2. Download and Recombine the Image

  1. Download all parts (capevm.tar.gz.aa, ab, etc.) from the Releases tab.
  2. Recombine and extract in one command:
    cat capevm.tar.gz.* | tar -xvzf -
    

3. Define the VM in Libvirt

Move the extracted capevm.qcow2 to your libvirt storage pool and define it using virt-manager or virsh with capevm.xml from this repo, edited with the path to capevm.qcow2.

 sudo virsh define capevm.xml

Note: Ensure the network interface is attached to the same internal bridge as your Windows analysis VMs to allow for cross-guest communication and routing during detonations.


User Accounts & Credentials

The virtual machine has been set up using the default 'ubuntu' account from the cloud image, for which the password is 'cape'. CAPE itself is configured to run under the 'cape' account which has no password.

⚙️ Configuration

Update kvmremote.conf to include the target VMs on your hypervisor in the form:

[kvmremote]
machines = win10-1
interface = ens10
dsn = qemu+ssh://admin@hypervisor/system

[win10-1]
label = win10-1
platform = windows
ip = 192.168.1.11
tags = x64,win10
snapshot = Ready
arch = x64

⚙️ Latest Updates

Ensure the CAPE instance running in the virtual machine has the latest updates:

cd /opt/CAPEv2
sudo su cape
git pull
.venv/bin/python -m pip install cape-parsers --upgrade
.venv/bin/python utils/community.py -waf
exit
sudo systemctl restart cape
sudo systemctl restart cape-web
sudo systemctl restart cape-processor

Hyper-V Support

For Windows-based environments, this VM can be utilized by:

  1. Converting the .qcow2 to .vhdx via qemu-img.
  2. Switch the CAPE configuration to use the Hyper-V Machinery module (hyperv).
  3. Configure your hyperv.conf machinery module configuration

VMware

The image can be converted to .vmdk for use in ESXi or Workstation environments if required.


© 2026 CAPE Sandbox Contributors

About

CAPE Virtual Machine

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors