svc-ssh

svc-ssh is a skill for Claude Code, Codex from s0ld13rr/pentestcode. It costs 75 tokens per session (548 once invoked), scanned C, original, MIT.

A reference for testing Secure Shell (SSH), a service used for remote command-line access to computers. It covers software weaknesses, login methods, username discovery, password attacks, and private-key security.

In plain words
What is it for?
Checking SSH versions and authentication methods, reviewing user-enumeration risks, testing authorized credentials, and examining discovered private keys.
Why use it?
It helps assess whether an exposed SSH service uses vulnerable software, reveals account information, accepts weak credentials, or has poorly protected keys.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Checking SSH versions and authentication methods, reviewing user-enumeration risks, testing authorized credentials, and examining discovered private keys.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/s0ld13rr/pentestcode/ssh
About the project

PentestCode is a terminal-based autonomous penetration-testing system in which multiple agents run security tools, interpret results, track engagement state, and choose subsequent attack steps. It is for authorized security assessments and capture-the-flag work that require coordinated scanning, enumeration, exploitation, and evidence tracking. The catalogue skills and instructions support the project's agent-led penetration-testing workflow.

s0ld13rr/pentestcode · 1,278 stars · on GitHub

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add s0ld13rr/pentestcode --skill ssh
Clone the repo
git clone --depth 1 https://github.com/s0ld13rr/pentestcode

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for svc-ssh

README.md
[![agentmods](https://agentmods.dev/badge/skills/s0ld13rr/pentestcode/ssh/github.svg)](https://agentmods.dev/skills/s0ld13rr/pentestcode/ssh)
Your own site
<a href="https://agentmods.dev/skills/s0ld13rr/pentestcode/ssh"><img src="https://agentmods.dev/badge/skills/s0ld13rr/pentestcode/ssh/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for svc-ssh

Your own site · 80×15
<a href="https://agentmods.dev/skills/s0ld13rr/pentestcode/ssh"><img src="https://agentmods.dev/badge/skills/s0ld13rr/pentestcode/ssh.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 75 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 548 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00075 $0.00548
Opus 5.5 $0.00030 $0.00219
Sonnet 5.5 $0.00015 $0.00110
Haiku 4.5 $0.00007 $0.00055

Measured today against content hash 0102e13ec498, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade C, and why

svc-ssh scanned grade C with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured today.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Reaches for credential fileshighPrivilege escalation

SSH keys, cloud credentials, git-credentials, .npmrc, /etc/shadow: reading these is how a config file becomes a credential leak.

- `~/.ssh/authorized_keys` — who else has access (persistence opportunity)
skills/services/ssh/SKILL.md · 34 lines

What it actually says

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.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. today Changed · +5 lines · +11 tokens per session 0102e13ec498
  2. 2mo ago Changed · -34 lines · -9 tokens per session scan D → C 3a6e0de28f0c
  3. 3mo ago First seen · 63 lines · 73 tokens per session scan D 2e11a791a6fa

Subscribe to this mod's changes

svc-ssh is a skill published in the GitHub repository s0ld13rr/pentestcode (1,278 stars, last pushed today), licensed MIT. It adds 75 tokens to every session and 548 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it C with 1 finding (reaches for credential files). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

svc-ssh compared with skills from other repositories

svc-ssh next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
svc-sshs0ld13rr/pentestcodeSkill1.3ktodayMITC75Claude Code, Codex
lictor-security-checkRaffa-jarrl/Lictor-AISkill194mo agoApache-2.0A135Claude Code
lictor-rotateRaffa-jarrl/Lictor-AISkill194mo agoApache-2.0A80Claude Code
lictor-explainRaffa-jarrl/Lictor-AISkill194mo agoApache-2.0A56Claude Code
openai-patternschandrudp29/skillhubSkill145mo agoMITA31Claude Code, Codex
lictor-fix-itRaffa-jarrl/Lictor-AISkill194mo agoApache-2.0B75Claude Code
hunt-api-misconfigelementalsouls/Claude-BugHunterSkill28kyesterdayMITA207Claude Code