Skip to content

Commit 62eb024

Browse files
committed
feat: add source guardian exploit
1 parent e08a2ac commit 62eb024

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/Definitions.php

+6
Original file line numberDiff line numberDiff line change
@@ -433,6 +433,12 @@ class Definitions
433433
'level' => self::LVL_WARNING,
434434
'pattern' => '/([\s]*\$\w+[\s]*\[[\s]*\$\w+[\s]*%[\s]*strlen[\s]*\([\s]*\$\w+\)[\s]*\][\s]*\;?[\s]*){2,}/i',
435435
],
436+
'source_guardian' => [
437+
'description' => 'SourceGuardian is a PHP encoder often used for the obfuscation of malicious code',
438+
'level' => self::LVL_DANGEROUS,
439+
'pattern' => '/[;\s]*sg\_load[\s]*\([\s]*[\\\'\"][A-Za-z0-9+\/]{150,}={0,3}[\\\'\"][\s]*\)/i',
440+
'link' => 'https://www.sourceguardian.com',
441+
],
436442
];
437443

438444
/**

0 commit comments

Comments
 (0)