Linux Possible Ssh Key File Creation
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…
Description
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.
Detection logic
Detection requirements
- Platform
- ESXiIaaSLinuxmacOSNetwork Devices
The rule states no platform. This is derived from the ATT&CK technique it maps to.
- Log source category
- sysmon_for_linux_eventid_11
Known benign triggers
- Administrator or network operator can create file in ~/.ssh folders for automation purposes. Please update the filter macros to remove false positives.
MITRE ATT&CK mappings
0 exclusive techniques.This is coverage no other published rule has; it is not this rule's total technique count.
References
| Reference | Cited by |
|---|---|
| attack.mitre.org/techniques/T1098/004/ | 4from 2 sources |
| www.hackingarticles.in/ssh-penetration-testing-port-22/ | 3 |
From the source
- At source
- Open at source
- Upstream identifier
- c04ef40c-72da-11ec-8eac-acde48001122
- Tagged by the source as
- Hellcat RansomwareLinux Living Off The LandLinux Persistence TechniquesLinux Privilege EscalationEndpointendpointSplunk CloudSplunk EnterpriseSplunk Enterprise Securityendpoint
Licence
- Published under
- Apache License 2.0Read the licence
- Attribution
- Required
- Obtained under
- Apache-2.0Read the origin licence
Authorship
- Written by
- Published
- Aug 26, 2026
- Version
- 1