Sitemap
Dipin

Dipin

CyberSecurity Enthusiast

OpenVAS-TryHackMe Walkthrough

5 min readAug 11, 2022

--

Press enter or click to view image in full size

About OpenVAS

OpenVAS is a full-featured scan engine that executes a continuously updated and extended feed of Network Vulnerability Tests (NVTs). It’s used to scan endpoints and web applications to identify and detect vulnerabilities.

OpenVAS is built off the GreenBone Vulnerability Management (GVM) solution and is only one of the appliances that are released from GreenBone.

Coming to the tasks at hand Task1 and Task2 gives a brief introduction to OpenVAS and GVM Framework Architecture.

Press enter or click to view image in full size

OpenVAS is a service within a large framework of services known as Greenbone Vulnerability Management(GVM). Many components are part of the architecture for the GVM framework but can be broken down into three distinct sections: Front-End, Back-End, and vulnerability/Information feed.

To know more feel free to go to the OpenVAS room created by Cyrillic.

Task 3 Installing OpenVAS

There are different options to install OpenVAS, the method I use is to Run from Docker

The first command installs the docker and the second one pulls the docker container as well as runs the container. Once it’s complete navigate to https://127.0.0.1 in your preferred browser.

You will get a login page like this,

Press enter or click to view image in full size

the default credentials are admin for both Username and Password.

Once logged into OpenVAS you would see a dashboard like this,

Press enter or click to view image in full size

Task 4:Initial Configuration

Before doing anything we need to do a little bit of maintenance and configuration to get OpenVAS properly working. Begin by navigating to Scans> Tasks and clicking on the purple magic wand icon

purple magic wand

If you successfully navigated to the wizard you should see a pop-up similar to the one below

Press enter or click to view image in full size

This is where you will do an initial scan against your localhost to ensure everything is properly configured. Click on Start Scan and wait for the scan to complete(might take some time, So grab a cup of coffee).

Get Dipin’s stories in your inbox

Join Medium for free to get updates from this writer.

Once completed you would get this dashboard, now navigate to Scans > Reports

Press enter or click to view image in full size

and click on your newly created report from your previous task.

Task 5 Scanning Infrastructure

Deploy the machine and navigate to Scans > Tasks to create a new task

Press enter or click to view image in full size

For Task5 I will be focusing on the Name, Scan Targets, Scanner Type, and Scan Config.

  1. Name: To set the name of the scan.
  2. Scan Targets: The targets to scan can include Hosts, Ports, and Credentials.
  3. Scanner: By default will use OpenVAS architecture, you could also set it to any other scanner from the top-down menu.
  4. Scan Config: OpenVAS has & different scan types you can select from
Press enter or click to view image in full size

To scope, a new target navigate to the star icon next to Scan Targets to bring another popup window

Press enter or click to view image in full size

The two options to configure are Name and the Hosts. Give a name you like and provide with Target IP which is the IP of the machine we deployed earlier.

Press enter or click to view image in full size

Once you create a task, you will be brought back to the Tasks dashboard. To start the task navigate to the start icon under actions.

Press enter or click to view image in full size

Task 6 Reporting and Continuous Monitoring

This task requires downloading the TaskFiles and reading.

Task 7 Practical Vulnerability Management

Download the Task Files to answer the following

When did the scan start in Case 001?

Ans:-Feb 28, 00:04:46

When did the scan end in Case 001?

Ans:-Feb 28, 00:21:02

How many ports are open in Case 001?

Press enter or click to view image in full size

Ans:-3

How many total vulnerabilities were found in Case 001?

Ans:-5

What is the highest severity vulnerability found? (MSxx-xxx)

Press enter or click to view image in full size

Ans:-MS17–010

What is the first affected OS to this vulnerability?

Press enter or click to view image in full size

Ans:-Microsoft Windows 10 x32/x64 Edition

What is the recommended vulnerability detection method?

Press enter or click to view image in full size

Ans:-Send the crafted SMB transaction request with fid = 0 and check the response to confirm the vulnerability.

--

Dipin
Dipin

Written by Dipin

CyberSecurity Enthusiast