SUSP_ENV_Folder_Root_File_Jan23_1
Description
Detects suspicious file path pointing to the root of a folder easily accessible via environment variables
Query · yara
strings:
$xr1 = /%([Aa]pp[Dd]ata|APPDATA)%\\[A-Za-z0-9_\-]{1,20}\.[a-zA-Z0-9]{1,4}[^\\]/ wide ascii
$xr2 = /%([Pp]ublic|PUBLIC)%\\[A-Za-z0-9_\-]{1,20}\.[a-zA-Z0-9]{1,4}[^\\]/ wide ascii
$xr4 = /%([Pp]rogram[Dd]ata|PROGRAMDATA)%\\[A-Za-z0-9_\-]{1,20}\.[a-zA-Z0-9]{1,4}[^\\]/ wide ascii
$fp1 = "perl -MCPAN " ascii
$fp2 = "CCleaner" ascii
condition:
filesize < 20MB and 1 of ($x*)
and not 1 of ($fp*)
and not pe.number_of_signatures > 0