Skip to content

Commit

Permalink
drupal injection
Browse files Browse the repository at this point in the history
  • Loading branch information
brian committed Jun 9, 2018
1 parent 6da85d3 commit 6ea7411
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 0 deletions.
35 changes: 35 additions & 0 deletions includes/drupal_injection_001.yar
@@ -0,0 +1,35 @@
/*
Yara Rule Set
Author: Brian Laskowski
Date: 2018-06-09
Identifier: case128
Reference: https://github.com/Hestat/lw-yara
*/

/* Rule Set ----------------------------------------------------------------- */

rule drupal_injection_06_09_18_case128_index {
meta:
description = "case128 - file index.php"
author = "Brian Laskowski"
reference = "https://github.com/Hestat/lw-yara"
date = "2018-06-09"
hash1 = "5d242e1686d8e321710c4311ad0e04574e107e34e3401ad0d89c407fea3cf247"
strings:
//$s1 = "* See COPYRIGHT.txt and LICENSE.txt." fullword ascii
//$s2 = "* The routines here dispatch control to the appropriate handler, which then" fullword ascii
//$s3 = "* Root directory of Drupal installation." fullword ascii
$s4 = "'error_log'); @ini_restore('display_errors');" fullword ascii
//$s5 = "menu_execute_active_handler();" fullword ascii
//$s6 = "require_once DRUPAL_ROOT . '/includes/bootstrap.inc';" fullword ascii
$s7 = "error_reporting(0); @ini_set('error_log',NULL); @ini_set('log_errors',0); @ini_set('display_errors','Off'); " ascii
$s8 = "<?php" ascii
//$s9 = "* prints the appropriate page." fullword ascii
$s10 = "kgeyAka2pka2VfYyA9IDE7IH0NCmVycm9yX3JlcG9ydGluZygwKTsNCmlmKCEka2pka2VfYykgeyBnbG9iYWwgJGtqZGtlX2M7ICRramRrZV9jID0gMTsNCmdsb2JhbC" ascii
condition:
( uint16(0) == 0x3f3c and
filesize < 10KB and
( all of them )
) or ( all of them )
}

1 change: 1 addition & 0 deletions lw-rules_index.yar
Expand Up @@ -49,6 +49,7 @@ include "./includes/prowli.yar"
include "./includes/BabaYaga.yar"
include "./includes/apache_XMR_MINER.yar"
include "./includes/paypal_phishing_kit_001.yar"
include "./includes/drupal_injection_001.yar"



0 comments on commit 6ea7411

Please sign in to comment.