schappim

Sshole Audit — Security skill for Claude Code

Security community

Find, prove and fix sshole: the OpenSSH password bypass where any 257-1024 byte password logs into a '' account on musl libc without PAM.

How to install Sshole Audit

This entry records only its repository, not the path inside it, so there is no exact command to give. Open schappim/sshole-audit and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Sshole Audit does

Find, prove and fix *sshole: the OpenSSH password bypass where any 257-1024 byte password logs into a '*' account on musl libc without PAM. Read-only probe, fleet scanner, dry-run remediation. Also a Claude Code skill.

Alternatives in Security

  • Token Scan — Meme coin and token security scan — checks for rug pull vectors (hidden mint, honeypot, fee manipulation, LP l 3.8k ★
  • ThinkWatch — Self-hosted AI API and MCP gateway for organizations: SSO and RBAC, per-user identity for MCP tool calls, PII 817 ★
  • OpenTag — Open-source, channel-native agent gateway for Slack 499 ★

README

sshole-audit

Find, prove and fix **\*sshole** — the OpenSSH password bypass where, on musl libc without PAM, *any* password between 257 and 1024 bytes logs you in as an account that is supposed to have no password at all.

Disclosed 2026-11-05 by Özgün Kültekin (Wakefield). Fixed in **OpenSSH 10.6p2**. Alpine backported it to every supported branch. No CVE was assigned at the time Alpine published.

$ ssh root@alpine-box
root@alpine-box's password:        # 300 × "A"
alpine-box:~# id
uid=0(root) gid=0(root) groups=0(root),10(wheel)

The bug in one paragraph

musl's `crypt()` returns the literal string `"*"` when it fails, and it fails for any password longer than 256 bytes with a `$5$`/`$6$` setting (`KEY_MAX`). When an account's `/etc/shadow` field is exactly `*`, sshd has no salt of its own, so it borrows one from another account's real hash — `pick_salt()`, added in 2016 to close the CVE-2016-6210 timing oracle — hashes the supplied password with it, gets `"*"` back, and compares that with the stored `"*"`. They match. glibc and libxcrypt return `NULL` or `"*0"`, never a bare `"*"`, and a PAM stack never calls `crypt()` for a `*` field, so only musl-without-PAM is affected.

Longer version, with the 1980→2026 history and the actual code path: [`references/mechanism.md`](references/mechanism.md).

Are you affected?

All four must hold. Miss one and you are not exploitable:

  1. sshd linked against musl — Alpine, OpenWrt, Buildroot, Yocto, and many Docker images
  2. no PAM — not linked against libpam, or UsePAM no. Alpine's openssh-server is built without PAM by default
  3. PasswordAuthentication yes (the default) and the account actually reachable — not blocked by PermitRootLogin, AllowUsers, DenyUsers, AllowGroups, DenyGroups or a Match block
  4. an account whose shadow field is exactly *, plus another account with a $5$/$6$ hash to donate the salt

`!`, `!!`, `*LK*` and `!$6$…`