HardenKitDocs
Getting started

Your first scan

Scan a folder, a file or a container image, and read what comes back.

Scan a project

hardenkit scan                      # the current directory
hardenkit scan ./path/to/project    # another directory
hardenkit scan alpine:3.19          # a container image

The scanner finds lockfiles and manifests, Dockerfiles, Kubernetes files, GitHub workflows and AI configuration by itself. You do not tell it what kind of project it is.

What you get

  1. Counts by priority: how many findings to fix now, fix soon, plan and leave in the backlog. See Priorities.
  2. The upgrade plan: one line per package, with the single version that resolves every fixable finding in it.
  3. Configuration issues from the AI-stack, Kubernetes and GitHub Actions checks, with the file each one is in.

Add -v for summaries, file locations and links to the advisories.

Useful options

hardenkit scan --format json .      # machine-readable output
hardenkit scan --fail-on high .     # exit 1 on high, critical or exploited findings
hardenkit scan --ignore-unfixed .   # leave out vulnerabilities with no fix yet
hardenkit scan --images .           # also scan every image the Kubernetes manifests deploy

The full list is in the command reference.

Exit codes

CodeMeaning
0No finding at or above --fail-on
1At least one finding at or above --fail-on
2The scan itself failed

On this page