English

SmartKex: Machine Learning Assisted SSH Keys Extraction From The Heap Dump

Cryptography and Security 2022-09-14 v2 Machine Learning

Abstract

Digital forensics is the process of extracting, preserving, and documenting evidence in digital devices. A commonly used method in digital forensics is to extract data from the main memory of a digital device. However, the main challenge is identifying the important data to be extracted. Several pieces of crucial information reside in the main memory, like usernames, passwords, and cryptographic keys such as SSH session keys. In this paper, we propose SmartKex, a machine-learning assisted method to extract session keys from heap memory snapshots of an OpenSSH process. In addition, we release an openly available dataset and the corresponding toolchain for creating additional data. Finally, we compare SmartKex with naive brute-force methods and empirically show that SmartKex can extract the session keys with high accuracy and high throughput. With the provided resources, we intend to strengthen the research on the intersection between digital forensics, cybersecurity, and machine learning.

Cite

@article{arxiv.2209.05243,
  title  = {SmartKex: Machine Learning Assisted SSH Keys Extraction From The Heap Dump},
  author = {Christofer Fellicious and Stewart Sentanoe and Michael Granitzer and Hans P. Reiser},
  journal= {arXiv preprint arXiv:2209.05243},
  year   = {2022}
}
R2 v1 2026-06-28T01:07:46.225Z