Linux Security Audit Script (users, sudo, SSH, ports, permissions)
Read-only shell script that audits a Linux server: OS and pending updates, users and sudo rights, network and ARP table, open ports, sign-ins, SSH settings, file permissions and ownership, SUID files, firewall and encryption.
Linux (.sh) USD 3.00 for all versions · read-only · 1 hour 30 minutes to download
Pay via M-Pesa, Airtel Money and local mobile money across East Africa, or by Visa / Mastercard. How to pay
| Script | Linux Security Audit Script (users, sudo, SSH, ports, permissions) |
|---|---|
| Platform | Ubuntu, Debian, RHEL, Rocky, AlmaLinux, CentOS, Amazon Linux |
| Audit area | Linux servers |
| Purpose | Checks one Linux server against common hardening controls and collects audit evidence without changing anything. |
| Price | USD 3.00, all platform versions |
Prerequisites
- Any common Linux distribution with /bin/sh
- sudo or root for the full audit (shadow file, sign-in logs, firewall rules)
What the script checks
- Hostname, OS, kernel, CPU, memory, serial, disks
- Pending and security updates, reboot needed
- Accounts that can sign in, UID 0 accounts, empty passwords, sudo rules (NOPASSWD), password ageing
- Interfaces, routes, DNS, ARP/neighbour table, listening ports and services on all networks
- Sign-in history and failed sign-ins
- SSH: root sign-in and password authentication
- Permissions and owners of key files and home folders, world-writable files, SUID/SGID programs, files without an owner, scheduled jobs
- Firewall (ufw, firewalld, nftables, iptables), disk encryption, fail2ban, auditd, AppArmor, SELinux
- The full script for Linux
- How to open the correct console, and the permissions it needs (least privilege)
- Step-by-step instructions
- The expected output and how to interpret it
Also included in the zip as README-how-to-run.txt. Follow the audit process guide for scope, authorisation and evidence.
Safe by design
- Read-only: installs nothing and changes no settings.
- Sends nothing to our servers; results stay on your computer.
- Secrets are masked and password hashes are never printed.
- Plain text: open it in any editor and check every line before running it.
Also known as: linux security audit script, linux server audit shell script, sudo audit, ssh configuration audit, linux permissions audit script, world writable files script, suid audit, linux hardening check.
Templates to use with this script
More audit scripts
Questions
Is the linux security audit script safe to run?
Yes. It only reads information and writes its results next to itself. It installs nothing, changes no settings and sends nothing to our servers. Secrets it finds are masked, and password hashes are never printed. It is plain text: open it in any editor to check every line before you run it.
How do I get the script?
Click "Get script", pay USD 3.00 through APOPS Pay (M-Pesa, Airtel Money, local mobile money across East Africa, or Visa / Mastercard payment), then download the Linux version. One payment covers every operating system.
How long can I download it?
For 1 hour 30 minutes after payment, as often as you like. You are told this before you pay. Keep the zip: the script itself never expires.
Do I need administrator rights?
sudo or root for the full audit (shadow file, sign-in logs, firewall rules)
What do I get after paying?
The full script for each platform, how to open the correct console, the permissions it needs, step-by-step instructions, the expected output and how to read the results. They are shown on this page and included as a README in the zip.