SUSP_LNX_ARCH_Install_Hook_Jun26
Description
Detects suspicious pre and post hooks in Arch install files
Query · yara
strings:
$sa1 = "pre_install() {"
$sa2 = "post_install() {"
$sa3 = "pre_upgrade() {"
$sa4 = "post_upgrade() {"
$sa5 = "pre_remove() {"
$sa6 = "post_remove() {"
$sb1 = "npm install "
$sb2 = "&& 'b''u''n'"
$fp1 = "#!/bin/sh"
condition:
filesize < 5KB
and 1 of ($sa*)
and 1 of ($sb*)
and not 1 of ($fp*)