vPenTest Agent Installation Guide

Overview

The vPenTest Agent is equivalent to a pentester’s laptop containing the tools and software necessary to perform internal testing such as internal pentests and IP Estimator. The agent software is installed on a full instance of Ubuntu 22.04 on a device of your choice. The agent is essentially a docker host used to pull a custom Kali Linux container to perform testing.

What do I need?

  1. A host to run Ubuntu 22.04 as the OS (mini-pc, virtual machine, cloud server, etc)

  2. An Agent UUID from vPenTest .

  3. The installation command:

    1. curl -L https://app.vpentest.io/getting_started.sh | bash

Minimum requirements for the host

TL;DR

Perform the following steps:

  1. Download the Ubuntu 22.04 server ISO.

  2. Get your Agent UUID from vPenTest.

  3. Pick a host to run Ubuntu 22.04

  4. Boot to the ISO, go through the installation steps, and configure the pre-installation settings.

    IMPORTANT   Everything is default, except it’s important to clear the option to set up this disk as an LVM group.

  5. On the screen that asks you to select which software to install, just press Enter as the vPenTest Agent will install the prerequisites for you.

  6. Setup your username and password. Vonahi will never ask for these credentials.

  7. Log into Ubuntu, open terminal, switch to root and run the following:

    1. sudo su

    2. cd

    3. apt update && apt upgrade -y

    4. curl -L https://app.vpentest.io/getting_started.sh | bash

  8. Register the agent using the UUID from vPentest.

Detailed installation steps

Choose a host to run Ubuntu 22.04.

IMPORTANT  Using Ubuntu instance as a container will not work for our agent software because it causes a docker-in-docker scenario.

Installing the host operating system, Ubuntu 22.04

  1. Navigate to Ubuntu Server 22.04 download page.

  2. Download the ISO file for Ubuntu Server 22.04 LTS.

  3. Boot to the ISO and install Ubuntu 22.04 on the chosen host.

Installing Ubuntu

  1. Boot the ISO to your device of choice and press Enter to install Ubuntu Server.
  2. Select your language.
  3. Skip updating the installer if you’re prompted.
  4. Select your keyboard layout.
  5. Type of install: Leave the default, Ubuntu Server. Do not select “minimized.”
  6. Network connections: DHCP or you can set a static IP.
  7. Configure proxy: Do not use proxy.
  8. Configure Ubuntu archive mirror: Leave default.
  9. Guided storage configuration: Clear the Set up this disk as an LVM group option.
  10. Storage configuration: Review and verify you have close to 80 GB of disk space total and 55 GB minimum that's usable.

  11. Click Continue to format the disk.

  12. Set up your account profile.

    NOTE  This is strictly for you, and we will not have records of your username/password.

  13. SSH Setup: Skip this step and do not install openssh.

  14. Featured Server Snaps: Skip and do not install any additional snaps or features.

  15. This will take a few minutes, and then the Reboot Now option will be available once the installation completes.
  16. Reboot once the installation completes. If you get the error message Failed unmounting /cdrom, press Enter to progress the reboot.
  17. Once Ubuntu boots, you will see the login screen followed with some cloud-init data. Press Enter to get to the login prompt.

Installing the vPenTest Agent software

The agent software installation will take five to ten minutes depending on internet bandwidth.

NOTE  If you created the Agent UUID in the portal, you could run the single install command that includes the UUID and skip the steps below to register the agent.

  1. Log into Ubuntu using the username and password created during installation. Then run the following commands:

    1. sudo su

    2. cd

    3. apt update && apt upgrade -y

    4. curl -L https://app.vpentest.io/getting_started.sh | bash

  2. The installation is successful when you’re prompted to input the UUID.

  3. Go to app.vpentest.io and click New Agent to create a UUID to use to register the agent with the Company Profile.

  4. Input the UUID into the terminal window and register your agent.

  5. Reboot the host and you should now see the agent show Online in app.vpentest.io.

The agent is now ready to be used for scheduling internal pentests.