HardenGarden

Your Linux system is a garden. HardenGarden finds the weeds.

A read-only security auditor for Ubuntu and Debian. It checks SSH, the firewall, permissions, sudo, accounts, updates and kernel settings, scores the machine, explains every finding with a local AI model, and hands you a reviewed fix you run yourself.

Free and open source (Apache-2.0). No account, no cloud, no telemetry.

Ubuntu 24.04 LTS

12 of 12 checks evaluated

72/100

  • SSH-001
  • SSH-002
  • SSH-003
  • FW-001
  • NET-001
  • FS-001
  • FS-002
  • FS-003
  • ACC-001
  • ACC-002
  • UPD-001
  • KRN-001

Point at a plant to see its check.

A real scan of a test machine: three weeds, two plants that need care.

How it works

  1. Survey

    Twelve checks read configuration files and three fixed commands (sshd -T, ufw status, nft list ruleset). Nothing is written, restarted or installed. The Garden Health score comes from a fixed formula, never from the AI.

  2. Explain

    A local model, run by Ollama on your own machine, explains each weed in plain language. Answers come from an original knowledge base and cite the passage they use. When the knowledge base does not cover a question, it says so instead of guessing.

  3. Fix it yourself

    Every finding has a reviewed shell script. It changes nothing unless you run it as root with HG_APPLY=1, backs up each file it edits, and checks SSH configuration with sshd -t before reloading.

The desktop app

A garden view of the whole machine, the list of weeds, and a detail page for each one with its evidence, the explanation and the script. The same scanner also runs as a command-line tool.

Recorded on the build machine, where Ollama was not installed, so the explanation shows how the app behaves without AI: scanning, scores and scripts still work.

HardenGarden scanning a machine, opening the weed list, opening one weed and copying its remediation script

What it checks

Twelve focused checks with stable IDs. Checks that need root are reported as not checked when you scan without it, and the coverage figure says so.

Check What it looks at Severity
HG-SSH-001SSH root login disabledHigh
HG-SSH-002SSH password authentication disabledHigh
HG-SSH-003SSH empty passwords disallowedCritical
HG-FW-001Host firewall active (ufw or nftables)High
HG-NET-001Services listening on non-loopback interfacesMedium
HG-FS-001/etc/shadow permissions and ownerCritical
HG-FS-002/etc/passwd and /etc/group permissionsHigh
HG-FS-003World-writable files under /etcMedium
HG-ACC-001Accounts with UID 0 other than rootCritical
HG-ACC-002NOPASSWD rules in sudoersMedium
HG-UPD-001Automatic security updates enabledMedium
HG-KRN-001ASLR enabledMedium

What it will never do

Releases are signed with Sigstore and ship with checksums and an SPDX SBOM. CodeQL, Trivy, bandit and pip-audit run in CI. The full analysis is in the threat model.

Install

Ubuntu 22.04 or newer, or Debian 12, on x86_64. Download the files from the releases page.

Desktop app (.deb)

Installs the app and the hardengarden command.

sudo apt install ./hardengarden_0.1.0_amd64.deb
hardengarden-desktop

AppImage

Nothing to install. Make it executable and run it.

chmod +x hardengarden_0.1.0_x86_64.AppImage
./hardengarden_0.1.0_x86_64.AppImage

Command line only

With uv, which brings Python 3.12.

uv tool install ./hardengarden-0.1.0-py3-none-any.whl
hardengarden scan

For AI explanations, install Ollama. The app picks a model that fits your RAM and downloads it only when you click Download.

Under the hood

Scanner and API
Python 3.12, FastAPI, Pydantic, Typer
Explanations
Ollama, ChromaDB, BM25 and vector retrieval with citations
Desktop
Tauri 2 (Rust), React 18, TypeScript
Packaging
PyInstaller onedir, .deb, AppImage, built on Ubuntu 22.04
Quality
pytest, Vitest, Playwright, axe, ruff, mypy strict, clippy

Read the architecture and the decision log.

Good to know

HardenGarden is an educational and portfolio security tool. It is not a certified compliance scanner and does not replace a professional audit. Twelve checks cover the most common weeds, not every one. AI answers can be wrong, so read the passage they cite.