/*
Yara Rule Set
Author: Brian Laskowski
Date: 2019-01-31
Identifier: 01-31-19
Reference: https://github.com/Hestat/lw-yara/
*/
/* Rule Set ----------------------------------------------------------------- */
rule infected_01_31_19_minify {
meta:
description = "01-31-19 - file minify.php"
author = "Brian Laskowski"
reference = "https://github.com/Hestat/lw-yara/"
date = "2019-01-31"
hash1 = "48dee7233033b71174a063d1241754aa493ac33cd6f47487d130ed2a117f3856"
strings:
$s1 = "function mc($OQ,$Ba)" fullword ascii
$s2 = "$AP=\"f152ff3d0236535f1a5feb9272731e47\";" fullword ascii
$s3 = "<?php"
condition:
( uint16(0) == 0x3f3c and
filesize < 90KB and
( all of them )
) or ( all of them )
}
rule infected_01_31_19_mod_Php {
meta:
description = "01-31-19 - file mod_Php.php"
author = "Brian Laskowski"
reference = "https://github.com/Hestat/lw-yara/"
date = "2019-01-31"
hash1 = "85f6dcc537fc211d7aeef8640a6b5feb5dc226ea41350156424722e2f4fdd27c"
strings:
$s1 = "$VLfhEzqV1187 = \"HjwxOhEpUAxvZk9QECoHZRcpAQNVdn5NORQ2PypcUBZUAnFEECoTOCkDL1RUeWpRAzoPZBI5UBB6cmpcADobPBc5EVVuAm5NADt4PBIDL1F6cm" ascii
$s2 = "CEy4mOxI5XFV9YmpRDyh4ACUoGgtVdXVZAj4qMz8HKAxmWHEAHjwuMzotKAJ/cnlQEy4AMzotKAJ/cnlQEy4AMzopPw9XdgBQEwQDIikHKA5Vdn5ZADUMPTwZWS5/cnl" ascii
$s3 = "HOQd1bD9dOw1vXEBbCgQiGjAJAi96WFsPFl4TPyMEHhNSeXEcCiUTLSMEEVVsdQwPFl4TPyMEEVVsdQwPOzp0Ixc2OAJSeVRAADlwLhc5IxFXaWlQPgAHJxc5PFx/Www" ascii
$s4 = "QA18XJxEmKw1sdmpHOAAibTkUIAt/dnZbOCo5LhApLw9XZg1ZCj4iIzkUXV1SeXEcHjwubBcpOE5geVRAADk2IhcpOE5meWpcCgYpIhBdOF16AmpcCgc5ZCkq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ykpBRxnAwFCPioXIRcoGg5XZwhHETxxHzA/Ai98dmpHOQMPNis9KFx/dn5OOQAHYStcWAlVXFx" ascii
condition:
( uint16(0) == 0x3f3c and
filesize < 400KB and
( 8 of them )
) or ( all of them )
}
Copyright 2K16 - 2K18 Indonesian Hacker Rulez