kqlElastic-2.0from elastic/detection-rules
SSH Authorized Keys File Activity
Quality
92
FP risk
—
Forks
0
Views
0
Rule sourcerules/cross-platform/persistence_ssh_authorized_keys_modification.toml
event.category:file and event.type:(change or creation) and
file.name:("authorized_keys" or "authorized_keys2") and
not process.executable:
(/Library/Developer/CommandLineTools/usr/bin/git or
/usr/local/Cellar/maven/*/libexec/bin/mvn or
/Library/Java/JavaVirtualMachines/jdk*.jdk/Contents/Home/bin/java or
/usr/bin/vim or
/usr/local/Cellar/coreutils/*/bin/gcat or
/usr/bin/bsdtar or
/usr/bin/nautilus or
/usr/bin/scp or
/usr/bin/touch or
/var/lib/docker/* or
/usr/bin/google_guest_agent or
/opt/jc/bin/jumpcloud-agent or
/opt/puppetlabs/puppet/bin/puppet or
/usr/bin/chef-client
)