Skip to content
Security
Skill

/os-hardware-inventory

Collects live operating-system inventory (OBOM) and host hardware inventory (HBOM) as CycloneDX documents using the cdxgen obom and hbom commands, including osquery-backed runtime artifacts, apk packages on Alpine, Wolfi and Chainguard, Linux hardening snapshots, GTFOBins

From plugin
cdxgen
1.1k14 skills1 agent

Claude Code

$ npx -y skills add cdxgen/cdxgen --skill os-hardware-inventory --agent claude-code

SKILL.md

os-hardware-inventory.SKILL.md
name: os-hardware-inventory
description: Collects live operating-system inventory (OBOM) and host hardware inventory (HBOM) as CycloneDX documents using the cdxgen obom and hbom commands, including osquery-backed runtime artifacts, apk packages on Alpine, Wolfi and Chainguard, Linux hardening snapshots, GTFOBins enrichment, firmware and bus topology, and macOS permission troubleshooting. Use when asked to inventory a live machine or server, list a running host's installed packages, services or listening ports, compare a host's packages with a container scan of the same image, produce a hardware BOM, cover a project and the machine's hardware in one BOM, or check host trust posture. Load it before writing any command that inventories a host, including obom, hbom and cdxgen -t os, even when the user only wants to see the command.

Live OS and hardware inventory

Two distinct documents, two distinct commands. Do not mix them.

| Want | Command | | --------------------------------- | -------------------------------- | | Software on a running machine | `obom` (`cdxgen -t os`) | | Physical hardware of the host | `hbom` | | Offline host from a mounted disk | `-t rootfs` (see `container-sbom`) |

Read [reference/safety.md](../../reference/safety.md) first. Live host collection reads far more of the machine than a project scan, so the dry-run-and-confirm step matters more here, not less.

The hard rule

Never combine `hbom` / `hardware` with software project types such as `js`, `java`, `python`, `os`, or `oci` in one invocation. Generate them separately. If the user wants one merged host document, use `hbom --include-runtime` rather than stacking `-t` flags.

OBOM: live operating-system inventory

obom -o /absolute/path/to/obom.json --deep

`obom` is an alias for `cdxgen -t os`. Aliases `osquery`, `windows`, `linux`, `mac`, `macos`, `darwin` reach the same pipeline.

With a runtime audit:

obom -o /absolute/path/to/obom.json --deep \
  --bom-audit --bom-audit-categories obom-runtime

What Linux OBOM adds

  • osquery-derived runtime artifacts: processes, listening ports, users, services, scheduled jobs
  • `sysctl_hardening` and `mount_hardening` snapshots
  • packages of pacman (Arch and its derivatives), snap, flatpak and Homebrew on Linux, alongside deb and rpm
  • AI agent skills installed for each user and system-wide (`ai_agent_skills`), and GPUs with their driver versions (`gpu_info`)
  • GTFOBins enrichment on privileged and network-active runtime rows — a shell-escape-capable binary running privileged or listening on the network is the signal worth escalating

Alpine, Wolfi and Chainguard hosts

osquery has no apk table, and the plugin bundle for musl systems such as Alpine ships no osquery at all. On these hosts `obom` reads the apk installed database instead (`/lib/apk/db/installed`, `/usr/lib/apk/db/installed` or `/var/lib/apk/db/installed`).

  • Expect the packages and little else: no runtime categories, no hardening

snapshots, and no OS component in `metadata.component`. That is the reach of the tool on these hosts, not a failed run.

  • Run it as a user that can read the database, usually root. If the database

exists but cannot be read, the OBOM has no packages, and with `--introspect` the `os.apk-installed-db.unreadable` degradation says why. Report that rather than presenting an empty inventory as a clean host.

macOS OBOM

Collection uses the bundled osquery binary in **shell mode**, which avoids the older `/var/osquery` startup failure. Some tables still require Full Disk Access or elevated privileges.

If tables come back empty or permission-gated, that is a host configuration issue, not a cdxgen bug. Point the user at <https://cdxgen.github.io/cdxgen/#/OBOM_MACOS_TROUBLESHOOTING> rather than retrying the same command.

For live-host triage patterns generally, see <https://cdxgen.github.io/cdxgen/#/OBOM_LESSONS>.

Package identity

An OBOM names a package the way a container scan of the same system does, so findings and vulnerability matches carry over between the two.

| Package | Purl in an OBOM | | ---------------- | -------------------------------------------------------------------------------------------------------- | | deb | `pkg:deb/ubuntu/php8.3-cli@8.3.6-0ubuntu0.24.04.13?arch=amd64&distro=ubuntu-24.04&distro_name=noble`; `&epoch=N` when the version has one | | rpm | `pkg:rpm/almalinux/openssl-libs@1:3.5.8-1.el9_8?arch=x86_64&distro=almalinux-9.8&epoch=1`; the version is `[epoch:]version-release` | | apk | `pkg:apk/alpine/php84@8.4.27-r0?arch=x86_64&distro=alpine-3.24.3&distro_name=alpine-3.24` | | pacman | `pkg:alpm/arch/zlib@1:1.3.2-4?arch=x86_64`; the vendor and `arch` only, the version as pacman reports it | | Homebrew | `pkg:brew/php@8.5.11_1`; a cask has the same form, and `cdx:homebrew:type` says `formula` or `cask` | | MacPorts | `pkg:macports/openssl3@3.6.0_0`; the version is `version_revision` | | snap | `pkg:snap/core22@20250408`; the revision, channel and confinement are `cdx:snap:*` properties | | flatpak | `pkg:flatpak/org.gnome.Calculator@48.1?arch=x86_64&branch=stable`; named by the application ID | | npm and pypi | `pkg:npm/%40npmcli/agent@4.0.2`, `pkg:pypi/pyyaml@6.0` | | Firefox add-on | `pkg:swid/uBlock%2BOrigin@1.75.0?tag_id=uBlock0%40raymondhill.net`; the `tag_id` is the add-on ID | | Chromium ext. | `pkg:chrome-extension/nmmhkkegccagdldgiimedpiccmgmieda@1.0.0.6`; as `-t chrome-extension` names it | | VS Code ext. | `pkg:vscode-extension/redhat/vscode-yaml@2.0.0`

Read more
@cdxgen
Ships withcdxgen

cdxgen is a CLI tool, library, REPL, and server to create, validate, sign, and verify software BOMs. It generates CycloneDX JSON BOMs and supports SPDX 3.0.1 JSON-LD export.

1.1k14 skills1 agent
Get the whole plugin

Stars on GitHub

Momentum

stars in total
1.1k
Star history of cdxgen/cdxgen on GitHub, a chart by star-history.com

Other skills on cdxgen.

ai-bom

ai-bom

Generates AI-BOM, MCP inventory, AI skill inventory, and AI authorship provenance documents with cdxgen, cataloging models,…

@cdxgen@cdxgenInstall Skill
bom-audit

bom-audit

Runs supply-chain risk analysis on CycloneDX BOMs with cdx-audit predictive auditing and cdxgen --bom-audit embedded rules,…

@cdxgen@cdxgenInstall Skill
bom-convert-validate

bom-convert-validate

Converts CycloneDX BOMs to SPDX 3.0.1 JSON-LD or between CycloneDX spec versions with cdx-convert, and validates BOMs against…

@cdxgen@cdxgenInstall Skill
bom-evidence

bom-evidence

Enriches an existing CycloneDX BOM with occurrence, callstack, reachability, data-flow, and crypto-flow evidence using cdxgen…

@cdxgen@cdxgenInstall Skill
bom-explore

bom-explore

Explores and triages a CycloneDX BOM interactively with the cdxi REPL, using built-in commands for dependency trees, licenses,…

@cdxgen@cdxgenInstall Skill
bom-signing

bom-signing

Signs and verifies CycloneDX BOMs using cdxgen's native JSON Signature Format (JSF) implementation via cdx-sign and cdx-verify,…

@cdxgen@cdxgenInstall Skill

More skills from other plugins.

api-security

api-security

Use for authorized security assessment of REST, GraphQL, WebSocket, or SOAP APIs, including discovery, authentication,…

@zhaoxuya520@zhaoxuya520Install Skill
nemoclaw-user-guide

nemoclaw-user-guide

Find official NemoClaw documentation for installation, configuration, operation, or troubleshooting. Also handles requested docs…

@nvidia@nvidiaInstall Skill

Questions about os-hardware-inventory.

Which coding agents can use os-hardware-inventory?
os-hardware-inventory installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.