08e8d462fe
RED PILL 🔴 💊
16 lines
No EOL
871 B
Text
16 lines
No EOL
871 B
Text
rule FE_APT_Webshell_PL_RAPIDPULSE_1
|
|
{
|
|
meta:
|
|
author = "Mandiant"
|
|
date_created = "2021-05-17"
|
|
strings:
|
|
$r1 = /my[\x09\x20]{1,32}@\w{1,64}[\x09\x20]{0,32}=[\x09\x20]{0,32}split[\x09\x20]{0,32}\([\x09\x20]{0,32}\x2f\x2f/
|
|
$r2 = /my[\x09\x20]{1,32}\$\w{1,64}[\x09\x20]{0,32}=[\x09\x20]{0,32}MIME::Base64::decode_base64[\x09\x20]{0,32}\([\x09\x20]{0,32}\$\w{1,64}[\x09\x20]{0,32}\)[\x09\x20]{0,32};[\S\s]{0,128}my[\x09\x20]{1,32}\$\w{1,64}[\x09\x20]{0,32}=[\x09\x20]{0,32}substr[\x09\x20]{0,32}\([\x09\x20]{0,32}\$\w{1,64}[\x09\x20]{0,32},[\x09\x20]{0,32}\d[\x09\x20]{0,32}\)[\x09\x20]{0,32};[\s\S]{0,64}return[\x09\x20]{1,32}\$/
|
|
$s1 = "use MIME::Base64"
|
|
$s2 = "CGI::param("
|
|
$s3 = "popen"
|
|
$s4 = "print CGI::header()"
|
|
$s5 = "(0..255)"
|
|
condition:
|
|
(all of ($s*)) and (@r1[1] < @r2[1])
|
|
} |