Skip to content

Server security

Linux Server Audit Fixes

The box itself - access, network, patches and permissions.

These are the fixes for a server security audit: who can reach the box, what it is running, which files are writable by the wrong people, and how far behind it is on patches.

CtrlOpsVPS & Server fixes45 CHECKS
Checks documented
45
Audits in this category
7
Need root or sudo
17
Rated high severity
13

For what these audits cover rather than how to fix them, see the VPS & Server security checklist, or how the CtrlOps Security Audit runs.

By audit

7 audits, 45 checks

Grouped by the 7 audits they belong to. SSH and access is the front door; firewall and network decides how much of the rest is even reachable.

How much of this is serious?

13 high, 21 medium and 11 low severity checks
  1. 01SSH & AccessFixes soonRoot login, password auth, port, idle timeout, authorized keys and sudo privileges11 checks · 2 need root4 high, 4 medium and 3 low severity checks
  2. 02Services & ProcessesFixes soonAttack surface from services, listeners and scheduled jobs9 checks · 2 need root1 high, 4 medium and 4 low severity checks
  3. 03File SystemFixes soonDangerous permissions, set-id binaries and sensitive files7 checks · 4 need root3 high, 3 medium and 1 low severity checks
  4. 04Firewall & NetworkFixes soonFirewall state, exposed ports, Docker bypass and network policy6 checks · 4 need root2 high, 3 medium and 1 low severity checks
  5. 05Application SecurityFixes soonTLS certificates, runtime versions and database access5 checks · 2 need root2 high, 2 medium and 1 low severity checks
  6. 06System UpdatesFixes soonPending patches, automatic updates, kernel and reboot state4 checks1 high, 3 medium and 0 low severity checks
  7. 07Logging & MonitoringFixes soonSeparated logging and monitoring checks3 checks · 3 need root0 high, 2 medium and 1 low severity checks

What these fixes cover

  • Root login, key-based authentication, sudo grants and who can open a session
  • Firewall state, listening ports, IPv6 coverage and services exposed beyond localhost
  • World-writable paths, set-id binaries and sensitive file permissions
  • Pending security updates, kernel state and whether a reboot is outstanding

What they do not

  • Application-level bugs in the code you deploy. These checks read server configuration, not your source.
  • Intrusion detection beyond whether Fail2Ban, sshguard or CrowdSec is present and running.
  • Anything behind a managed platform you do not control. On Kubernetes or a PaaS there is no sshd to read.

Keep going

The other three platforms

Most hosts run more than one of these. The split shows how much of each platform the audit rates as high severity.

FAQ

VPS & Server fix questions

Can't find your answer? Join Discord

  • Work down by severity, and inside a severity by exposure. A HIGH finding on SSH root login or an inactive firewall changes who can reach the machine at all, so it outranks a HIGH finding on file permissions, which requires an attacker to already be on the box. The audit sorts findings this way, and each page states the severity the script assigns.

  • Several can if applied carelessly, and the pages that carry that risk say so in the fix itself. The rule that prevents almost all lockouts: keep a second SSH session open while you edit sshd_config or firewall rules, validate with sshd -t or ufw status before reloading, and confirm the new path works in the second session before closing the first.

  • Commands are given for Debian and Ubuntu first, with the RHEL-family equivalent where it differs. The audit scripts themselves detect the package family at runtime and cover Ubuntu, Debian, RHEL, CentOS, Rocky, Alma, Amazon Linux, Fedora, Oracle Linux, SUSE and Alpine.

  • Almost always privilege. Checks that read another account's files, the sudoers configuration or firewall state need root, and they report SKIP rather than guessing when they cannot get it. Run the audit as root, grant the audit account sudo, or supply a sudo password in the audit settings. Each audit hub page has the full privilege-mode table.

Stop juggling tools. Start managing fleets.

PuTTY
Termius
MobaXterm
WinSCP
SecureCRT
Royal TS
Warp
CtrlOps14 tools left
Webmin
aaPanel
RunCloud
Dokploy
IP spreadsheet
bash (2)
sticky notes

One app. All your servers. No context switching. Free to start, free to leave.

Start instantly · No credit card · Cancel anytime

Your privacy preferences. We use product analytics to improve CtrlOps. Google Analytics cookies and live chat stay off until you allow them. Cookie policy