Courses3 levels
Level 1 · Foundations11 courses
Level 2 · Core5 courses
Level 3 · Advanced5 courses
Labs8 topics
Library Practice exams AI Range Pricing Start free

Practice library / Security operations basics

Workbook · Easy · 3 hours

Vulnerability Assessment

Nessus, OpenVAS, prioritisation frameworks, and CVSS scoring.

  • vulnerability-assessment
  • nessus
  • openvas
  • cvss
  • prioritization
On this page 5 sections
  1. ·About This Workbook
  2. ·Chapter 1 — Assessment vs Pentest
  3. ·Chapter 2 — Scanning
  4. ·Chapter 3 — Triage, Scoring and Reporting
  5. ·Next steps

Before you start

Vulnerability assessment is the repeatable work that finds weaknesses on systems and ranks them for the owner. It sits between a one-off penetration test and the daily patch cycle, and many compliance standards expect it. The workbook covers the full method: scope, scan, validate, score, prioritise and re-scan. A scanner such as Nessus or OpenVAS probes a host for known flaws, and an authenticated scan reads the installed packages for a cleaner result than an outside scan. CVSS gives each finding a number, but context, exploitation data and asset value turn that number into a plan. The final report must help a manager decide and an engineer fix.

What You'll Learn

  • Distinguish assessment from penetration testing
  • Run and tune vulnerability scans
  • Validate and de-duplicate findings
  • Prioritise remediation by risk

About This Workbook

A vulnerability is a weakness that an attacker can use. A vulnerability assessment (VA) is a repeatable process that finds those weaknesses, rates them and tells the owner how to fix them. It answers one question: "What is weak on our systems today?"

Not every engagement is a full penetration test. A VA is wider, cheaper and runs more often. This workbook teaches the method: scope, scan, validate, score, report and fix. The method matters more than the tool, because every scanner gives noisy output and a person must turn it into decisions.

You need the skills of the lab Network Scanning with Nmap first. For the next step, when you must prove that a weakness can be used, read The Penetration Testing Process.

Authorised scope only. Scan only systems that you own or that the owner has approved in writing. A scan can slow or crash old services. All examples use a lab VM that you control (for example Metasploitable 2 at 10.0.0.50) or a public practice target. Never scan a third party.

Chapter 1 — Assessment vs Pentest

Objectives

  • Compare a vulnerability assessment with a penetration test
  • Choose the right engagement for a goal
  • Write the scope and the rules for a scan
  • Name the stages of the VA cycle

Explanation

A vulnerability assessment lists weaknesses. A penetration test (pentest) tries to use some of them to show real impact. They share tools, but the goals differ.

Vulnerability assessmentPenetration test
QuestionWhat is weak?What can an attacker reach?
CoverageWide: every system in scopeNarrow: chosen paths and goals
DepthFinds and ratesUses and chains weaknesses
MethodMostly automated, then checked by a personMostly manual, with tools
FrequencyWeekly or monthly, or after each changeOnce or twice a year
Risk to systemsLow, with careHigher: services can break
OutputA ranked list with fixesA story: path, proof and impact

The two work together. The assessment finds the 400 findings. The pentest tests the ten that look most dangerous and shows if a chain exists. A pentest on a network that has never been scanned wastes time, because the tester finds old patch gaps that a scan would show for a lower price.

Choose by goal.

  • "Are we patched, and do we meet a standard?" Use a vulnerability assessment. Standards such as PCI DSS require regular scans.
  • "Could an attacker reach our customer data?" Use a penetration test.
  • "We changed the design of the network." Run an assessment first, then a pentest of the new design.

Scope and rules. Before any scan, write down what is allowed. A short scope statement has:

  1. The targets: address ranges, host names and web applications. Name what is out of scope.
  2. The owner who approves the scan, with a phone number.
  3. The time window. Scan production systems outside business hours when you can.
  4. The intensity: which scan policy, and whether the scan may test for denial of service (normally it must not).
  5. The type: unauthenticated, authenticated, or both.
  6. Where the results go and who may read them. Results are a map of weaknesses, so protect them.

The VA cycle. An assessment is not a single scan. It is a loop.

StageJob
1 DiscoverFind the assets: hosts, services, applications
2 ScanTest the assets for known weaknesses
3 ValidateRemove false positives and duplicates
4 PrioritiseRank findings by risk, not only by score
5 ReportGive each owner a clear list and a fix
6 RemediateOwners patch or change settings
7 Re-scanProve that the fix worked, then start again

You cannot scan what you do not know. Stage 1 often finds forgotten servers, and those are often the weakest.

Worked example

A company of 200 staff asks for "a security test". The analyst asks what the goal is. The answer is: "Our insurer wants proof of regular patching." This is a compliance goal, so the analyst proposes a vulnerability assessment and writes the scope.

SCOPE STATEMENT                              Version 1, approved by IT director
Targets:      10.0.10.0/24 (servers), 10.0.20.0/24 (staff laptops)
Out of scope: 10.0.30.0/24 (payment system, separate contract)
Window:       Saturday 01:00-05:00
Policy:       Full and fast, no denial-of-service checks, safe checks only
Type:         Authenticated (read-only scan account "svc_scan")
Contact:      IT on call, +00 000 000 0000
Output:       PDF and CSV to the IT director only, stored on the encrypted share
Repeat:       Every month, plus a re-scan after each patch window

The statement is short, but it prevents the three common failures: a scan of a system the owner did not approve, a scan that breaks a server at noon, and a report that the wrong person reads.

For the legal side of a full pentest (contract, rules of engagement, permission letter), read The Penetration Testing Process.

Practice questions

  1. A manager asks: "Can an attacker steal our customer data?" Do you propose an assessment or a pentest? Why?
  2. Give two reasons why a monthly assessment is more useful than a yearly pentest alone.
  3. Why must a scope statement name what is out of scope?
  4. Name the stage of the VA cycle that finds forgotten servers.
Answers
  1. A pentest. The question is about what an attacker can reach and use, which needs a person to chain weaknesses and prove impact. An assessment only lists weaknesses.
  2. New weaknesses appear every week (new patches, new software, new servers). A monthly scan finds them in weeks, not months. It also gives a trend that shows if remediation works.
  3. A scanner follows addresses and links. Without a clear boundary, it can reach a system that belongs to another owner or contract. Out-of-scope items are protected in writing.
  4. Stage 1, Discover. You compare the live hosts with the asset list and ask about every difference.

Chapter 2 — Scanning

Objectives

  • Explain how a scanner finds a vulnerability
  • Compare network, web and host scans
  • Run an unauthenticated and an authenticated scan
  • Tune a scan and keep the evidence

Explanation

A vulnerability scanner is a program that tests targets against a large database of known weaknesses. It does three things:

  1. It finds live hosts and open ports (like Nmap).
  2. It identifies the service and its version, often from the banner or from how the service answers.
  3. It matches the result to a database of checks (called plugins in Nessus and vulnerability tests, or NVTs, in OpenVAS), and in some cases sends a harmless request to confirm.

Scanners find only what is known. A weakness with no check in the database, or a flaw in your own application logic, will not appear. A clean scan does not mean "secure".

Scanner types.

TypeLooks atExamples
NetworkHosts, ports, services, protocol settingsNessus, OpenVAS (Greenbone), Nmap scripts
Web applicationWeb pages, forms, headers, known web flawsNikto, OWASP ZAP
Host and configurationInstalled software, patches, settingsAuthenticated scans, Lynis, OpenSCAP
Container and cloudImages, packages, cloud settingsTrivy, cloud provider tools

Nessus and OpenVAS. Nessus (Tenable) is a commercial scanner with a free tier for learning. OpenVAS is the scanner of the Greenbone Vulnerability Management (GVM) open-source system. It is free and ships in Kali Linux. Both have a web interface, scan policies, schedules and reports. The method is the same for both: define targets, pick a policy, run, read the report.

Unauthenticated and authenticated scans.

  • An unauthenticated (or "network") scan sees what an outsider sees: open ports and banners. It misses most missing patches, because it cannot look inside the system.
  • An authenticated (or "credentialed") scan logs on with a read-only account (SSH on Linux, SMB or WinRM on Windows). It reads the installed packages and settings. It finds more, with fewer false positives, and it is safer because it sends fewer probes.

Use a dedicated scan account with the least rights that the scanner needs. Store its password in the scanner's credential store. Never use a personal or domain administrator account.

Tuning. The default policy is rarely right.

  • Choose a policy for the job: discovery (find hosts only), fast (common ports and checks), full (all ports and checks).
  • Limit the speed on weak networks or old devices: fewer hosts at once, fewer checks at once.
  • Turn off dangerous checks on production. Checks for denial of service can crash a service.
  • Add the right credentials per host group.
  • Keep each scan's raw output. You need it as evidence and to compare the next scan.

Worked example

The lab target is Metasploitable 2 at 10.0.0.50. Rapid7 publishes it as an intentionally vulnerable Ubuntu virtual machine. Run it on your own computer in an isolated network, and use its real address in the commands. Start with discovery and version detection.

nmap -sn 10.0.0.0/24
nmap -sV -p- -T4 -oA va-scan 10.0.0.50
Nmap scan report for 10.0.0.50
Host is up (0.00040s latency).
Not shown: 977 closed tcp ports (reset)
PORT     STATE SERVICE     VERSION
21/tcp   open  ftp         vsftpd 2.3.4
22/tcp   open  ssh         OpenSSH 4.7p1 Debian 8ubuntu1 (protocol 2.0)
23/tcp   open  telnet      Linux telnetd
80/tcp   open  http        Apache httpd 2.2.8 ((Ubuntu) DAV/2)
139/tcp  open  netbios-ssn Samba smbd 3.X - 4.X (workgroup: WORKGROUP)
445/tcp  open  netbios-ssn Samba smbd 3.X - 4.X (workgroup: WORKGROUP)
3306/tcp open  mysql       MySQL 5.0.51a-3ubuntu5
Service Info: Hosts: metasploitable.localdomain; OSs: Unix, Linux

The option -oA va-scan saves the result in three formats (.nmap, .xml, .gnmap). This is your evidence. Next, run the Nmap scripts that check for known weaknesses and make a report that people can read.

nmap -sV --script vuln -oX va-vuln.xml 10.0.0.50
xsltproc va-vuln.xml -o va-vuln.html

The vuln category runs scripts that look for known flaws. Read the result with care. A line "State: VULNERABLE" is a finding to validate in chapter 3, not yet a fact.

Now start the full scanner. On Kali, install and start GVM, then open the web interface.

sudo apt install -y gvm
sudo gvm-setup
sudo gvm-check-setup
sudo gvm-start
It seems like your GVM-22.4.0 installation is OK.

gvm-setup downloads the feeds and prints the admin password: save it. The interface opens at https://127.0.0.1:9392. Make a target with 10.0.0.50, and make a second target that adds an SSH credential for a read-only account on the VM. Run one task for each target with the policy "Full and fast". When both finish, compare the two reports.

For a web application, add a web scan. Nikto checks a web server for old versions, dangerous files and weak settings. Use it against your lab target only.

nikto -h http://10.0.0.50 -o nikto.txt
+ Target IP:          10.0.0.50
+ Target Port:        80
+ Server: Apache/2.2.8 (Ubuntu) DAV/2
+ /phpinfo.php: Output from the phpinfo() function was found.
+ /phpMyAdmin/: phpMyAdmin directory found

Typical result of the comparison: the authenticated scan lists missing packages and weak settings that the unauthenticated scan could not see. The unauthenticated scan shows what is exposed on the network. You need both views.

Practice questions

  1. Why does a scanner not find a flaw in the logic of your own web shop?
  2. Give two reasons why an authenticated scan is better than an unauthenticated scan for finding missing patches.
  3. You must scan an old production database server in business hours. Name two tuning choices.
  4. What does nmap -sV add to a basic port scan?
Answers
  1. A scanner matches targets to a database of known weaknesses. A logic flaw in your own code has no entry. A person must test it (see Web Application Pentesting).
  2. It reads the real list of installed packages and settings, so it does not guess from a banner. It also sends fewer probes, so it is less likely to disturb the service.
  3. Use a gentle policy (fewer hosts and checks at once, no denial-of-service checks), use credentials so that the scan reads data instead of probing, and agree on a better time window with the owner.
  4. It probes each open port to identify the service and its version. The version is what the scanner needs to match a known vulnerability.

Chapter 3 — Triage, Scoring and Reporting

Objectives

  • Validate findings and remove false positives and duplicates
  • Read and calculate a CVSS base score
  • Prioritise with context, exploitation data and asset value
  • Write a report and set remediation deadlines

Explanation

The scanner gives you a long list. Triage turns the list into work. It has three tasks: validate, score and prioritise.

Validate. A false positive is a finding that is not real. A false negative is a real weakness that the scanner missed. You can fix the first by checking. You can only reduce the second by using more than one method.

Common causes of false positives:

  • The banner shows an old version, but the vendor backported the fix. Linux distributions do this often, so the version number looks old and the package is patched.
  • The service is behind a firewall or a proxy that changes the answer.
  • The scanner tests the wrong host, for example a load balancer.

Validate in this order: read the plugin output, check the package version on the host, then (only if you have approval) run one safe check. Record the result and the date. Mark confirmed findings, false positives and accepted risks.

Remove duplicates. One missing patch can appear 50 times (once per host) or under many plugin names. Group by root cause: one fix, one work item. Export the findings to CSV and count.

cut -d, -f1 findings.csv | sort | uniq -c | sort -rn | head -5
     48 "Apache HTTP Server < 2.4.58 Multiple Vulnerabilities"
     31 "OpenSSH < 9.6 Multiple Vulnerabilities"
     12 "SSL Certificate Expiry"
      9 "SMB Signing not required"
      3 "Telnet Server Detection"

Five lines show five fixes: update Apache, update OpenSSH, renew certificates, require SMB signing, remove Telnet. Raw findings: 103. Real work items: 5 groups.

Score: CVSS. The Common Vulnerability Scoring System (CVSS) gives each vulnerability a number from 0.0 to 10.0. It describes how bad the weakness is in itself. The base score uses fixed properties of the flaw. Read a vector as follows (CVSS v3.1):

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H     Base score 9.8 (Critical)
MetricValuesMeaning
AV Attack VectorN (network), A (adjacent), L (local), P (physical)How close the attacker must be
AC Attack ComplexityL (low), H (high)Does success depend on conditions that the attacker does not control?
PR Privileges RequiredN (none), L (low), H (high)What access the attacker needs first
UI User InteractionN (none), R (required)Must a user do something?
S ScopeU (unchanged), C (changed)Does the flaw break out of its own security boundary?
C, I, AN (none), L (low), H (high)Loss of confidentiality, integrity, availability

The severity bands of v3.1: None 0.0, Low 0.1-3.9, Medium 4.0-6.9, High 7.0-8.9, Critical 9.0-10.0. CVSS v4.0 (2023) adds new metrics (for example Attack Requirements and Supplemental metrics) and names the groups CVSS-B, CVSS-BT, CVSS-BE and CVSS-BTE. Scanners today show v3.1, v4.0 or both. Check which version a number uses before you compare two scores.

There are two more groups of metrics. Temporal metrics (v3.1) change over time: is exploit code available, is a fix available. Environmental metrics let you adjust the score for your own system, for example a server where confidentiality does not matter. The base score is the number you see in a scanner. Teams often forget the other two.

CVSS is not risk. Risk depends on how likely an attack is and what it costs you. CVSS measures only the severity of the flaw. Two flaws with a score of 9.8 can have very different risk, and a 6.5 can be the most urgent finding of the month. Add three more inputs:

  1. Is it exploited now? The CISA Known Exploited Vulnerabilities (KEV) catalogue lists flaws that attackers use in real attacks. A KEV entry moves a finding to the top.
  2. How likely is exploitation? The Exploit Prediction Scoring System (EPSS) gives the probability (0 to 1) that a flaw is exploited in the next 30 days.
  3. What is the asset worth, and who can reach it? A flaw on an internet-facing server that holds customer data is more urgent than the same flaw on an isolated test machine.

Check one CVE against both sources. Both are public data feeds.

curl -s https://www.cisa.gov/sites/default/files/feeds/known_exploited_vulnerabilities.json \
  | jq -r '.vulnerabilities[] | select(.cveID=="CVE-2021-44228") | [.cveID,.vendorProject,.product] | @tsv'
curl -s "https://api.first.org/data/v1/epss?cve=CVE-2021-44228" | jq '.data[0]'
CVE-2021-44228	Apache	Log4j2
{
  "cve": "CVE-2021-44228",
  "epss": "0.94358",
  "percentile": "0.99996",
  "date": "2026-11-18"
}

The EPSS numbers change every day: yours will differ. The pattern is what counts: a listed KEV entry with an EPSS above 0.9 is fixed first.

Prioritise. Use a simple rule that the whole team can apply, and write it down.

PriorityRuleFix within
P1In KEV, or CVSS 9.0+ on an internet-facing asset7 days (or mitigate at once)
P2CVSS 7.0-8.9, or EPSS above 0.1 on an important asset30 days
P3CVSS 4.0-6.990 days
P4CVSS below 4.0, or informationalNext planned maintenance

The deadlines are an example. Your policy or standard sets the real ones. The point is that every finding gets a priority and a date.

Remediation. A finding is closed only when it is fixed and verified. The options, in order of preference:

  1. Fix: patch, update, remove the software, change the setting.
  2. Mitigate: lower the risk when you cannot fix now (a firewall rule, a WAF rule, disable a feature).
  3. Accept: the owner signs that the risk stays, with a reason and an end date.
  4. Transfer: insurance or a contract. This option is less common.

Never close a finding without a re-scan that shows it gone. Keep the evidence (the old and the new scan).

Report. A good report has two readers: the manager who must decide and the engineer who must fix.

SectionContent
Executive summaryOne page: scope, date, number of findings by priority, the top 3 risks, what to do first
MethodScanner, version, policy, authenticated or not, dates
FindingsPer item: title, affected hosts, CVSS and vector, priority, evidence, fix
TrendCounts per month, age of open findings, time to fix
AppendixAccepted risks, false positives, out-of-scope items, raw files

Write each finding so that the engineer can act without asking you. Give the exact host, the exact version and the exact fix. For more writing advice, read Documentation & Reporting.

Worked example

CVSS arithmetic for two findings from the lab target. Both use v3.1.

Finding A. Telnet service on 10.0.0.50: anyone on the network can log on if the password is weak. Take the metrics: AV:N, AC:L, PR:N, UI:N, S:U, C:H, I:H, A:H. The vector is CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H.

Exploitability = 8.22 x 0.85 (AV:N) x 0.77 (AC:L) x 0.85 (PR:N) x 0.85 (UI:N) = 3.89
Impact sub-score = 1 - (1-0.56) x (1-0.56) x (1-0.56) = 0.9148
Impact = 6.42 x 0.9148 = 5.87            (scope unchanged)
Base = Roundup( min(5.87 + 3.89, 10) ) = Roundup(9.76) = 9.8   Critical

Finding B. A web page that lets a user with a low-privilege account read another user's name. The vector is CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N.

Exploitability = 8.22 x 0.85 x 0.77 x 0.62 (PR:L) x 0.85 = 2.84
Impact sub-score = 1 - (1-0.56) = 0.56
Impact = 6.42 x 0.56 = 3.60
Base = Roundup(3.60 + 2.84) = Roundup(6.44) = 6.5   Medium

Now prioritise. Finding A is on a lab VM that has no real data and is not reachable from the internet. Finding B is on the public shop, and the name field belongs to real customers. With the rule above, a good analyst may rate B above A in the real company, because B is on an exposed asset with personal data. In the lab, you simply remove Telnet. That is the lesson: the score is the start of the decision, not the end.

The analyst writes the finding for the report.

F-07  Telnet service enabled                              Priority P2
Hosts:    10.0.0.50 (port 23/tcp)
CVSS:     9.8 Critical  CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Evidence: nmap -sV shows 23/tcp open telnet Linux telnetd (scan of 2026-11-19)
Impact:   Telnet sends passwords as clear text. Anyone on the network can read them.
Fix:      Disable the telnet service. Use SSH (22/tcp) for remote access.
Verify:   Re-scan. Port 23/tcp must show "closed".
Owner:    Infrastructure team        Due: 30 days

Practice questions

  1. A scanner reports "OpenSSH < 9.6" on a Debian server, but the package is patched by the vendor. What is this finding, and how do you confirm it?
  2. 103 findings reduce to 5 groups. Why does this change the work plan?
  3. Read the vector CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H. In plain words, what must the attacker have before an attack?
  4. A flaw has CVSS 5.3 and is in the KEV catalogue. Another flaw has CVSS 9.1 and no known exploit, on an isolated test server. Which do you fix first? Why?
  5. When is a finding closed?
Answers
  1. It is probably a false positive, caused by a backported fix. Check the package changelog or the installed package version on the host (for example apt changelog openssh-server or dpkg -l openssh-server) against the vendor advisory for the CVE. Record it as a false positive.
  2. The team works on 5 root causes, not 103 items. Each group has one owner and one fix, so the work is smaller and the progress is clear.
  3. The attacker needs local access (AV:L) to the system and a low-privilege account (PR:L). No user must act (UI:N). If this works, the attacker gets full control of data and system (C:H/I:H/A:H). It is a privilege escalation.
  4. The 5.3 flaw. It is exploited in real attacks now, and the other flaw is on an isolated machine with no known exploit. Exploitation data and asset exposure change the order that the CVSS number alone would give.
  5. When the fix is applied and a re-scan or a manual check proves it. An accepted risk is closed only with a signed record and an end date.

Next steps

Run a full cycle on your own lab. Scan the target twice, once with no credentials and once with a read-only account. Group the findings by root cause, score three of them with the CVSS calculator at FIRST (the vector is the input), write a report with the sections above, fix two items, and re-scan to prove it. Then continue with The Penetration Testing Process to learn how a tester proves which findings give real access.

Workbook complete. You can now tell an assessment from a pentest, run a scan on an authorised target, triage the results, score them with CVSS and write a report with remediation.

Sign in to track progress and send feedback.

Related

This workbook is extra practice for the course Security operations basics. Do the lessons first.Open the course