Home / Agents / Security audit

Agent guide

Security audit agent: install, remove, full details

A small read-only script that checks any Linux server and control panel and shows the result in your dashboard. This page has the install and remove commands and everything the agent does, so you can decide before you run it.

  • Read-only: changes nothing
  • Lowest priority, 10% CPU cap
  • Sends no passwords, keys or files
  • Paid plans, Linux, any panel

Before you start

  • A Linux server you can log in to as root (or with sudo).
  • The server is added to your RootManage account and its plan is Active. The audit is part of the paid plans.
  • bash, curl and the usual system tools. It uses systemd, or cron when systemd is not there.
  • The server can make outgoing HTTPS connections to rootmanage.com. No inbound port is opened.

Install

One command. It installs the script, a weekly timer and runs the first audit.

install (run as root)
curl -fsSL https://rootmanage.com/agent/install-audit.sh | sudo bash -s -- --url https://rootmanage.com --key YOUR_ANON_KEY --token YOUR_TOKEN

Use the ready-made line from your dashboard. It already contains your key and your server token. Open Dashboard, Security audit, pick the server and press "Show the install line". The line above shows the shape, with YOUR_ANON_KEY and YOUR_TOKEN in place of the real values. Keep the token private.

  1. 1Checks that you are root and that the address is HTTPS.
  2. 2Downloads the script and its SHA-256 checksum, and stops if they do not match.
  3. 3Installs the script as /usr/local/bin/rootmanage-audit.
  4. 4Adds a systemd service and a weekly timer (or a cron job).
  5. 5Runs the first audit and sends the result. The score appears in your dashboard within a minute.

Other agents (Health, Backup, Metrics, LiteHouse, Guard, Site Clean) are not changed. The same token works for all of them.

Run it, check it

After the install it runs by itself every week. You can also run it whenever you like.

commands
sudo rootmanage-audit --once      # run now and send the result to your dashboard
sudo rootmanage-audit --print     # run now and only print the raw result here, nothing is sent
sudo rootmanage-audit --report    # run now and show a readable report here, nothing is sent
rootmanage-audit --version        # show the installed version
systemctl list-timers | grep rootmanage-audit   # when the next weekly run is
journalctl -u rootmanage-audit -n 30            # what the last scheduled run said

The dashboard accepts one report every 5 minutes per server, and at most 24 a day.

Remove (uninstall)

Removes the audit only. Other agents stay as they are.

uninstall (run as root)
curl -fsSL https://rootmanage.com/agent/uninstall-audit.sh | sudo bash

Removed

  • The script and its link
  • The systemd service and timer, or the cron file
  • Any leftover temporary files

Kept

  • /etc/rootmanage/agent.env, because the other agents use it
  • Your past reports in the dashboard (the last 12 per server)

To remove every RootManage agent, use the commands on the agent page.

Read it first, install by hand

You do not have to trust a one-line installer. Check the file, read it and run it without sending anything.

check before you run
# 1. download the script and its checksum
curl -fsSLO https://rootmanage.com/agent/rootmanage-audit.sh
curl -fsSLO https://rootmanage.com/agent/rootmanage-audit.sh.sha256

# 2. check that the file matches the published checksum (it must print OK)
sha256sum -c rootmanage-audit.sh.sha256

# 3. read it (it is plain bash), then run it WITHOUT sending anything
less rootmanage-audit.sh
sudo bash rootmanage-audit.sh --print

# or run it and read a report on screen (also sends nothing)
sudo bash rootmanage-audit.sh --report

What it adds to your server

PathWhat it is
/usr/local/bin/rootmanage-auditThe audit script (a link at /usr/bin/rootmanage-audit). Plain bash, you can read it.
/etc/systemd/system/rootmanage-audit.serviceRuns the audit once, at the lowest priority and with limits.
/etc/systemd/system/rootmanage-audit.timerStarts it every Sunday at about 03:30. On servers without systemd, /etc/cron.d/rootmanage-audit does this.
/etc/systemd/system/rootmanage-audit-poll.service and .timerEvery 10 minutes it sends one tiny request with your server token and gets back "run" or "do not run". The audit starts only if you pressed "Run audit now" in your dashboard. On servers without systemd, a second line in /etc/cron.d/rootmanage-audit does this.
/etc/rootmanage/agent.envThe server token and the site address, readable by root only. Shared with the other RootManage agents, so it stays if you remove only the audit.
/var/lib/rootmanage/Two short-lived files while it runs (audit.body.json and audit.resp.json). Both are deleted at the end of every run.

Safety and limits

Read-only

It looks at settings and file permissions. It never writes to your system, installs packages, edits files or restarts services.

Light

Nice 19, idle disk priority, a 10% CPU cap, 192 MB memory limit, and a hard stop after 170 seconds. Most of the work is reading a few files.

Locked down

The systemd unit adds NoNewPrivileges, a read-only /etc and /usr, and read-only home folders. The script only talks to your RootManage site over HTTPS 1.2 or newer.

What it sends, and what it never sends

Only the result of the audit leaves your server, in one request. Between audits, a tiny check every 10 minutes sends nothing but the server token.

Sent

  • A list of checks with a number, a plain title, what was found and how to fix it
  • The score and counts (calculated again on our side)
  • The system, version, kernel, server type, number of CPUs and RAM, uptime in days
  • The control panel name and version, and the host name
  • Account names and file names where a finding needs them, for example "backup.sql in a web folder"

Never sent

  • Passwords, password hashes or private keys
  • The content of any file, database or mailbox
  • Log files or command history
  • Website content or customer data
  • Anything from other users on the server beyond the account and file names a finding mentions

This is what one finding looks like. You can see the full report on your own server with sudo rootmanage-audit --print.

one finding
{
  "id": "SSH-001",            // stable check number
  "cat": "ssh",               // category
  "sev": "critical",          // critical, high, medium, low or info
  "st": "fail",               // pass, fail, warn or info
  "t": "Root can log in with a password",
  "d": "SSH allows the root account with a password...",
  "f": "Set PermitRootLogin to prohibit-password...",
  "e": "PermitRootLogin yes, PasswordAuthentication yes"   // what was found, names only
}

Reports are kept for 12 runs per server. Customers see their own servers. RootManage admins can see all reports to help you fix them. Read our security page and privacy policy.

All 63 checks

Where the audit cannot tell, it says so. Version 1.0.0.

Updates

UPD-001Security and other updates waiting (apt, dnf, yum)High
UPD-002A restart is needed for a new kernel or librariesMedium
UPD-003Automatic security updates are on (unattended-upgrades, dnf-automatic, yum-cron)Medium
UPD-004The operating system is still supported by its vendor, with dates for Ubuntu, Debian, CentOS, RHEL, Alma, Rocky, Oracle, CloudLinux, Amazon LinuxCritical
UPD-005Very long uptime, which usually means an old kernelLow

SSH

SSH-001Root login over SSH, and with a passwordCritical
SSH-002SSH accepts passwords instead of keys onlyMedium
SSH-003SSH allows empty passwordsCritical
SSH-004Number of login tries allowed per connectionLow
SSH-005X11 forwarding is onLow
SSH-006Old ciphers and MACs are allowed (3DES, CBC, MD5)Low
SSH-007SSH is limited to named users or groupsLow
SSH-008How many keys can log in as root (count only)Low

Accounts

ACC-001Accounts with an empty password (names only)Critical
ACC-002Another account with user ID 0 (hidden root)Critical
ACC-003Sudo rules without a password (file names only)Medium
ACC-004System accounts that can open a shellLow
ACC-005How many accounts have administrator rightsInfo
ACC-006Volume of failed loginsLow

Firewall

FW-001A host firewall is running (ufw, firewalld, CSF, nftables, iptables)High

Network

NET-001Databases and caches open on all interfaces (MySQL, PostgreSQL, MongoDB, Redis, Memcached, Elasticsearch and more)High
NET-002The Docker API is reachable on the networkCritical
NET-003Old unencrypted services (telnet, rsh, tftp, FTP)Medium
NET-004File sharing ports open to everyone (RPC, Samba, NFS)Medium
NET-005How many ports are listeningInfo
NET-006Control panel ports reachable by everyone (cPanel, WHM, Plesk, DirectAdmin, Webmin and more)Low
NET-007Network kernel settings (SYN cookies, redirects, source routing)Low

Kernel

KRN-001Address space randomisation (ASLR)Medium
KRN-002Symlink, hardlink and core dump protectionsLow
KRN-003SELinux or AppArmor state (SELinux is not flagged on cPanel, which does not support it)Medium

Files

FIL-001Permissions of /etc/shadow, /etc/passwd, sshd_config and sudoersHigh
FIL-002Files in /etc that anyone can changeHigh
FIL-003Sticky bit on /tmp, /var/tmp and /dev/shmMedium
FIL-004/tmp mounted with noexecLow
FIL-005Programs hiding in temp folders (a sign of miners and backdoors)High
FIL-006SUID programs in home, temp and web foldersHigh
FIL-007.git folders, .env files and database dumps inside web foldersMedium

System

RES-001Disk space above 90%High
RES-002Inodes above 90%Medium
SYS-001Facts about the server: system, kernel, virtualisation, size, uptimeInfo

Services

SVC-001Something blocks repeated failed logins (Fail2ban, CSF/LFD, CrowdSec, SSHGuard, cPHulk)Medium
SVC-002The clock is kept in syncLow
SVC-003A malware scanner is present (RootScan, ClamAV, Imunify, maldet, rkhunter)Low
SVC-004Audit logging (auditd) is presentLow

Logging

LOG-001System logs survive a restartLow
LOG-002Log rotation is set upLow

Backups

BAK-001A backup tool or scheduled backup exists (RootManage Backup, restic, borg, JetBackup, panel backups and more)High

Scheduled jobs

CRN-001Scheduled jobs that download and run code, decode hidden text or run from hidden temp foldersHigh

Web and PHP

WEB-001PHP versions that no longer get security fixes (cPanel EA-PHP, Plesk, CloudLinux Alt-PHP, Remi, system PHP)High
WEB-002Let's Encrypt certificates that expire within 14 daysMedium

Database

DBS-001MySQL or MariaDB versions that are out of vendor supportHigh

Control panel

PNL-001cPanel updates itself (UPDATES setting)High
PNL-002cPanel release tier (edge or current on a production server)Low
PNL-003cPHulk brute-force protection is onMedium
PNL-004ModSecurity is installedMedium
PNL-005cPanel backups are enabledHigh
PNL-006Anonymous FTP is allowedMedium
PNL-010Plesk is a supported generationHigh
PNL-011Plesk brute-force protection (Fail2ban)Medium
PNL-020DirectAdmin runs with SSLHigh
PNL-021DirectAdmin brute-force scanner is onMedium
PNL-030Webmin and Virtualmin run with SSLHigh
PNL-099Other panels found: CyberPanel, CloudPanel, HestiaCP, aaPanel, CentOS Web Panel, ISPConfig, FroxlorLow

The severity shown is the worst case for that check. A check that passes counts for nothing against you.

How the score is worked out

The score is calculated again on our side from the findings, so it cannot be changed by the script.

Points taken off 100

Critical failure15
High failure8
Medium failure4
Low failure1.5
"To review" (warning)half of the above

Grades

A90 to 100Strong
B80 to 89Good, a few things to fix
C65 to 79Fair, needs attention
D50 to 64Weak, fix the top items soon
Funder 50At risk, act now

Troubleshooting

You seeWhat to do
Run as rootUse sudo, or log in as root. The audit reads settings only root can see.
An audit was sent a few minutes agoWait 5 minutes and run it again.
This server is not ActiveThe audit is part of the paid plans. Check the plan of that server in Billing.
The server token was not acceptedCopy the install line again from the dashboard. A new token replaces the old one.
does not match its published checksumThe download was cut off or changed. Nothing was installed. Try again, and contact us if it repeats.
The audit could not be sent (HTTP 000)The server cannot reach rootmanage.com over HTTPS. Check outgoing firewall rules and DNS. Use --print to see the result locally.
No new report in the dashboardRun sudo rootmanage-audit --once and read the message. Check the timer with systemctl list-timers.

Version history

1.2.0 9 November 2026

Free mode: rootmanage-audit --report prints a readable report on your screen and sends nothing. See the free Linux security audit.

1.1.0 8 November 2026

“Run audit now” and “Verify my fixes” buttons in the dashboard: a second timer asks every 10 minutes whether one was pressed (rootmanage-audit --poll). To get it on a server installed with 1.0.0, paste the install line from your dashboard once more.

1.0.0 8 November 2026

First release: 63 checks for Linux servers and the cPanel/WHM, Plesk and DirectAdmin panels, with detection and port checks for CyberPanel, CloudPanel, HestiaCP, Webmin, Virtualmin, aaPanel, CentOS Web Panel and ISPConfig. Weekly timer, checksum-checked installer and uninstaller.

Security audit agent: questions

Who can use the security audit?

Customers with an Active paid server. The report is accepted only for a server that is Active, and customers see only their own servers.

Does it change my server?

No. It is read-only. It does not install packages, edit files, open ports or restart anything. The installer only adds the script, one timer and the shared token file.

Will it slow my server down?

No. It runs at the lowest CPU and disk priority, capped at 10% of one CPU and 192 MB of memory, and stops after about three minutes. A normal run takes a few seconds to a minute, once a week.

Does it open a port or accept connections?

No. It only makes one outgoing HTTPS call to rootmanage.com when it has a result.

What if my server has no systemd?

The installer uses a weekly cron job in /etc/cron.d instead.

Which systems are supported?

Linux servers that use bash and the usual tools: Ubuntu, Debian, AlmaLinux, Rocky Linux, CentOS, RHEL, CloudLinux, Oracle Linux, Amazon Linux and similar, with or without a control panel.

Is this a penetration test or a certification?

No. It reviews settings and finds known weak spots. It does not attack the server and it is not a certification.

What about Windows and cloud accounts?

This agent is for Linux. Windows servers and cloud accounts (AWS, Azure, Google Cloud) are not covered yet. For a cloud review, see the Cloud Security Audit service.

Know where your server stands

The security audit is included with paid plans. Open your dashboard, paste one line, and read the result in a minute.