Network, Internet & Cloud Security

Chapter 13
Vulnerability Management and Security Testing

Diploma in Cybersecurity
Network, Internet & Cloud Security   •   Diploma

Vulnerability Management and Security Testing

Introduction

Modern organizations depend on interconnected networks, internet-facing services, cloud platforms, endpoints, applications, and third-party suppliers. Every component creates possible weaknesses. Vulnerability management is the disciplined process of identifying, evaluating, treating, and continuously monitoring those weaknesses. Security testing provides evidence about whether technical controls and remediation activities are effective.

The purpose of vulnerability management is not to produce the largest possible list of weaknesses. Its purpose is to reduce security risk in a controlled, authorized, and measurable way. A technically severe vulnerability on an isolated test system may deserve less immediate attention than a moderate vulnerability on an internet-facing payment server. Effective practice therefore combines technical severity with exposure, asset importance, exploitability, compensating controls, and business impact.

Security testing must always be authorized. Scanning or testing systems without permission may disrupt services, expose confidential information, violate law, or constitute unauthorized access. A professional tester works within a written scope, agreed timing, defined techniques, and documented rules of engagement.

Learning Objectives

By the end of this chapter, a learner should be able to:

  • explain the vulnerability management lifecycle;
  • conduct authorized asset discovery and vulnerability scanning;
  • distinguish vulnerability scanning, configuration assessment, and penetration testing;
  • interpret CVE, CVSS, CWE, and related security information;
  • prioritize findings using severity, exposure, and business impact;
  • document evidence, limitations, and remediation recommendations;
  • verify remediation ethically and avoid unsafe testing practices.

1. Foundations and Terminology

A threat is a potential cause of harm, such as a criminal group, malicious insider, or natural event. A vulnerability is a weakness that can be exploited. An exploit is a method, code, or action that takes advantage of a vulnerability. An asset is anything valuable to the organization, including data, systems, identities, services, and business processes. Risk combines the possibility of an adverse event with its consequences.

A useful conceptual relationship is:

Risk ≈ Likelihood × Impact

Likelihood and impact are often expressed as qualitative categories rather than precise probabilities. This relationship is a decision model, not a universal physical law. It is useful when comparing risks consistently, but it does not replace professional judgment or detailed risk analysis.

A vulnerability may be:

  • Technical: for example, an unpatched service or weak cryptographic configuration.
  • Procedural: for example, absent access-review procedures.
  • Human-related: for example, susceptibility to phishing.
  • Architectural: for example, a flat network that permits unnecessary lateral movement.
  • Supply-chain related: for example, an outdated dependency or insecure vendor connection.

A finding is a documented result of a security assessment. It should contain enough evidence for another competent person to understand what was observed, why it matters, and how it can be addressed.

2. The Vulnerability Management Lifecycle

A mature lifecycle is continuous rather than a one-time annual exercise.

2.1 Governance and scope

The organization first defines ownership, authority, systems in scope, exclusions, testing windows, emergency contacts, data-handling requirements, and reporting expectations. The written authorization should identify the tester, the system owner, the permitted source addresses, approved tools, prohibited actions, and escalation procedures.

2.2 Asset discovery and inventory

An organization cannot protect assets it does not know exist. Discovery may use configuration-management databases, cloud inventories, DNS records, certificate transparency monitoring, endpoint agents, network telemetry, passive observation, and carefully controlled active probing.

Discovery should record, where possible:

  • hostname, IP address, and network location;
  • operating system and software versions;
  • owner and business service;
  • environment, such as production, development, or test;
  • data classification;
  • internet exposure;
  • authentication method;
  • dependencies and maintenance window.

Asset inventories become inaccurate when temporary cloud resources, containers, virtual machines, and shadow IT are not incorporated. Reconciliation between discovery data and the official inventory is therefore essential.

2.3 Vulnerability identification

Vulnerabilities may be identified through authenticated or unauthenticated scanners, code analysis, dependency analysis, configuration reviews, vendor advisories, penetration tests, threat intelligence, and incident investigations. No single method detects every weakness.

2.4 Analysis and prioritization

Results must be validated, deduplicated, enriched with asset context, and prioritized. Automated severity is only an initial signal. Analysts should confirm whether the affected component exists, whether the reported version is accurate, whether the vulnerable function is enabled, and whether compensating controls change the practical risk.

2.5 Treatment and remediation

Treatment options include:

  • remediation, such as patching or correcting a configuration;
  • mitigation, such as restricting access or disabling a feature;
  • risk transfer, such as contractual or insurance arrangements;
  • risk acceptance, formally approved by an accountable owner;
  • avoidance, such as retiring an unnecessary service.

Risk acceptance is not the same as ignoring a finding. It should include rationale, residual risk, owner, expiry or review date, and compensating controls.

2.6 Verification and closure

A finding should not be closed merely because a ticket says “fixed.” The assessor should retest the relevant condition, confirm that the original evidence no longer applies, check for regression, and record the verification date and method. Closure should be traceable to the asset, change record, and evidence.

Continuous vulnerability management lifecycle Govern and scope Discover assets Identify and validate Prioritize and treat Retest and report Monitor continuously
Continuous vulnerability management lifecycle
Figure: Continuous vulnerability management lifecycle

Figure: Vulnerability management is a continuous governance, discovery, assessment, treatment, and verification cycle.

3. Asset Discovery and Attack Surface Management

Asset discovery should begin with passive sources because they are less likely to affect systems. Examples include inventory databases, DNS, cloud management APIs, endpoint-management platforms, and network-flow records. Active discovery, such as port probing or service interrogation, should be performed only within scope and at a controlled rate.

The attack surface includes externally reachable and internally accessible pathways through which an attacker might affect an asset. It includes public IP addresses, domains, APIs, remote-access services, identity providers, cloud storage, exposed management interfaces, software dependencies, and supplier connections.

A practical discovery workflow is:

  1. obtain authorization and define scope;
  2. collect authoritative inventory data;
  3. compare it with passive external and internal observations;
  4. conduct controlled active discovery of discrepancies;
  5. classify assets by owner, service, sensitivity, and exposure;
  6. reconcile findings with the asset register;
  7. establish a schedule for repeated discovery.

Discovery results require validation. A DNS record may point to a retired system, a cloud address may be shared by several services, and a scanner may identify a service that is protected by an upstream control. Analysts must distinguish an observed technical fact from an assumption.

4. Vulnerability Scanning and Configuration Assessment

A vulnerability scanner generally compares observed systems, software, and configurations with known weakness signatures or security baselines. Scanning can be:

  • unauthenticated, observing only what an external or low-privilege position can see;
  • authenticated, using approved credentials to inspect installed software, patches, and settings;
  • network-based, examining reachable services;
  • host-based, using an agent or local inspection;
  • application-based, testing web, API, or other application behavior.

Authenticated scans usually provide better patch and configuration accuracy, but credentials must be protected, least-privileged, monitored, and rotated. Scanners can produce false positives when version banners are misleading, backports are not recognized, or a vulnerable component is not actually active. They can also produce false negatives because of network segmentation, unsupported platforms, rate limiting, or incomplete coverage.

Configuration assessment compares systems with a defined baseline. Examples include secure administrative protocols, unnecessary services, password policy, logging, encryption, cloud storage permissions, firewall rules, and container settings. A baseline must be appropriate to the system’s function; excessive hardening can impair availability or legitimate operations.

Scanning should be planned around safety:

  • notify system owners and operations teams;
  • test non-production systems first when possible;
  • schedule intrusive checks during approved windows;
  • set rate limits and stop conditions;
  • monitor service health;
  • protect scan credentials and results;
  • avoid collecting unnecessary personal or secret data.

5. Penetration Testing and Security Testing Methods

Security testing methods answer different questions.

MethodMain questionTypical evidenceMain limitation
Vulnerability scanWhat known weaknesses may be present?Tool result and version/configuration evidenceMay miss logic and context
Configuration assessmentDoes a system meet a security baseline?Setting comparison and exceptionsBaseline may not reflect actual attackability
Penetration testCan an authorized tester demonstrate practical impact?Reproducible, controlled proofLimited time and scope
Security reviewAre design and processes appropriately controlled?Documents, interviews, architectureDepends on accuracy of supplied information
Red-team exerciseCan a realistic objective be achieved under agreed constraints?Campaign evidence and detection observationsMore complex and potentially disruptive

A basic penetration test normally follows planning, reconnaissance, enumeration, vulnerability analysis, controlled exploitation where authorized, post-exploitation analysis within limits, cleanup, reporting, and retesting. The tester should demonstrate the minimum evidence necessary. Obtaining sensitive records, changing data, creating persistence, or moving laterally is not automatically justified merely because it is technically possible.

Testing should distinguish proof of vulnerability from proof of business impact. For example, a tester may safely demonstrate access to a non-sensitive test record rather than downloading a production database. If a high-impact action is prohibited, the report should state that exploitation was limited and explain what evidence supports the conclusion.

6. Vulnerability Intelligence and Severity Models

The Common Vulnerabilities and Exposures system (CVE) provides identifiers for publicly disclosed vulnerabilities. The Common Weakness Enumeration (CWE) describes underlying weakness types, such as improper input validation or use of hard-coded credentials. The Common Vulnerability Scoring System (CVSS) provides a standardized severity score based on factors such as attack vector, complexity, privileges required, user interaction, and impacts on confidentiality, integrity, and availability.

A CVSS score is not an organization’s complete risk rating. It generally describes technical characteristics of a vulnerability and may not capture asset value, local exposure, compensating controls, exploit activity, or regulatory consequences. Analysts should record the CVSS version and vector when using it, because scores from different versions are not automatically interchangeable.

Other useful intelligence includes:

  • whether exploitation is publicly demonstrated;
  • whether the vulnerability is being exploited in the wild;
  • availability and reliability of exploit code;
  • vendor remediation status;
  • affected product prevalence;
  • whether the vulnerable service is internet-facing;
  • relevance to the organization’s threat model.

7. Prioritizing Findings for Action

A practical prioritization model combines at least four dimensions:

  1. Technical severity: the potential technical consequences and exploit conditions.
  2. Exposure: reachability, accessibility, and attacker opportunity.
  3. Business criticality: importance of the asset and service.
  4. Threat and control context: active exploitation, compensating controls, and detectability.

A simple qualitative matrix can classify findings as critical, high, medium, or low. The classification rules must be documented so that different analysts reach reasonably consistent decisions.

For a quantitative illustration, suppose an organization uses a local prioritization index:

P = S × E × B

where S is a normalized technical severity value from 1 to 5, E is exposure from 1 to 5, and B is business criticality from 1 to 5. The maximum is 125. This is an organization-defined screening model, not a replacement for CVSS or formal risk analysis. It assumes the three factors are scored consistently and treated as multiplicative indicators.

If a vulnerability has S = 4, E = 5, and B = 5, then:

P = 4 × 5 × 5 = 100

A second finding with S = 5, E = 1, and B = 2 has P = 10. The first may deserve faster action in this organization because it combines high exposure and business criticality, even though its technical severity is lower. The scores do not express probability or monetary loss; they support transparent triage.

Prioritization should also consider remediation feasibility and service availability. A critical patch that requires an extended outage may need an immediate compensating control followed by a scheduled change. Service-level targets should be risk-based rather than treated as absolute substitutes for analysis.

8. Reporting and Evidence

A high-quality finding contains:

  • a concise title;
  • affected asset and owner;
  • description of the weakness;
  • evidence, including date and test position;
  • impact and plausible attack path;
  • severity and prioritization rationale;
  • remediation or mitigation advice;
  • references, such as vendor guidance or CVE;
  • confidence and limitations;
  • retest criteria and target date.

Reports should avoid unsupported claims. “The server is vulnerable to remote code execution” is inappropriate if the test only identified an old version without confirming the affected feature or exploit condition. A more defensible statement may be “The installed version appears associated with a vulnerability that can permit remote code execution under stated conditions; version and feature use require confirmation.”

Evidence must be protected because reports can contain IP addresses, usernames, configuration details, tokens, personal data, or proof-of-access material. Use access controls, encryption, retention limits, and secure transfer. Findings should be written for both technical teams and decision-makers: technical staff need actionable detail, while managers need risk, priority, ownership, and expected treatment.

9. Remediation Verification

Verification begins by defining what “fixed” means. For a patch finding, it may mean the affected component is updated to a vendor-supported version and the vulnerable condition is absent. For an access-control finding, it may mean an unauthorized test identity is denied while an authorized identity retains necessary access. For a configuration finding, it may mean the setting is corrected and survives restart or redeployment.

A sound retest process is:

  1. review the original evidence and scope;
  2. confirm the change record and affected asset;
  3. repeat the relevant test using an equivalent method;
  4. test for common regressions or alternate exposure;
  5. record results, timestamps, tool versions, and limitations;
  6. close, reopen, or downgrade the finding based on evidence.

Retesting should not silently expand into a new penetration test. If the original issue is fixed but a separate weakness is discovered, it should be documented as a new finding or agreed extension of scope.

10. Ethical, Legal, and Governance Considerations

Authorization is the central ethical control. Written permission should identify who has authority to approve testing and who owns the systems. Testing third-party systems may require separate authorization from the provider. Cloud terms, data-protection obligations, sector regulations, contractual requirements, and computer misuse laws may apply.

Important professional principles include:

  • necessity and proportionality;
  • least privilege;
  • confidentiality of discovered information;
  • integrity of evidence;
  • avoidance of unnecessary disruption;
  • prompt escalation of critical discoveries;
  • honest reporting of uncertainty and limitations.

Social engineering, denial-of-service testing, destructive exploitation, persistence, and collection of personal data require explicit approval and enhanced safeguards. A tester should stop when an action exceeds scope, risks material disruption, or reveals sensitive information beyond what is necessary.

11. Automation, Cloud, and AI-Assisted Practice

Cloud environments change rapidly, so discovery and assessment should integrate with infrastructure-as-code pipelines, cloud security posture tools, identity reviews, container registries, and workload inventories. Ephemeral resources require event-driven or frequent assessment rather than infrequent perimeter scans.

Automation can reduce repetitive work by correlating asset data, normalizing findings, checking ticket status, and identifying duplicate results. It can also amplify errors. Tool output must be reviewed for scope, false positives, stale assets, and misleading version information.

AI-assisted tools may summarize advisories, classify findings, or suggest remediation. They should not be trusted to authorize testing, infer sensitive facts without validation, or make final risk-acceptance decisions. Prompts and uploaded scan data may contain confidential information. Organizations should apply data-governance controls, human review, source verification, and audit trails.

Illustrative Case: Regional Health Services

Background

Regional Health Services (RHS), a fictional healthcare provider, operates public web services, clinical applications, staff laptops, and a cloud-based patient portal. Its asset inventory was maintained manually and had not been reconciled with cloud records for six months.

Problem

An authorized discovery exercise identified several internet-facing addresses absent from the inventory. A vulnerability scan reported an outdated web framework on one portal server and weak administrative access controls on a cloud management interface. The scanner rated the framework issue as high and the access-control issue as medium.

Analysis

The portal server processed sensitive patient information, was directly reachable from the internet, and had evidence of exploitation activity against the affected framework. The cloud interface was restricted to a corporate VPN, had multifactor authentication, and was monitored. Using RHS’s local model, the framework finding was scored with high severity, high exposure, and high business criticality. The access-control issue received medium exposure because of the VPN restriction, but remained important because compromise of an administrator could affect several services.

The team validated that the framework was actually used by the portal and confirmed that the scanner had not mistaken a version banner. Testing stopped short of accessing patient records. A non-sensitive test account was used to verify the portal behavior.

Approach and solution

RHS immediately restricted unnecessary portal functions, added monitoring, and scheduled an emergency maintenance window. The framework was upgraded, and the cloud interface was placed behind a dedicated administrative access path with stronger conditional access. The asset register was reconciled with cloud inventory and assigned owners. A retest repeated the original checks and confirmed that the vulnerable framework was absent and the administrative restriction was effective.

Outcome

The high-priority finding was closed after evidence-based verification. The cloud finding was downgraded only after the compensating controls were documented and tested. RHS also established weekly external asset discovery, monthly authenticated scanning for critical systems, and a risk-based remediation dashboard.

Learning points

The case demonstrates that vulnerability prioritization depends on context, not scanner labels alone. Asset ownership is a prerequisite for timely remediation. Safe proof using test data can establish risk without unnecessary exposure of confidential records. Finally, remediation is incomplete until the changed control is retested and recorded.

Challenges and Limitations

Vulnerability management has unavoidable limitations. Scanners can miss unknown vulnerabilities, business-logic flaws, chained attacks, insecure defaults in bespoke applications, and weaknesses hidden by segmentation. High-volume findings can overwhelm teams and encourage superficial closure. Asset inventories become stale, and risk scores can create false precision.

Penetration tests are also samples, not guarantees of security. A test performed during a short window cannot prove that no vulnerability exists. Testing may be constrained by production safety, incomplete credentials, unavailable source code, or third-party dependencies. Reports should clearly state these limitations.

Organizations should measure not only the number of findings but also coverage and outcomes. Useful indicators include percentage of known assets assessed, age of critical findings, time to remediate, recurrence rate, authenticated-scan coverage, percentage of findings verified, and number of unauthorized or unknown assets discovered. Metrics should support improvement rather than encourage teams to hide or reclassify findings.

Best-Practice Checklist

  • Maintain an authoritative, continuously reconciled asset inventory.
  • Obtain written authorization and define rules of engagement.
  • Combine passive discovery, controlled active discovery, and cloud inventory data.
  • Use authenticated assessment where safe and appropriate.
  • Validate scanner results before assigning ownership or severity.
  • Prioritize with technical severity, exposure, business impact, and threat context.
  • Provide specific remediation guidance and realistic deadlines.
  • Protect assessment evidence and minimize sensitive-data collection.
  • Retest the original condition and document limitations.
  • Record risk acceptance with an accountable owner and review date.
  • Integrate vulnerability management with change, incident, asset, and risk processes.

Chapter Summary

Vulnerability management is a continuous process of governance, asset discovery, assessment, analysis, treatment, and verification. Asset discovery establishes what must be protected; vulnerability scanning and configuration assessment identify likely weaknesses; penetration testing evaluates selected weaknesses under controlled conditions. CVE, CWE, and CVSS provide useful common language, but organizational priority must also reflect exposure, business criticality, active threats, and compensating controls.

Professional practice depends on authorization, least privilege, safe testing, protected evidence, and honest reporting. Findings should be validated, assigned to owners, treated through remediation or documented alternatives, and closed only after effective retesting. Cloud change, automation, and AI can improve coverage, but human judgment and governance remain essential.

Key Terms

Vulnerability: A weakness that can be exploited or otherwise cause harm.

Threat: A potential cause of an adverse security event.

Exploit: A method or action that takes advantage of a vulnerability.

Asset: A system, service, data set, identity, or process with value.

Attack surface: The set of reachable pathways through which an asset may be affected.

Asset discovery: The authorized process of identifying systems and services.

Vulnerability scanning: Automated or semi-automated identification of suspected weaknesses.

Configuration assessment: Comparison of system settings with a defined security baseline.

Penetration testing: Authorized testing that evaluates practical exploitability and impact.

Authenticated scan: An assessment using approved credentials for deeper inspection.

False positive: A reported issue that is not actually present or applicable.

False negative: A weakness that an assessment fails to identify.

CVE: A standardized identifier for a publicly disclosed vulnerability.

CWE: A classification of software and design weakness types.

CVSS: A standardized framework for expressing technical vulnerability severity.

Compensating control: An alternative safeguard that reduces risk when the preferred control is unavailable.

Risk acceptance: Formal approval to retain a known residual risk.

Retest: A controlled repeat assessment used to verify remediation.

Rules of engagement: Documented boundaries and procedures for a security test.

Residual risk: Risk remaining after controls or treatment have been applied.

Review Questions

Short Answer Questions

  1. Why is asset inventory accuracy important to vulnerability management?
  2. Distinguish a vulnerability scan from a penetration test.
  3. What information does CVSS provide, and what does it not fully represent?
  4. State two safeguards required for authorized security testing.
  5. Why should a finding be retested before closure?

Long Answer Questions

  1. Explain the vulnerability management lifecycle from governance through verification.
  2. Compare authenticated and unauthenticated scanning, including their advantages and limitations.
  3. Describe how exposure and business criticality can change the priority of a technically similar vulnerability.
  4. Explain the contents of a professionally written vulnerability finding.
  5. Discuss ethical and legal considerations in penetration testing.

Analytical / Application Questions

  1. Two findings have equal technical severity. One affects an isolated development server; the other affects an internet-facing payment service. Explain how you would prioritize them and what evidence you would seek.
  2. A scanner reports a critical vulnerability based only on a version banner, but the system owner claims the vendor backported the fix. Design a validation and remediation-verification process.
  3. An organization discovers unknown cloud assets during an authorized assessment. Propose a governance and technical response that improves future discovery without causing service disruption.

Multiple Choice Questions with Answers

Question 1

Which activity should normally occur first in a vulnerability management lifecycle?

A. Risk acceptance

B. Governance and scope definition

C. Penetration exploitation

D. Finding closure

Correct Answer: B. Governance and scope definition

Question 2

What is the main advantage of an authenticated vulnerability scan?

A. It never produces false positives

B. It can inspect approved internal software and configuration details

C. It requires no authorization

D. It proves that no exploitable weakness exists

Correct Answer: B. It can inspect approved internal software and configuration details

Question 3

Which factor is not adequately represented by a purely technical vulnerability severity score?

A. Attack complexity

B. Required privileges

C. Business criticality of the affected service

D. Potential confidentiality impact

Correct Answer: C. Business criticality of the affected service

Question 4

Using P = S × E × B, what is the priority index when S = 3, E = 4, and B = 5?

A. 12

B. 20

C. 60

D. 125

Correct Answer: C. 60

Question 5

Which statement best describes a false positive?

A. A real weakness missed by a scanner

B. A reported weakness that is not present or applicable

C. A vulnerability accepted by management

D. A finding verified after remediation

Correct Answer: B. A reported weakness that is not present or applicable

Question 6

What is the most appropriate reason to limit exploitation during a penetration test?

A. To avoid collecting unnecessary sensitive data or causing disruption

B. To ensure no evidence is produced

C. To make authorization unnecessary

D. To replace all vulnerability scanning

Correct Answer: A. To avoid collecting unnecessary sensitive data or causing disruption

Question 7

Which item should be included in a professional vulnerability finding?

A. An unsupported claim of guaranteed compromise

B. Affected asset, evidence, impact, and remediation advice

C. Only the scanner’s product name

D. The tester’s personal opinion without evidence

Correct Answer: B. Affected asset, evidence, impact, and remediation advice

Question 8

What is the proper treatment of formal risk acceptance?

A. It should have an accountable owner and review information

B. It permanently removes the vulnerability

C. It eliminates the need for monitoring

D. It can be decided by an unauthorised tester

Correct Answer: A. It should have an accountable owner and review information

Question 9

Why should cloud asset discovery be repeated frequently?

A. Cloud resources are often dynamic and ephemeral

B. Cloud systems cannot be inventoried

C. Repeated discovery replaces access controls

D. Cloud scanning is always risk-free

Correct Answer: A. Cloud resources are often dynamic and ephemeral

Question 10

What is the primary purpose of remediation retesting?

A. To expand the test indefinitely

B. To verify that the original vulnerable condition has been addressed

C. To assign blame to the system owner

D. To conceal limitations in the original assessment

Correct Answer: B. To verify that the original vulnerable condition has been addressed

Network, Internet & Cloud Security
Chapter 13 of 15