Home / hardaudit
€29hardaudit
Find the five hardening gaps behind most privilege escalations, with the exact line and the fix
Linux Hardening Auditor
Buy — €29 · coming soonone-time · Commercial single-team license, 1.x updates included.
The problem
Sudo wildcards, an sshd drop-in that is silently ignored, authorized_keys sprawl, unsandboxed services and missing audit watches are the usual footholds. Full CIS scanners cost budget and agents; hardaudit is a stdlib-only Python tool that points at the line and tells you what to paste.
What it does
- 35+ checks across sudoers, sshd, authorized_keys, systemd and auditd; each finding has an id, severity, evidence (file:line) and a fix
- Resolves the effective sshd config (Include order, first-value-wins, Match) and flags settings shadowed by e.g.
50-cloud-init.conf; can ingestsshd -Toutput - Sudoers: NOPASSWD on shells/editors/escape-capable binaries,
systemctl *globs, wildcard arguments,#includedirpitfalls - authorized_keys: key count, missing options, weak/legacy keys, duplicates across accounts
- Parses unit files and
systemd-analyze securityoutput --root DIRaudits a mounted image without executing anything from it- Text, JSON or Markdown output;
--fail-on SEVfor CI gates (exit 2)
What's in the box
src/hardaudit/package andbin/hardaudit, plus a single-filehardaudit.pyzfixes/: sshd drop-in, auditd rules, systemd sandbox template, SSH CA quickstart scriptexamples/: sample text/JSON/Markdown reports, CI workflow, usage tourtests/(28 tests plus fixture trees),scripts/(docker test, build)- README, LICENSE, CHANGELOG
Usage
python3 bin/hardaudit --min-severity medium # live host (root for sshd -T)
python3 bin/hardaudit -f markdown -o report.md # report for a ticket / auditor
python3 bin/hardaudit --root /mnt/image --no-live --fail-on high # CI gate, exit 2
./hardaudit.pyz --version # single file to scp
Requirements
- Python 3.9 or newer, standard library only (no pip, no agents, no network)
- Root recommended on a live host for
sshd -Tandsystemd-analyze security - Docker only if you want to run the Debian 12 / Rocky 9 container tests
Limitations / what it is not
- Findings are heuristics: a finding is a prompt, not a verdict. Review each before acting.
- sudoers: only the first
=rule per line is analysed; Runas/host matching is not evaluated;visudo -cis not invoked. - sshd:
Matchblocks are not evaluated per connection. - authorized_keys: only
/root,/home/*and/etc/ssh/authorized_keys/*; customAuthorizedKeysFilepaths are not followed. - Read-only: it never changes the system. Always
sshd -tand keep a second session open before applying the shipped fixes. - Not a CIS benchmark scanner.
FAQ
What is the license?
Commercial single-team license, 1.x updates included.
Refunds?
14 days, no questions asked. See Legal.
How do I get support?
By email: [email protected].
Where it came from
Written up on the blog first:
- The sudoers rules that quietly hand out root
- Replacing authorized_keys sprawl with SSH certificates
- Sandboxing your own systemd units before they bite you
- SSH hardening that survives package upgrades: using sshd_config.d drop-ins
- Auditd rules that answer who changed what on a server
Buy — €29 · coming soonone-time · Commercial single-team license, 1.x updates included.
Tested Lab-tested
| Product version | 1.0.0 |
|---|---|
| Last run | 2026-11-24 |
| Result (install and tests) | PASS |
| Platforms | Debian 12; Debian 13; Ubuntu 24.04; Rocky Linux 9 |
What was tested, and how
- Install the customer zip into clean containers, CLI smoke test, full test suite against the installed copy
How: pip install of the unzipped artifact,hardaudit --help, pytest
Not tested
- Audits of long-running production hosts (tests use fixtures and clean containers)
Method and lab setup: How we test.