agentleFS
kaandgnshkaandgnsh/Claude-Blue/skills/asset-attack-surface/asset-inventory-reconciliation/SKILL.md

asset-inventory-reconciliation

Skill0 starsChanged 14 days agoMITView on GitHub

Reconcile asset inventories across sources — CMDB, AD/Entra, MDM, EDR, vulnerability scanner, cloud APIs, DHCP/NAC, SaaS admin — to find unmanaged, unprotected, unscanned and stale assets, and keep an authoritative inventory. Use when coverage metrics disagree, before audits, when building an asset inventory, or after discovering an unknown system in an incident.

The file

Files
SKILL.md

Asset Inventory Reconciliation

Sources and keys

SourceTypical key fields
CMDBHostname, serial, owner, business service
AD / Entra ID / Intune / JamfComputer name, device ID, serial, last check-in
EDRHostname, sensor/device ID, MAC, IP, last seen
Vulnerability scannerIP, hostname, MAC, last scanned, auth success
Cloud (AWS/Azure/GCP)Instance/resource ID, tags (owner, env), private/public IPs
DHCP/NAC/switch tablesMAC, IP, port
KubernetesNode names, cluster

Method

  1. Export each source with timestamps.
  2. Normalize: lowercase hostnames, strip domain suffixes (keep FQDN separately), MAC format aa:bb:cc:dd:ee:ff, serial uppercase.
  3. Match by strongest key first (serial / cloud instance ID / MAC), then hostname, then IP+time.
  4. Produce a matrix of asset × source presence and identify gap categories:
GapMeaning
In network/cloud, not in CMDBUnknown/unowned asset
In CMDB/AD, not in EDRUnprotected
Not in scanner (or auth failing)Unassessed
In EDR, not seen 30+ daysStale or decommissioned — retire records
No owner tagUnaccountable
import csv
def load(path, key):
    return {r[key].strip().lower().split(".")[0]: r for r in csv.DictReader(open(path))}
cmdb, edr, scan = load("cmdb.csv", "hostname"), load("edr.csv", "hostname"), load("scanner.csv", "hostname")
for host in sorted(set(cmdb) | set(edr) | set(scan)):
    print(host, "cmdb" if host in cmdb else "-", "edr" if host in edr else "-", "scan" if host in scan else "-")

Sustain

Automate weekly; feed gaps to owners as tickets; track coverage metrics (detection-coverage-metrics, edr-coverage-health).

Related skills

asset-criticality-tiering, edr-coverage-health, shadow-it-discovery, scan-result-triage

References

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.