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 imageThe 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
- Counts by priority: how many findings to fix now, fix soon, plan and leave in the backlog. See Priorities.
- The upgrade plan: one line per package, with the single version that resolves every fixable finding in it.
- 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 deployThe full list is in the command reference.
Exit codes
| Code | Meaning |
|---|---|
0 | No finding at or above --fail-on |
1 | At least one finding at or above --fail-on |
2 | The scan itself failed |