An isolated Linux laboratory is established using Oracle VirtualBox, Ubuntu Linux, and Kali Linux to assess SSH-based lateral movement through configured authentication relationships.
Authorized laboratory hosts and available services are identified using Nmap, establishing the initial network topology and identifying relevant SSH services.
A controlled lateral movement simulation is performed using designated laboratory accounts to determine whether an initially compromised account can authenticate to another system through an existing authentication relationship.
Authentication logs are collected from Ubuntu systems, and Wireshark captures provide supporting evidence of the network communications generated during the simulation.
A publicly available labeled authentication-event dataset is processed separately from the laboratory records to provide additional authentication relationships for graph analysis.
A knowledge graph is constructed using NetworkX to represent user accounts, systems, and authentication relationships identified in the available records.
BFS and DFS algorithms are applied to identify reachable nodes and potential lateral movement paths from the initially compromised account.
The paths identified through graph traversal are compared with observed authentication events to distinguish evidence-supported findings from paths predicted by the graph.
Graph visualization using Matplotlib presents authentication relationships and potential lateral movement paths, helping security analysts identify potentially risky access relationships for further investigation.
The complete lateral movement assessment, authentication-event collection, knowledge graph construction, BFS/DFS path identification, evidence-based path validation, graph visualization, and final security reporting workflow is demonstrated.