<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Apurv Tyagi</title>
    <description>The latest articles on DEV Community by Apurv Tyagi (@apurv_tyagi_5e3b073593430).</description>
    <link>https://dev.to/apurv_tyagi_5e3b073593430</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F2188556%2F4e4398fc-2720-441b-9aa9-76b11a467bc6.jpg</url>
      <title>DEV Community: Apurv Tyagi</title>
      <link>https://dev.to/apurv_tyagi_5e3b073593430</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/apurv_tyagi_5e3b073593430"/>
    <language>en</language>
    <item>
      <title>Why your vulnerability dashboard is lying to you (and how to fix it)</title>
      <dc:creator>Apurv Tyagi</dc:creator>
      <pubDate>Sat, 23 May 2026 04:30:20 +0000</pubDate>
      <link>https://dev.to/apurv_tyagi_5e3b073593430/why-your-vulnerability-dashboard-is-lying-to-you-and-how-to-fix-it-ja7</link>
      <guid>https://dev.to/apurv_tyagi_5e3b073593430/why-your-vulnerability-dashboard-is-lying-to-you-and-how-to-fix-it-ja7</guid>
      <description>&lt;p&gt;You open your vulnerability dashboard on a Monday morning and see 47 critical CVEs &lt;br&gt;
across 12 assets. By Thursday, your team has patched 11 of the 12 assets. But the &lt;br&gt;
dashboard still shows 40 criticals. What happened?&lt;/p&gt;

&lt;p&gt;The assets were patched. The dashboard doesn't know that, because the vulnerability &lt;br&gt;
scanner sees a different record than the asset your team was tracking. The same &lt;br&gt;
physical server exists in your tools as:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Tool&lt;/th&gt;
&lt;th&gt;Identifier&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;AWS&lt;/td&gt;
&lt;td&gt;&lt;code&gt;i-0a1b2c3d4e5f&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;CrowdStrike&lt;/td&gt;
&lt;td&gt;&lt;code&gt;prod-api-07.internal&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Tenable&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;10.0.4.22&lt;/code&gt; (scan-time IP)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Qualys&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;10.0.4.23&lt;/code&gt; (different scan window, NATted)&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;When Tenable reports the CVE patched on &lt;code&gt;10.0.4.22&lt;/code&gt;, your dashboard doesn't &lt;br&gt;
automatically know that &lt;code&gt;10.0.4.22&lt;/code&gt; is the same machine as &lt;code&gt;prod-api-07.internal&lt;/code&gt;. &lt;br&gt;
So it still shows the finding as open on the CrowdStrike record.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;This is the asset identity problem.&lt;/strong&gt; Most security teams have it. Almost nobody &lt;br&gt;
talks about it.&lt;/p&gt;

&lt;h2&gt;
  
  
  The standard approaches — and why they fall short
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;"We use the hostname"&lt;/strong&gt; — Hostnames are normalized differently by every tool. &lt;br&gt;
Tenable might see &lt;code&gt;prod-api-07&lt;/code&gt;, CrowdStrike sees &lt;code&gt;prod-api-07.internal&lt;/code&gt;, &lt;br&gt;
ServiceNow has &lt;code&gt;PRODAPI007&lt;/code&gt; from a manual entry made 8 months ago.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;"We use the IP address"&lt;/strong&gt; — IPs change. NAT means the scanner sees a different &lt;br&gt;
IP than the one the EDR agent reports. A host that was &lt;code&gt;10.0.4.22&lt;/code&gt; last week might &lt;br&gt;
be &lt;code&gt;10.0.4.31&lt;/code&gt; today.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;"We have a CMDB"&lt;/strong&gt; — Great, how fresh is it? Most CMDBs are 30–60% stale within &lt;br&gt;
6 months of implementation. And you still need to write the correlation logic to &lt;br&gt;
feed it.&lt;/p&gt;

&lt;h2&gt;
  
  
  A layered matching approach
&lt;/h2&gt;

&lt;p&gt;The core insight is that no single identifier is reliable across tools, but &lt;br&gt;
combining multiple identifiers with explicit confidence scoring gets you very far.&lt;/p&gt;

&lt;p&gt;Here's the priority order:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Layer 1 — Hard IDs (confidence: 0.95–1.0)&lt;/strong&gt;&lt;br&gt;&lt;br&gt;
Match on &lt;code&gt;instanceId&lt;/code&gt;, EDR &lt;code&gt;agentId&lt;/code&gt;, or MAC address. These are tool-native stable &lt;br&gt;
identifiers. If two records share a hard ID, they're the same asset with near-certainty.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Layer 2 — Hostname (confidence: 0.45–0.85)&lt;/strong&gt;&lt;br&gt;&lt;br&gt;
Normalize first: strip &lt;code&gt;.local&lt;/code&gt;, &lt;code&gt;.internal&lt;/code&gt;, case-fold, drop &lt;code&gt;-prod&lt;/code&gt;/&lt;code&gt;-dev&lt;/code&gt; &lt;br&gt;
suffixes. Then match. Confidence scales with how unique the hostname looks.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Layer 3 — IP address (confidence: 0.60–0.75)&lt;/strong&gt;&lt;br&gt;&lt;br&gt;
Public IPs get higher confidence than private IPs. Apply a staleness decay: an IP &lt;br&gt;
seen 30 days ago is worth less than one seen yesterday. Private IPs in NAT-heavy &lt;br&gt;
environments are unreliable and scored conservatively.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Layer 4 — Metadata (confidence: up to 0.50)&lt;/strong&gt;&lt;br&gt;&lt;br&gt;
OS family + cloud region + account ID. Useful as a tie-breaker. Not enough alone.&lt;/p&gt;

&lt;p&gt;Combine layers 2 and 3: &lt;code&gt;0.60 × hostname_score + 0.40 × ip_score&lt;/code&gt;. Merge if the &lt;br&gt;
composite score is ≥ 0.70. Flag for human review if 0.50–0.69. Create a new &lt;br&gt;
canonical record if &amp;lt; 0.50.&lt;/p&gt;

&lt;p&gt;The key design principle: &lt;strong&gt;ambiguous matches are never silently merged.&lt;/strong&gt; A 50% &lt;br&gt;
confident merge creates ghost duplicates that are worse than no merge at all.&lt;/p&gt;

&lt;h2&gt;
  
  
  Building the canonical record
&lt;/h2&gt;

&lt;p&gt;Once you've matched records, you merge them. But "merge" has a lot of edge cases:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Which hostname wins when AWS says &lt;code&gt;prod-api-07&lt;/code&gt; and the EDR says &lt;code&gt;prod-api-07.internal&lt;/code&gt;? 
Answer: EDR is more authoritative for hostnames; AWS is more authoritative for region.&lt;/li&gt;
&lt;li&gt;What about IP addresses? Union them — an asset can have both a private and public IP.&lt;/li&gt;
&lt;li&gt;What if two sources report different OS names? Log the conflict with both values, 
both sources, and the resolution taken.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Every field disagreement should be logged with full lineage. Conflicts are data.&lt;/p&gt;

&lt;h2&gt;
  
  
  The open-source implementation
&lt;/h2&gt;

&lt;p&gt;I've been writing this glue layer at multiple companies. Last week I open-sourced it.&lt;/p&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;
bash
pip install security-asset-correlator
https://github.com/apurvtyagi/security-asset-correlator
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

</description>
      <category>security</category>
      <category>devsecops</category>
      <category>aws</category>
      <category>python</category>
    </item>
  </channel>
</rss>
