Network access visualization
It is a well-known fact that attackers use network access visualizations to plan their next malicious activities. When defenders are not able to use these, they are playing catchup as they are always one or more steps behind, especially in the larger networks.
When lifecycle management of SSH keys is not implemented, not centrally managed, and not audited, network access is not only left open by keys without a passphrase, but also by keys from:
-
Individuals previously employed
-
Employees with changed job roles
-
Decommissioned applications and test accounts
-
Leftovers of troubleshooting activities
-
Unknown shadow IT
Picture 1. Lateral movement possibilities when SSH Snake finds vulnerable keys. The graph, showing authorized keys residing on endpoints, was generated using Gephi after altering a python script provided by Joshua Rogers. The script parses csv output of a Tanium question searching data found in shell history files (~/*sh history) and user home (~/.ssh) directories (private & public key files, known_hosts, authorized_keys).
-
Users tulip and ryan can access most SSH accounts.
-
User root is accessible on various systems.
-
User payments could be a test or production account.
-
There seems to be a raspberry-pi system accessible.