Skip to content

VPS & Server audit fixes

Services & Processes: fixing all 9 checks

The services and processes audit inventories the units, timers, cron entries and external listeners a host is running, so a failure names attack surface nobody asked for or a persistence foothold.

Three checks call systemctl and skip together when it is missing, so Unneeded Services, Running Service Count and Systemd Timers report three skips rather than three passes on an Alpine, OpenRC or container-style host that does not use systemd. The other two skips are External Listener Processes, which needs both root and ss, and Kernel Hardening, which skips when /proc/sys cannot be read at all.

CtrlOpsServices & Processes audit9 CHECKS
Checks in this audit
9
Rated high severity
1
Need root or sudo
2
Automated run time
~11s

Transcribed from the vps-security-services-processes audit script. For what the audit covers rather than how to fix it, see the Services & Processes checklist, or how the CtrlOps Security Audit runs.

Every check

Find your finding

Listed in the order the audit runs them. Take the check name from the third field of the result line and open its page.

  1. 01Unneeded ServicesSoonChecks for services that rarely belong on a VPS (cups, avahi, bluetooth, ModemManager)Severity: LOWNo root neededCan return WARN · SKIP · PASS
  2. 02Running Service CountSoonCounts running systemd services as a proxy for attack surfaceSeverity: LOWNo root neededCan return WARN · SKIP · PASS
  3. 03External Listener ProcessesSoonMaps processes listening on external interfacesSeverity: MEDIUMNeeds rootCan return WARN · SKIP · PASS
  4. 04Suspicious Cron JobsSoonCounts cron entries and hunts for download-and-execute persistence patternsSeverity: HIGHNeeds rootCan return FAIL · PASS
  5. 05Systemd TimersSoonCounts scheduled systemd timersSeverity: LOWNo root neededCan return WARN · SKIP · PASS
  6. 06Time SynchronisationSoonClock synchronisation, which every log timestamp depends onSeverity: LOWNo root neededCan return WARN · PASS
  7. 07Audit DaemonSoonauditd presence and state for a durable forensic trailSeverity: MEDIUMNo root neededCan return FAIL · WARN · PASS
  8. 08Host AppArmor/SELinuxSoonAppArmor or SELinux enforcement on the host itselfSeverity: MEDIUMNo root neededCan return WARN · PASS
  9. 09Kernel HardeningSoonASLR, dmesg restriction, reverse-path filtering and ICMP redirectsSeverity: MEDIUMNo root neededCan return WARN · SKIP · PASS

Why checks skip

A SKIP is never a pass

A skipped check verified nothing at all. The most common cause is privilege: 2 of the 9 checks in this audit need root for a complete result. Before every run, each script works out which of four privilege modes it is in.

rootThe audit runs as UID 0.Every privileged branch runs directly. No check skips for lack of permission.
nopasssudo -n true succeeds, so the account has passwordless sudo.Privileged commands run through sudo -n.
passA sudo password was supplied in the CtrlOps audit settings and accepted.Privileged commands run through sudo -S.
noneSKIPNone of the above worked.CAN_ROOT=0. Every privileged branch returns SKIP with a "Need root" message rather than guessing.

If many checks skip with a “need root” message, run the audit as root, grant the audit account sudo (with or without NOPASSWD), or supply the sudo password in the CtrlOps audit settings.

Keep going

FAQ

Services & Processes questions

Can't find your answer? Join Discord

  • Anything above 40 running units. It counts .service units reported by systemctl list-units --type=service --state=running, and warns past 40 on the basis that a single-purpose host does not need that many. Templated and per-user units such as getty@tty1 and user@1000.service inflate the total, and hosts running many containers as systemd units or a control panel exceed 40 legitimately. Treat the number as a prompt to read the list, not as a finding in itself.

  • External Listener Processes maps each externally bound TCP socket to its PID, checks whether /proc/PID is owned by uid 0, and then filters the names against a fixed allow-list of sshd, systemd, nginx, apache2, httpd, dockerd and containerd. docker-proxy is not on that list, so a container host gets one warning per published port even though the process is part of Docker itself. The same over-report hits rpcbind, the postfix master and any app you start as root, and because the filter matches on name alone it evaluates TCP only and would miss a renamed binary.

  • On a VPS, cups, avahi-daemon, bluetooth and ModemManager are the four it names and none of them has a job on a headless server, so stop, disable and then mask each one so a package update cannot re-enable it. Check what depends on them first with systemctl list-dependencies --reverse NAME, since desktop-derived and GPU images sometimes wire them into a target. The kernel hardening findings are the ones to stage carefully instead: write them to /etc/sysctl.d and apply with sysctl --system so the values survive a reboot, and expect rp_filter and accept_redirects changes to affect multi-homed or Docker hosts.

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