On this page · 7 sections
- Why a software inventory is the control that sets your patch speed
- What counts as an asset when the vulnerability is in a runtime
- How to build the inventory, in order
- What evidence an auditor or enterprise buyer will ask to see
- Mistakes that turn inventory gaps into findings
- How this differs by size, stage and framework
- Common questions about building a software inventory for patching
To build a software inventory for patching, you need a list that answers one question under pressure: which running systems contain a specific version of a specific component, and who owns each of them. That means inventorying runtimes and libraries, not just hostnames and laptops, pulling the data automatically from the places that already know the answer (your build pipeline, container registry, cloud provider and endpoint agent), and refreshing it on a schedule rather than at audit time. If you cannot produce that list within a day of a critical advisory landing, the inventory is the problem, not the patch.
Why a software inventory is the control that sets your patch speed
On 17 November 2026, CISA urged immediate patching of CVE-2026-114938, a critical memory corruption flaw in the Base64 decoder of the x86-64 HotSpot JVM shipped with the JDK, where crafted Base64 input can crash the JVM and allow unauthenticated remote code execution. Canada's Cyber Centre issued its own alert the same day. The first recommended action in the CISA alert was not "patch", it was "identify affected Java installations by reviewing software inventory."
That ordering is the whole lesson. Base64 decoding sits on the path of almost everything a SaaS backend touches: bearer tokens, JSON payloads with embedded blobs, webhook signatures, file uploads, image data URIs. Assume attacker-controlled input reaches a decoder somewhere in your stack. Applying a JDK update is a twenty minute job per service. Knowing that you have nineteen services, four of which run a vendor-supplied container with a JRE baked in, and one of which is a reporting appliance nobody has logged into since 2024, is the part that takes two weeks when you have no inventory.
Enterprise security reviewers read the gap the same way. When a buyer's third party risk team asks how quickly you responded to the most recent critical CVE, a confident answer with timestamps is a strong signal. A vague answer tells them your asset management control exists on paper. It is the same conclusion an auditor reaches when testing CC6.1 or CC7.1 evidence.
What counts as an asset when the vulnerability is in a runtime
Most startup inventories were built to answer an HR question: who has which laptop. That list is useless for a JVM advisory. A patching inventory needs a different unit of record. For each running thing, you want:
- The deployable unit: service name, container image and tag, lambda or function name, VM instance, SaaS appliance.
- Where it runs: cloud account, region, cluster, namespace, or "on a rack in the office".
- The runtime and its version: JDK 21.0.4, Python 3.12.2, Node 20.14. Major version alone is not enough, since advisories are patched at the point release.
- Third party components inside it: direct and transitive dependencies with resolved versions, which is what a software bill of materials gives you.
- Base image lineage: the parent image and its digest, because that is where unmanaged runtimes hide.
- Internet exposure: is this reachable from the public internet, from a customer tenant, or only from inside the VPC.
- A named owner: a person or team, not "engineering".
The exposure field and the owner field are what turn a list into a triage tool. When the advisory says unauthenticated remote code execution, you patch internet-facing services that parse untrusted input first, internal services next, and batch jobs behind a private subnet after that. Without exposure data you patch alphabetically, which is how a 48 hour window becomes a two week project.
How to build the inventory, in order
Do this in the order below. Each step produces something usable on its own, so you are never three weeks into a project with nothing to show.
- Start from the deploy pipeline, not a spreadsheet. Everything you ship passes through CI. Add a step that generates an SBOM for each image or artefact at build time and stores it with the build record. CycloneDX or SPDX format, generated by a scanner that reads your lockfiles and the container filesystem. This gives you ground truth for anything built in the last 90 days.
- Enumerate what is actually running. Build time data tells you what you created. Query the orchestrator and the cloud APIs for what is live: running images by digest, EC2 or Compute Engine instances with their AMIs, serverless function runtimes. Reconcile the two lists. The deltas are usually long-lived instances that were never redeployed, and those are the ones carrying the old JDK.
- Walk the base images. For each image in your registry, record the parent. A team that uses a vendor image or an official language image inherits whatever runtime is in it. In the Java case, a service written in Go can still contain a JRE if the base image includes one for a sidecar tool.
- Catch the things outside the pipeline. Vendor appliances, self-hosted CI runners, the BI tool someone installed on a VM, the on-prem connector shipped to one enterprise customer. These will not appear in any automated scan you have today. List them manually once, assign each an owner, and record how that owner learns about security updates.
- Add endpoints. Your MDM or endpoint agent already reports installed software on laptops. Developer machines commonly run multiple JDKs. For a workstation-exploitable bug, that list matters.
- Join it to a vulnerability feed. An inventory that nobody queries decays. Wire the SBOM store into a scanner that matches components against CVE data daily and files a ticket when something critical matches a running image.
- Set a refresh cadence and a review owner. Monthly reconciliation for cloud assets, quarterly for the manual list of appliances and vendor-managed systems.
A 30 person SaaS company with a single cloud account can get through steps one to five in about a week of focused work. The output does not need to be a product. A generated JSON file in object storage with a query script beats a Notion page that was last edited in March.
Free weekly email
Get The Compliance Brief every Tuesday
One email a week from Jacob Masse: the security and compliance stories that changed something that week, and what each one means if you sell software to enterprise buyers. Five stories, a take on each, five minutes to read.
Free. Unsubscribe in one click, and replies reach Jacob directly. Read the latest issue or browse the archive.
What evidence an auditor or enterprise buyer will ask to see
Both audiences want the same four things, phrased differently.
- The inventory itself, with a timestamp and a generation method. An auditor sampling asset management will pick five records and ask you to prove each is accurate and complete. Generated beats hand-maintained because completeness is provable.
- A vulnerability management policy with defined remediation windows, usually something like critical in 7 days, high in 30, medium in 90. Then evidence that you met them. Our note on how fast you need to patch critical vulnerabilities for SOC 2 covers how to set windows you can actually hit.
- A worked example of a real advisory: the alert, the inventory query that identified affected systems, the tickets, the deploy records and the rescan showing the version changed. One well documented response to a CVE like the Java Base64 flaw is worth more in a security review than a page of policy text.
- Owner assignment, because an auditor testing timeliness needs to see who was accountable. Enterprise buyers increasingly ask the same thing at the organisational level, which is why a named security owner comes up so often in deal reviews.
One artefact people forget: evidence for the systems you decided not to patch. If a component is affected but unreachable, document the reasoning and the compensating control. An undocumented decision looks identical to an oversight when the auditor pulls the sample.
Mistakes that turn inventory gaps into findings
The patterns below show up repeatedly in readiness work.
- Inventorying hosts instead of software. A list of 40 EC2 instances does not tell you which contain JDK 21.0.3. You need component-level data.
- Trusting lockfiles alone. Dependency manifests miss anything installed by the OS package manager or baked into the base image. Scan the built artefact, not just the repository. The same logic applies to transitive risk in your npm dependency tree, where the thing that bites you is three levels down.
- No owner for vendor appliances. Self-hosted vendor software is the most common blind spot, and it is also where patching is slowest because you wait for the vendor. If one is exposed and you had to patch it late, read how to check whether an edge appliance was compromised before you patched, because patching does not evict an attacker who was already in.
- Treating the inventory as an audit deliverable. A list assembled in the two weeks before fieldwork is accurate for about a month. Auditors testing a Type 2 period will sample dates throughout the window.
- Ignoring customer-deployed software. If you ship an agent, connector or on-prem edition, your inventory has to include versions in the field and a way to notify those customers.
How this differs by size, stage and framework
At under 30 people with one cloud account and no self-hosted software, automated SBOM generation plus a registry scan covers almost everything. The manual list is short enough to keep in the same repository as your infrastructure code.
Between 50 and 200 people the problem becomes ownership rather than tooling. Multiple teams, multiple accounts, acquired codebases and at least one legacy service nobody wants. Here the fix is a named owner per service enforced at deploy time: no owner tag, no deploy. That single rule does more for patch response than buying another scanner.
On frameworks: SOC 2 does not prescribe an asset inventory by name, but the common criteria around change management, vulnerability management and logical access all assume you know what you run, so gaps surface as exceptions in several places at once. ISO 27001 is explicit. Annex A control 5.9 requires an inventory of information and associated assets with assigned owners, and 8.8 covers management of technical vulnerabilities, so a certification auditor will ask for the inventory directly and test ownership. For HIPAA, the inventory needs to identify which systems store or transmit PHI, because that classification drives your risk analysis. If you are early and deciding what to stand up first, the ordering in our SaaS security checklist before going enterprise puts asset inventory ahead of most tooling purchases for exactly this reason.
Common questions about building a software inventory for patching
Is an SBOM the same thing as a software inventory?
No. An SBOM describes the components inside one artefact, while a software inventory tells you which artefacts are running, where, and who owns them. You need both: SBOMs give you component-level depth, the inventory gives you the deployment context that turns a CVE match into a prioritised list. In practice the inventory is the index and the SBOMs are the detail it points at.
What tools do I need to build one?
Most companies under 200 people can do this with tools they already have: an SBOM generator in CI, the container registry's own scanning, cloud provider inventory APIs, and the endpoint agent from their MDM. A dedicated cloud security posture or vulnerability management platform helps once you pass a few hundred workloads or multiple cloud accounts. Buying a platform before you have defined asset ownership gives you a dashboard full of findings nobody is accountable for.
How often should the inventory be refreshed?
Automatically generated portions should refresh on every build and at least daily for running workloads, because stale data is the failure mode. The manual portion covering vendor appliances, on-prem installs and anything outside the pipeline needs a documented quarterly review with a named reviewer. Auditors testing a Type 2 period will look for evidence that the review happened on cadence through the whole window, not once at the start.
What if we find affected systems we cannot patch quickly?
Document the exposure, apply a compensating control such as removing internet reachability or adding a WAF rule that blocks the attack pattern, set a dated remediation plan, and get it approved by whoever owns risk. An exception with a decision record and a deadline is a defensible control. The same unpatched system with no paperwork becomes an audit finding and an awkward answer in the next enterprise security questionnaire.
This started as a story in The Compliance Brief. Every Tuesday, Jacob picks the five security and compliance stories that change something for a company selling to enterprise buyers, and says what to do about each. This one was in issue 16.
Get the Brief every Tuesday