Software Inventory
How AsPeekIt stores the software installed on your assets: packages reported by the agent, container images reported by agents and the Kubernetes collector, packages found inside images by Trivy scans and components imported from SBOMs, with first and last observation, presence state and stale evidence.
What Is Stored
Every agent report that carries packages[] and every container the agent or the Kubernetes collector reports is turned into installed components. A component links an asset to a software package and records the installed version exactly as reported (epoch included, never normalized), the architecture, the source package and version, the path of the manifest for language packages, and the origin that observed it: agent, k8s (Kubernetes collector), trivy (container image scans, see Container Image Scanning) or sbom (SBOMs uploaded from CI, see SBOM Import API).
- Software package: ecosystem (deb, rpm, apk, windows, pypi, npm, gem, composer, cargo, golang, docker_image, wordpress, wordpress-plugin, wordpress-theme, joomla, joomla-extension, nextcloud, nextcloud-app), name and distribution. The distribution is the distro qualifier of the purl, or for deb/rpm/apk the id and version_id of the distribution reported by the agent (e.g. ubuntu-24.04); other ecosystems have none
- Installed component: version, arch, source name and version, path, origin (agent, k8s, trivy or sbom), first seen, last seen, present or removed (with the removal time) and details such as the purl, vendor, publisher and install location
- Agent packages are stored on the host asset (agent-host:<agent id>)
- Linux system packages also carry the upgrade candidate from the local indexes of the host: candidate version, candidate origin (the repository, e.g. Ubuntu:24.04/noble-security) and whether that origin is official (SOFTWARE_OFFICIAL_ORIGINS). They are updated only when the packages:candidates scope of the report is ok or partial; otherwise the last known values are kept. A change of the candidate counts as a change of the component for the vulnerability matcher
- Windows hotfixes are not stored as components yet
Note: The present components of an asset are listed in the Software section of its detail page; the Components view lists them across all assets.
Component Identity
A component is identified by asset, package, version, architecture, path and origin. When a package is upgraded the old version is marked removed and a new component is created; two versions installed side by side (for example two kernel rpm packages) are two components. If the same identity appears twice in one report, the first entry is kept.
Presence and Removal
A component seen again keeps its original first seen time and gets a new last seen time; a removed component that reappears becomes present again. A component missing from a report is marked removed only when the scan coverage of the report proves that it is gone; otherwise it stays present and is marked with stale evidence.
- With coverage (current agents): a missing package is removed only if every package scope that covers it is ok and the server discarded no malformed package or coverage entry. A scope covers a package when it has the same ecosystem and either has no root or the package path is inside the root
- A root that no longer exists is reported ok, so the packages that were under it are removed
- Packages of a partial, failed or skipped scope, or not covered by any scope (for example a disabled collector or a path outside every configured root), are never removed
- With coverage the package inventory is updated even when the report has no packages key, so a collector disabled in the configuration marks its packages stale instead of removing them
- Without coverage (older agents): removal works per collector group (packages, windows_software, language_packages); if the report errors contain any entry of a collector, nothing of its group is removed, and reports without the packages key never create or remove packages
Note: See Scan Coverage for the scopes the agent reports and how they appear on the asset page.
Stale Evidence
A present component that was not seen in a report but could not be removed is marked as stale evidence. It stays present and keeps its last seen time, which is always the time of its last valid observation.
- A stale component seen again is no longer stale and gets a new last seen time
- A removed component is never stale
- Open CVE findings on the software of a stale component are not auto-resolved when the software no longer matches: missing evidence is not proof of removal
- The last report summary of the agent counts the components created, updated and removed, and the components left with stale evidence after the report
Container Images
Container images become components of the docker_image ecosystem. The reference is split into name and tag: registry:5000/team/app:v1@sha256:ff gives the name registry:5000/team/app, the version v1 and the digest sha256:ff (kept in the details with the original reference). A reference without a tag gets the version latest, unless it is pinned by digest. References made only of an image id (sha256:...) are ignored.
- Agent: each reported container gets a component with origin agent on its container asset (agent-ctr:<agent id>:<container id>), with the image id in the details; images no longer reported for a container are marked removed
- Kubernetes: each workload with a containers list (deployments, statefulsets, daemonsets, jobs, cronjobs, pods) gets one component with origin k8s per distinct image, with the names of the containers using it; images no longer in the spec are marked removed
- Assets deactivated because they disappeared from a scan have their images marked removed
Image Digests
Each image component carries, when it is known, the registry digest of the build that runs (details.image_digest), so a moving tag such as latest still tells which build is deployed and two tags with the same digest are recognized as the same image. The digest lives in the details: the identity of the component (tag, origin) does not change, so a new build pushed under the same tag updates the existing component and its change time instead of creating a new one.
- A digest pinned in the reference (name@sha256:...) always wins
- Agent: the container collector inspects each distinct image used by the containers (at most once per hour per image id, within the collector timeout) and sends an images[] list next to containers[]: id, repo_digests, repo_tags, os, architecture and created. The backend joins it on containers[].image_id and stores image_digest, image_tags, image_os, image_architecture and image_created. The digest is taken from the repo digest whose repository matches the image name (docker.io/library/ prefixes are ignored); when none matches, the digest shared by every repo digest is used, otherwise there is no digest
- An image built locally and never pushed has no repo digest: its component keeps only the local image id
- Kubernetes (backend collector and relay): the digest comes from the imageID of the container status (docker-pullable://reg/app@sha256:...); an empty imageID or a bare local id gives no digest
- Only sha256:<64 hex> and sha512:<128 hex> digests are accepted from repo_digests and imageID
- Agents that do not send images[] keep working as before: their images simply have no digest
- An inspect error on one image never fails the container collector: the last cached metadata is reused, or the image is sent without metadata
Limits and Discarded Entries
A report can carry at most 50000 packages; above that the backend rejects it with 400 (the agent truncates its list to stay within the limit). Malformed entries do not fail the report: they are discarded and counted, and the report errors of the agent show server: packages: N malformed entries discarded.
- An entry must be an object with a non-empty name (at most 512 characters) and one of the ten package ecosystems
- Optional fields, when present, must be strings: version and source_version up to 256 characters, arch up to 64, source_name, vendor and publisher up to 512, purl up to 2048, path and install_location up to 4096, candidate_version and candidate_origin up to 256
- The last report summary of the agent shows the number of valid packages and the components created, updated and removed, and the components left with stale evidence
- images[] holds at most 5000 entries (one per distinct image; above that the report is rejected, the agent truncates its list). A malformed entry (not an object, no id, a non-string digest or tag, more than 128 repo digests or tags, strings over their limit) is discarded and counted as server: images: N malformed entries discarded; the rest of the report is persisted