Vulnerability Assessment: Discover, Scan, Prioritise and Fix
What is a vulnerability assessment?
A vulnerability assessment is a systematic review that finds, classifies and prioritises known security weaknesses in systems, networks and applications. It combines asset discovery, automated scanning and human analysis, then produces a ranked list of fixes. Unlike a penetration test, it aims for broad coverage and does not try to exploit the weaknesses it finds.
Vulnerability assessment vs penetration testing
Both activities look for weaknesses, but they answer different questions. An assessment asks "what known weaknesses exist across all our assets?" A penetration test asks "how far could a real attacker get by chaining weaknesses?" Most organisations run assessments regularly and penetration tests less often.
| Aspect | Vulnerability assessment | Penetration test |
|---|---|---|
| Goal | Breadth: list known weaknesses | Depth: prove impact |
| Method | Mostly automated scanning plus analysis | Mostly manual testing and exploitation |
| Frequency | Regular, often monthly or after changes | Periodic or before major releases |
| Output | Ranked list of findings and fixes | Attack narrative with evidence |
Key terms
- CVE: Common Vulnerabilities and Exposures, a public identifier such as CVE-2021-44228 (Log4Shell).
- CVSS: Common Vulnerability Scoring System, which rates severity from 0.0 to 10.0.
- False positive: a reported vulnerability that does not actually exist on the target.
- Authenticated scan: a scan that logs in to the target, so it can read installed package versions accurately.
Step 1: discover and classify assets
You cannot assess what you do not know about. Start with an inventory of servers, workstations, network devices, cloud resources, web applications and their owners. Compare the official list with what is actually on the network, because forgotten test servers are a common source of risk.
# Host discovery (no port scan) on a lab network you own
sudo nmap -sn 192.168.56.0/24 -oA discovery
# Service and version detection on the live hosts
sudo nmap -sV -p- --open -iL live-hosts.txt -oA servicesTag each asset with its business importance and exposure. An internet-facing payment server and an isolated lab printer should not be treated the same, even if they share a vulnerability. Port and service basics are explained in ports and protocols.
Step 2: scan with Nmap and OpenVAS (Greenbone)
Nmap finds hosts, open ports and service versions, and its scripting engine can run vulnerability checks. OpenVAS, the scanner in the Greenbone Community Edition, tests targets against a large, regularly updated feed of vulnerability tests and produces reports with CVE references and CVSS scores. Commercial scanners such as Nessus and Qualys work in a similar way.
# Nmap vulnerability scripts against one authorised host
sudo nmap -sV --script vuln 192.168.56.10
# Greenbone on Kali Linux: install, set up and verify
sudo apt install gvm
sudo gvm-setup
sudo gvm-check-setup- Run authenticated scans where possible; they read real package versions and report far fewer guesses.
- Schedule scans outside busy hours and tell system owners first, because some checks can upset fragile devices.
- Scan web applications separately with tools such as OWASP ZAP, guided by the OWASP Top 10.
Step 3: understand CVE and CVSS, then prioritise
Each finding usually links to a CVE and a CVSS base score. CVSS v3.1 is still widely used, and CVSS v4.0 was published by FIRST in 2023. Both map scores to qualitative ratings:
| CVSS score | Rating |
|---|---|
| 0.0 | None |
| 0.1 to 3.9 | Low |
| 4.0 to 6.9 | Medium |
| 7.0 to 8.9 | High |
| 9.0 to 10.0 | Critical |
The base score describes the flaw, not your risk. Prioritise by combining it with context:
- Is the flaw being exploited in the wild? Check the CISA Known Exploited Vulnerabilities (KEV) catalogue.
- How likely is exploitation soon? The Exploit Prediction Scoring System (EPSS) from FIRST gives a probability.
- Is the asset exposed to the internet or to untrusted users?
- How important is the asset and the data on it?
- Do existing controls, such as a firewall rule, reduce the exposure?
Step 4: weed out false positives
Scanners often infer a vulnerability from a version banner. Linux distributions such as Debian, Ubuntu and Red Hat backport security fixes without changing the upstream version number, so an unauthenticated scan may report a flaw that is already patched. Verify high-severity findings before raising tickets.
- Check the installed package and its changelog, for example
apt changelog openssh-serverorrpm -q --changelog openssh. - Search the distribution security tracker for the CVE to see which package version fixed it.
- Repeat the check manually or with an authenticated scan.
- Record accepted false positives with the reason, so they are not re-investigated every cycle.
Step 5: remediate, re-scan and report
Remediation options are to patch or upgrade, reconfigure (disable a weak protocol or service), apply a compensating control while a patch is pending, or formally accept the risk with an owner and an expiry date. Agree target fix times by severity with system owners in advance.
After fixes, re-scan to confirm each finding is closed; a ticket marked "done" is not evidence. The report should include the scope and dates, the method and tools, an executive summary in plain language, findings sorted by risk with evidence and fixes, and trends compared with the last cycle.
Practical exercise: assess a small lab network
Build a lab with two virtual machines on a host-only network: a Kali Linux scanner and an intentionally vulnerable target such as Metasploitable 2. Keep the lab isolated from your home network and the internet.
- Discover live hosts with
nmap -snand record them in an asset list. - Run a full TCP port and version scan against the target.
- Install Greenbone and run a full scan of the target.
- Pick five findings, look up each CVE and CVSS score, and rank them using exposure and exploit information.
- Verify one finding manually and decide whether any finding is a false positive.
- Fix or disable one vulnerable service, re-scan and confirm the finding has gone.
You are done when you have a two-page report with an asset list, ranked findings and evidence of one closed item. Scanning labs like this feature in the Advanced Networking course; the tooling is introduced in the Kali Linux guide.
Common mistakes
- Ranking every finding by CVSS base score alone and ignoring exposure and active exploitation.
- Scanning only the servers on the official inventory and missing forgotten or shadow systems.
- Raising tickets for unverified findings, which wastes effort and erodes trust in the process.
- Closing findings without a re-scan to prove the fix worked.
- Running intrusive checks against fragile production devices without warning their owners.
Frequently asked questions
How often should a vulnerability assessment be run?
Continuous or regular scanning is common, with extra scans after significant changes and when a serious new CVE affects software you run. Many compliance frameworks also set a minimum frequency.
Is OpenVAS free?
Yes. The Greenbone Community Edition, which includes the OpenVAS scanner and a community feed, is free and open source. Greenbone also sells commercial editions with an enterprise feed.
What is the difference between a vulnerability and a risk?
A vulnerability is a weakness. Risk combines the likelihood that it is exploited with the impact if it is, which is why the same CVE can be urgent on one server and minor on another.