Utkarshwriting · building · reflecting
technical

Operationalizing VMDR – Part 1: Asset Inventory Reconciliation Before You Onboard

Asset inventory reconciliation before VM onboarding: match CMDB, cloud, EDR and scanner records into a golden record, assign owners and track data quality.

  • vulnerability-management
  • vmdr
  • asset-inventory
  • cmdb
  • caasm
  • data-quality

This is Part 1 of Operationalizing VMDR, a new series on the unglamorous engineering that decides whether a vulnerability management platform works in practice. It starts with asset inventory reconciliation: taking the four or five inventories every enterprise already has, working out which records describe the same machine, and producing one trusted list before you onboard anything to a VM platform. Get this wrong and every later metric, from coverage to remediation time, inherits the error.

A Short Scene at Exalted Jupiter

Krishna, our patching lead, dropped a spreadsheet into the chat. “Four numbers for the same estate. The CMDB says one thing, the EDR console another, the cloud accounts a third and last quarter’s scan a fourth. Which one do I patch against?”

Shaurya from platform engineering replied before I could. “None of them on its own. Half the cloud instances in that CMDB export were terminated months ago. The EDR count includes laptops that haven’t checked in since spring. And the scanner counted some servers twice because they have two network cards.”

“So we pick the biggest number and call it coverage?” Krishna asked.

“If we do that,” I said, “we’ll onboard ghosts, miss real machines and spend the next year arguing about denominators.”

That was the moment we stopped treating onboarding as a licensing exercise and started treating it as a data problem.

The rest of this post is the technical version of what we built next.

Why Asset Inventories Disagree

Every inventory is correct about what it can see and wrong about what it can’t. They disagree because each one was built for a different job, collects data in a different way and refreshes on a different schedule.

Source What it’s good at Typical blind spots
CMDB Business context, ownership, application mapping, lifecycle status Often populated manually or by periodic discovery; lags reality; may keep retired items
Vulnerability scanner What responds on the network and what is vulnerable Only sees scanned ranges; unauthenticated scans give weak identity; duplicates from multiple interfaces
Cloud provider APIs (AWS, Azure, Google Cloud) Authoritative for what exists in an account right now Only covers accounts you’ve connected; no view of on-premises; short-lived resources churn constantly
EDR and endpoint management (Defender, CrowdStrike, Intune, Configuration Manager, Jamf) Rich, agent-reported identity and software data Only covers devices with the agent; stale check-ins linger; reimaging can create new records
Active Directory and Entra ID Joined and registered devices, naming, organizational units Computer objects outlive the machines; non-Windows and unmanaged devices are missing
Network sources (DHCP, IPAM, DNS, NAC) Everything that asked for an address or connected IP and hostname churn; little or no ownership; hard to tell one device from another

None of these is “the” inventory. Each is a witness with a particular vantage point. Reconciliation is the process of cross-examining the witnesses.

Standards bodies say the same thing in different words. CIS Control 1 asks organizations to “actively manage (inventory, track, and correct) all enterprise assets” across physical, virtual, remote and cloud environments, which the control’s own description links to identifying unauthorized and unmanaged assets. The NIST Cybersecurity Framework 2.0 lists “Inventories of hardware managed by the organization are maintained” as ID.AM-01. Neither tells you how to merge five conflicting lists. That part is engineering.

Source Trust and Confidence

Before matching anything, decide how much you trust each source and for what. Trust is not a single ranking. A cloud API is the best witness for whether an instance exists, but a poor witness for who owns it. The CMDB may be the best witness for ownership, but a poor witness for whether the machine is still running.

A practical way to capture this is a confidence model per source and per attribute:

  • Existence: does this source prove the asset is real and present? Cloud APIs, recent EDR check-ins and recent authenticated scans score high. DHCP leases and stale directory objects score low.
  • Identity: does this source provide strong identifiers? Agent IDs, cloud instance IDs and hardware serials score high. IP addresses score low.
  • Freshness: when did this source last see the asset? A record seen yesterday is worth more than one seen last quarter.
  • Context: does this source provide owner, application, environment or criticality? The CMDB and cloud tags usually win here.

Score each source honestly. A source you rate highly for identity but which updates monthly still produces stale answers.

Matching Keys and Their Pitfalls

Correlation depends on keys that two sources share. Some are strong, some are weak, and almost all of them break in specific, predictable ways.

Key Strength Where it breaks
Cloud instance or resource ID Strong within a cloud Changes when an instance is replaced; autoscaling and rebuilds create new IDs for the “same” workload
Agent ID (EDR, VM agent) Strong while the agent is installed Reinstalls and reimaging create new IDs; agents baked into golden images can share IDs if images aren’t prepared
Hardware serial or BIOS UUID Strong for physical devices Virtual machines may report generic or cloned values; some vendors report placeholders
Directory object ID (AD/Entra) Strong for joined devices Objects outlive machines; rejoining creates a new object
MAC address Medium Multiple interfaces per device; docking stations and USB adapters shared between laptops; randomized MACs on mobile devices
FQDN or hostname Medium to weak Reused names after rebuilds; default names on new devices; inconsistent domain suffixes
IP address Weak DHCP churn, NAT, overlapping private ranges, load balancers and VPN pools

Vendor documentation describes these failure modes candidly. Rapid7’s correlation documentation lists causes of over-correlation including generic hostnames, “reused identifiers on short-lived or ephemeral assets,” and “shared hardware identifiers, such as MAC addresses from docking stations,” and describes a “correlation cascade,” where record A matches B on one key and B matches C on another, merging all three. Tenable’s duplicate assets guidance explains that when an uncredentialed scan can’t retrieve an asset’s unique ID, the platform may treat it as new and create a duplicate.

The common pitfalls fall into a few patterns:

  • DHCP churn: the same IP belongs to different devices over a week. Never use IP alone as a match key for endpoints.
  • Cloned images: virtual machines built from one template can share identifiers such as machine IDs or agent IDs unless the image is generalized correctly before capture.
  • NAT and overlapping ranges: two different devices in two network segments can share a private IP. Match within a network scope, not globally.
  • Reused hostnames: a server rebuilt with the same name is a new machine with a new history. Treat a name match with a different hardware or cloud ID as a replacement, not a continuation.
  • Ephemeral workloads: containers, autoscaling groups and short-lived build agents live for minutes or hours. Reconcile these at the workload or image level, as covered in the container vulnerability management story, rather than as individual hosts.

Building an Asset Inventory Reconciliation Model

The output of reconciliation is a golden record: one entry per real asset, built from the best available value for each attribute and linked back to every source record that contributed to it.

Three design decisions shape the model.

1. Source of truth per attribute

Pick the authoritative source for each attribute, not for the whole record. An illustrative example:

Attribute Primary source Fallback
Existence and state (cloud) Cloud provider API Recent agent check-in
Existence and state (on-premises) EDR or VM agent check-in Recent authenticated scan
Hostname Agent or OS-reported Directory, then DNS
Operating system and version Agent or authenticated scan Directory attribute
Owner and support group CMDB Cloud tags, then directory organizational unit
Business application CMDB Cloud tags
Environment (prod, test, dev) Cloud tags or CMDB Network zone
Network location and IPs Network sources and scanner Agent-reported interfaces

Your table will differ. The point is that each attribute has an explicit owner, and nobody argues about it in a meeting later.

2. Precedence and freshness rules

When two sources disagree on the same attribute, the rules decide. ServiceNow’s CMDB Identification and Reconciliation Engine is a well-documented example of this pattern. Its reconciliation rules specify “which discovery sources can update class attributes, and the precedence order among these discovery sources,” and its IRE data source rules let you prevent a source you don’t trust to create records from inserting them, while still allowing it to update records that exist. That distinction, trusted to update but not to create, is useful well beyond ServiceNow.

A simple precedence model has three rules:

  • A higher-priority source overwrites a lower-priority one for the attributes it owns.
  • A lower-priority source may fill an attribute only when the higher-priority value is missing or stale.
  • Low-confidence sources, such as DHCP or unauthenticated scans, may enrich records but not create golden records on their own.

3. Match rules in order of strength

Match on the strongest shared key first and stop when you find a confident match. Tenable’s documentation describes its own version of this as a hierarchy of identification attributes, ranked from authoritative identifiers such as cloud IDs and agent UUIDs down to network-scoped attributes such as MAC, FQDN and IP. Qualys CSAM documents identification rules for third-party imports that are evaluated in sequence, with different handling for single and multiple matches. The principle is the same across vendors: strong keys first, weak keys only within a scope and only as supporting evidence.

Orphans, Duplicates, Stale Records and Ghosts

Once matching runs, every record lands in one of a few buckets. Naming them helps, because each needs a different response.

Bucket What it means Typical response
Matched Seen by multiple sources that agree Golden record; onboard
Orphan Seen by one source only Investigate: unmanaged device, missing agent or an inventory gap
Duplicate One real asset, several records in one source Merge or exclude the obsolete record
Stale Not seen by any live source within the freshness window Confirm retirement; archive
Ghost Exists in a record system (CMDB, directory) but no live source has ever seen it Retire in the source system or prove it exists

Orphans deserve special attention because they are often the real risk. A device that only appears in DHCP and the network scan, with no agent and no CMDB entry, is exactly the kind of unmanaged asset CIS Control 1 is aimed at.

Platforms help with some of this. Microsoft Defender for Endpoint, for example, can hide potential duplicate device records based on hostname and last seen time, and documents excluding obsolete entries with a “Duplicate device” justification after reimaging. Qualys documents an agent correlation identifier that lets authenticated and unauthenticated scan results merge with agent data for the same host. These features reduce duplicates inside one tool. Cross-tool reconciliation is still your job.

Ownership Assignment

A reconciled asset without an owner is still a problem, just a better-documented one. Assign owners with a fallback chain rather than a single lookup:

  1. CMDB support group or application owner, if the record is fresh.
  2. Cloud account or subscription owner, plus resource tags.
  3. Directory organizational unit or management group.
  4. Network segment or site owner.
  5. A named triage queue for anything still unassigned.

Record which rule assigned each owner. When an owner disputes a record, you can show why it landed with them and fix the rule rather than the single record.

Treat “unknown owner” as a first-class state with its own queue, not as a blank field. That queue becomes a list of governance gaps to close, much like the unowned exposure debt described in the exposure debt metrics post.

A Practical Asset Inventory Reconciliation Workflow

Here is the pipeline we settled on. It runs on a schedule and can be rebuilt with whatever tooling you have: a data platform, a CMDB’s own engine, a CAASM product or a set of scripts.

  1. Pull. Collect records from each source through its API: cloud providers, EDR and endpoint management, directory, CMDB, scanner and network sources. Keep the raw payloads.
  2. Stage. Load each source into its own staging table with a common schema for keys and a timestamp for when the source last saw the asset.
  3. Normalize. Lowercase hostnames, strip domain suffixes into a separate field, standardize MAC formats, map OS names to a common list and drop known junk values such as placeholder serials.
  4. Match. Apply match rules from strongest to weakest key, within the correct network or account scope.
  5. Merge. Build or update golden records using the per-attribute precedence rules.
  6. Classify. Mark each golden record as matched, orphan, stale or ghost, and flag suspected duplicates.
  7. Route exceptions. Send orphans, ambiguous matches and unknown owners to an exception queue with a clear owner.
  8. Publish. Expose the golden records, with source lineage, to the VM platform and downstream reporting.

A simplified version of the matching step in pseudo-code:

for each staged_record in all_sources:
    normalize(staged_record)

    match = find_golden_by(cloud_instance_id, within=account)
         or find_golden_by(agent_id)
         or find_golden_by(hardware_serial, ignore=placeholder_serials)
         or find_golden_by(directory_object_id)
         or find_golden_by(mac_address, within=network_scope,
                           unless=shared_or_dock_mac)
         or find_golden_by(fqdn, within=network_scope,
                           only_if=recent_and_unique)

    if match is none:
        if source_can_create(staged_record.source):
            create_golden(staged_record)
        else:
            send_to_exception_queue(staged_record, reason="no match")
    elif match_is_ambiguous(match):
        send_to_exception_queue(staged_record, reason="multiple candidates")
    else:
        merge_attributes(match, staged_record, precedence_rules)

And an illustrative example of what that produces for one server:

Source Hostname Serial MAC Cloud or agent ID Last seen Contributes
CMDB APP01 ABC123 blank blank Months old Owner, application
EDR app01.corp.example ABC123 00:1A:… Agent ID Yesterday Existence, OS, hostname
Scanner app01 blank 00:1A:… Scanner host ID Last week Vulnerabilities, IP
Directory APP01 blank blank Object ID Last month Organizational unit

The serial links the CMDB and EDR records; the MAC links EDR and scanner within the same network scope; the hostname supports the directory match. The golden record takes existence and OS from EDR, owner and application from the CMDB and network data from the scanner.

Automation patterns that help

  • Incremental pulls. Pull changes since the last run where APIs support it, and run a full reconciliation periodically to catch drift.
  • Lineage on every field. Store which source and which rule produced each attribute.
  • Idempotent runs. Running the pipeline twice should produce the same result.
  • Exception queues with service levels. Ambiguous matches that sit unreviewed become permanent noise.
  • Write-back with care. Pushing reconciled data back into the CMDB is valuable, but respect the CMDB’s own identification and reconciliation rules rather than bypassing them.

CAASM platforms (cyber asset attack surface management) package much of this pattern: connectors to many sources, correlation, deduplication and a unified view. Examples include Axonius, Rapid7 Surface Command and Qualys CSAM, and exposure platforms from Tenable and Microsoft include their own inventory and deduplication logic. Whether you buy or build, the design decisions above still need to be made explicitly.

Data Quality Metrics

Track a small set of metrics from the first run. Define them once and keep the definitions stable.

Metric Definition Why it matters
Match rate Share of golden records confirmed by two or more independent sources Low values mean weak keys or missing sources
Single-source rate Share of golden records seen by only one source Highlights coverage gaps and possible unmanaged assets
Unknown-owner rate Share of golden records with no assigned owner Predicts remediation stalls later
Stale rate Share of records not seen by any live source within the freshness window Inflates denominators and hides real gaps
Duplicate rate Suspected duplicates as a share of records, per source Measures key quality inside each tool
Exception backlog age Age of the oldest unresolved exception Shows whether the process is actually running
Agent and scan coverage Share of in-scope golden records with an agent or authenticated scan The bridge to VM onboarding in Part 2

Set your own targets. What “good” looks like depends on how dynamic your estate is and how many sources you have.

Pitfalls We Hit

  • Trusting one source for everything. The CMDB was best for ownership and worst for existence. Treating it as the single truth imported every retired server.
  • Matching on IP. It looked tidy for a week and fell apart on the first DHCP cycle.
  • Over-correlation. One shared docking-station MAC merged several laptops into one record before we added an exclusion list.
  • Letting low-confidence sources create records. Network discovery created hundreds of thin records with no owner and no identity. Allowing it to enrich, but not create, fixed most of that.
  • No freshness window. Without a “last seen” rule, ghosts lived forever.
  • Skipping exception review. An unreviewed queue quietly became a second inventory.
  • Treating reconciliation as a project. Estates change daily. Reconciliation is a running process, not a one-time cleanup.

Asset Inventory Reconciliation: An Idealized Phased Approach

In an ideal world, a rollout might look like the phases below. It is an illustrative example, not a prescription. Each enterprise should tune the sequence, depth and pace to its own risk appetite, tolerance, tooling and team capacity, and there is deliberately no timeline attached.

  1. Agree on definitions. What counts as an asset, which classes are in scope first and what the freshness window is.
  2. Connect the strongest sources. Cloud APIs and agent-based sources first, because they give strong identity and existence.
  3. Add context sources. CMDB, directory and tags for ownership and business context.
  4. Add network sources. DHCP, IPAM and scanner discovery to find what the managed sources miss, allowed to enrich but not to create on their own.
  5. Publish metrics and exceptions. Make match rate, unknown-owner rate and stale rate visible, and staff the exception queue.
  6. Write back and close loops. Feed corrections into the CMDB and retire ghosts in their source systems.
  7. Onboard to the VM platform. Use golden records, not raw source lists, as the onboarding scope.

For organizations working to a mandate, regulatory cadence can shape these choices. For US federal civilian agencies, for example, CISA BOD 23-01 requires automated asset discovery every 7 days and initiating vulnerability enumeration across discovered assets every 14 days. Even outside that scope, it is a useful reference point for how often discovery and enumeration are expected to run.

Closing Thoughts

Krishna’s four numbers were never going to agree, and they didn’t need to. What he needed was one reconciled list with a clear owner on each line and a reason for every exclusion. Asset inventory reconciliation turns that from an argument into a process. It also makes the later work, from prioritization to attack path analysis, far more reliable, because both depend on knowing which machine is which.

Next in the series: Part 2 covers normalization and onboarding: how to turn golden records into a clean VM platform scope with consistent tags and asset groups, so findings land with the right owner from day one, with agent vs network scanning following in Part 3.

References and Further Reading

About the author

Vulnerability Management @ Philips. Writing on cybersecurity, security automation, and the inner life — from Bengaluru, building in public since 2014.

Connect on LinkedIn →

Related posts