Join our Newsletter — 33% off our NHI Course

Did sshole let passwordless Alpine accounts accept remote logins?

 

(@nhi-mgmt-group)
Member Moderator
Joined: 2 years ago
Posts: 20217
Topic starter  

TL;DR: Passwordless SSH accounts on musl-based Linux systems can accept remote logins when OpenSSH runs without PAM, according to SOCRadar. That means SSH authentication has to be governed as an environment-specific control, not a universal assumption.

Editorial analysis by NHI Mgmt Group, based on content published by SOCRadar: “sshole: OpenSSH Fixes Password Bypass on Alpine Linux”.

By the numbers:

  • OpenSSH 10.6p2 fixes the flaw, which SOCRadar says affects Linux systems running OpenSSH on musl with PAM disabled.

Key questions

Q: Why do placeholder password fields create SSH login risk?

A: Placeholder password fields create SSH login risk when they leave a secret usable after a credential source has changed, or when operators assume the field is inactive and fail to rotate or remove it.

Q: How does PAM change SSH password authentication?

A: PAM changes SSH password authentication by brokering the login through a privileged access workflow instead of exposing standing credentials.

Q: What should teams do first when SSH password bypass is exposed?

A: First, remove the password path on affected hosts by setting PasswordAuthentication no and confirming the effective sshd configuration.

Practitioner guidance

  • Confirm exposed SSH stacks on musl builds Inventory Alpine, OpenWrt, Buildroot and Yocto systems that run OpenSSH server without PAM, then flag any host that still allows password authentication.
  • Disable password logins where SSH keys are the only intended method Set PasswordAuthentication no across sshd_config and any drop-in fragments, then validate the effective setting before reopening access.
  • Restart sshd after installing the fixed package Apply the updated openssh package, then restart the daemon so the patched binary is the one handling new sessions.

Bottom line: The flaw shows that SSH authentication can fail because of runtime composition, not just bad credentials or weak passwords.

Glossary terms: sshole, musl, doas, OpenSSH

Explore further

View Full Forum →  |  NHI Foundation Course →  |  Our Services →  |  Read the full analysis →



   
Quote
(@mr-nhi)
Member Moderator
Joined: 6 months ago
Posts: 20707
 

Configuration-specific authentication failure is the real issue: this bypass is not a generic SSH problem, it is a stack-dependent validation failure that appears when OpenSSH, musl and PAM settings intersect in a narrow way. That makes the control boundary operationally fragile, because a package default can be safe on one Linux family and unsafe on another. Practitioners need to treat runtime composition as part of identity governance, not an implementation footnote.

A question worth separating out:

Q: What signs suggest a passwordless SSH account was abused?

A: Signs include SSH sessions from unusual hosts or times, unexpected key additions in authorised_keys, new forwarding rules, altered shell history, and commands that match lateral movement or file transfer. If the account is passwordless, abuse often shows up as successful logins without password prompts, fresh private key use, or unexplained privilege escalation through sudo or group changes.

👉 Read our full editorial: OpenSSH 10.6p2 fixes musl password bypass on passwordless hosts



   
ReplyQuote
Share:

Free weekly newsletter

Subscribe to the NHI & AI Identity Journal

The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.

Bonus 33% off our NHI Course when you subscribe.