Open source · Apache 2.0 · Rust

FerroSentry: Security audits and real-time alerts for your servers

A Rust agent that audits your Linux servers every hour and watches critical files and SSH logins in real time: open ports, SSH configuration, firewall and Docker bypass, pending security updates, SUID binaries, cron persistence, suspicious processes, failed logins and logins from new addresses, plaintext secrets, changes to SSH authorized keys and fail2ban/CrowdSec. Findings go to SecuryBlack Cloud, where you can also ask it to apply fixes.

Alert time
10 s
Critical files and logins; the rest hourly
Audit modules
12
Ports, SSH, secrets, FIM…
Changes
On request
Only on explicit commands
Updates
Signed
ed25519-verified releases
curl -fsSL https://install.ferrosentry.dev | sudo bash -s -- --endpoint https://api.securyblack.com --token <TOKEN>
Get the token for your server in the SecuryBlack panel. Without --endpoint and --token the script asks for them. Needs systemd; x86_64 and aarch64.
Features

What it does

Finds the common ways a server ends up exposed, and fixes them only when you ask.

Audit
Every hour

Posture audit

Checks listening ports, the SSH settings sshd actually applies (root login, password authentication, port 22, X11 forwarding, MaxAuthTries), UFW and the iptables INPUT policy, Docker bypassing UFW, pending and security updates (apt, dnf, yum), unattended upgrades, SUID/SGID binaries in temporary directories, world-writable files in /etc and sudo logging.

Detection
Within seconds

Intrusion signals

Every 10 seconds: successful SSH logins from an address never seen for that user, and changes to /etc/passwd, /etc/shadow, /etc/sudoers, sshd_config, every user's authorized_keys and other critical files against a SHA-256 baseline. Every hour: failed logins in /var/log/auth.log, processes running from /tmp or /dev/shm or from deleted binaries and suspicious cron entries.

Detection
What an intruder takes first

Plaintext secrets

Finds credentials left in plaintext: AWS keys, npm, PyPI, Docker, GitHub CLI and Kubernetes tokens, .git-credentials, .netrc, SSH private keys without a passphrase and .env files any user can read. Only the path and type are reported, never the content.

Remediation
From the SecuryBlack panel

Fixes when you ask

SSH hardening that checks sshd really applied it, UFW rules with anti-lockout protection, unattended upgrades, and installing and managing fail2ban and CrowdSec, including ban and unban. OS upgrades only run if you set allow_remote_os_upgrade = true on the server.

Trust
ed25519

Signed updates and commands

The daily self-update only installs releases signed with SecuryBlack's offline ed25519 keys. Commands from the panel carry an ed25519 signature bound to your server (enforcement is rolling out). Every outbound connection is listed in SECURITY.md.

How it works

Four steps, one binary

Open source under Apache 2.0. Read it on GitHub.

STEP 01Read-only

Audit

Every hour, runs its twelve audit modules: ports, packages, SSH, file integrity (including authorized_keys), permissions, persistence, processes, firewall, fail2ban/CrowdSec, logins (failed, and successful from new addresses), plaintext secrets and an inventory of Let's Encrypt certificates. Critical files and SSH logins are also checked every 10 seconds.

STEP 02Event engine

Normalize

Tags each finding with the host name, a severity and a suggested fix, drops duplicates within a scan and, for some checks, sends a resolved event when the problem goes away.

STEP 03Outbound only

Report

Posts each finding as JSON to the SecuryBlack API with your token, hands it to the local SecuryBlack agent over gRPC, or writes it to a local JSONL file.

STEP 04Explicit

Fix on request

Runs a remediation only when a command arrives on its token-protected local socket, normally sent from the panel.

Frequently Asked Questions

Everything You Need to Know

The install scripts are set up for SecuryBlack Cloud and require an endpoint and a token. To run it without an account, set mode = "local_file" in /etc/ferro-sentry/config.toml after installing; findings are then only written to a local JSONL file.

Try it on one server

Get the token for your server in the SecuryBlack panel and run the install command. Findings, and the fixes you can apply, show up in the panel.