15 min read
Security Research

sshhole: 15 Sources, 300-Character Passwords and the alpine User

A musl crypt() quirk lets OpenSSH on Alpine accept any 257 to 1,024 byte password for locked accounts. Our honeypot saw the first probe the day it was disclosed and 15 sources in the next 12 days. Most went for the alpine user.

The first probe tried the account root can't protect

OpenSSH 10.6p2 and Alpine's security advisory both shipped on 5 November 2026, and the CVE record was published at 15:46 UTC. Three hours later, at 18:44:40 UTC, a client logged into our honeypot as alpine with a password of 300 As. Within five seconds it checked who it was, confirmed the box was Alpine, and looked for doas.

That's the right account to try. Root on Alpine is also exposed to this bug, but OpenSSH's default PermitRootLogin prohibit-password refuses password logins for root anyway. The alpine user on Alpine's official cloud images has no such guard, and it has passwordless doas. Getting in as alpine means getting root.

Fourteen more sources followed over the next 12 days. CISA added the bug to its Known Exploited Vulnerabilities catalog on 9 November as CVE-2026-123158.

This post covers what was disclosed, what those 15 sources sent, and how to hunt for exposure, attempts and success.

What was disclosed

sshhole
Reported byÖzgün Kültekin, Wakefield
Fixed byDamien Miller and Darren Tucker (OpenSSH); packages by Natanael Copa (Alpine)
CVECVE-2026-123158, published 5 November 2026, 15:46 UTC
CVSS 3.18.1 high, AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H (MITRE as CNA; NVD agrees)
CISA SSVCExploitation: active · Automatable: no · Technical impact: total
CISA KEVAdded 9 November 2026
Upstream fixOpenSSH 10.6p2, 5 November 2026
Distribution advisoryAlpine Linux, 5 November 2026
Root causemusl's crypt() returns the string * as an error when the key is longer than 256 bytes
Attacker inputA password of 257 to 1,024 bytes

How it works, in plain terms. In a Linux shadow file, * in the password field means "no password can match this account". It's how distributions mark key-only and system accounts. musl's crypt() has a length limit added for denial-of-service protection: past 256 bytes it gives up and returns * as an error value. sshd built without PAM hashes the password the client sent and compares the result with the shadow field. A long password hashes to *, the account's field is *, and the two match.

OpenSSH's release notes put it carefully: "We consider the root cause of this bug to be outside sshd, but it is exploitable via sshd and can be avoided there."

Who is affected. Per Alpine's advisory, all of these must be true:

  1. sshd is the openssh-server package, which is built without PAM, or openssh-server-pam with UsePAM no.
  2. PasswordAuthentication is yes. That's the OpenSSH default.
  3. At least one local account has a $5$ or $6$ password hash.

The accounts it reaches are the ones with * in the password field:

  • alpine on the official tiny-cloud images (qcow2, VHD, AMI) from 3.18.11 through 3.24.3. It ships with * and passwordless doas. The images are safe on first boot and become exploitable once any $6$ hash exists on the machine.
  • root, which ships as root:* since about Alpine 3.16. It's only reachable if PermitRootLogin yes is set.
  • Key-only deploy users, and directory-mapped accounts, per the researcher's write-up.

Images configured by cloud-init are not affected: cloud-init writes PasswordAuthentication no.

Fixed packages. Alpine backported the fix to every branch back to 3.16, so the fixed version depends on the branch. Checking for "OpenSSH below 10.6p2" will flag patched hosts.

Alpine branchFixed openssh
edge10.6_p2-r0
3.2410.3_p1-r2
3.2310.2_p1-r1
3.2210.0_p1-r11
3.219.9_p2-r1
3.209.7_p1-r6
3.199.6_p1-r3
3.189.3_p2-r4
3.179.1_p1-r7
3.169.0_p1-r6

Alpine 3.21.10, 3.22.8, 3.23.8 and 3.24.4 include the fixed package. Other musl systems, such as OpenWrt builds that use OpenSSH without PAM, depend on their own maintainers.

What our honeypot saw

Our sensor's SSH service was a low-interaction honeypot that accepts any password and answers with a simulated shell. It doesn't run OpenSSH or musl, so nothing on it is exploitable. What it records is the password a client sends and what the client does once it thinks the login worked.

We started tagging SSH passwords over 256 bytes at 16:09 UTC on 5 November. No earlier one appears in the sensor's raw log. Between then and 23 November, 15 sources sent 31 of them. Two more sources sent long random strings as both user name and password with no client banner; those look like generic fuzzing, and we've left them out.

SourceFirst seen (UTC)AccountsPasswordClientCommands
15 Nov 18:44:40alpine300 × Aparamiko 5.03
26 Nov 13:41:11alpine300 × A, 300 × aOpenSSH 10.2 (Ubuntu), paramiko 5.1107
36 Nov 14:55:28root257 and 261 × AGo0
46 Nov 16:51:40root300 × Aparamiko 5.11
56 Nov 18:52:11root, alpine300 × Aparamiko 5.162
66 Nov 19:45:48alpine, root264 random lettersGo0
76 Nov 22:16:56alpine300 × Aparamiko 5.019
86 Nov 22:28:47alpine264 random lettersOpenSSH 10.61
97 Nov 08:24:05alpine, root260 × 1Go70
109 Nov 02:05:57root300 × A, 1,030 × Bparamiko 5.04
119 Nov 07:08:19root, alpine300 × Aparamiko 5.12
1210 Nov 00:28:24root513 random charactersparamiko 5.00
1314 Nov 23:15:42alpine, root342 × *Go15
1416 Nov 16:49:38root314 × AOpenSSH 7.40
1517 Nov 13:18:35six, including alpine, ec2-user, nginx, postgres300 × Aparamiko 5.18

"Commands" counts every command the source sent the sensor over SSH in the period, not only in the session that used the long password.

First long-password login per source, 5 to 17 November: eight sources by 7 November, then a few every several days; ten of fifteen tried the alpine user
First long-password login per source (UTC). Filled: tried alpine. Hollow: root only.

Source 1 wrote the playbook. Read in order, its first four actions are a complete check of this bug:

Time (UTC)Source 1 sent
18:44:40Login as alpine, password 300 × A
18:44:43id; whoami
18:44:44cat /etc/os-release 2>/dev/null | head -4
18:44:45which doas sudo 2>/dev/null; cat /etc/doas.conf 2>/dev/null
19:27:27 to 19:27:36test123 against root, alpine, admin, deploy, user, git, operator, app, one per second

Get in as the account the advisory names, confirm the uid, confirm it's Alpine, then confirm the route to root. The commands came about a second apart and didn't depend on what the shell answered, so this was a script.

Source 1 on 5 November: login as alpine with 300 A's at 18:44:40, then id and whoami, os-release, and doas checks a second apart, then a test123 spray at 19:27
Source 1's first session. Entries are in order, not to time scale.

What the 15 have in common.

  • Eight arrived within 30 hours of disclosure, seven of them on 6 November. After 10 November the rate dropped to one every few days, and the last was on 17 November.
  • Ten tried alpine, the account the bug really reaches. Eleven tried root, which the default PermitRootLogin prohibit-password refuses for any password.
  • Twelve used one repeated character, mostly 300 × A, the obvious proof-of-concept shape. Three used random strings of 264 to 513 characters, which a filter for repeated characters would miss.
  • Most were quick scripts. Nine used Python's paramiko library and four used Go's SSH client. Three connected with a stock OpenSSH client.
  • Some tested the limits. Source 3 sent 257 characters, one past the threshold, and source 10 sent 1,030, just past the 1,024-byte top of the working range.
  • The sources that stayed went for the host, not just root. Source 2 read /etc/shadow, the effective sshd settings, doas rules and listening ports across 107 commands. Source 7 looked for Docker containers, nginx configuration and web roots.

What this does and does not show. These are attempts against a sensor that accepts any password, so every login "worked" and none of it was real exploitation. Fifteen sources on one sensor is a floor, not a rate; GreyNoise and others have reported successful exploitation chains on their own sensors from 7 November. For scale, our sensor saw password logins from 1,803 SSH sources in the same period, so long passwords came from under 1% of them. Our SSH service switched to a different honeypot on 23 November; everything above was recorded before the switch.

What to do this week

  1. Update openssh to the fixed package for your branch (apk upgrade -U -a), then restart sshd (rc-service sshd restart). Restarting matters: the old binary keeps running until you do.
  2. If you can't update yet, turn off password logins. Set PasswordAuthentication no, check every Match block, then confirm with sshd -T | grep -i passwordauthentication.
  3. Find the Alpine you didn't know about. That means container images built FROM alpine that install openssh, appliances, and anything launched from a tiny-cloud image.
  4. Check for a successful login, not just a vulnerable package. Alpine's advice: if you can't rule out a login, treat the machine as compromised.

Hunts

Hunt in three passes: am I exposed, am I being attacked, and did it work. The password is inside the encrypted SSH session, so network sensors can't see its length. Detection has to come from the SSH server's own logs, from host telemetry, or from something that sees the plaintext password, like a honeypot.

These are starting points that will need adjusting to your environment. Field names were checked against Splunk's Common Information Model reference and Microsoft's Defender XDR and Azure Monitor schema references. Run the Defender queries in Defender XDR Advanced Hunting: the vulnerability tables aren't ingested into Sentinel, and Sentinel names the time column TimeGenerated rather than Timestamp.

1. Am I exposed?

  • H1, inventory and config: Alpine hosts and images with openssh below the fixed version for their branch, password authentication on, and an account with * in shadow next to one with a real hash.

On each host:

cat /etc/alpine-release
apk info -v openssh-server openssh-server-pam 2>/dev/null   # compare with the table above
sshd -T | grep -Ei '^(passwordauthentication|usepam|permitrootlogin) '
awk -F: '$2=="*"{print "reachable:", $1} $2 ~ /^\$[56]\$/{print "hash present:", $1}' /etc/shadow

The host is exposed if the package is unfixed, passwordauthentication yes is set, usepam no applies, and the last command prints both a "reachable" and a "hash present" line.

In your repositories: images that put sshd on Alpine.

grep -rlE '^FROM\s+alpine' --include='Dockerfile*' . | xargs grep -l openssh

Installed packages (KQL, Defender XDR Advanced Hunting): only useful where Defender inventories your Alpine hosts.

DeviceTvmSoftwareInventory
| where SoftwareName has "openssh"
| join kind=inner (DeviceInfo | summarize arg_max(Timestamp, OSDistribution) by DeviceId) on DeviceId
| where OSDistribution has "alpine"
| project DeviceName, SoftwareName, SoftwareVersion, OSDistribution

Once Defender maps it, DeviceTvmSoftwareVulnerabilities | where CveId == "CVE-2026-123158" gives the same answer directly. Use Alpine's per-branch fixed versions: a version below 10.6p2 is not proof of exposure.

2. Am I being attacked?

  • H2, sshd logs: Accepted password for an account that has no password, or for any account on a host that should be key-only. On an unpatched Alpine host, treat it as a hit until you rule it out.
  • H3, plaintext visibility: a password longer than 256 bytes. Only a honeypot, PAM module or authentication broker can see this. Benign clients essentially never send one.

H2 (Splunk): CIM Authentication rarely records the method, so read sshd's own line.

<your sshd logs> "Accepted password for"
| rex "Accepted (?<auth_method>\S+) for (?<user>\S+) from (?<src>\S+) port"
| lookup key_only_hosts host OUTPUT key_only
| where key_only="true" OR user IN ("alpine", "root")
| stats count min(_time) as first_seen values(src) as src by host user auth_method

H2 (KQL, Sentinel Syslog):

Syslog
| where TimeGenerated > ago(7d) and ProcessName == "sshd"
| where SyslogMessage startswith "Accepted password for"
| parse SyslogMessage with "Accepted password for " User " from " SrcIp " port " *
| summarize Count = count(), FirstSeen = min(TimeGenerated), Sources = make_set(SrcIp, 20) by Computer, User

Alpine logs to /var/log/messages through busybox syslog by default, which stays on the host. Ship it before you need it.

3. Did it work?

  • H4, process events: within a minute of a password login, id, whoami, cat /etc/os-release, which doas or a read of /etc/doas.conf. That's the sequence we observed.
  • H5, persistence: changes to ~alpine/.ssh/authorized_keys, /etc/doas.conf or /etc/doas.d/, /etc/shadow, or new users.

H4 (Splunk, CIM Endpoint):

| tstats summariesonly=true count values(Processes.process) as command_lines
    from datamodel=Endpoint.Processes
    where (Processes.process="*doas*" OR Processes.process="*/etc/os-release*")
    by _time span=1m Processes.dest Processes.user Processes.parent_process_name
| rename Processes.* as *

H4 (KQL, Defender XDR Advanced Hunting):

DeviceProcessEvents
| where Timestamp > ago(7d)
| where InitiatingProcessParentFileName == "sshd"
| where ProcessCommandLine has_any ("doas", "/etc/os-release", "doas.conf")
| summarize CommandLines = make_set(ProcessCommandLine, 20), FirstSeen = min(Timestamp) by DeviceName, AccountName

Tuning and prerequisites

HuntNeedsExpect firstCut the noiseIf you lack the data
H1Inventory that covers Alpine and container imagesDev images that install sshd but never start itFlag images whose entrypoint starts sshdRun the shell checks on every Alpine host with port 22 open
H2sshd logs shipped centrallyLegitimate password users on mixed hostsScope to hosts declared key-onlyTurn off password auth instead; it's the mitigation anyway
H3A honeypot or PAM-level visibilityEssentially nothing benignNone neededSkip it; H2 covers real hosts
H4, H5EDR or auditd on AlpineConfiguration management reading /etc/os-releaseAllowlist CM accounts; require a password login in the prior minuteauditd rules on /etc/doas*, /etc/shadow and authorized_keys

Sources and data qualification

Claim in this postSourceConfidence
Root cause, affected conditions, fixed packages, alpine user and doas, cloud-init exception, creditsAlpine security advisory, 5 Nov 2026High: distribution advisory
10.6p2 release date, "outside sshd" quote, reporter creditOpenSSH release notesHigh: upstream
Key-only deploy and directory users as targets; musl's KEY_MAX 256 historysshhole.comMedium: researcher's own account
CVE number and publication time, CVSS 8.1, CISA SSVC, KEV listing on 9 NovCVE record, NVD, retrieved 23 Nov 2026High: primary record
Exploitation reported within hours of disclosureHelp Net Security, BleepingComputerMedium: press reports
GreyNoise exploitation chains from 7 NovNeoteo on GreyNoiseMedium: secondary report; counts differ between reports
15 sources, 31 long-password logins, 5 to 23 NovOur honeypot's raw log, 5 to 23 Nov 2026; our own validation login and two random-credential fuzzers excludedHigh for what the sensor saw; one sensor, one region
Scripted checks rather than people; intent of the follow-up commandsOur interpretation of timing, clients and command orderMedium: inferred

Source IP addresses from our sensor are withheld; sources are numbered in order of first contact.

The lesson repeats from every "locked account" bug: a marker that means "no password" is only as strong as every code path that reads it. Update, turn off password logins on anything that doesn't need them, and look for an Accepted password line you can't explain.

Security ResearchOpenSSHAlpine LinuxmuslsshholeCVE-2026-123158HoneypotThreat HuntingVulnerability Management2026