Azure Scan Engines
You can deploy a Scan Engine in the form of an Azure VM from Microsoft's Azure marketplace. This article guides you through the deployment and configuration process.
Setting up your scan engine
- Log in to your Azure portal.
- Click the Marketplace tile.
- Search for "Rapid7 VM Scan Engine" within the Marketplace search and select the Rapid7 VM Scan Engine.
- Click Create.
- Give your new VM a name (without any spaces) and some information about who will be managing the engine. This is also where you will select the authentication method.
- Click OK.
- Choose a D2_V2 or larger VM.
- Leave the default values on the Settings screen, but you’ll want to double check your Network security group (firewall).
If you will be using console-to-engine pairing, you’ll want to allow inbound access from your console’s IP on port 40814.
If you need a public IP address, you will need to provision it now as shown below:
If you will be using engine-to-console pairing, you don’t need to add any new rules.
- Launch the instance with a few OK button clicks and one Purchase button click. You'll see this icon in your dashboard indicating that the system is in the process of deploying:
After a few minutes, you’ll see the Scan Engine available under Virtual Machines. The public IP address (if added) will be on the overview tab.
Connecting the Scan Engine to the Security Console
Choose how you want to connect the engine to the console, console-to-engine or engine-to-console communication.
Log in to the Security Console via the web browser, and to the Azure instance via SSH. For help, see https://azure.microsoft.com/en-us/documentation/articles/virtual-machines-linux-ssh-from-windows/.
Follow the normal instructions for pairing a console.
- Log in to the Security Console via the web browser.
- Get a pre-shared key.
- Go to the Administration page.
- Click manage under Engines in the Scan Options section.
- Click Generate.
- Make sure the console’s firewall accepts incoming connections from the engine on port 40815.
- SSH to the scan engine.
- Stop the Scan Engine service with the following command:
1sudo service nexposeengine stop
- Create an
/opt/rapid7/nexpose/nse/conf/consoles.xmlfile that looks like this:
1<?xml version='1.0' encoding='utf-8'?>2<Consoles>3<console id="1" enabled="1" connectTo="1" name="UNAVAILABLE" lastAddress="CONSOLE_IP" port="40815" plaintext_sharedSecret="CONSOLE_SHARED_SECRET">4<cert></cert>5</console>6</Consoles>
CONSOLE_SHARED_SECRETabove with the corresponding values from the console.
- Restart the engine service with the following command:
1sudo service nexposeengine start
- Wait approximately 20 minutes for the engine to start and pair with the Security Console.
Scanning outside the Azure environment
You should completely open the firewall of scan targets so that the scan engine can scan all ports.
- In the Azure portal, go to Virtual Machines.
- Select a Virtual Machine scan engine.
- Select Network interfaces.
- Select the attached network interface.
- Select Network security group.
- Select the security group.
- Click the icon pictured below to add an inbound security rule:
- Click the Add button.
- Fill out the form with the IP of your scan engine: