WEBSHELL_Csharp_Hash_String_Oct22
Description
C# webshell using specific hash check for the password.
Query · yara
strings:
$gen1 = "void Page_Load" ascii
$gen2 = "FromBase64String" ascii
$gen3 = "CryptoServiceProvider" ascii
$gen4 = "ComputeHash" ascii
$hashing1 = "BitConverter.ToString(" ascii /* Webshell uses ToString from a string: BitConverter.ToString(ptqVQ) */
$hashing2 = ").Replace(\"-\", \"\") == \"" ascii
$filter1 = "BitConverter.ToString((" ascii /* Usually it's something like: return ((BitConverter.ToString((new SHA1CryptoServiceProvider() */
condition:
filesize < 10KB
and all of ($gen*) and all of ($hashing*)
and not 1 of ($filter*)