forked from Yara-Rules/rules
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request Yara-Rules#357 from leviathan2701/master
Webshells/WShell_Drupalgeddon2_icos.yar has been added in order to de…
- Loading branch information
Showing
2 changed files
with
27 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,26 @@ | ||
/* | ||
This Yara ruleset is under the GNU-GPLv2 license | ||
(http://www.gnu.org/licenses/gpl-2.0.html) and open to any user or | ||
organization, as long as you use it under this license. | ||
*/ | ||
|
||
/* | ||
Author: Luis Fueris | ||
Date: 4 october, 2019 | ||
Description: Drupalgeddon 2 - Web Shells Extract. This rules matchs with | ||
webshells that inserts the Drupal core vulnerability SA-CORE-2018-002 | ||
(https://www.drupal.org/sa-core-2018-002) | ||
*/ | ||
|
||
rule Dotico_PHP_webshell : webshell { | ||
meta: | ||
description = ".ico PHP webshell - file <eight-num-letter-chars>.ico" | ||
author = "Luis Fueris" | ||
reference = "https://rankinstudio.com/Drupal_ico_index_hack" | ||
date = "2019/12/04" | ||
strings: | ||
$php = "<?php" ascii | ||
$regexp = /basename\/\*[a-z0-9]{,6}\*\/\(\/\*[a-z0-9]{,5}\*\/trim\/\*[a-z0-9]{,5}\*\/\(\/\*[a-z0-9]{,5}\*\// | ||
condition: | ||
$php at 0 and $regexp and filesize > 70KB and filesize < 110KB | ||
} |
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