SUSP_LNX_ARCH_PKGBUILD_NPM_Dependency_Jun26
Description
Detects suspicious PKGBUILD with NPM dependency and install script
Query · yara
strings:
// depends=('npm' or 'bun'
$sa1 = { (0A | 20) 64 65 70 65 6E 64 73 3D 28 [0-15] (6E 70 6D | 62 75 6E) }
// install -Dm644 "../*.hook"
$sb1 = { 69 6E 73 74 61 6C 6C 20 2D 44 6D 36 34 34 20 (22 | 27) [0-100] 2E 68 6F 6F 6B (22 | 27) 0A }
// install=oracle-bin-deps.install
$sb2 = { 69 6E 73 74 61 6C 6C 3D [1-50] 2E 69 6E 73 74 61 6C 6C }
condition:
filesize < 100KB
and $sa1
and 1 of ($sb*)