0Pricing
Cyber Security Academy · Lesson

Scanning and Asset Inventory

Knowing what you have and its weaknesses.

Scanning and Asset Inventory is a free Cyber Security Academy lesson on CoddyKit — lesson 2 of 4. You can read the complete lesson below for free — then practise it hands-on in the browser with a built-in code editor and a 24/7 AI tutor. It is part of the Cyber Security Academy learning path, one of 4 lessons in the course, and your progress syncs across the web and the CoddyKit app.

You Cannot Protect the Unknown

Every vulnerability management program rests on one foundation: knowing what you have. An accurate asset inventory defines the scope of scanning; anything missing from it is an unmonitored blind spot.

Shadow IT, forgotten cloud instances, and unmanaged containers are where breaches hide. Inventory first, scan second.

What Counts as an Asset

Modern inventory is broader than servers:

  • Physical and virtual hosts, laptops, network devices.
  • Cloud instances, serverless functions, storage buckets.
  • Containers and images.
  • Installed software and OS versions.
  • Public-facing domains, IPs, and certificates.

Track an owner, environment, and criticality for each, not just an IP.

Active vs Passive Discovery

Active discovery probes the network (ping sweeps, port scans) to find live hosts. It is thorough but noisy and can miss assets that are off during the scan.

Passive discovery watches traffic, DHCP, and logs to spot assets without probing. Combine both: passive for always-on visibility, active for depth and verification.

# Active host discovery sweep
nmap -sn 10.0.0.0/24
# Then service/version detection on live hosts
nmap -sV -p- 10.0.0.5

Authenticated vs Unauthenticated Scans

This distinction drives accuracy:

  • Unauthenticated scans see what an outsider sees: open ports, banners, exposed services. Limited depth, more false positives.
  • Authenticated (credentialed) scans log in and read installed packages, patch levels, and config. Far more accurate.

Prefer authenticated scanning for internal assets; reserve unauthenticated for external attack-surface views.

Agent-Based vs Network Scanning

Network scanners reach out to assets on a schedule; great for breadth but blind to disconnected or transient hosts.

Agents installed on endpoints report continuously, even for roaming laptops and ephemeral cloud workloads. Many programs blend both: agents for managed endpoints, network scans for IoT/OT and unmanaged devices.

How Scanners Identify Vulnerabilities

Scanners match observed software versions and configurations against a vulnerability database keyed by CVE and CPE identifiers.

  • CVE — unique ID for a specific vulnerability.
  • CPE — standardized name for a product/version.

If a host runs a CPE that maps to known CVEs, the scanner flags it. Accuracy depends on correct version detection.

False Positives and Negatives

Scanners are imperfect:

  • False positives — flagged but not actually exploitable (e.g. backported patch hides the real version).
  • False negatives — missed because of failed authentication, blocked ports, or unknown software.

Authenticated scanning and validation reduce both. Always tune and verify before pushing findings to remediation teams.

Scan Scheduling and Safety

Scanning has operational impact. Plan for it:

  • Throttle to avoid overwhelming fragile or OT/legacy systems.
  • Schedule heavy scans in maintenance windows.
  • Use safe-check modes; avoid intrusive plugins on production.
  • Coordinate with NOC so scans are not mistaken for attacks.

A scan that crashes a production controller will lose you the program mandate.

Cloud and Container Inventory

Cloud assets are ephemeral, so static inventories rot fast. Use API-driven discovery:

  • Query cloud provider APIs for instances, functions, buckets, and security groups.
  • Scan container images in the registry, not just running containers.
  • Tag resources at creation so ownership is automatic.

Integrate scanning into CI/CD so images are checked before deployment.

# Scan a container image for known vulnerabilities
trivy image myapp:1.4.2

Keeping the Inventory Current

An inventory is only useful if it is fresh. Drive it from authoritative sources:

  • Reconcile network scans, agents, and cloud APIs into a single source of truth (CMDB).
  • Flag assets unseen for N days for review.
  • Alert on new or unexpected assets (possible shadow IT).

Coverage percentage (assets scanned vs known) is a core program metric.

From Inventory to Risk

Inventory plus scan results produce findings, but context turns them into risk. Tagging assets with criticality, exposure, and data sensitivity lets you prioritize: an internet-facing crown-jewel server outranks an isolated test VM with the same CVE.

This asset context feeds directly into the prioritization techniques covered next.

Quick Check

Confirm why credentialed scanning matters.

Recap

Accurate inventory is the foundation of VM: track hosts, cloud, containers, software, and external surface with owners and criticality. Combine active and passive discovery, prefer authenticated/agent-based scanning for accuracy, and account for false positives/negatives and scan safety.

Keep the inventory current via API-driven reconciliation, and tag assets with context so findings can be prioritized. Next: how to decide what to fix first using CVSS, EPSS, and KEV.

Frequently asked questions

Is the “Scanning and Asset Inventory” lesson free?

Yes — the full text of “Scanning and Asset Inventory” is free to read here on the web, and the Cyber Security Academy course includes 4 lessons in total. To practise it interactively (a built-in code editor and a 24/7 AI tutor) and unlock the rest of the Cyber Security Academy course, upgrade to CoddyKit PRO.

What will I learn in “Scanning and Asset Inventory”?

Knowing what you have and its weaknesses. You practise Cyber Security Academy with hands-on code you run directly in the browser, and a 24/7 AI tutor answers your questions as you work through the lesson.

Do I need any experience to start Cyber Security Academy?

No prior experience is required. Cyber Security Academy on CoddyKit is structured for beginners through advanced learners; this is — lesson 2 of 4, so you can start here or from the beginning and move at your own pace.

How long does the “Scanning and Asset Inventory” lesson take?

Most CoddyKit lessons take about 5–10 minutes. Each one is bite-sized and interactive, so you make steady progress and pick up exactly where you left off across the web and the app.

Can I write and run code in this Cyber Security Academy lesson?

Yes. Every Cyber Security Academy lesson includes a built-in code editor, so you write and run real code right in your browser and get instant AI feedback — no local setup required.

All lessons in this course

  1. The Vulnerability Management Lifecycle
  2. Scanning and Asset Inventory
  3. Prioritization: CVSS, EPSS and KEV
  4. Patch Management and SLAs
← Back to Cyber Security Academy