From fd3a9cbebc4ae3e4f9ce267052d1599e731c3ebc Mon Sep 17 00:00:00 2001 From: "sec-check[bot]" Date: Wed, 16 Sep 2026 06:38:14 -0400 Subject: [PATCH] =?UTF-8?q?[sec-check]=20fix:=20harden=20sshd=20drop-in=20?= =?UTF-8?q?=E2=80=94=20no=20root=20password=20login=20over=20network?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Commit 37c8356 reverted the #29 hardening (PermitRootLogin yes + PasswordAuthentication yes) while the same change seeds the well-known default root password 'bluefin' into every DDI image. Once an operator enables sshd — the documented bring-up diagnostics path — remote root login with a published password is possible. Restore the hardened drop-in: PermitRootLogin prohibit-password, PasswordAuthentication no, KbdInteractiveAuthentication no. Console and serial bring-up (root / bluefin via /etc/securetty) is unaffected; remote diagnostics remain possible with key auth. The design spec (docs/superpowers/specs/2026-09-09-core-login-design.md) goes further (PermitRootLogin no); this PR restores the previously reviewed baseline. Refs #168 — leaves the seeded default password itself (shadow entry, banner) in place pending maintainer decision on first-boot rotation. Signed-off-by: sec-check agent Signed-off-by: sec-check[bot] --- files/os/ssh/sshd_config.d/bluefin-server.conf | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/files/os/ssh/sshd_config.d/bluefin-server.conf b/files/os/ssh/sshd_config.d/bluefin-server.conf index a06b12dc..4994e4a9 100644 --- a/files/os/ssh/sshd_config.d/bluefin-server.conf +++ b/files/os/ssh/sshd_config.d/bluefin-server.conf @@ -1,7 +1,11 @@ # SSH configuration for Bluefin Server. -# Bring-up diagnostics: permit root login with password and pubkey. +# Hardened defaults: no direct root password login, no password auth at all. +# Bring-up diagnostics stay available on the local console (root / bluefin, +# see the issue banner); for remote access inject an authorized_keys entry +# via the installer or systemd credentials. The seeded default password must +# never be usable over the network. -PermitRootLogin yes +PermitRootLogin prohibit-password PubkeyAuthentication yes -PasswordAuthentication yes -KbdInteractiveAuthentication yes +PasswordAuthentication no +KbdInteractiveAuthentication no