Skip to content
KitploitKITPLOIT
ツールエクスプロイトブログ
Log in
提出
ツールエクスプロイトブログ
提出

ハッキング、侵入テスト、サイバーセキュリティツールをあなたのセキュリティアーセナルに!

Kitploitはハッキング、サイバーセキュリティ、ペネトレーションテストのツールディレクトリです。最新のプロジェクトアップデートを見つけて、脆弱性の発見、システム分析、テストの自動化、セキュリティの強化を行いましょう。

フィードお問い合わせプライバシー© 2026 Kitploit

ツールディレクトリ

カテゴリ

すべてのカテゴリを見る
Loading categories
cve-2026-123158-defender-toolkit — CVE-2026-123158 (SSHole) defender toolkit: exposure audit, log hunts and a safe password switch-off for OpenSSH on Alpine and other musl systems | Kitploit
ツール/GitHubGitHub/garphengate/cve-2026-123158-defender-toolkit
Defensive ToolsVulnerability AnalysisConfiguration AuditingSecurity VirtualizationPenetration TestingAuthenticationMisconfigurationIncident ResponseLog Analysis
GitHubgarphengate/cve-2026-123158-defender-toolkit

cve-2026-123158-defender-toolkit

2026年11月8日未レビュー
共有

CVE-2026-123158 (SSHole) defender toolkit: exposure audit, log hunts and a safe password switch-off for OpenSSH on Alpine and other musl systems

リポジトリを見る
要求された言語のコンテンツは利用できません。英語版を表示しています。

CVE-2026-123158 defender toolkit

Exposure checks, log hunts and the interim mitigation for CVE-2026-123158 ("SSHole"), the OpenSSH password authentication bypass on Linux systems that build sshd against musl libc without PAM, from GarphenGate Security Research. Alpine Linux is the distribution most people will meet it on.

The full write-up, with our lab evidence and the reasoning behind every check here, is on our blog: CVE-2026-123158: A Defender's Field Guide to the SSHole OpenSSH Bypass.

Upgrading openssh and restarting sshd is the fix. Everything else here helps you find exposed hosts, close the door while you schedule the upgrade, and look for logins that already happened.

Why this one is easy to miss

The account an attacker logs in to is one you think of as safe: a key-only service account, a directory user, or the alpine user on a tiny-cloud image, whose password field in /etc/shadow is *. On an affected build a password between 257 and 1024 bytes long is accepted for that account. Nothing about the account looks wrong, and the log line it leaves is an ordinary Accepted password for ....

Upstream says the root cause sits outside sshd. Alpine explains it: musl's crypt() returns the string * as its error value for a key over 256 bytes (the SHA-crypt $5$/$6$ code paths), which is exactly what the stored field holds. OpenSSH 10.6p2 avoids it in sshd by refusing to match a stored hash shorter than four bytes.

Are you exposed?

Only when all of these hold. Alpine's advisory (5 Nov 2026) lists the first four; the fifth is ours:

  1. sshd is built against musl and runs without PAM: Alpine's openssh-server, or openssh-server-pam with UsePAM no
  2. PasswordAuthentication yes (the OpenSSH default)
  3. an account whose password field is * that sshd will accept (AllowUsers, PermitRootLogin)
  4. at least one local account has a $5$ or $6$ hash
  5. the openssh package predates the fix for your branch, or it is fixed on disk but the running sshd was started before the upgrade

The CVE record limits the bug to sshd on Linux with musl and without PAM. Red Hat says its builds "link OpenSSH against the GNU C Library (glibc) and use PAM by default" and are not affected.

Fixed packages

Upstream: OpenSSH 10.6p2 (5 Nov 2026). Alpine backported the fix to every branch from 3.16 to edge:

Alpine branchFixed opensshAlpine branchFixed openssh
edge10.6_p2-r03.209.7_p1-r6
3.2410.3_p1-r23.199.6_p1-r3
3.2310.2_p1-r13.189.3_p2-r4
3.2210.0_p1-r113.179.1_p1-r7
3.219.9_p2-r13.169.0_p1-r6

Point releases 3.21.10, 3.22.8, 3.23.8 and 3.24.4 ship the fixed package. Releases before 3.16 get no fixed package: turn password logins off.

Restart sshd after the upgrade. Alpine: "Upgrading the package alone does not replace the running daemon." The audit checks for that case.

What is here

PathWhat it does
audit/sshole-exposure.shChecks every condition above on one host: the libc sshd is linked against, the package against the fixed table, the effective sshd settings (sshd -T), which * accounts sshd can reach (AllowUsers, PermitRootLogin), $5$/$6$ hashes, a running sshd started from a replaced binary, and the tiny-cloud alpine user
hunt/accepted-password-nopass.shReads sshd logs (including rotated .gz) and flags every Accepted password login to an account whose password field is * (ALERT) or that is not in the shadow file at all (REVIEW: directory users)
hunt/post-login-triage.shLists what changed since a time you name: authorized_keys, account files, doas, ssh/cron/startup files, new files in temp directories
mitigate/disable-password-auth.shAlpine's workaround (drop-in file, every PasswordAuthentication yes line turned to no, Match blocks included, plus the setting as line 1) with a preview, a lockout guard (refuses if no account sshd accepts keeps a key login), sshd -t before reloading, verify and rollback
docs/hardening-checklist.mdThe order we would do things in, and what each step does and does not buy

Every script is POSIX sh and runs on busybox (Alpine has no bash by default). Everything is read-only except mitigate/, which shows what it will change first. Exit codes: 0 clean or fixed, 1 findings or still exposed, 2 usage error or cannot determine.

Quick start

git clone https://github.com/GarphenGate/cve-2026-123158-defender-toolkit.git
cd cve-2026-123158-defender-toolkit
sh tests/run-tests.sh                       # self-test on synthetic data

# 1. Is this host exposed? (as root)
sh audit/sshole-exposure.sh

# 2. Fix it
apk upgrade -U -a && rc-service sshd restart
sh audit/sshole-exposure.sh                 # expect VERDICT: FIXED

# 3. Cannot upgrade today? Close password logins (preview first)
sh mitigate/disable-password-auth.sh --show
sh mitigate/disable-password-auth.sh --apply

# 4. Did anyone get in before you got there?
sh hunt/accepted-password-nopass.sh
sh hunt/post-login-triage.sh --since "2026-11-05 15:00"

For containers, run the scripts inside each container that runs sshd, for example docker exec -i <name> sh -s < audit/sshole-exposure.sh. Rebuild images that install openssh: upgrading the host does not change the package inside an image.

Three things our lab showed that are easy to get wrong

  • Your log filter may not see the login. Since OpenSSH 9.8 each session is handled by a separate sshd-session program (and since 10.0 some authentication messages may come from sshd-auth). On our Alpine 3.24 lab every authentication line was logged as sshd-session[PID]:, not sshd[PID]:, so a rule that requires the program name sshd[ misses all of them. The hunt here matches all three.
  • apk upgrade openssh-server on its own changed nothing in our lab. It printed OK and left 10.3_p1-r1 installed; apk upgrade -U -a, the command Alpine gives, upgraded all five openssh packages. Run the audit afterwards rather than trusting the upgrade's output.
  • ! and * are not the same "no password". adduser -D on Alpine writes !, which non-PAM sshd treats as a locked account and refuses even for key logins ("not allowed because account is locked"). Admins who want a key-only user therefore set the field to *, and that is the state this bug needs. Locked ! accounts are not exposed.

Scope and limits

  • We did not run an exploit. The live lab shows the conditions, the mitigation and the upgrade; the one log that shows a bypassed login is a constructed example, labelled as such.
  • The audit reads the effective configuration with sshd -T. Match blocks that turn password logins on for some users or addresses can still expose a host the global setting says is closed; check sshd -T -C user=<name>,addr=<ip> for the accounts that matter.
  • A clean hunt only covers the logs you still have. Alpine's default syslog keeps little history; if the host was exposed before you started keeping logs, assume nothing.
  • Non-Alpine musl systems (Void, postmarketOS, custom images) are reported as "package not verified": ask your vendor whether its openssh carries the 10.6p2 change.

Sources

ツールをダウンロード

関連ツール

  • wazuh

    オープンソースのXDRおよびSIEMプラットフォーム。脅威検出、ログ分析、ファイル整合性監視、脆弱性評価、コンプライアンス管理をエンドポイントおよびクラウドワークロード全体で実現します。

  • suricata

    リアルタイムのトラフィック検査、侵入検知・防御、プロトコル解析、およびルールベースの脅威ハンティングのためのオープンソースのネットワーク IDS/IPS/NSM エンジン。

  • zeek

    Zeekは、あなたが知っている典型的なIDSとは大きく異なる、強力なネットワーク分析フレームワークです。

人気

すべて見る →

コミュニティで最も使われているツールを見つけましょう。

  • 1

    Callisto

    jetp1ane/callisto

    Ghidraを介して実行可能ファイルを逆コンパイルし、Semgrepで擬似Cコードをスキャンし、GPT-3.5-Turboを使用して検出結果を検証することで誤検知を低減する、自動化されたバイナリ脆弱性解析ツール。

    2.3k
  • 2

    ghostlock-app

    yukonga/ghostlock-app

    GhostLock ワンタップ実行アプリ(CVE-2026-43499)

    850
  • 3

    DFRoot

    a2333c/dfroot

    Samsung Galaxy S25 Ultra (SM-S938B) 向けの Android root ツール。DirtyFrag CVE-2026-43284 と CVE-2026-43499 を連鎖させ、KernelSU 経由で起動時に自動的に root を取得します。

    446
  • 4

    ARTEX

    baarai/artex

    プランナー/ワーカーエージェント、資産グラフと探索グラフ、MITMトラフィック記録、脆弱性の再テストを備えたLLMマルチエージェント自律ペネトレーションテストプラットフォーム。

    382
  • 5

    OsintHunter

    letox4/osinthunter

    🎯 究極のOSINTツールキット:調査グラフ、信頼度スコアリング、エイリアスファミリー、マップ、タイムライン、レポート。49個のモジュール、400以上のサイト、APIキー不要。

    349
  • 6

    faraday

    infobyte/faraday

    オープンソースかつAIを活用したサイバーセキュリティツール。オフェンシブセキュリティ、脆弱性管理、自律型ペネトレーションテスト向け。ラテンアメリカのハッカーによって開発され、世界中で使用されています。

    344

すべてのツールを探索

ツールコレクションを閲覧

すべてのツールを見る →