MAL_RANSOM_SH_ESXi_Attacks_Feb23_1
Description
Detects script used in ransomware attacks exploiting and encrypting ESXi servers - file encrypt.sh
Query · yara
strings:
$x1 = "/bin/find / -name *.log -exec /bin/rm -rf {} \\;" ascii fullword
$x2 = "/bin/touch -r /etc/vmware/rhttpproxy/config.xml /bin/hostd-probe.sh" ascii fullword
$x3 = "grep encrypt | /bin/grep -v grep | /bin/wc -l)" ascii fullword
$s1 = "## ENCRYPT" ascii fullword
$s2 = "/bin/find / -name *.log -exec /bin" ascii fullword
condition:
uint16(0) == 0x2123 and
filesize < 10KB and (
1 of ($x*)
or 2 of them
) or 3 of them