Finding weaknesses and patching them in order
Software is shipped with mistakes, and some of those mistakes let an intruder in. A patch is the maker's repair, and vulnerability management is the routine of finding which weaknesses an organisation has, deciding which matter most and dealing with each one. No technical background is assumed. A security professional needs it because a weakness the whole world has read about, left unrepaired, is one of the easiest ways into a system.
By the end of this unit you will be able to:
- Explain what a vulnerability, a patch, an exploit and a zero-day are
- Put the steps of the vulnerability management cycle and of patch management in order
- Tell apart CVE, CVSS and the catalogue of known exploited vulnerabilities
- Choose which of several weaknesses to deal with first
- Choose what to do when a patch cannot be installed
Two hundred and twelve findings and one afternoon
An illustrative example
A dental practice pays an outside firm to look after its eight computers. Each month the firm runs a check and sends a report. This month it lists 212 weaknesses, each with a score out of ten. The technician has one afternoon on site.
Near the top of the list is a flaw scored 9.8 in a program on an old laptop that stays in a locked cupboard and is never connected to anything. Lower down is a flaw scored 7.5 in the online booking page, which anyone on the internet can reach. That morning's news said criminals were already using it.
Which of the two flaws should the technician deal with first, and why is the score a poor guide on its own?
A weakness, its repair and the gap between them
A vulnerability is a weakness in a system that someone could use to do harm. Most are mistakes in software. Some are careless settings, such as a password left at the maker's default. An exploit is a method, often a small program, that uses a vulnerability to break in.
A patch is a small piece of software from the maker that repairs a mistake in a program already in use.
A recalled door lock
A car maker learns that the door lock on one model opens with a flat blade. It writes to every owner and fits a new lock free of charge. The faulty lock is the vulnerability, the blade trick is the exploit and the new lock is the .
An owner who never books the repair keeps a car that is easy to steal. Thieves have read the same letter and know which model to try.
Three dates matter for any flaw: the day it becomes known, the day the maker releases a patch and the day the organisation installs it. Between the last two the flaw is public and the system is still open, so that gap is kept short.
A zero-day vulnerability is one that attackers use before the maker has released a patch. Defenders have had zero days to repair it, so the first defence has to be something other than a patch.
Vulnerability management is a cycle
Vulnerability management is the continuing work of finding weaknesses, judging them and treating them. It never finishes, because new flaws are announced every day.
- Know what you have. An lists every device and every program. A weakness on a machine nobody listed is never found.
- Find the weaknesses. A vulnerability scanner is a tool that examines each system and compares what it finds with a list of known flaws. Makers' notices and reports of attacks are the other sources.
- Rank them by : how bad the flaw is, whether attackers are using it, how exposed the system is and what the system holds.
- Treat each one. Patch it, protect it another way, remove the system, or have the system's owner in writing.
- Verify and report. Scan again to confirm the weakness has gone, record what was done, and start again.
Vulnerability management never stops: five steps in a loop
Read this figure as text
Vulnerability management is the continuing work of finding weaknesses, judging them and treating them. It never finishes, because new flaws are announced every day.
- Know what you have: an inventory lists every device and every program. A weakness on a machine nobody listed is never found.
- Find the weaknesses: a vulnerability scanner compares each system with a list of known flaws. Makers' notices and reports of attacks are the other sources, and new flaws are announced every day.
- Rank them by risk: how bad the flaw is, whether attackers are using it, how exposed the system is and what the system holds. The severity score is one input, not the order.
- Treat each one: patch it, protect it another way, remove the system, or have the system's owner accept the risk in writing.
- Verify and report: scan again to confirm the weakness has gone, record what was done, and start again from the inventory.
Scans run on a schedule, such as weekly or monthly, and again after any large change. An authenticated scan signs in to each system and reads what is installed. It finds more than a scan from outside, which sees only what the system shows to the network.
A scanner can be wrong. A false positive is a reported weakness that is not really there. Findings are confirmed before work is planned around them.
CVE names a flaw, CVSS scores it, KEV says it is in use
| Name | What it is | What it tells you |
|---|---|---|
| Common Vulnerabilities and Exposures (CVE) | A public list that gives each known flaw one identifier: the letters CVE, a year and a number | Which flaw this is, so that everyone means the same one |
| Common Vulnerability Scoring System (CVSS) | A score from 0 to 10 for the severity of a flaw | How bad the flaw could be, in general |
| Known Exploited Vulnerabilities (KEV) catalogue | A list, kept by the United States agency CISA, of flaws that attackers have used | That attacks on this flaw have really happened |
| 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 describes the flaw itself: how easy it is to use and how much damage it could do. It does not know whether the flawed system faces the internet or sits in a locked cupboard. Severity is one input to risk. Exposure, active attacks and the value of the system are the others.
Common misconception
“Weaknesses should be fixed in order of their severity score, highest first.”
A score describes the flaw in general. A flaw scored 7.5 that criminals are using against an internet-facing system is a greater risk than a 9.8 on a machine nothing can reach. Rank by risk, with the score as one input.
Being attacked now, reachable from the internet, holding important data: that flaw goes first, whatever its score.
The five steps of patch management
Patch management is the routine that gets patches onto every system that needs them without breaking those systems.
- Evaluate. Decide whether the patch applies to systems the organisation runs, and how urgent it is.
- Test. Install it on a test system first. A patch changes a working program and can break it, or break something that depends on it.
- Approve. The patch goes through change management, the formal process in which the right people agree to a change to a live system and to its timing.
- Deploy. Install it on the live systems, often in stages: a small group first, then the rest. A back-out plan says how to remove the patch if it does harm.
- Verify. Confirm on every system that the patch is installed and working, by a new scan or a check of the version.
Evaluate, test, approve, deploy, verify. Test comes before deploy, and verify comes last.
Makers release most patches on a regular schedule. Microsoft, for example, publishes its monthly security update on the second Tuesday of each month. An out-of-band patch is one released outside the schedule because the flaw cannot wait.
An urgent patch follows the same five steps on a much shorter clock. It goes through the emergency route of , in which a named manager approves it at once and the usual reviewers check it afterwards. Testing may shrink to a few machines for an hour. It is not skipped, and the change is still recorded.
Common misconception
“Once a patch has been sent out to the computers, the weakness is closed.”
Installs fail, wait for a restart or are undone when an old copy of the system is restored. A weakness is closed when a check on each system shows it has gone, which is why verify is a step of its own.
When a patch cannot go on yet
Patching at once is not always possible. A compensating control is a different protection put in place to cover for the one that is missing.
| Situation | What to do |
|---|---|
| No patch exists yet (a zero-day) | Follow the maker's temporary advice: switch off the affected feature, block the route to it and watch for signs of attack. Patch when one arrives |
| The maker no longer supports the product (end of life) | No patch will ever come. Isolate the system on the network, limit who can reach it and plan its replacement |
| The system cannot be stopped this week | Agree a time with the system's owner and protect the system until then |
| The patch breaks the system in testing | Hold the patch, use a temporary protection and report the fault to the maker |
Virtual patching puts a rule in front of the flawed system, for example on a , that blocks the traffic an attack would send. The flaw is still there. The rule buys time until the real patch is installed.
Leaving a weakness untreated is a decision to accept the risk. That decision belongs to the owner of the system, and it is written down with a date for review.
Four routines that are easy to mix up
| Routine | The question it answers |
|---|---|
| Vulnerability management | Which weaknesses does the organisation have, and what will be done about each? |
| Patch management | How do repairs reach every system safely? |
| Configuration management | Is each system still set up the way it was approved? |
| Change management | Was this alteration reviewed, approved and recorded? |
Patching is one treatment among several, so patch management sits inside vulnerability management. Every patch is also a change to a live system, so it passes through change management on its way.
In a small organisation one person may do all four. Four records still result: the weaknesses and the decision on each, the patches installed, the approved set-up and the change log.
A question, worked through
A hospital's security manager receives the monthly scan report. Finding A has a CVSS score of 9.8 and affects a laboratory analyser that connects to nothing except its own printer. Finding B has a score of 7.8 and affects the patient portal, which is open to the internet. Finding B appears in the catalogue of known exploited vulnerabilities, and the maker released a patch for it yesterday. The team can deal with one finding this week.
Which action should the security manager take FIRST?
Decide on your answer, then open the reasoning
- The question asks what comes first when two weaknesses compete, so it is about ranking by risk and then about the order of the patch steps.
- Rule out a: the analyser's flaw scores higher, but nothing can reach the analyser. The portal is exposed and its flaw is being used by attackers, so the portal carries the greater risk.
- Rule out d: acceptance is the owner's choice to make, but a patch exists and the flaw is under attack. Waiting a month is not a recommendation a security manager would lead with.
- Between b and c: both patch the portal this week. Option c skips testing, and an untested patch can stop the portal for every patient. Urgency shortens the steps. It does not remove them.
- Option b keeps the order: test, approve through the emergency route, deploy, then verify.
Answer: B. Test the portal patch, then deploy it as an emergency change
Choosing between good answers
- A question gives severity scores together with facts about exposure or active attacks
- rank by risk. A flaw being exploited on an exposed system comes before a higher score on an isolated one.
- A patch is urgent and one option installs it straight onto live systems
- choose the option that tests first and uses the emergency change route. Urgency shortens the steps and never removes them.
- No patch exists, or the product is past its end of life
- choose a compensating control such as isolation or a blocking rule, and for an unsupported product a plan to replace it.
- A question asks how to know that a weakness is closed
- choose verification by a new scan or version check, not the record that the patch was sent out.
- An option leaves a known flaw unpatched for a business reason
- it is acceptable only as a recorded decision by the system's owner, not by the security team or the technician.
Try it
Decide what to do about a confirmed flaw in a live system you do not own, and see how the owner's choice changes the order of work.
Loading the preview.
Check your understanding
4 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 4
What to remember
- Vulnerability management is a cycle: know what you have, find the weaknesses, rank them by risk, treat them, verify and report.
- Patch management has five steps in order: evaluate, test, approve, deploy, verify.
- CVE names a flaw, CVSS scores its severity from 0 to 10, and the KEV catalogue lists flaws that attackers have used.
- Severity is not risk. Exposure, active attacks and the value of the system decide what is fixed first.
- When a patch cannot be installed, a compensating control such as isolation or virtual patching covers the gap, and the owner accepts what remains.
- A zero-day has no patch yet. An end-of-life product will never get one.
Say it from memory
Name the five steps of patch management in order, and say what a weakness is ranked by when several compete.
Evaluate, test, approve, deploy, verify. Weaknesses are ranked by risk, not by score alone. Risk takes in the severity of the flaw, whether attackers are using it, how exposed the system is and what the system holds. Where a patch cannot be installed, a compensating control covers the gap and the system's owner accepts what remains.
What are a vulnerability, an exploit, a patch and a zero-day?
A vulnerability is a weakness someone could use to do harm. An exploit is a method, often a small program, that uses it to break in. A patch is a small piece of software from the maker that repairs it. A zero-day is a vulnerability attackers use before the maker has released a patch.
Give the five steps of the vulnerability management cycle in order.
Know what you have, from an inventory of every device and program. Find the weaknesses, with scanners, makers' notices and attack reports. Rank them by risk. Treat each one: patch, protect another way, remove the system, or have the owner accept the risk in writing. Verify and report, then start again.
What do CVE, CVSS and the KEV catalogue each tell you, and what CVSS score is critical?
CVE gives each known flaw one identifier, so everyone means the same one. CVSS scores a flaw's severity from 0 to 10: critical is 9.0 to 10.0, high 7.0 to 8.9. The KEV catalogue, kept by CISA, says that attacks on a flaw have really happened.
What is virtual patching, and who decides to leave a weakness untreated?
Virtual patching puts a rule in front of the flawed system, for example on a firewall, that blocks the traffic an attack would send. The flaw is still there; the rule buys time. Leaving a weakness untreated is accepting the risk, a decision for the system's owner, written down with a date for review.
Which question does each of vulnerability, patch, configuration and change management answer?
Vulnerability management: which weaknesses exist, and what will be done about each. Patch management: how repairs reach every system safely. Configuration management: is each system still set up as approved. Change management: was this alteration reviewed, approved and recorded. Patch management sits inside vulnerability management.
Sources
- NIST SP 800-40 Rev. 4: Guide to Enterprise Patch Management Planning, NISTPatch management as identifying, prioritising, acquiring, installing and verifying patches; testing before deployment; phased deployment; emergency patching and mitigation; assets that cannot be patched; the four risk responses.
- NIST CSRC Glossary: Common Vulnerabilities and Exposures, NISTCVE as a list of publicly known vulnerabilities, each entry with an identification number, a description and a public reference.
- Common Vulnerability Scoring System v4.0: Specification Document, FIRST (Forum of Incident Response and Security Teams)The CVSS score range of 0 to 10 and the severity ratings None, Low, Medium, High and Critical with their score bands.
- CISA Known Exploited Vulnerabilities Catalog, CISAThe Known Exploited Vulnerabilities catalogue as CISA's list of vulnerabilities exploited in the wild, to be used as an input to prioritisation.
- Virtual Patching Cheat Sheet, OWASP FoundationVirtual patching as a layer that prevents the exploitation of a known vulnerability while the real fix is not yet applied.
- Update release cycle for Windows clients, MicrosoftMicrosoft's monthly security update on the second Tuesday of each month, and out-of-band updates released outside that schedule.