# MegaManSec/SSH-Snake

SSH-Snake is a self-propagating, self-replicating, file-less script that automates the post-exploitation task of SSH private key and host discovery.

Repository: https://github.com/MegaManSec/SSH-Snake
Canonical: https://ross.abutalabs.com/products/ssh-snake
Homepage: https://megamansec.github.io/SSH-Snake/
Language: Shell
License: GPL-3.0
License Family: copyleft
Topics: bash, exploitation, exploitation-tool, hacking, hacking-tools, pentesting, post-exploitation, security, security-tools, ssh, vulnerability-scanner, worm, cybersecurity, redteam, scanner, shell, ssh-hacking
Archived: true
Last push: 2026-03-25T15:49:29+00:00

## Health v2 (maintenance only)
Score: 10/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 74, release rhythm 35, longevity 71
- inputs: {"age_days": 1004, "days_push": 161, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases, archived
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2342, forks 222 (observed 2026-08-28T04:06:39.156853+00:00)

## What it is
SSH-Snake is a self-propagating, file-less bash script that automatically discovers SSH private keys on a system, attempts to connect to reachable hosts with them, and recursively repeats the process to map SSH-based network relationships. It is primarily a red-team/post-exploitation tool, though sysadmins can use it to audit their infrastructure.

## Use cases
- map ssh key-based network traversal across servers
- find which hosts are reachable with discovered ssh private keys
- red team post-exploitation lateral movement automation
- audit infrastructure for over-permissive ssh key trust
- generate a graph of ssh connections between systems
- assess extent of network compromise from a single host

## When to choose
- you need to automate lateral movement via SSH keys during authorized penetration tests
- you want to visualize SSH trust relationships across a network
- you are a sysadmin auditing how far SSH private keys can propagate

## When to avoid
- you lack explicit authorization to test the target network
- you need a defensive monitoring or intrusion detection tool
- you want a GUI-based network scanner rather than a shell script

## Facets
- artifact type: cli-tool
- maturity: active
- function: security, networking, ssh, vulnerability-scanning
- domain: security, penetration-testing, networking, developer-tools
- platform: cli
- tags: post-exploitation, red-team, ssh-private-keys, network-mapping, worm, self-propagating, fileless, bash-script, linux, macos

## Member repositories
- MegaManSec/SSH-Snake (main) score 10

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:39.156853+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T02:37:16.577498+00:00, confidence not recorded.
  - readme: https://github.com/MegaManSec/SSH-Snake (fetched 2026-08-28T04:06:39.156853+00:00, sha 44c1494b23aa)
  - homepage: https://megamansec.github.io/SSH-Snake/ (fetched 2026-08-29T10:17:43.934073+00:00, sha c6a5e7c414cf)
- Data as of 2026-08-30T08:39:29.467469+00:00.
