Skip to content

Commit

Permalink
feat: add source guardian exploit
Browse files Browse the repository at this point in the history
  • Loading branch information
marcocesarato committed Dec 31, 2020
1 parent e08a2ac commit 62eb024
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/Definitions.php
Original file line number Diff line number Diff line change
Expand Up @@ -433,6 +433,12 @@ class Definitions
'level' => self::LVL_WARNING,
'pattern' => '/([\s]*\$\w+[\s]*\[[\s]*\$\w+[\s]*%[\s]*strlen[\s]*\([\s]*\$\w+\)[\s]*\][\s]*\;?[\s]*){2,}/i',
],
'source_guardian' => [
'description' => 'SourceGuardian is a PHP encoder often used for the obfuscation of malicious code',
'level' => self::LVL_DANGEROUS,
'pattern' => '/[;\s]*sg\_load[\s]*\([\s]*[\\\'\"][A-Za-z0-9+\/]{150,}={0,3}[\\\'\"][\s]*\)/i',
'link' => 'https://www.sourceguardian.com',
],
];

/**
Expand Down

0 comments on commit 62eb024

Please sign in to comment.