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.
curl -fsSL https://rootmanage.com/agent/install-audit.sh | sudo bash -s -- --url https://rootmanage.com --key YOUR_ANON_KEY --token YOUR_TOKENUse 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.
- 1Checks that you are root and that the address is HTTPS.
- 2Downloads the script and its SHA-256 checksum, and stops if they do not match.
- 3Installs the script as /usr/local/bin/rootmanage-audit.
- 4Adds a systemd service and a weekly timer (or a cron job).
- 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.
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 saidThe 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.
curl -fsSL https://rootmanage.com/agent/uninstall-audit.sh | sudo bashRemoved
- 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.
# 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 --reportWhat it adds to your server
| Path | What it is |
|---|---|
| /usr/local/bin/rootmanage-audit | The audit script (a link at /usr/bin/rootmanage-audit). Plain bash, you can read it. |
| /etc/systemd/system/rootmanage-audit.service | Runs the audit once, at the lowest priority and with limits. |
| /etc/systemd/system/rootmanage-audit.timer | Starts 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 .timer | Every 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.env | The 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.
{
"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-001 | Security and other updates waiting (apt, dnf, yum) | High |
| UPD-002 | A restart is needed for a new kernel or libraries | Medium |
| UPD-003 | Automatic security updates are on (unattended-upgrades, dnf-automatic, yum-cron) | Medium |
| UPD-004 | The operating system is still supported by its vendor, with dates for Ubuntu, Debian, CentOS, RHEL, Alma, Rocky, Oracle, CloudLinux, Amazon Linux | Critical |
| UPD-005 | Very long uptime, which usually means an old kernel | Low |
SSH
| SSH-001 | Root login over SSH, and with a password | Critical |
| SSH-002 | SSH accepts passwords instead of keys only | Medium |
| SSH-003 | SSH allows empty passwords | Critical |
| SSH-004 | Number of login tries allowed per connection | Low |
| SSH-005 | X11 forwarding is on | Low |
| SSH-006 | Old ciphers and MACs are allowed (3DES, CBC, MD5) | Low |
| SSH-007 | SSH is limited to named users or groups | Low |
| SSH-008 | How many keys can log in as root (count only) | Low |
Accounts
| ACC-001 | Accounts with an empty password (names only) | Critical |
| ACC-002 | Another account with user ID 0 (hidden root) | Critical |
| ACC-003 | Sudo rules without a password (file names only) | Medium |
| ACC-004 | System accounts that can open a shell | Low |
| ACC-005 | How many accounts have administrator rights | Info |
| ACC-006 | Volume of failed logins | Low |
Firewall
| FW-001 | A host firewall is running (ufw, firewalld, CSF, nftables, iptables) | High |
Network
| NET-001 | Databases and caches open on all interfaces (MySQL, PostgreSQL, MongoDB, Redis, Memcached, Elasticsearch and more) | High |
| NET-002 | The Docker API is reachable on the network | Critical |
| NET-003 | Old unencrypted services (telnet, rsh, tftp, FTP) | Medium |
| NET-004 | File sharing ports open to everyone (RPC, Samba, NFS) | Medium |
| NET-005 | How many ports are listening | Info |
| NET-006 | Control panel ports reachable by everyone (cPanel, WHM, Plesk, DirectAdmin, Webmin and more) | Low |
| NET-007 | Network kernel settings (SYN cookies, redirects, source routing) | Low |
Kernel
| KRN-001 | Address space randomisation (ASLR) | Medium |
| KRN-002 | Symlink, hardlink and core dump protections | Low |
| KRN-003 | SELinux or AppArmor state (SELinux is not flagged on cPanel, which does not support it) | Medium |
Files
| FIL-001 | Permissions of /etc/shadow, /etc/passwd, sshd_config and sudoers | High |
| FIL-002 | Files in /etc that anyone can change | High |
| FIL-003 | Sticky bit on /tmp, /var/tmp and /dev/shm | Medium |
| FIL-004 | /tmp mounted with noexec | Low |
| FIL-005 | Programs hiding in temp folders (a sign of miners and backdoors) | High |
| FIL-006 | SUID programs in home, temp and web folders | High |
| FIL-007 | .git folders, .env files and database dumps inside web folders | Medium |
System
| RES-001 | Disk space above 90% | High |
| RES-002 | Inodes above 90% | Medium |
| SYS-001 | Facts about the server: system, kernel, virtualisation, size, uptime | Info |
Services
| SVC-001 | Something blocks repeated failed logins (Fail2ban, CSF/LFD, CrowdSec, SSHGuard, cPHulk) | Medium |
| SVC-002 | The clock is kept in sync | Low |
| SVC-003 | A malware scanner is present (RootScan, ClamAV, Imunify, maldet, rkhunter) | Low |
| SVC-004 | Audit logging (auditd) is present | Low |
Logging
| LOG-001 | System logs survive a restart | Low |
| LOG-002 | Log rotation is set up | Low |
Backups
| BAK-001 | A backup tool or scheduled backup exists (RootManage Backup, restic, borg, JetBackup, panel backups and more) | High |
Scheduled jobs
| CRN-001 | Scheduled jobs that download and run code, decode hidden text or run from hidden temp folders | High |
Web and PHP
| WEB-001 | PHP versions that no longer get security fixes (cPanel EA-PHP, Plesk, CloudLinux Alt-PHP, Remi, system PHP) | High |
| WEB-002 | Let's Encrypt certificates that expire within 14 days | Medium |
Database
| DBS-001 | MySQL or MariaDB versions that are out of vendor support | High |
Control panel
| PNL-001 | cPanel updates itself (UPDATES setting) | High |
| PNL-002 | cPanel release tier (edge or current on a production server) | Low |
| PNL-003 | cPHulk brute-force protection is on | Medium |
| PNL-004 | ModSecurity is installed | Medium |
| PNL-005 | cPanel backups are enabled | High |
| PNL-006 | Anonymous FTP is allowed | Medium |
| PNL-010 | Plesk is a supported generation | High |
| PNL-011 | Plesk brute-force protection (Fail2ban) | Medium |
| PNL-020 | DirectAdmin runs with SSL | High |
| PNL-021 | DirectAdmin brute-force scanner is on | Medium |
| PNL-030 | Webmin and Virtualmin run with SSL | High |
| PNL-099 | Other panels found: CyberPanel, CloudPanel, HestiaCP, aaPanel, CentOS Web Panel, ISPConfig, Froxlor | Low |
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 failure | 15 |
| High failure | 8 |
| Medium failure | 4 |
| Low failure | 1.5 |
| "To review" (warning) | half of the above |
Grades
| A | 90 to 100 | Strong |
| B | 80 to 89 | Good, a few things to fix |
| C | 65 to 79 | Fair, needs attention |
| D | 50 to 64 | Weak, fix the top items soon |
| F | under 50 | At risk, act now |
Troubleshooting
| You see | What to do |
|---|---|
| Run as root | Use sudo, or log in as root. The audit reads settings only root can see. |
| An audit was sent a few minutes ago | Wait 5 minutes and run it again. |
| This server is not Active | The audit is part of the paid plans. Check the plan of that server in Billing. |
| The server token was not accepted | Copy the install line again from the dashboard. A new token replaces the old one. |
| does not match its published checksum | The 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 dashboard | Run 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.