WEBSHELL_ASPX_XslTransform_Aug21
Description
Detects an ASPX webshell utilizing XSL Transformations
Query · yara
strings:
$csharpshell = "Language=\"C#\"" nocase
$x1 = "<root>1</root>"
$x2 = ".LoadXml(System.Text.Encoding.UTF8.GetString(System.Convert.FromBase64String("
$s1 = "XsltSettings.TrustedXslt"
$s2 = "Xml.XmlUrlResolver"
$s3 = "FromBase64String(Request[\""
condition:
filesize < 500KB and $csharpshell and (1 of ($x*) or all of ($s*))