CVE, CVSS and SCAP, and checking systems against a standard
Security tools from different makers have to describe the same flaws and the same settings, or their reports cannot be compared. A small family of public standards gives every known flaw one name and one score, and gives tools a common language for checklists. No background is assumed. A security professional uses these names daily, and uses the same standards to check that systems are set up as the rules require.
By the end of this unit you will be able to:
- Explain what a CVE identifier is and what it does not tell you
- Explain how CVSS scores severity, and name the severity bands
- Tell apart CVE, CVSS, CPE, CCE, XCCDF and OVAL
- Explain what a compliance check is, and tell it apart from a vulnerability scan and an audit
- Explain why a compliant system is not necessarily a secure one
One flaw, three names
An illustrative example
A college runs two security tools. In December one of them reports a 'logging library flaw' on the admissions server. The other reports 'Log4Shell, severity 10'. An email from the software supplier warns of 'the Log4j problem'.
The technician raises three tickets, patches the server once and closes one ticket. The other two stay open for a month. The governors are told that the college has three serious flaws when it had one.
What would have let the technician see at once that all three were the same flaw?
CVE gives each known flaw one name
Common Vulnerabilities and Exposures (CVE) is a public list of known security flaws. Each entry has a unique identifier, a short description and at least one public reference. The identifier is written CVE, then a year, then a number. The flaw in the story is CVE-2021-44228, published in December 2021.
The CVE Program is sponsored by the United States Cybersecurity and Infrastructure Security Agency (CISA) and operated by the MITRE Corporation. Entries are added by organisations authorised as CVE Numbering Authorities (CNAs), many of them software suppliers naming flaws in their own products.
CVE is a dictionary of names. It does not say how serious a flaw is or how to fix it. The National Vulnerability Database (NVD), run by the United States standards body NIST, takes each CVE entry and adds analysis, including a severity score. A tool that prints the CVE identifier beside each finding lets two scanners, a supplier's warning and a news report be matched at once.
CVSS scores how severe a flaw is
The Common Vulnerability Scoring System (CVSS) gives a flaw a severity score from 0.0 to 10.0. It is maintained by FIRST, the Forum of Incident Response and Security Teams. The flaw in the story scored 10.0.
| Rating | Score |
|---|---|
| None | 0.0 |
| Low | 0.1 to 3.9 |
| Medium | 4.0 to 6.9 |
| High | 7.0 to 8.9 |
| Critical | 9.0 to 10.0 |
The score is built from groups of measurements, called metrics.
- Base
- The qualities of the flaw itself, which stay the same over time and from one organisation to another. They include how it is reached, how hard it is to use, and the harm it does to . A published score is normally the base score.
- Temporal
- Things that change over time, such as whether code that uses the flaw is in circulation. Version 4.0 of calls this group Threat.
- Environmental
- Things particular to one organisation, such as how important the affected system is and what other protections surround it. Each organisation sets these for itself.
Version 4.0 adds a fourth group, Supplemental, which gives extra context and does not change the score.
CVSS states severity. It is not a measure of the to a particular organisation. A flaw scored 9.8 on an isolated test machine may matter less than one scored 6.5 on the server that takes payments.
SCAP: standards that let tools exchange findings
CVE and CVSS belong to a larger family. The Security Content Automation Protocol (SCAP) is a suite of specifications published by NIST. It standardises how information about software flaws and security settings is named and exchanged, so that tools from different makers can share checklists and results. Six of its parts are known by name.
| Name | Stands for | What it gives |
|---|---|---|
| CVE | Common Vulnerabilities and Exposures | A name for each known software flaw |
| CVSS | Common Vulnerability Scoring System | A severity score for a flaw |
| CPE | Common Platform Enumeration | A name for each product: hardware, operating system or application |
| CCE | Common Configuration Enumeration | A name for each security configuration setting |
| XCCDF | Extensible Configuration Checklist Description Format | A language for writing security checklists and reporting their results |
| OVAL | Open Vulnerability and Assessment Language | A language for describing how to test the state of a machine |
One flaw keeps one name from discovery to report
Read this figure as text
The Security Content Automation Protocol (SCAP), published by NIST, is a suite of standards for naming and exchanging security information, so that tools from different makers can share checklists and results. One flaw, Log4j, is followed through it.
- A CVE Numbering Authority, often the supplier of the product, adds the flaw to the CVE list as CVE-2021-44228. CVE is a dictionary of names: it does not say how serious a flaw is or how to fix it.
- The National Vulnerability Database, run by NIST, takes the CVE entry and adds analysis.
- It scores the flaw with CVSS. The base score is 10.0, in the Critical band of 9.0 and above.
- It names the affected products in CPE, so that a tool can match them to what is installed.
- A test written in OVAL describes how to check a machine. A scanner runs it on each machine and finds the affected versions.
- The report line shows the CVE identifier and the CVSS score beside the finding, so two scanners and a supplier's warning about the same flaw can be matched at once. Settings are named in CCE and checklists written in XCCDF, which compliance checks use in the same way.
CVE names the flaw. CPE names the product. CCE names the setting. CVSS scores. XCCDF writes the checklist. OVAL writes the test.
A compliance check compares a system with a required standard
A compliance check verifies that systems, settings or practices meet a stated requirement. The requirement may come from a law, a regulation, a contract, a published standard or the organisation's own . The answer for each rule is yes or no.
A compliance check on laptops
A firm's policy says every laptop must have its disk , lock its screen after ten minutes and install updates automatically.
A scanning tool signs in to each laptop, reads the three settings and compares them with the policy. It reports 212 laptops that meet all three rules and 9 that fail one. The nine are the finding.
Automated checks of this kind use the SCAP languages. The required settings are written as a checklist in XCCDF, each setting carries its CCE name, and the tests are written in OVAL. A published reference configuration is called a benchmark. The CIS Benchmarks, from the Center for Internet Security, are widely used. They are recommended settings for common products, agreed by consensus among security practitioners.
Not every is technical. Confirming that every member of staff completed this year's training, or that every change to a system carries an approval, is a compliance check on a .
| Activity | Compares | With | Result |
|---|---|---|---|
| Compliance check | Settings and practices | A required standard or policy | Pass or fail for each rule |
| Vulnerability scan | Installed software and services | A database of known flaws | A list of weaknesses |
| Audit | Evidence of every kind | Audit criteria, by an independent examiner | A formal report, often with an opinion |
Common misconception
“A system that passes every compliance check is secure.”
Compliance shows that the stated rules are met. A system can meet every rule and still hold a flaw the rules never mention. A system can also fail a rule for a good reason that has been approved and recorded as an exception.
A question, worked through
A water company must show its regulator that all 400 of its servers follow the company's hardening standard, which lists 60 required settings. The security manager has a budget for one activity this quarter and wants evidence for every server.
Which activity BEST provides that evidence?
Decide on your answer, then open the reasoning
- The regulator wants proof that settings match a standard, on every server. That is a question of compliance, not of what an attacker could do.
- Rule out b: a penetration test shows what can be exploited on a few servers. It does not compare 60 settings on 400.
- Rule out d: interviews tell the manager what administrators believe. The regulator needs the settings themselves.
- Between a and c: both scan every server. A vulnerability scan looks for known flaws and missing updates. A compliance check reads each required setting and reports pass or fail against the standard, which is the evidence asked for.
Answer: A. An authenticated scan of every server against a checklist of the settings
Choosing between good answers
- A question asks which identifier lets findings from different tools be matched
- choose CVE. It names the flaw and says nothing about severity.
- A question asks how severe a known flaw is on a scale of 0 to 10
- choose CVSS. The base score is severity, not the risk to this organisation.
- A question asks for proof that systems meet a required configuration
- choose a compliance check against the standard, not a penetration test or a vulnerability scan.
- An answer treats a compliant system as a secure one
- prefer the answer that still assesses risk. Compliance covers only what the rules list.
Check your understanding
5 questions on this unit, easiest first. Confirm an answer to see the reasoning for it, then the right answer, the other options and the rule to reuse. Your answers are kept in this browser and feed readiness and review.
These questions are drafts that no named reviewer has approved yet.
Question 1 of 5
What to remember
- CVE gives each known flaw one identifier. It is a dictionary of names, with no score and no fix.
- CVSS scores severity from 0.0 to 10.0 using base, temporal and environmental metrics. Critical is 9.0 and above. Severity is not risk.
- SCAP is NIST's suite of standards for exchanging security findings: CVE, CVSS, CPE for products, CCE for settings, XCCDF for checklists and OVAL for tests.
- A compliance check compares systems or practices with a required standard and reports pass or fail for each rule.
- A benchmark is a published reference configuration. Compliant does not mean secure.
Say it from memory
What is a compliance check, and how does it differ from a vulnerability scan?
A compliance check verifies that systems, settings or practices meet a stated requirement, such as a law, a contract, a standard or a policy. It reports pass or fail for each rule. A vulnerability scan compares installed software with a database of known flaws. Passing a compliance check shows the rules are met, not that the system is secure.
What does a CVE entry give, and what does the National Vulnerability Database add?
Common Vulnerabilities and Exposures (CVE) gives each known flaw a unique identifier, a short description and at least one public reference. It is a dictionary of names and does not say how serious a flaw is. The NVD, run by NIST, adds analysis, including a severity score.
What are the CVSS severity bands, and what do its base, temporal and environmental metrics describe?
None 0.0, Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9, Critical 9.0 to 10.0. Base: qualities of the flaw itself that stay the same. Temporal, called Threat in version 4.0: things that change over time. Environmental: things particular to one organisation. CVSS states severity, not the risk to a particular organisation.
What do CPE, CCE, XCCDF and OVAL each give within SCAP?
CPE names each product: hardware, operating system or application. CCE names each security configuration setting. XCCDF is a language for writing security checklists and reporting their results. OVAL is a language for describing how to test the state of a machine.
Sources
- NIST SP 800-126 Rev. 3: The Technical Specification for the Security Content Automation Protocol (SCAP): SCAP Version 1.3, National Institute of Standards and TechnologySCAP as a suite of specifications standardising the format and naming of software flaw and security configuration information, and the definitions of XCCDF, OVAL, CPE, CCE, CVE and CVSS as its components.
- CVE Program: Overview, CVE ProgramThe mission of the CVE Program, its sponsorship by CISA, its operation by MITRE, and CVE Numbering Authorities adding the records.
- NVD: CVE-2021-44228 Detail, National Institute of Standards and Technology (National Vulnerability Database)CVE-2021-44228 as the identifier of the Apache Log4j flaw, published in December 2021 with a base score of 10.0.
- Common Vulnerability Scoring System v3.1: Specification Document, FIRST (Forum of Incident Response and Security Teams)The base, temporal and environmental metric groups, the 0.0 to 10.0 range and the five severity bands.
- Common Vulnerability Scoring System v4.0: Specification Document, FIRST (Forum of Incident Response and Security Teams)The base, threat, environmental and supplemental metric groups in version 4.0, with supplemental metrics not changing the score.
- NIST SP 800-115: Technical Guide to Information Security Testing and Assessment, NISTThe National Vulnerability Database holding information on CVE entries and scoring them with CVSS.
- SP 800-53 Rev. 5, Security and Privacy Controls for Information Systems and Organizations, NISTVulnerability tools that use standards for naming platforms, flaws and configurations, formatting checklists and measuring impact.
- CIS Benchmarks List, Center for Internet SecurityCIS Benchmarks as consensus-based configuration recommendations for many product families.