
Fleet-scale CVE-2026-31431 audit and remediation orchestrator for Linux hosts via SSH, with strict host-key verification and multi-format reporting.
This project is a fleet-scale orchestrator for auditing and remediating CVE-2026-31431 on Linux hosts in enterprise/internal networks.
algif_aead disable)>=3.13uvuv sync
Tsinghua mirror is configured in pyproject.toml:
[tool.uv]
index-url = "https://pypi.tuna.tsinghua.edu.cn/simple"
cp fleet.env.example fleet.env
Then update fleet.env with your real hosts and credentials.
uv run python main.py fleet.env
.
├── main.py
├── pyproject.toml
├── uv.lock
├── fleet.env.example
├── reports/
└── src/
├── main.py
├── models.py
├── config.py
├── executor.py
├── collector.py
├── analyzer.py
├── adapters.py
├── remediator.py
├── orchestrator.py
└── reporter.py
fleet.env Configuration ReferenceFormat is KEY=VALUE. Empty lines and # comments are ignored.
MODE
audit: detect only, no remediation.fix: detect and run remediation flow.auditAUTO_REBOOT
0 or 10MODE=fix.SSH_TIMEOUT
12MAX_WORKERS
8REPORT_DIR
./reportsPROGRESS_HEARTBEAT_SECONDS
5DEVICE_MAX_DURATION_SECONDS
1800PROGRESS_LOG_TO_FILE
REPORT_DIR.0 or 11FLEET_COUNT
1..FLEET_COUNT.DEVICE_n_HOST is empty, that slot is skipped.Each host uses DEVICE_{n}_ prefix, such as DEVICE_1_*, DEVICE_2_*.
DEVICE_n_NAME
device_n.DEVICE_n_HOST
DEVICE_n_PORT
22DEVICE_n_USER
rootDEVICE_n_PASSWORD
DEVICE_n_KEY.fleet.env.DEVICE_n_KEY
./keys/node-1_ed25519DEVICE_n_PASSWORD and DEVICE_n_KEY are empty, the connection fails fast.DEVICE_n_SUDO_PASSWORD
# =========================
# Global
# =========================
MODE=audit
AUTO_REBOOT=0
SSH_TIMEOUT=12
MAX_WORKERS=8
REPORT_DIR=./reports
PROGRESS_HEARTBEAT_SECONDS=5
DEVICE_MAX_DURATION_SECONDS=1800
PROGRESS_LOG_TO_FILE=1
FLEET_COUNT=3
# =========================
# Device 1
# =========================
DEVICE_1_NAME=pve-node-1
DEVICE_1_HOST=192.168.1.10
DEVICE_1_PORT=22
DEVICE_1_USER=root
DEVICE_1_PASSWORD=
DEVICE_1_KEY=./keys/pve-node-1_ed25519
DEVICE_1_SUDO_PASSWORD=
# =========================
# Device 2
# =========================
DEVICE_2_NAME=web-1
DEVICE_2_HOST=192.168.1.20
DEVICE_2_PORT=22
DEVICE_2_USER=admin
DEVICE_2_PASSWORD=your_ssh_password
DEVICE_2_KEY=
DEVICE_2_SUDO_PASSWORD=your_sudo_password
# =========================
# Device 3
# =========================
DEVICE_3_NAME=
DEVICE_3_HOST=192.168.1.30
DEVICE_3_PORT=22
DEVICE_3_USER=ops
DEVICE_3_PASSWORD=
DEVICE_3_KEY=./keys/db-1_ed25519
DEVICE_3_SUDO_PASSWORD=
MODE=audit
uv run python main.py fleet.env
Behavior:
MODE=fix
AUTO_REBOOT=0
uv run python main.py fleet.env
Behavior:
/etc/modprobe.d/disable-cve-2026-31431-algif-aead.confalgif_aeadAUTO_REBOOTSAFE
algif_aead is not loaded.MITIGATED
NEEDS_PATCH
algif_aead is available/loaded and patch hints are missing.UNKNOWN
FAILED
Each run generates 3 files in REPORT_DIR:
cve_2026_31431_<timestamp>.jsoncve_2026_31431_<timestamp>.csvcve_2026_31431_<timestamp>.mdprogress_<timestamp>.log (real-time progress and heartbeat logs)Core fields:
name, hoststatuskernel, osalgif_loaded, algif_availablepatch_hintfixed, rebootederrorfleet.env or private keys.audit -> fix -> re-audit.ModuleNotFoundError: No module named 'paramiko'
uv sync.Many hosts are FAILED
BadHostKeyException
known_hosts record.fleet.env credentials.ssh-keygen -R <host>ssh-keyscan -H <host> >> $env:USERPROFILE\.ssh\known_hostsServer ... not found in known_hosts
known_hosts, then rerun.Kernel updated but status still risky