<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
  <title>Francesco Manzoni</title>
  <link href="https://francescomanzoni.com/feed.xml" rel="self"/>
  <link href="https://francescomanzoni.com/"/>
  <id>https://francescomanzoni.com/</id>
  <updated>2026-11-21T15:56:19+00:00</updated>
  <author><name>Francesco Manzoni</name></author>
  
  <entry>
    <title>Vulnerability data is a data engineering problem</title>
    <link href="https://francescomanzoni.com/writing/2026/vulnflow/"/>
    <id>https://francescomanzoni.com/writing/2026/vulnflow/</id>
    <updated>2026-11-09T00:00:00+00:00</updated>
    <content type="html">&lt;p&gt;If you work with public vulnerability data, you will probably clean it before you can analyse it. The NVD, CISA’s Known Exploited Vulnerabilities list, EPSS and CWE each publish in their own format, on their own schedule, with their own gaps. Someone has to join them, fix the dates and work out which record is current. Then the run takes so long that nobody wants to repeat it.&lt;/p&gt;

&lt;p&gt;Data engineering has dealt with this problem for decades. Its usual shape is ETL: extract the data, transform it, and load it somewhere others can use it. The habits are old and mostly boring, and security does not use many of them. I think it should. This post argues for two of them, and shows what they look like in the tools I have built.&lt;/p&gt;

&lt;h2 id=&quot;why-i-built-vulnflow&quot;&gt;Why I built VulnFlow&lt;/h2&gt;

&lt;p&gt;Two things drove it. The public feeds are messy, and a full run took long enough that people stopped repeating it. &lt;a href=&quot;https://github.com/corifeo/VulnFlow&quot;&gt;VulnFlow&lt;/a&gt; started as a way to do the cleaning once, in code, and reuse the result.&lt;/p&gt;

&lt;p&gt;I had tried a version of this before. I published a consolidated dataset on &lt;a href=&quot;https://www.kaggle.com/datasets/francescomanzoni/vulnerability-management-datasets&quot;&gt;Kaggle&lt;/a&gt;, covering the CVE, CISA KEV and EPSS feeds. There were not many consolidated datasets at the time, so a snapshot was useful. A snapshot is still fixed. It holds one view of the data, built one way, on the day it was made. An organisation that needs its own context cannot change how it was built, so the approach stops working for it.&lt;/p&gt;

&lt;p&gt;The feeds also run out where the context begins. A public record describes the flaw. It does not say whether the flaw can be reached in your environment, whether attackers use it against systems like yours, or what the affected service does for the business. Tools fill those gaps for their customers, each with its own method.&lt;/p&gt;

&lt;p&gt;I wanted something that could be run again, with each organisation’s own logic added to it.&lt;/p&gt;

&lt;h2 id=&quot;separate-raw-data-from-logic&quot;&gt;Separate raw data from logic&lt;/h2&gt;

&lt;p&gt;Raw data is what the publisher gave you, unchanged. The NVD record for a CVE is raw data. Logic is everything you add on top: your own rating for a CVE, a rule for which sources you trust, or a flag for CVEs that need a second review. The two should not share a stored table.&lt;/p&gt;

&lt;p&gt;The reason is practical. Logic changes, and when it does you rerun it from the raw data. If the raw data was overwritten with enriched values, you cannot tell what came from the publisher and what came from a rule. You cannot check the rule either, because its inputs have gone.&lt;/p&gt;

&lt;p&gt;In VulnFlow, each stage has a name. Extractors read the feed. Transforms add attributes, normalise values or apply rules. Loaders write the result out, for example to Parquet, which a warehouse or lake can read. An organisation writes its own transform classes and keeps them under version control, next to the code that runs them. The core carries no risk scoring, so the weightings and rules are the organisation’s, and so is the accountability for them.&lt;/p&gt;

&lt;h2 id=&quot;enrich-progressively-and-make-every-run-safe-to-repeat&quot;&gt;Enrich progressively, and make every run safe to repeat&lt;/h2&gt;

&lt;p&gt;Enrichment happens in stages. The raw feed comes first. A transform then adds the KEV listing, another adds your own rating for each CVE, and a third records the decisions already taken on it. Each stage reads the output of the one before it and writes something new. Nothing is changed in place.&lt;/p&gt;

&lt;p&gt;That only works if each stage is idempotent. A step is idempotent when running it twice gives the same result as running it once. The idea is simple, and its consequence is sharp: a step that is not idempotent changes the data each time it runs, and nobody knows by how much.&lt;/p&gt;

&lt;p&gt;I found this in my own build. The update recipe loaded the existing library, fetched the CVEs that NVD had modified, and merged the two with a plain concatenation. The merge did not check for duplicates, so every modified CVE appeared twice. That added about 12,000 rows, roughly 6% inflation in the counts for recent years. The recipe had no guard against a second run, so the same rows could be added again. The fix was an upsert keyed on the CVE identifier, where the newer record replaces the older one. Given the same input, the step now gives the same output.&lt;/p&gt;

&lt;p&gt;For security, the point is about trust. A count that changes each time a job runs is not evidence. If a number on a dashboard cannot be reproduced from the raw feed and the rules, nobody should act on it.&lt;/p&gt;

&lt;h2 id=&quot;what-security-teams-get&quot;&gt;What security teams get&lt;/h2&gt;

&lt;p&gt;Security teams do not need to build a pipeline to benefit from one. They need to know what it can answer, and where its answers stop.&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://github.com/corifeo/VulnTriage&quot;&gt;VulnTriage&lt;/a&gt; is one example built on the data. It takes a ranked queue and walks the analyst through the SSVC decision points, with the evidence shown beside each question. The analyst still makes the call. Mission and well-being depend on the organisation, and no public feed knows your assets. &lt;a href=&quot;https://github.com/corifeo/VulnAnalyst&quot;&gt;VulnAnalyst&lt;/a&gt; is another. It answers vulnerability questions from a local library, and it says when its data is partial.&lt;/p&gt;

&lt;p&gt;Both are examples, not the point. The point is the layer underneath, which lets an organisation add its own logic without rebuilding the feed each time.&lt;/p&gt;

&lt;p&gt;The context that matters most is the organisation’s own view of each CVE: its rating, the sources it trusts and the decisions already taken. Those can be transforms, written and versioned by the organisation, and a weighting can live there too. Once it is code, someone has to own it, review it and explain it when it is wrong. That is the same accountability any control needs.&lt;/p&gt;

&lt;p&gt;This is still a vulnerability database, not an asset inventory. VulnFlow does not know what runs where. Matching CVEs to assets is a separate job, done against the organisation’s own asset records, and that match is where a list of what is actually exposed comes from.&lt;/p&gt;

&lt;h2 id=&quot;vendors-fill-the-gaps-with-scores&quot;&gt;Vendors fill the gaps with scores&lt;/h2&gt;

&lt;p&gt;The feeds describe a flaw. They rarely describe your exposure to it. Whether a flaw can be reached from outside, whether attackers use it against systems like yours, and what the affected service does for the business all sit outside the public record.&lt;/p&gt;

&lt;p&gt;Most tools do not hold that data either. A static analysis tool sees code, not a running system. Its customers still expect it to rank findings on its own, so the vendor publishes an exploitability score built from what the tool can measure.&lt;/p&gt;

&lt;p&gt;Each vendor fills the same gaps with its own method. The same CVE can rank high in one product and low in another, and the difference comes from the methods, not from the organisation the scores are meant to serve.&lt;/p&gt;

&lt;p&gt;I think firms should fill these gaps with their own data. Keep the raw sources unchanged, add the organisation’s view of each CVE in transforms it owns, and build the scores, datasets and dashboards that teams use on top. Those outputs should give the same answer each time they run. Matching them to assets stays a separate step. A vendor score can be one input, but it should not decide the priority list. Until firms do this, the priority list will say more about the vendor than about the organisation.&lt;/p&gt;
</content>
  </entry>
  
  <entry>
    <title>Threat modelling in the age of AI</title>
    <link href="https://francescomanzoni.com/writing/2026/threat-modelling/"/>
    <id>https://francescomanzoni.com/writing/2026/threat-modelling/</id>
    <updated>2026-08-28T00:00:00+01:00</updated>
    <content type="html">&lt;p&gt;An agent can threat model your software now. Point it at the code and the architecture and within minutes it will list the data flows, the threats and the mitigations, and the result is often decent. So does threat modelling still need a human in the loop?&lt;/p&gt;

&lt;p&gt;I think it does, and the reason is where the agent’s knowledge comes from. LLMs are trained on industry best practice and on what experts and firms choose to disclose, and that record is filtered by how people want to be seen. Data about breaches also suffers from survivorship bias, among other things. An agent sees the shadows on the wall of Plato’s cave. It has never seen what cast them.&lt;/p&gt;

&lt;h2 id=&quot;the-car-analogy&quot;&gt;The car analogy&lt;/h2&gt;

&lt;p&gt;Think of your software as a car. If you threat model it one part at a time, looking at how the locks, the engine, the brakes and the steering are built, you can infer a fair amount about what could go wrong with each. That is what an agent does with your services, APIs and data stores, and it does it better than people do.&lt;/p&gt;

&lt;p&gt;In the real world things are more complicated. Electric motors are almost silent, which by any engineering measure of a motor is an improvement, yet &lt;a href=&quot;https://eur-lex.europa.eu/eli/reg/2014/540/oj/eng&quot;&gt;new electric cars sold in the EU&lt;/a&gt; must now make artificial noise at low speed, and the &lt;a href=&quot;https://www.govinfo.gov/app/details/PLAW-111publ373&quot;&gt;US has its own law&lt;/a&gt;. A car you can’t hear is a danger to anyone stepping off the kerb while looking at their phone.&lt;/p&gt;

&lt;blockquote&gt;
  &lt;p&gt;Nothing in the engine would have told you that.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Your software has quiet motors too, features that work exactly as designed and become the hazard once they meet customers, attackers and regulators. Threat modelling looks across the parts and out at the street, where the rubber meets the road. An agent knows about quiet cars because that consequence happened and someone wrote it down. Several steps away from your code, it is guessing. The agent looks at the engine and sees the car. The human in the loop looks at the engine and sees the distracted pedestrian in a loud city.&lt;/p&gt;

&lt;h2 id=&quot;what-the-agent-has-read&quot;&gt;What the agent has read&lt;/h2&gt;

&lt;p&gt;An agent knows your code and the public record of how security usually gets done, but people share what they are happy to be seen sharing, and the ones sharing are the ones who came through well enough to talk about it. Firms might publish how they were breached, but seldom how they could have prevented it or exactly which controls failed. Even what M&amp;amp;S and Jaguar Land Rover told MPs stays at the high level, so you can point to the area that failed, but not to the chain of controls or to the wrong assumption that gave a sense the risk was managed when it wasn’t, which is the detail an engineer would need to turn it into a specific lesson learned.&lt;/p&gt;

&lt;p&gt;Regulators publish more, sometimes in painful detail, when a case &lt;a href=&quot;https://handbook.fca.org.uk/handbook/enfg4&quot;&gt;ends in a final notice&lt;/a&gt;. But that tells an agent how the case ended, not what was asked along the way or what was accepted as evidence of good behaviour. Those conversations stay private, because the &lt;a href=&quot;https://www.legislation.gov.uk/ukpga/2000/8/section/348&quot;&gt;law limits&lt;/a&gt; what the regulator can disclose and few firms would choose to publish them. That makes the people who were in the room with the regulator especially valuable.&lt;/p&gt;

&lt;h2 id=&quot;the-room-where-it-happens&quot;&gt;The room where it happens&lt;/h2&gt;

&lt;p&gt;An agent can list the threats and put a rating on each one, and the rating is where experience counts. Someone who has been through a breach or a regulatory inquiry was in the room where it happens, to borrow from Hamilton, and has seen which risks turned out to matter, what a regulator asked, what a CEO challenged and which answers held up. Those scenarios are confidential, so an LLM won’t have been trained on what was said there, and the most it can do is guess. Put that person in the threat model and they bring all of that to the ratings.&lt;/p&gt;

&lt;h2 id=&quot;bob-from-it&quot;&gt;Bob from IT&lt;/h2&gt;

&lt;p&gt;None of this is peculiar to security. Any field that builds new things leans on precedent, and a lot of that precedent sits with people rather than in documents.&lt;/p&gt;

&lt;p&gt;I am paraphrasing something I have heard many times, but you know who I mean: Bob from IT, who has been there forever. Every company has one. He is the only person left who knows how something works, and he answers every question himself because it is faster than teaching anyone else. He is getting older, and everybody, Bob included, agrees this is a bad model. It is often part of why firms adopt AI. But even if an agent interviewed Bob every day until he retires, it would never extract all the context that makes him valuable, because nobody has a list of the thousand options Bob tried before settling on the current solution. The only way to get that would be to copy his brain one to one, like in Dennis E. Taylor’s Bobiverse novels, where a man called Bob dies and wakes up with his mind uploaded into a space probe. Until someone builds that, you want Bob in the room when you threat model.&lt;/p&gt;

&lt;h2 id=&quot;not-one-or-the-other&quot;&gt;Not one or the other&lt;/h2&gt;

&lt;p&gt;A threat model cuts across the organisation as well as the system, and that is where qualitative and quantitative risks get weighed together. An agent can do great work at the micro level, and I would let one write the first draft. It will never replace the experience and the ability to contextualise. It will never replace Bob.&lt;/p&gt;
</content>
  </entry>
  
</feed>
