mirror of
https://github.com/splunk/security_content
synced 2026-06-08 17:32:49 +00:00
Update linux_deletion_of_ssh_key.yml
Check for deletion of SSH key material in the ~/.ssh directory as well. Not just in /etc/ssh. This particular commit fixes minor logic error in including content in the ~/.ssh directory
This commit is contained in:
@@ -12,7 +12,7 @@ description: This analytic is to detect a deletion of ssh key in a linux machine
|
||||
acidrain malware does in linux or router machines. This detection can be a good pivot to check what process and user
|
||||
tries to delete this type of files which is not so common and need further investigation.
|
||||
search: '| tstats `security_content_summariesonly` count min(_time) as firstTime max(_time) as lastTime FROM datamodel=Endpoint.Filesystem
|
||||
where Filesystem.action=deleted Filesystem.file_path = "/etc/ssh/*" AND Filesystem.file_path = "~/.ssh/*"
|
||||
where Filesystem.action=deleted AND Filesystem.file_path IN ("/etc/ssh/*", "~/.ssh/*")
|
||||
by _time span=1h Filesystem.file_name Filesystem.file_path Filesystem.dest Filesystem.process_guid Filesystem.action
|
||||
| `drop_dm_object_name(Filesystem)`
|
||||
|rename process_guid as proc_guid
|
||||
|
||||
Reference in New Issue
Block a user