Where The Wild Things Are: Brute-Force SSH Attacks In The Wild And How To Stop Them

Authors: 

Sachin Kumar Singh and Shreeman Gautam, University of Utah; Cameron Cartier, University of Utah and Black Hills Information Security; Sameer Patil and Robert Ricci, University of Utah

Abstract: 

SSH (Secure Shell) is widely used for remote access to systems and cloud services. This access comes with the persistent threat of SSH password-guessing brute-force attacks (BFAs) directed at sshd-enabled devices connected to the Internet. In this work, we present a comprehensive study of such attacks on a production facility (CloudLab), offering previously unreported insight. Our study provides a detailed analysis of SSH BFAs occurring on the Internet today through an in-depth analysis of sshd logs collected over a period of four years from over 500 servers. We report several patterns in attacker behavior, present insight on the targets of the attacks, and devise a method for tracking individual attacks over time across sources. Leveraging our insight, we develop a defense mechanism against SSH BFAs that blocks 99.5% of such attacks, significantly outperforming the 66.1% coverage of current state-of-the-art rate-based blocking while also cutting false positives by 83%. We have deployed our defense in production on CloudLab, where it catches four-fifths of SSH BFAs missed by other defense strategies.

NSDI '24 Open Access Sponsored by
King Abdullah University of Science and Technology (KAUST)

Open Access Media

USENIX is committed to Open Access to the research presented at our events. Papers and proceedings are freely available to everyone once the event begins. Any video, audio, and/or slides that are posted after the event are also free and open to everyone. Support USENIX and our commitment to Open Access.

BibTeX
@inproceedings {295683,
author = {Sachin Kumar Singh and Shreeman Gautam and Cameron Cartier and Sameer Patil and Robert Ricci},
title = {Where The Wild Things Are: {Brute-Force} {SSH} Attacks In The Wild And How To Stop Them},
booktitle = {21st USENIX Symposium on Networked Systems Design and Implementation (NSDI 24)},
year = {2024},
isbn = {978-1-939133-39-7},
address = {Santa Clara, CA},
pages = {1731--1750},
url = {https://www.usenix.org/conference/nsdi24/presentation/singh-sachin},
publisher = {USENIX Association},
month = apr
}