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.
In this repository273 other files it gives its agents.
- ad-attack-path-analysisSkill
- adcs-security-reviewSkill
- ad-privileged-access-reviewSkill
- dcsync-detectionSkill
- gpo-security-reviewSkill
- kerberos-attack-detectionSkill
- agent-tool-permission-reviewSkill
- ai-incident-responseSkill
- llm-gateway-controlsSkill
- llm-security-evaluationSkill
- mcp-server-security-reviewSkill
- model-artifact-securitySkill
- prompt-injection-reviewSkill
- rag-security-reviewSkill
- api-abuse-detectionSkill
- api-authorization-testingSkill
- api-inventorySkill
- api-schema-securitySkill
- dast-baselineSkill
- sast-triageSkill
- sca-dependency-riskSkill
- secure-code-reviewSkill
- security-requirementsSkill
- threat-modelingSkill
- asset-criticality-tieringSkill
- external-attack-surface-reviewSkill
- shadow-it-discoverySkill
- aws-credential-compromiseSkill
- aws-iam-reviewSkill
- aws-org-guardrailsSkill
- cloudtrail-investigationSkill
- guardduty-triageSkill
- s3-exposure-reviewSkill
- azure-activity-investigationSkill
- azure-rbac-reviewSkill
- conditional-access-reviewSkill
- entra-audit-investigationSkill
- entra-signin-investigationSkill
- backup-assuranceSkill
- critical-service-mappingSkill
- ransomware-recoverySkill
- recovery-exerciseSkill
- cloud-exposure-reviewSkill
- cloud-incident-responseSkill
- cloud-logging-baselineSkill
- cloud-posture-assessmentSkill
- audit-evidence-packageSkill
- continuous-control-monitoringSkill
- control-mappingSkill
- control-testing-samplingSkill
- container-incidentSkill
- dockerfile-hardeningSkill
- image-scanningSkill
- runtime-detection-falcoSkill
- db-audit-loggingSkill
- db-exfiltration-investigationSkill
- db-hardeningSkill
- db-privilege-reviewSkill
- data-classificationSkill
- data-discoverySkill
- The first 60 shown.
The file
Files
Asset Inventory Reconciliation
Sources and keys
| Source | Typical key fields |
| CMDB | Hostname, serial, owner, business service |
| AD / Entra ID / Intune / Jamf | Computer name, device ID, serial, last check-in |
| EDR | Hostname, sensor/device ID, MAC, IP, last seen |
| Vulnerability scanner | IP, hostname, MAC, last scanned, auth success |
| Cloud (AWS/Azure/GCP) | Instance/resource ID, tags (owner, env), private/public IPs |
| DHCP/NAC/switch tables | MAC, IP, port |
| Kubernetes | Node names, cluster |
Method
- Export each source with timestamps.
- Normalize: lowercase hostnames, strip domain suffixes (keep FQDN separately), MAC format
aa:bb:cc:dd:ee:ff, serial uppercase. - Match by strongest key first (serial / cloud instance ID / MAC), then hostname, then IP+time.
- Produce a matrix of asset × source presence and identify gap categories:
| Gap | Meaning |
| In network/cloud, not in CMDB | Unknown/unowned asset |
| In CMDB/AD, not in EDR | Unprotected |
| Not in scanner (or auth failing) | Unassessed |
| In EDR, not seen 30+ days | Stale or decommissioned — retire records |
| No owner tag | Unaccountable |
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
- CIS Controls v8.1 Control 1 (Inventory and Control of Enterprise Assets): https://www.cisecurity.org/controls/inventory-and-control-of-enterprise-assets
- NIST SP 1800-5 IT Asset Management: https://www.nccoe.nist.gov/it-asset-management
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
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.

