ENNAENNA

SSH-Snake

GPL-3.0

๐Ÿ”ฅ Offensive Ops ยท Shell

SSH-Snake is a self-propagating tool that automatically discovers SSH private keys on a compromised system, determines which hosts they connect to, and uses them to hop to the next system. It operates filelessly by passing itself through SSH sessions, leaving minimal forensic artifacts. SSH-Snake recursively maps the network of systems reachable via SSH trust relationships, building a graph of infrastructure connectivity. It discovers keys in common locations, agent forwarding sockets, bash history, known_hosts files, and SSH configs. Useful for demonstrating the blast radius of a single compromised host.

2.3kstars
217forks
0issues
Updated 1mo ago
+I use this

Installation

$ git clone https://github.com/MegaManSec/SSH-Snake.git

Use Cases

  • Mapping SSH trust relationships across infrastructure
  • Demonstrating lateral movement via SSH key reuse
  • Assessing blast radius of a compromised Linux host
  • Discovering unauthorized SSH key trust chains

Tags

sshlateral-movementself-propagatingkey-discoveryfilelessbashcybersecurityexploitationexploitation-toolhackinghacking-toolspentestingpost-exploitationredteamscannersecuritysecurity-toolsshellssh-hackingvulnerability-scannerworm

Community Reviews

More in Offensive Ops