InfraFenceInfraFence

Live Security Operations

Get started

Free · no sign-up

See who is attacking your server right now

Free, in about a minute. One command reads your Linux server's logs and settings, counts the attacks of the last 24 hours, finds the weak spots and gives you a one-line fix for each.

  • No sign-up
  • Read-only: changes nothing
  • Nothing installed
  • Source code on GitHub
  • Report deleted after 7 days

Last updated:

Check your server from the inside

Run this on the server as root or with sudo. Root is needed to read the logs and the SSH configuration; nothing is changed, installed or left behind.

curl -fsSL https://infrafence.com/audit.sh | sh

In about a minute you get a summary in the terminal, every field it is about to send, and a private link to your report.

Prefer to send nothing?

Add --no-upload and the report is printed in your terminal only, as text and JSON. Nothing leaves the server.

curl -fsSL https://infrafence.com/audit.sh | sh -s -- --no-upload

No shell access? Check from the outside

Type a domain and we look at what anyone on the internet can see: HTTPS and its certificate, security headers, exposed files, SPF and DMARC, server banners and blocklists. No port scan.

The outside check sends a few requests to the site, about 15, as a browser would (user agent InfraFence-Audit/1.0), and never scans ports. To report abuse or ask us never to check your domain, write to info@infrafence.com.

What the command reads

What the command reads

  • The SSH server's settings: password logins, root login, port.
  • The last 24 hours of the SSH and web server logs, to count failed logins and suspicious requests.
  • Which ports listen on public addresses, and which program owns them.
  • Pending security updates, from the package manager's cache, and whether a reboot is due.
  • Firewall, fail2ban or CSF, accounts with root powers or empty passwords, risky PHP settings.

What it sends

  • The id and result of each check, with short facts such as a port number or a setting's value.
  • Attack counts, and the addresses that attacked the server most.
  • The distribution and version, the kernel, the hosting panel and the web server.

What it never sends

  • The server's name or its own IP addresses.
  • Usernames (other than root), file contents, paths under /home, passwords or keys.

How it works

  1. 01

    The script downloads the latest InfraFence agent release, and checks its checksum and signature like the installer does.

  2. 02

    The agent runs once in audit mode, read-only, for a minute at most, at low priority.

  3. 03

    It prints the summary and what it is about to send, uploads the report and deletes itself.

  4. 04

    Your report link works for 7 days. Then the report is deleted.

Under attack right now?

What to do in the next 10 minutes: find the attack, block it without locking yourself out, check that nobody got in.

Read the emergency steps

Questions

Is it safe to run on a production server?

It is read-only: it changes no firewall rule, configuration, service or package, and it does not run apt update. It reads at most the last 24 hours of logs, stops after 60 seconds and runs at low priority. It removes the binary and its temporary folder when it is done.

Why does it need root?

To read the SSH configuration and the system logs, which only root can read on most distributions. Read the script before running it if you prefer: the link is on this page.

What do you store, and for how long?

Only the report it uploaded, under a random token that is in your link. We keep only a hash of the token, so we cannot open the report without your link. It is deleted after 7 days. The outside check of a domain is kept in memory for 10 minutes and never written to disk.

Who can see my report?

Anyone with the link, until it expires: keep it private, or send it to your sysadmin. The token is in the part of the link after #, which browsers never send to a server, so it does not end up in logs.

Can I run it without sending anything?

Yes: add --no-upload and the report is printed only in your terminal, as text and JSON.

Does it fix anything?

No. It tells you what it found and how to fix each point. InfraFence, if you install it, blocks the attacks; on AutoMode it also applies safe fixes and undoes any that break something.

Which systems does it run on?

The same Linux distributions as the InfraFence agent, on x86-64 and ARM64. The outside check works for any public website.

InfraFence blocks attacks like these automatically: start your 14-day free trial, no card.

Start the free trial