SUSP_LNX_Linux_Malware_Indicators_Aug20_1
Description
Detects indicators often found in linux malware samples. Note: This detection is based on common characteristics typically associated with the mentioned threats, must be considered a clue and does not conclusively prove maliciousness.
Query · yara
strings:
$s1 = "&& chmod +x" ascii
$s2 = "|base64 -" ascii
$s3 = " /tmp" ascii
$s4 = "|curl " ascii
$s5 = "whoami" ascii fullword
$fp1 = "WITHOUT ANY WARRANTY" ascii
$fp2 = "postinst" ascii fullword
$fp3 = "THIS SOFTWARE IS PROVIDED" ascii fullword
$fp4 = "Free Software Foundation" ascii fullword
$fp5 = "Too many sessions open! Use ssh_channel.close() or 'with'!"
condition:
filesize < 400KB and
3 of ($s*) and not 1 of ($fp*)