Skip to content
Protection

Protection from brute force, scans and floods

Attacks on a server start minutes after it goes online. Avanguard reads the logs and the connections every 15 seconds, recognizes the attack while it happens, blocks obvious scanners on its own and tells you how to stop the rest.

What counts as an attack

The agent sends every 15 seconds a summary of the SSH, sudo and web server logs and of the open connections. Avanguard looks for patterns that do not belong to normal traffic and opens a suggestion with its severity as soon as one appears, with an email for the serious ones.

  • SSH brute force: many failed logins from one address or from many addresses together (distributed brute force).
  • Scans: one address asking for many sensitive paths in a few minutes, or requests from known tools such as sqlmap, nikto or nuclei.
  • Floods: HTTP requests several times the usual level, one IP sending most of the traffic, SYN floods, too many connections from one address.
  • Login brute force on your web app: many failed logins in the access log, from one IP or from many.
  • Sensitive files exposed: a file such as /.env or /.git/config that answers with code 200.

Automatic blocking of scanners

Turn it on per server and the agent blocks for 24 hours the addresses that ask for at least three different secret files within two minutes, or that send ten requests with the user agent of a security scanner. Whoever comes back within 7 days is blocked for 7 days.

The decision is taken on your server, by fixed rules in the agent's code: the platform only sends on or off, the duration, the addresses never to block and the blocks to remove. Even someone in control of the platform could not use it to cut your server off from your partners.

  • Blocks live in their own AVANGUARD chain of iptables and ip6tables, also in front of Docker (DOCKER-USER).
  • They are never saved to a boot file and each rule carries its expiry: a reboot or a restarted agent cannot leave them forever.
  • Never blocked: private addresses, the server itself, Avanguard, Cloudflare's networks, your own list and the known clients of the last 24 hours.
  • A limit of blocks per hour protects you from a mistake: when it is reached, blocking pauses and you are told.

SSH brute force: fail2ban that really works

For SSH Avanguard relies on the tool made for it: fail2ban (CrowdSec with a firewall bouncer and sshguard are recognized too). The Protection tab checks that it is installed, that the sshd jail is enabled, that it reads a log that exists and that the ban settings are strict enough, and gives you the commands for your distribution when something is missing.

Then it checks that it works: the agent follows the fail2ban log and shows bans and failed logins per hour. If an address keeps failing without being banned, you receive the suggestion fail2ban is not stopping an attacker.

Threat lists and suspicious connections

The agent reports the open connections of the server and of every container. Avanguard compares them with public lists of botnet command servers and criminal networks (abuse.ch Feodo Tracker and SSL Blacklist, The Spamhaus Project DROP). A connection towards one of them is critical: it often means a compromised process. A database container that connects out to the internet is reported too.

Seen from the outside

With your consent for the server's public address, Avanguard checks from its own network which ports the internet really reaches, every 6 hours: a plain connection attempt, no login and no exploit. It finds firewall rules that do not apply where the traffic passes, ports opened by a NAT or by Docker, and databases left public. On verified domains it also checks TLS certificates, protocols and HTTP security headers.

From the attack to the fix

  1. 1

    Detected

    Within 15 seconds the attack becomes a suggestion with its severity, and the full scan is brought forward.

  2. 2

    Stopped or explained

    Obvious scanners are blocked by the agent; for the rest the AI writes the firewall or fail2ban commands for your server.

  3. 3

    Verified

    Check again in one click: the attack must stop showing up and the protection must report bans.

Frequently asked questions

Does Avanguard block DDoS attacks?

Avanguard detects floods (traffic spikes, one IP dominating, SYN floods, too many connections) and tells you which addresses to block and how. A large volumetric DDoS must be stopped before it reaches the server, by your provider or a CDN: no software on the server can absorb it.

Can automatic blocking cut off my own clients?

It is designed not to: it blocks only addresses that look for secret files or use scanning tools, never the known clients of the last 24 hours, never Cloudflare's networks and never the addresses in your list. Every block expires and you can remove it from the Protection tab.

What does the agent need to block addresses?

The NET_ADMIN and NET_RAW capabilities and iptables on the server. The install command generated by the platform already includes them; older agents are told to update.

Know what is happening on your servers, today

Create your account, run one Docker command and in a few minutes you see attacks, vulnerabilities and resources of the server, with the commands to fix what matters.