Bird
Raised Fist0
Cybersecurityknowledge~10 mins

Vulnerability classification (CVSS) in Cybersecurity - Interactive Code Practice

Choose your learning style10 modes available

Start learning this pattern below

Jump into concepts and practice - no test required

or
Recommended
Test this pattern10 questions across easy, medium, and hard to know if this pattern is strong
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to identify the base metric group in CVSS.

Cybersecurity
cvss_metrics = ['[1]', 'Temporal', 'Environmental']
Drag options to blanks, or click blank then click option'
AImpact
BSeverity
CBase
DExploitability
Attempts:
3 left
💡 Hint
Common Mistakes
Confusing Base with Temporal or Environmental metrics.
Choosing severity instead of metric groups.
2fill in blank
medium

Complete the code to calculate the CVSS score using the base score formula.

Cybersecurity
cvss_score = round(([1] + 0.1) * 10) / 10
Drag options to blanks, or click blank then click option'
Aexploitability_score
Bimpact_score
Ctemporal_score
Denvironmental_score
Attempts:
3 left
💡 Hint
Common Mistakes
Using temporal or environmental scores in base score calculation.
Mixing exploitability score instead of impact score.
3fill in blank
hard

Fix the error in the CVSS vector string parsing code.

Cybersecurity
vector_parts = cvss_vector.split('[1]')
Drag options to blanks, or click blank then click option'
A;
B:
C,
D|
Attempts:
3 left
💡 Hint
Common Mistakes
Using colon or comma instead of semicolon.
Using pipe character which is not standard.
4fill in blank
hard

Fill both blanks to complete the CVSS severity rating classification.

Cybersecurity
if score >= [1]:
    severity = 'Critical'
elif score >= [2]:
    severity = 'High'
Drag options to blanks, or click blank then click option'
A9.0
B7.0
C5.0
D4.0
Attempts:
3 left
💡 Hint
Common Mistakes
Mixing up thresholds for Critical and High.
Using lower values for Critical severity.
5fill in blank
hard

Fill all three blanks to complete the dictionary comprehension for CVSS metrics filtering.

Cybersecurity
filtered_metrics = {k: v for k, v in metrics.items() if v [1] [2] and k != '[3]'}
Drag options to blanks, or click blank then click option'
A>=
B7.0
CBase
D<
Attempts:
3 left
💡 Hint
Common Mistakes
Using wrong comparison operators.
Not excluding the Base metric correctly.

Practice

(1/5)
1. What does the CVSS Base Score primarily measure in vulnerability classification?
easy
A. The inherent severity of a vulnerability without considering time or environment
B. The current exploitability of a vulnerability based on available patches
C. The impact of a vulnerability on a specific organization's environment
D. The financial cost of fixing a vulnerability

Solution

  1. Step 1: Understand CVSS score components

    CVSS scores have three parts: Base, Temporal, and Environmental. The Base Score measures the fundamental severity of a vulnerability.
  2. Step 2: Identify the role of the Base Score

    The Base Score reflects the intrinsic characteristics of a vulnerability that do not change over time or across different environments.
  3. Final Answer:

    The inherent severity of a vulnerability without considering time or environment -> Option A
  4. Quick Check:

    Base Score = inherent severity [OK]
Hint: Base Score = core severity, ignore time and environment [OK]
Common Mistakes:
  • Confusing Base Score with Temporal or Environmental scores
  • Thinking Base Score changes over time
  • Assuming Base Score includes organizational impact
2. Which of the following is the correct format for a CVSS v3.1 vector string?
easy
A. CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
B. CVSS-3.1-AV:N-AC:L-PR:N-UI:N-S:U-C:H-I:H-A:H
C. CVSS3.1:AV=N;AC=L;PR=N;UI=N;S=U;C=H;I=H;A=H
D. CVSSv3.1[AV:N,AC:L,PR:N,UI:N,S:U,C:H,I:H,A:H]

Solution

  1. Step 1: Recall CVSS v3.1 vector string syntax

    The official CVSS v3.1 vector string starts with "CVSS:3.1" followed by slash-separated metric abbreviations and values.
  2. Step 2: Compare options to official format

    CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H matches the correct format exactly, using slashes and colons as separators.
  3. Final Answer:

    CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H -> Option A
  4. Quick Check:

    Correct CVSS v3.1 vector format = CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H [OK]
Hint: Look for 'CVSS:3.1' prefix and slash separators [OK]
Common Mistakes:
  • Using dashes or semicolons instead of slashes
  • Missing the 'CVSS:3.1' prefix
  • Incorrect separator characters
3. Given a vulnerability with the following CVSS v3.1 Base metrics: Attack Vector (AV) = Network, Attack Complexity (AC) = Low, Privileges Required (PR) = None, User Interaction (UI) = None, Scope (S) = Unchanged, Confidentiality (C) = High, Integrity (I) = High, Availability (A) = High, what is the approximate Base Score?
medium
A. 5.0
B. 7.5
C. 9.8
D. 3.2

Solution

  1. Step 1: Identify metric values and their impact

    AV: Network (high impact), AC: Low (easy to exploit), PR: None (no privileges needed), UI: None (no user interaction), S: Unchanged, C/I/A: High impact on confidentiality, integrity, availability.
  2. Step 2: Use CVSS v3.1 calculator logic

    These metrics correspond to a critical vulnerability with a Base Score near 9.8, indicating very high severity.
  3. Final Answer:

    9.8 -> Option C
  4. Quick Check:

    Critical metrics with no privileges and high impact = 9.8 [OK]
Hint: High impact + no privileges + network vector = ~9.8 score [OK]
Common Mistakes:
  • Underestimating score by ignoring high impact metrics
  • Confusing Scope Unchanged with Changed
  • Mixing up privileges required levels
4. A security analyst notices a CVSS vector string: CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N. What is the main error in interpreting this vector?
medium
A. Thinking privileges are required when they are not
B. Believing the attack vector is Network instead of Local
C. Ignoring that the scope is Changed, affecting impact
D. Assuming the vulnerability requires no user interaction

Solution

  1. Step 1: Analyze the UI (User Interaction) metric

    The vector shows UI:R, meaning user interaction is Required, not None.
  2. Step 2: Identify common misinterpretation

    Assuming UI:N (no user interaction) would be incorrect here; the vulnerability needs user action to exploit.
  3. Final Answer:

    Assuming the vulnerability requires no user interaction -> Option D
  4. Quick Check:

    UI:R means user interaction required, not none [OK]
Hint: Check UI metric carefully: R means user interaction required [OK]
Common Mistakes:
  • Ignoring UI:R and assuming no user action needed
  • Mixing up AV:L (Local) with Network
  • Overlooking Scope Changed impact
5. An organization wants to prioritize fixing vulnerabilities that have a high CVSS Environmental Score but a medium Base Score. Which approach best explains this prioritization?
hard
A. Fix only vulnerabilities with the highest Base Score regardless of environment
B. Focus on vulnerabilities that impact the organization's specific environment more severely, even if their general severity is medium
C. Ignore Environmental Scores and focus on Temporal Scores for patch urgency
D. Prioritize vulnerabilities with low Base Scores to reduce workload

Solution

  1. Step 1: Understand Environmental Score purpose

    The Environmental Score adjusts the Base Score to reflect how a vulnerability affects a specific organization's environment, considering factors like system importance and security controls.
  2. Step 2: Apply prioritization logic

    Prioritizing vulnerabilities with high Environmental Scores means focusing on those that pose greater risk in the organization's context, even if their Base Score is only medium.
  3. Final Answer:

    Focus on vulnerabilities that impact the organization's specific environment more severely, even if their general severity is medium -> Option B
  4. Quick Check:

    Environmental Score = org-specific risk priority [OK]
Hint: Environmental Score shows real risk to your organization [OK]
Common Mistakes:
  • Ignoring Environmental Scores in prioritization
  • Confusing Temporal Score with Environmental Score
  • Assuming Base Score alone dictates fix order