v1.0.0 is live

Audit your system.
Know what needs attention.

LinSentry is a lightweight security hardening auditor. It audits configuration and access-control posture across the areas attackers target first — currently for Linux with a cross-platform Rust rewrite planned.

Quick Install

Linux / WSL

Run from the directory containing linsentry.sh.

$ chmod +x linsentry.sh && ./linsentry.sh

What it checks

Focus on the risks that matter.

LinSentry runs twelve focused checks that mirror the areas attackers target first, then tallies the results into a single risk summary.

01

Open port scanning

Lists active TCP and UDP listening ports to establish a baseline of every service accepting connections.

02

Port exposure detection

Flags ports bound to 0.0.0.0 or [::], revealing services reachable from the network rather than localhost only.

03

SSH configuration audit

Checks PermitRootLogin, PasswordAuthentication, and PermitEmptyPasswords with interactive fix prompts.

04

SSH file permission audit

Verifies sshd_config is root-owned and not group- or other-writable by any local account.

05

World-writable scanner

Finds files in the home directory any local user can modify — a common privilege-escalation vector.

06

User account audit

Flags duplicate UID 0 accounts and empty passwords, each a root-level access risk.

07

Sudo privilege audit

Lists sudo group members and flags NOPASSWD entries so accounts that skip the password prompt are visible.

08

Firewall status check

Detects ufw installation and activity, and lets you close exposed ports through an interactive selection.

09

Pending security update check

Finds apt packages tagged as security-related and offers to install them.

10

Security framework (AppArmor) status

Confirms AppArmor is installed and enforcing profiles, with WSL-specific handling.

11

Malware scanner presence

Checks whether rkhunter or chkrootkit is installed; offers to install one when neither is found.

12

Overall risk summary

Tallies warnings across every check into Excellent, Good, or Needs Attention.

Documentation

Everything you need to get started.

Install LinSentry, learn the command-line workflow, and understand exactly what each of its checks inspects.

Current Status

  • Bash-based auditor runs anywhere Bash does — no compiled binary required.
  • Interactive fix prompts walk you through closing the risks it flags.
  • 12 checks covering ports, SSH, accounts, sudo, firewall, and updates.

Ready to dive into the details?

Explore the full documentation for setup guides and a complete walkthrough of every audit check.

Open Documentation