Lateral Movement (TA0008)(external, opens in a new tab or window)
text code block:event.category:file and host.os.type:linux and event.action:creation and process.name:(ftp or rsync or scp or sftp or sftp-server or ssh or sshd or vsftpd) and file.path:((/dev/shm/* or /tmp* or /var/tmp*) and not (/tmp/ansible-tmp-* or /var/tmp/ansible-tmp-*)) and not user.id:0
Install detection rules in Elastic Security
Detect Remote File Creation in World Writeable Directory in the Elastic Security detection engine by installing this rule into your Elastic Stack.
To setup this rule, check out the installation guide for Prebuilt Security Detection Rules(external, opens in a new tab or window).