Skip to content
KitploitKITPLOIT
도구익스플로잇블로그
Log in
제출
도구익스플로잇블로그
제출

해킹, 침투 테스트 및 사이버 보안 도구를 당신의 보안 무기고에!

Kitploit은 해킹, 사이버 보안 및 침투 테스트 도구 디렉토리입니다. 최신 프로젝트 업데이트를 발견하여 취약점을 찾고, 시스템을 분석하고, 테스트를 자동화하고, 보안을 강화하세요.

피드문의개인정보© 2026 Kitploit

도구 디렉토리

카테고리

모든 카테고리 보기
Loading categories
alpine-sshd-check — Read-only check for CVE-2026-123158: is your Alpine sshd affected by the password authentication bypass, fixed, or still running the old daemon? Tested on Alpine 3.21 to 3.24 and edge. | Kitploit
도구/GitHubGitHub/the-devops-daily/alpine-sshd-check
Defensive ToolsVulnerability ScannersContainer SecurityVulnerability AnalysisConfiguration AuditingAuthenticationIncident Response
GitHubthe-devops-daily/alpine-sshd-check

alpine-sshd-check

Read-only check for CVE-2026-123158: is your Alpine sshd affected by the password authentication bypass, fixed, or still running the old daemon? Tested on Alpine 3.21 to 3.24 and edge.

저장소 보기
2026년 11월 5일아직 검토되지 않음
공유
웹사이트
요청한 언어로 콘텐츠를 사용할 수 없습니다. 영어 버전을 표시합니다.

alpine-sshd-check

sudo sh check.sh            # on an Alpine host
sh check.sh --json          # machine-readable
docker exec -i <container> sh -s < check.sh    # inside a container, nothing is copied in
sh scan-containers.sh       # every running container on this Docker host

A read-only check for CVE-2026-123158, the Alpine Linux openssh-server password authentication bypass fixed on 2026-11-05 (Alpine advisory, OpenSSH 10.6p2 release notes, CVE record).

Write-up: https://devops-daily.com/posts/alpine-openssh-password-bypass

What it reads

  • /etc/alpine-release and /etc/apk/repositories, to find the branch, and /etc/apk/world for a repository pin, and the installed openssh-server (or openssh-server-pam) version from apk list -I.
  • sshd -T, for PasswordAuthentication, PermitRootLogin and UsePAM.
  • The TYPE of the password field in /etc/shadow: it counts fields that are exactly * and fields that start with $5$ or $6$ (a locked !$6$... field is counted too, to stay on the safe side). It never prints, stores or sends a hash or a user name.
  • /proc, for the running sshd: its start time, and whether it is still the same file (device and inode) as the sshd binary on disk. An upgrade writes a new file, so a daemon that was not restarted shows up as a different file.

It changes nothing, does not connect to sshd and does not try to log in. It needs root to read /etc/shadow and to run sshd -T.

Because it runs as root, it sets a fixed PATH and executes only /usr/sbin/sshd, /usr/sbin/sshd.pam or /usr/sbin/sshd.krb5, and only if the file is owned by root and not group- or world-writable. It counts only sshd processes that run as uid 0. If the running sshd is any other binary, it reports "cannot tell" (exit 3) and does not execute it. An earlier draft ran the path it read from /proc/<pid>/exe; in a test container, a root process started as /tmp/sshd got that file executed. That is fixed.

Mixed sources

A stable host can install openssh from edge. The check fails closed:

  • An untagged, uncommented /edge/ repository line: compared against the edge fixed version.
  • openssh pinned to a tag (openssh-server@edge in /etc/apk/world): compared against the edge fix if that tag points to an edge repository, otherwise "cannot tell".
  • An installed version newer than the branch fix but from another release series (and older than the edge fix): "cannot tell", never "not affected".
  • A tagged @edge line with nothing pinned to it does not change the branch.

The four conditions

A host is affected only if all four hold on a version older than the fixed one:

  1. sshd is built without PAM (openssh-server), or it is openssh-server-pam with UsePAM no.
  2. PasswordAuthentication yes (the default).
  3. An account that can use a password login has * in the password field. Root counts only with PermitRootLogin yes. If musl-nscd is installed, directory users have no shadow entry and count too, so the script reports "unknown". AllowUsers, DenyUsers and Match blocks are not evaluated, so this errs on the side of "yes".
  4. At least one local $5$ or $6$ hash exists.

Exit codes

CodeMeaning
0Not affected (fixed version, or a condition is false)
1Affected: vulnerable version and all four conditions hold
2Fixed package installed, but the running sshd is not the file on disk: rc-service sshd restart
3Cannot tell (not root, not Alpine, sshd -T failed, or a Match block may enable passwords)

scan-containers.sh exits 1 if any container is affected, else 2 if any needs a restart, else 3 if any could not be checked, else 0. It runs each container's own sh with docker exec, as root inside that container, so only scan containers whose images you trust.

Fixed versions (from the advisory)

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

Results

measure.sh records the check on throwaway containers: alpine:3.21, 3.22, 3.23, 3.24 and edge after apk add openssh-server, plus two 3.24 variants (PasswordAuthentication no, and a key-only user plus a user with a random password). The install step has network access; sshd then runs with --network none, so no port is published and nothing can connect to it. Output is in results/, recorded 2026-11-05 on Docker 29.9.3 (aarch64, see results/environment.txt). measure.sh is the measurement harness, not the check: it creates, changes and removes its own containers and images.

ContainerInstalledExitNotes
3.21.109.9_p2-r10fixed
3.22.810.0_p1-r110fixed
3.23.810.2_p1-r10fixed
3.24.410.3_p1-r20fixed
edge (3.25.0_alpha20260805)10.6_p2-r00fixed
3.24.4, PasswordAuthentication no10.3_p1-r20condition 2 false
3.24.4, key-only user + password user10.3_p1-r20all four conditions true, fixed version

Two things the run found:

  • adduser -D on 3.24 wrote ! (locked), not *. A locked account is not affected, but it also cannot log in with a key. The key-only user was then set to *, the state the advisory describes for key-only users.
  • OpenSSH 10.6 prints sshd -T keywords in mixed case (PasswordAuthentication yes), older versions in lower case. The first version of this script matched only lower case and reported "unknown" on edge. Match it case-insensitively (grep -i).

Exit code tests

test-exit-codes.sh records results/exit-code-tests.txt. No vulnerable package exists any more, so exit 1 and 2 are simulations, labelled as such:

  • Exit 1: all four conditions true, with a temporary copy of the script whose 3.24 fixed version is raised to 10.3_p1-r3.
  • Exit 2: the same sshd binary copied and renamed over /usr/sbin/sshd while sshd runs, which is what an upgrade does to the file.
  • Exit 3: a root process running /tmp/sshd (not executed by the check), a world-writable /usr/sbin/sshd, and a non-root run.
  • Mixed sources: a tagged @edge line with nothing pinned (exit 0), an untagged edge line on 3.24 (exit 1, fails closed), a real apk add openssh-server@edge on 3.24 (10.6_p2-r0, exit 0), and the same container with the pin removed and the edge fix raised in a temporary copy (exit 3).

Not tested

  • No vulnerable package and no real upgrade: Alpine replaced the packages on every branch the same day, so every fresh install got the fixed version.
  • openssh-server-pam, musl-nscd users, tiny-cloud images and branches 3.16 to 3.20 were not measured.

License

MIT

도구 다운로드

관련 도구

  • 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)

    836
  • 3

    DFRoot

    a2333c/dfroot

    삼성 Galaxy S25 Ultra(SM-S938B)용 Android 루트 도구로, DirtyFrag CVE-2026-43284와 CVE-2026-43499를 연쇄하여 KernelSU를 통해 부팅 시 자동으로 루트 권한을 획득합니다.

    450
  • 4

    ARTEX

    baarai/artex

    LLM 멀티 에이전트 자율 침투 테스트 플랫폼으로, 플래너/워커 에이전트, 자산 및 탐색 그래프, MITM 트래픽 기록, 취약점 재테스트 기능을 제공합니다.

    396
  • 5

    OsintHunter

    letox4/osinthunter

    🎯 궁극의 OSINT 툴킷: 조사 그래프, 신뢰도 점수 산정, 별칭 패밀리, 지도, 타임라인 및 보고서. 49개 모듈, 400개 이상 사이트, API 키 불필요.

    348
  • 6

    faraday

    infobyte/faraday

    공격적 보안, 취약점 관리, 자율 펜테스팅을 위한 오픈소스 및 AI 기반 사이버보안 도구. 라틴 아메리카의 해커들이 만들고 전 세계에서 사용됩니다.

    346

모든 도구 탐색

도구 컬렉션을 둘러보세요

모든 도구 보기 →