Live lesson · progress saved to your account

Vulnerability Assessment Fundamentals

Rules of engagement, Nmap discovery and NSE scripts, how vulnerability scanners work, CVE/CWE, CVSS, EPSS and KEV, validating false positives and writing a report a board will actually read.

intermediate120 minwalkthrough

Anyone can read this lesson. To submit answers and earn XP, create a free account.

TASK 01Mission briefing: 10 days to the regulator

ENGAGEMENT · Sahyadri Sahakari Bank (fictional), Kolhapur A cooperative bank with 38 branches must submit a vulnerability assessment (VA) report to its regulator in 10 days. Last year's report was a 400-page scanner export that nobody read. Nothing got fixed. This year, they hired you.

VAPT (Vulnerability Assessment and Penetration Testing) is one of the most common entry-level security jobs in India: banks, insurers, government departments and every CERT-In–empanelled auditor need it.

First, know what you've been hired to do:

Vulnerability assessment vs penetration test VA
Goal
Find and list as many known weaknesses as possible
Depth
Broad: every host, every port
Exploitation
No (validate safely)
Frequency
Monthly / quarterly, automated
Output
Prioritised list of vulnerabilities

Rules of engagement: is it in scope? (click)

Before a single packet is sent, you need:

  • a signed authorisation letter from someone who actually owns the systems,
  • a written scope (IP ranges, URLs, accounts), and what's explicitly out of scope,
  • a testing window and emergency contacts, in case something falls over.

Without written permission, scanning is unauthorised access under the IT Act 2000 (sections 43 and 66), however good your intentions.

Answer the questions

+10 XP

+10 XP

+10 XP

+10 XP

+10 XP

TASK 02Discovery and scanning with Nmap

Every assessment starts with discovery: what exists, what's listening, and what software is behind each port.

How a vulnerability scan unfolds Host discovery (ping sweep)
1. Host discovery (ping sweep)2. Port scan3. Service & version detection4. Match versions to CVEs5. Report

10.50.0.1

10.50.0.10

10.50.0.15

10.50.0.20

10.50.0.25

10.50.0.30

10.50.0.40

10.50.0.50

10.50.0.60

A scanner doesn't "hack" anything. It finds what's listening, reads version banners and configuration, and looks them up in a database of known vulnerabilities. That's also why it can be wrong.

Nmap is the standard tool. The options you'll use every day:

OptionDoes
-snHost discovery only (no port scan)
-p 22,80 / -p-Specific ports / all 65,535 TCP ports
-sVProbe services to find software and version
-OGuess the operating system
-sUUDP scan (slow, but SNMP and DNS live here)
-sC / --script vulnRun NSE (Nmap Scripting Engine) scripts
-oN fileSave output, which is your evidence

By default Nmap scans only the top 1,000 TCP ports. Admin panels on odd ports are exactly what that misses.

Now scan the bank's training subnet:

Lab · Nmap the training subnet 0/4 goals
kali@va-lab: ~
kali@va-lab:~$ authorised scan window open · scope 10.50.0.0/24 · type 'help'
kali@va-lab:~$

Scan goals

Find every live host in 10.50.0.0/24

Scan ALL ports on the netbanking UAT server (.10)

Identify the FTP server's version on .20

Confirm a vulnerability with an NSE script

Hints: nmap -sn 10.50.0.0/24 · nmap -p- 10.50.0.10 · nmap -sV -p 21 10.50.0.20 · nmap --script vuln -p 445 10.50.0.15 Try scanning 8.8.8.8 too, and see what happens to out-of-scope targets.

Answer the questions

+10 XP

+10 XP

+10 XP

+10 XP

+10 XP

+10 XP

+30 XP

TASK 03How vulnerability scanners work

Nmap tells you what's there. A vulnerability scanner (Nessus, OpenVAS / Greenbone, Qualys, Rapid7) checks each service against tens of thousands of plugins, each one a test for a known issue.

Scanners decide in three ways:

  1. Version/banner matching: "Apache 2.4.49 is affected by CVE-2021-41773." Fast, but easily fooled by backported patches.
  2. Configuration checks: TLS 1.0 enabled, default SNMP community, anonymous FTP.
  3. Active, safe probes: send a harmless request that only a vulnerable service answers in a certain way.

Two scan modes matter enormously:

  • Unauthenticated scans see only what an outside attacker sees: open ports and banners. Quick, many guesses.
  • Authenticated (credentialed) scans log in (SSH, SMB/WinRM) with a low-privilege account and read installed packages, patches and registry settings. Far more accurate, far fewer false positives. Always prefer them when the client provides an account.

Scanners also have side effects: some old printers and industrial devices crash when scanned. That's why the scope has testing windows and "safe checks" stay switched on.

Answer the questions

+10 XP

+10 XP

+10 XP

+10 XP

TASK 04CVE, CWE and CVSS

Three identifiers you'll read all day:

  • CVE (Common Vulnerabilities and Exposures): one specific flaw in one product, like CVE-2021-41773 (Apache 2.4.49 path traversal). Run by MITRE, enriched in NIST's NVD.
  • CWE (Common Weakness Enumeration): the type of mistake, like CWE-22 path traversal or CWE-89 SQL injection.
  • CVSS (Common Vulnerability Scoring System): a 0–10 severity score built from metrics.

Build a score yourself. Start from the worst case (network, no privileges, no user action, high impact everywhere) and change one metric at a time:

CVSS builder: toggle metrics, watch the score 9.8 Critical
Attack Vector (AV)
Attack Complexity (AC)
Privileges Required (PR)
User Interaction (UI)
Scope (S)
Confidentiality (C)
Integrity (I)
Availability (A)

9.8

Critical

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Uses the CVSS v3.1 base equations, which scanners still report next to v4.0. v4.0 keeps the same ideas and adds Attack Requirements (AT) and separate impact on subsequent systems.

ScoreSeverity
0.1–3.9Low
4.0–6.9Medium
7.0–8.9High
9.0–10.0Critical

CVSS v4.0 (released by FIRST in late 2023) keeps the same base ideas, adds Attack Requirements (AT), splits impact on the vulnerable system from impact on subsequent systems, and clearly separates Base, Threat and Environmental metric groups, so you can adjust a score for your own environment. Many feeds still publish v3.1 scores alongside it.

Answer the questions

+10 XP

+10 XP

+10 XP

+10 XP

+10 XP

+10 XP

TASK 05Prioritise with EPSS and KEV

CVSS measures how bad a vulnerability could be. It doesn't tell you how likely it is to be used against you. Sort the same five findings three ways:

Same findings, three ways to sort CVSS
  1. 1VA-2026-007 Stored XSS in internal wiki (vendor app)9.02%
  2. 2CVE-2017-0144 SMBv1 EternalBlue8.196%
  3. 3CVE-2021-41773 Apache 2.4.49 path traversal7.594%
  4. 4CVE-2021-2307 MySQL privilege issue6.11%
  5. 5TLS-WEAK TLS 1.0 enabled on mail5.30%

EPSS values are illustrative. CVSS alone puts an internal XSS above EternalBlue, which ransomware gangs actively use.

  • EPSS (Exploit Prediction Scoring System, also from FIRST): the probability that a CVE will be exploited in the wild in the next 30 days, updated daily.
  • CISA KEV (Known Exploited Vulnerabilities catalog): CVEs confirmed to be exploited. If it's on KEV, attackers are already using it.
  • Context: is it internet-facing? Does the host hold customer data? Is there a compensating control?

A sensible order: KEV and exposed → KEV internal → high EPSS → high CVSS → the rest, inside agreed SLAs (e.g. critical in 7 days, high in 30). Room 11's patch-priority lab used the same logic.

Answer the questions

+10 XP

+10 XP

+10 XP

+10 XP

+10 XP

TASK 06Validation and false positives

A scanner's output is a list of hypotheses, not a verdict. Before anything goes in the report, you validate it, safely.

  • True positive (TP): the vulnerability is real.
  • False positive (FP): reported, but not real (backported patch, WAF error page, wrong OS guess). FPs waste the client's time and destroy your credibility.
  • False negative: a real issue the scanner missed. The dangerous one, and why manual testing still matters.

Safe validation means proving the condition without causing harm: read a harmless file instead of running commands, check the installed package version over an authenticated session, show a login succeeds, then log out.

Lab · Validate the scanner's findings true or false positive?

CVE-2021-41773 Apache 2.4.49 path traversal · 10.50.0.10

Manual check: curl --path-as-is 'http://10.50.0.10/cgi-bin/.%2e/.%2e/.%2e/.%2e/etc/passwd' returned 'root:x:0:0:root:/root:/bin/bash'.

OpenSSH 7.4: 14 CVEs (banner match) · 10.50.0.20

Server is RHEL 7. Package is openssh-7.4p1-23.el7_9; 'rpm -q --changelog openssh' shows Red Hat backported fixes for every listed CVE. Banner never changes on backports.

MS17-010 SMBv1 remote code execution · 10.50.0.15

NSE smb-vuln-ms17-010 reports VULNERABLE; SMBv1 enabled; patch KB4012212 not installed per authenticated scan.

SQL injection in /search?q= · netbanking

Scanner saw HTTP 500 after sending a quote. Retest: the WAF returns its block page with status 500 for ANY quote; with the WAF bypassed in UAT, the query is parameterised and returns 0 results.

MySQL 3306 reachable from user VLAN · 10.50.0.30

From a staff laptop in the user VLAN: 'nc -zv 10.50.0.30 3306' → Connection succeeded. Firewall rule allows any → db01.

Default credentials on printer telnet · 10.50.0.40

telnet 10.50.0.40 → login 'admin' with empty password succeeded; full admin menu shown.

Answer the questions

+10 XP

+10 XP

+10 XP

+10 XP

+10 XP

+30 XP

TASK 07Reporting that gets things fixed

A VA report has two audiences:

  1. Executives / board: one page. Overall risk, the few things that matter, business impact, what to do and by when. No CVE soup.
  2. Technical teams: one entry per validated finding: title, affected hosts, severity (CVSS + context), evidence (screenshots, commands, output), steps to reproduce, remediation, and references.

Also include: scope and dates, methodology, tools used, limitations (e.g. "no authenticated scan of the DMZ"), and a retest date.

Build the executive summary for Sahyadri Bank's board:

Lab · Write the executive summary for the bank's board pick one sentence per section

1. Overall position

2. Most important finding

3. Business impact

4. Recommendation

Confidential · VA report · Executive summary

Sahyadri Sahakari Bank: internal vulnerability assessment

[Overall position]

[Most important finding]

[Business impact]

[Recommendation]

Banks regulated by the RBI and organisations covered by CERT-In's 2022 directions have reporting obligations (CERT-In requires certain incidents to be reported within 6 hours). A good report connects findings to those obligations.

Answer the questions

+10 XP

+10 XP

+10 XP

+10 XP

+30 XP

TASK 08Final mission: deliver the bank's VA

You've scanned, validated, prioritised and summarised. Answer the regulator's checklist from your own work to complete the assessment.

Re-open any lab above if you need evidence. Every answer must come from validated data, not from the raw scanner output.

Same findings, three ways to sort CVSS
  1. 1VA-2026-007 Stored XSS in internal wiki (vendor app)9.02%
  2. 2CVE-2017-0144 SMBv1 EternalBlue8.196%
  3. 3CVE-2021-41773 Apache 2.4.49 path traversal7.594%
  4. 4CVE-2021-2307 MySQL privilege issue6.11%
  5. 5TLS-WEAK TLS 1.0 enabled on mail5.30%

EPSS values are illustrative. CVSS alone puts an internal XSS above EternalBlue, which ransomware gangs actively use.

Complete the mission for the Scanner badge and the room's XP.

Answer the questions

+10 XP

+10 XP

+10 XP

+10 XP

+10 XP