Free server audit
Check a Linux server for free, with no sign-up - the attacks of the last 24 hours, weak SSH settings, open ports and pending updates, read-only.
Last updated:
The free server audit shows what InfraFence would find on a server before you install anything. It has two levels: a one-minute command that runs on the server, and a check from the outside that needs only a domain. Neither needs an account.
The command on the server
Run it as root, or with sudo:
curl -fsSL https://infrafence.com/audit.sh | shhttps://infrafence.com/audit.sh redirects to the audit.sh of the latest agent release on GitHub, so you can read the script there first. The script:
- downloads the latest InfraFence agent for the server's architecture (x86-64 or ARM64), and checks its checksum and signature like the installer does;
- runs
infrafence-agent auditonce; - deletes the binary and its temporary folder.
It installs nothing and writes nothing outside a temporary folder: no service, no firewall rule, no configuration. Root is needed to read the system logs and the SSH configuration.
The audit is read-only and bounded: it changes no firewall rule, configuration, service or package (it does not run apt update; pending updates come from the package manager's cache), stops after 60 seconds, runs at low priority and reads at most the last 24 hours of logs.
What it checks
- SSH: password logins, root login, port 22 open to the whole internet.
- Services: database ports and admin services (Docker API, Redis, Elasticsearch, Memcached) listening on public addresses.
- Updates: pending security updates, a reboot still needed, an operating system past its end of life.
- Protection: no active firewall, nothing that bans brute-force attacks (fail2ban, CSF or InfraFence).
- Accounts and files: extra accounts with UID 0, accounts with an empty password, system files that any user can change.
- PHP: risky settings such as
display_errorsorallow_url_include. - Attacks: failed SSH logins and suspicious web requests of the last 24 hours, and the addresses behind most of them.
What it sends
Before it uploads anything, the command prints in the terminal every field it is about to send. The report holds the id and result of each check with short facts (a port, a setting's value), the attack counts and the top attacker addresses, and the distribution, kernel, hosting panel and web server.
It never holds the server's name or its own IP addresses, usernames other than root, file contents, paths under /home, passwords or keys. The dashboard checks this again when the report arrives: fields outside the report's format are dropped, and so are values that look like an IP address, an email address or a home folder. The address the report is uploaded from is also removed from the attacker list: it is the server's own public IP, which a cloud server behind NAT does not see on its interfaces.
Without sending anything
curl -fsSL https://infrafence.com/audit.sh | sh -s -- --no-uploadWith --no-upload the report is printed only in the terminal, as text and as JSON.
The report page
After the upload the command prints a link like https://infrafence.com/tools/server-audit/r#…. The page shows:
- the attack numbers of the last 24 hours;
- a score from 0 to 100 and the findings, worst first, each with a one-line fix;
- the top attacker addresses, with their country and whether the InfraFence network already knows them: an address is known when servers of at least 3 organizations that share with the network, or several servers of InfraFence's own hosting infrastructure, saw it attack, or ban it now;
- the system, hosting panel, firewall and the ports open to the internet.
The token is the part of the link after #. Browsers never send that part to a server, so it does not end up in web server logs. InfraFence stores only a hash of the token, and deletes the report after 7 days. Anyone with the link can read the report until then: keep it private, or send it to whoever looks after the server.
At most 5 reports per hour can be uploaded from one address.
The outside check
On the audit page, type a domain. The dashboard looks only at what anyone on the internet can see, with the requests a browser makes:
- HTTPS: whether it answers, whether the certificate is valid for the name and when it expires, whether TLS 1.0 or 1.1 are still accepted, and whether HTTP redirects to HTTPS;
- the security headers of the home page (HSTS, Content-Security-Policy, X-Content-Type-Options, framing, Referrer-Policy);
- the software versions the server announces, compared with known exploited vulnerabilities and with upstream end of life;
- a short fixed list of paths that should never be public:
/.env,/.git/HEAD, common backup and dump names,/phpmyadmin/; - the SPF and DMARC records of the domain;
- the server's address on public spam blocklists, and in the InfraFence network's data (only addresses seen by at least 3 organizations, or by several servers of InfraFence's own hosting infrastructure).
There is no port scan. Requests go only to public addresses, at most 10 checks per hour per visitor, and a domain's result is kept in memory for 10 minutes, never stored.
The requests use the user agent InfraFence-Audit/1.0. To report abuse, or to ask that your domain is never checked, write to info@infrafence.com: the check then answers that the owner asked us not to check it.
From the audit to protection
The audit only reads and reports. To block the attacks it found, create an account: the 14-day free trial needs no card, and the install command uses the same agent the audit ran, this time as a service.
