Skip to content
KitploitKITPLOIT
HerramientasExploitsBlog
Log in
Enviar
HerramientasExploitsBlog
Enviar

¡Herramientas de Hacking, PenTest y Ciberseguridad para tu Arsenal de Seguridad!

Kitploit es un directorio de herramientas de hacking, ciberseguridad y pentesting. Descubre las últimas actualizaciones de proyectos para encontrar vulnerabilidades, analizar sistemas, automatizar pruebas y fortalecer tu seguridad.

FeedsContactoPrivacidad© 2026 Kitploit

Directorio de Herramientas

Categorías

Ver todas las categorías
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
Herramientas/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.

Ver Repositorio
5 nov 2026Aún no revisado
Sitio web
Compartir
Contenido no disponible en el idioma solicitado. Mostrando versión en inglés.

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

Descargar herramienta

Herramientas relacionadas

  • wazuh

    Plataforma XDR y SIEM de código abierto para detección de amenazas, análisis de registros, monitoreo de integridad de archivos, evaluación de vulnerabilidades y gestión de cumplimiento normativo en endpoints y cargas de trabajo en la nube.

  • suricata

    Motor de red IDS/IPS/NSM de código abierto para inspección de tráfico en tiempo real, detección y prevención de intrusiones, análisis de protocolos y búsqueda de amenazas basada en reglas.

  • zeek

    Zeek es un potente marco de análisis de redes que es muy diferente del típico IDS que puedas conocer.

Más Populares

Ver todos →

Descubre las herramientas más usadas por nuestra comunidad.

  • 1

    Callisto

    jetp1ane/callisto

    Herramienta automatizada de análisis de vulnerabilidades binarias que descompila ejecutables mediante Ghidra, escanea código pseudo-C con Semgrep y valida los hallazgos usando GPT-3.5-Turbo para reducir falsos positivos.

    2.2k
  • 2

    ghostlock-app

    yukonga/ghostlock-app

    # Aplicación de Ejecución con un Solo Toque GhostLock (CVE-2026-43499)

    775
  • 3

    IMSIcatcher

    28zaaky/imsicatcher

    Plataforma IMSI Catcher que despliega una celda GSM fraudulenta para interceptar SMS, inyectar mensajes y rastrear dispositivos móviles

    591
  • 4

    DFRoot

    a2333c/dfroot

    Herramienta de root para Android para Samsung Galaxy S25 Ultra (SM-S938B) que encadena DirtyFrag CVE-2026-43284 y CVE-2026-43499 para obtener root automáticamente al arrancar mediante KernelSU.

    454
  • 5

    ARTEX

    baarai/artex

    Plataforma de pruebas de penetración autónoma multiagente basada en LLM con agentes planificadores/trabajadores, grafos de activos y de exploración, registro de tráfico MITM y reevaluación de vulnerabilidades.

    413
  • 6

    OsintHunter

    letox4/osinthunter

    🎯 El kit de herramientas OSINT definitivo: grafo de investigación, puntuación de confianza, familias de alias, mapa, línea de tiempo e informes. 49 módulos, más de 400 sitios, sin necesidad de claves API.

    348

Explora todas las herramientas

Explora nuestra colección de herramientas

Ver todas las herramientas →