Skip to content
Back to skills

Ssh

BSecurity

SSH version CVEs and post-auth tricks — regreSSHion, user enum, agent hijack. Use when SSH is open. Triggers - port 22, OpenSSH banner, regreSSHion CVE-2024-6387, CVE-2018-15473, CVE-2025-26465/66.

  • 1,278 stars
  • 0 votes
  • 0 copies
  • 4 views
  • Added August 31, 2026
ai-agentsgo

Security analysis

B75/100
  • criticalAccesses sensitive system or user directories

Pro shows the line behind each finding and how to fix it

Scanned November 30, 2026

npx -y skills add s0ld13rr/pentestcode --skill ssh --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Ssh?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Ssh
[![Security: B — Skills Directory](https://www.skillsdirectory.com/api/skills/s0ld13rr-ssh/badge)](https://www.skillsdirectory.com/skills/s0ld13rr-ssh)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: svc-ssh
description: SSH version CVEs and post-auth tricks — regreSSHion, user enum, agent hijack. Use when SSH is open. Triggers - port 22, OpenSSH banner, regreSSHion CVE-2024-6387, CVE-2018-15473, CVE-2025-26465/66.
---

# SSH — Version CVEs & Tricks

## CVE-2024-6387 (regreSSHion)
OpenSSH 8.5–9.7 on glibc-based Linux. Race condition → unauthenticated RCE.
Public PoCs exist but are slow/unreliable — confirm version, note as high-value finding.

## CVE-2025-26465 / CVE-2025-26466 (OpenSSH 9.8p1 — February 2025)
**CVE-2025-26465**: Pre-authentication async-signal safety issue in privilege separation child. Affects 9.5p1–9.8p1 (introduced 2024-07-15). Patch: upgrade to 9.8p1 or later.
**CVE-2025-26466**: Pre-authentication race in `ssh1`-compatibility code (unused by default but compiled in). Affects 9.5p1–9.8p1. Patch: upgrade or disable `Protocol 1`.
*Action*: `ssh -V` on target; if 9.5p1–9.8p1, flag both CVEs and recommend immediate upgrade. No reliable public RCE PoC yet, but exploitability research ongoing.

## CVE-2018-15473 (user enumeration)
OpenSSH <7.7. Timing-based username enumeration.
`ssh-audit TARGET` or Metasploit `auxiliary/scanner/ssh/ssh_enumusers`.
User list → password spray / AS-REP roast.

## SSH agent forwarding hijack
If another user has agent forwarding enabled:
`find /tmp -name "agent.*"` → `SSH_AUTH_SOCK=/tmp/agent.XXXX ssh other-target`

## Post-auth pivot intel
- `~/.ssh/config` — other hosts, jump hosts, proxy configs
- `~/.ssh/known_hosts` — every host this user connected to
- `~/.ssh/authorized_keys` — who else has access (persistence opportunity)

## Auth method check
`ssh -o PreferredAuthentications=none TARGET` reveals accepted methods.
If only `publickey` → password brute is impossible, don't waste time on hydra.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.