zerohop/blog

$ cat vulnerability-report-people-read.md · 28 Nov 2026 · 4 min read

A vulnerability report people actually read

#defender#kql#python#reporting

Defender Vulnerability Management knows every CVE on every device. Export that and you get a spreadsheet with tens of thousands of rows that nobody opens twice. The portal has the data, but not the story, and certainly not the story of last month compared with this one.

So the monthly meeting usually goes the same way: someone shares the portal, everyone looks at a big number of open CVEs, and nobody knows whether it's better or worse than last time. I wanted a report that answers three questions in the first minute: are we getting better, where is the real risk, and what do we do first?

The cover and executive summary. All screenshots use the invented Contoso demo tenant: no real customer data anywhere.
The cover and executive summary. All screenshots use the invented Contoso demo tenant: no real customer data anywhere.

What it does

One command per customer, once a month:

bashpython3 -m vmreport --config Fabrikam/Fabrikam.toml

It runs about 40 KQL queries through the Microsoft Graph hunting API, builds one HTML report and a PDF per device group, and saves the numbers of that run in a history file for the trends.

Start with the answer

The executive summary is one screen: a status per theme (patching, vulnerabilities, end of support, Defender health, threats), what got better and what got worse since the last meeting, and five key findings with a link to the details. The rest, more than twenty sections, is for the people who will do the work.

The trick that makes "what changed" possible is boring: Defender keeps no history of the vulnerability tables. If you want trends, you have to save them yourself. Every run stores its numbers, and the report compares with the last run of the previous month.

Trends: which critical exploitable CVEs are new and which are solved since last month, and the patch status month by month.
Trends: which critical exploitable CVEs are new and which are solved since last month, and the patch status month by month.

Real risk, not just CVSS 9

A CVSS score says how bad a vulnerability could be. It doesn't say whether anyone is using it. So the report looks at it from several sides: is there a public exploit, what's the EPSS probability that it gets exploited, and is the device reachable from the internet. Those come together in one list: what to patch first. The sections by CVSS and by EPSS are still there, for the people who want to see each view on its own.

Exceptions that don't rot

Every environment has risks that were accepted for a reason. "WinRAR is being removed with Intune." "PHP only runs on an isolated test server." Fine, but six months later nobody remembers who said that, or whether it's still true.

So exceptions live in an Excel register per customer, each with a reason and an end date. While it's active, the CVE is left out of the numbers. Once the end date passes, it counts again, and the report shows it as expired, with its impact right now. It's the first section of the meeting, on purpose.

Exceptions to review: every accepted risk with its reason, end date and current impact. An expired one is counted again.
Exceptions to review: every accepted risk with its reason, end date and current impact. An expired one is counted again.

The same register keeps the follow-up items: what was agreed last time, and whether it moved. That turns the report from a snapshot into a conversation that continues month to month.

Is Defender itself OK?

A vulnerability report assumes the agent is working. That's worth checking: antivirus in passive mode with no other antivirus, signatures older than a week, a platform version months behind, devices without EDR telemetry, devices on the network that were never onboarded. One table shows per control how many devices are fine, coloured green, orange or red.

Defender health: the pain points per control, the antivirus mode, and how fresh the updates are.
Defender health: the pain points per control, the antivirus mode, and how fresh the updates are.

And what are attackers trying?

The last section looks at the alerts of the past month along the MITRE ATT&CK kill chain. Most alerts stop at initial access: phishing that was caught. The interesting number is the one next to it: how many got further. That's the line that tells a manager whether the controls are working.

Threat activity: the alerts along the kill chain, and how many got past initial access.
Threat activity: the alerts along the kill chain, and how many got past initial access.

What I learned

← all posts