Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
brian
committed
Jun 9, 2018
1 parent
6da85d3
commit 6ea7411
Showing
2 changed files
with
36 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 ) | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters