Skip to content
Installation and agent

How Avanguard works, from the first command

A small agent in a Docker container reads the state of the server and sends it to Avanguard over HTTPS. The platform analyses it, finds the problems and tells you what to do. Here is everything that happens, step by step.

Requirements

  • A Linux server: Ubuntu, Debian, RHEL, Rocky, AlmaLinux, Alpine and other distributions with Docker.
  • Docker 20.10 or newer, or Podman with Docker compatibility.
  • Outgoing HTTPS (port 443) towards sentry.avanguard.eu.
  • About 60 MB of RAM and a negligible amount of CPU.
  • A user that can run Docker (root or a member of the docker group).
bash
docker run -d --name avanguard-agent --restart unless-stopped \
  --pid=host --network=host --read-only --tmpfs /tmp \
  --cap-drop=ALL --cap-add=DAC_READ_SEARCH --cap-add=SYS_PTRACE --cap-add=NET_ADMIN --cap-add=NET_RAW \
  --security-opt no-new-privileges \
  -v /:/host:ro -v avanguard-agent-data:/data \
  -e AVANGUARD_URL=https://sentry.avanguard.eu \
  -e AVANGUARD_ENROLL_TOKEN=<your-token> \
  3725u193.c1.de1.container-registry.ovh.net/avanguard-agent/production:latest

Every 15 seconds

The agent sends CPU, memory, disk, network, connections and processes, plus the new lines of the SSH, sudo and web server logs, already aggregated: failed logins per IP, requests per IP, suspicious paths.

Every hour, or earlier

A full scan: operating system and kernel, installed packages and pending updates, users and SSH keys (fingerprints only), sudo rules, SSH and firewall configuration, kernel security parameters, hashes of sensitive files and scheduled tasks, SUID programs, TLS certificates, time synchronization and disk usage. When a reading finds something serious, the scan starts at once.

Why the command has those options

  • --pid=host and --network=host: to see the processes and connections of the server, not of the container.
  • -v /:/host:ro: the server filesystem, read-only.
  • --read-only, --cap-drop=ALL and no-new-privileges: the container cannot modify itself or gain privileges.
  • A few capabilities to read files and processes and, for automatic blocking, to manage its own firewall chain.
  • A small volume where the agent keeps its credential after the first connection.

Update and uninstall

To update, pull the new image and start the agent again with the same command, without the token. To uninstall, remove the container and its volume and delete the server from the platform: its credential is revoked at once. Step-by-step instructions are in the documentation.

Three steps

  1. 1

    Create the server

    On platform.avanguard.eu open Servers → Add server and copy the command with its single-use token, valid 24 hours.

  2. 2

    Run the command

    The agent enrolls, receives its own credential and sends the first data within seconds. The first full scan starts at once.

  3. 3

    Follow the suggestions

    In a few minutes the first suggestions appear. Turn on the email alerts and, if you want, automatic blocking and the terminal.

Frequently asked questions

Do I have to open a port on the firewall?

No. The agent only makes outgoing HTTPS calls to sentry.avanguard.eu. The optional terminal uses an outgoing SSH connection from Avanguard's address, which you authorize with a key limited to that address.

What if the server stays in waiting for agent?

Check the logs with docker logs avanguard-agent. The token is single use and valid 24 hours; network errors mean the server cannot reach sentry.avanguard.eu on port 443.

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.