T1098.004 · SSH Authorized Keys

Linux Possible Ssh Key File Creation

  • Linux
  • Behavioral Signal

About this detection

The following analytic detects the creation of SSH key files in the ~/.ssh/ directory. It leverages filesystem data to identify new files in this specific path. This activity is significant because threat actors often create SSH keys to gain persistent access and escalate privileges on a compromised host. If confirmed malicious, this could allow attackers to remotely access the machine using the OpenSSH daemon service, leading to potential unauthorized control and data exfiltration.

Sysmon event coverage

  • FileCreate

Sysmon XML

Download XML

Loading configuration…