# Software inventory

## What do I need it for?

A complete software inventory is the basis for lifecycle, vulnerability and licence management. A single data source is not enough for this:

- Software can be installed but never run. It still widens the attack surface.
- Software can run without being installed, e.g. portable or self-built applications.
- Software in containers is invisible to the host.

The OneImporter therefore inventories software from three perspectives: **installed software**, **running host software** and **container software**.

![](<https://docs.versio.io/img/all-about-software-inventory/versio.io-software-inventory-perspectives.svg>)

*Figure: The three perspectives of the software inventory*

## Which modules do I activate?

Two module combinations cover all three perspectives: *FullStack light* and *FullStack*. Which one fits you is described in [FullStack versus FullStack light](<https://docs.versio.io/all-about-fullstack-versus-fullstack-light/index.md>).

## What the three perspectives show

**Installed software** lists everything the operating system knows as installed: Windows programs and Store apps, macOS apps, Linux packages and browser extensions.

**Running host software** lists the software that is actually running on the host. It also finds software that was never installed, e.g. a copied binary.

**Container software** lists the software inside each container. This covers the packages of the container image and the software running in the container.

Versio.io maps all three to the products and versions of its product catalogue. On this basis, it evaluates [release, end-of-life and vulnerability status](<https://docs.versio.io/solution-product-lifecycle-vulnerability/index.md>), policies and the [bill of material](<https://docs.versio.io/bill-of-material/index.md>).

## What you can learn from it

| Observation | Possible insight |
| --- | --- |
| Installed, but not running | Candidate for uninstallation. Reduces attack surface and licence costs. |
| Running, but not installed | Portable or self-built software outside of software distribution. Check origin and patch process. |
| Different version installed than running | Update installed, but the service was not restarted. The old version is still active. |
| Only in container software | Software that the host's patch management does not cover. Update via the container image. |

*Table: Typical insights from the software inventory*

## Technical details

> [!NOTE]
>
> **Modules, entities and intervals**
>
> | Module | Installed software | Running host software | Container software | Interval |
> | --- | :---: | :---: | :---: | --- |
> | **Installed software** | `host-installed-software` | – | – | 17 minutes |
> | **Running & container software** | – | `host-running-software` | `container-software` | 60 minutes |
> | **Application stack** | – | `process` (one instance per process) | `container-software` | – |
>
> - *Installed software* runs on Windows, macOS and Linux. *Running & container software* and *Application stack* run on Windows and Linux.

> [!NOTE]
>
> **Data sources of installed software**
>
> | Platform | Data sources |
> | --- | --- |
> | **Windows** | Registry (machine-wide and all user profiles), Microsoft Store apps, winget package IDs |
> | **macOS** | Apps from the Apple App Store and apps installed via DMG |
> | **Linux** | `dpkg`/`apt` (Debian, Ubuntu), `rpm`/`dnf` (Red Hat, Fedora), `zypper` (SUSE), `apk` (Alpine) |
> | **Browser extensions** | Google Chrome, Microsoft Edge, Brave and Mozilla Firefox of all user profiles (Windows) |
>
> On Linux, the OneImporter also captures available updates (`apt`, `dnf`) and package metadata such as origin, repository, maintainer and checksum.
>
> The executed commands are listed in [Host installed software](<https://docs.versio.io/importer-host-installed-software/index.md>).

> [!NOTE]
>
> **Rules for running and container software**
>
> - A running product stays listed for 24 hours after its last sighting. Short-running processes do not cause constant changes.
> - A product seen in a new version replaces its old version immediately.
> - Supported container runtimes: Docker, containerd and Podman, including Kubernetes pods.
> - Container software combines the packages of the Linux package manager in the container (`dpkg`, `rpm`, `apk`) with the products of the processes running in the container.
> - Containers that no longer exist are removed from the inventory automatically.
