We have been tracking an interesting malware that is affecting thousands of compromised sites. We call it GetMama!!
Why conditional? Because instead of just displaying the malicious code to all the visitors of the web site, it connects back to its command and control server to find out what to do. It also sends back to the attackers the IP address, user agent and referrer of the person visiting the compromised site, so the command and control can determine if it should display the malicious content or not.
It also only displays the malicious content once a day per IP address and only to Windows users.
Why GetMama? Well, that’s how the malware authors called their own function (see sample in the bottom of the post).
COMMAND AND CONTROL (C2) SERVERS
Those are the command and control IP addresses. I recommend checking for traffic to these IP addresses and blocking them if possible:
For every request to the compromised sites, there will also be a random call to one of those. The called URL would look something like http://220.127.116.11/jedi.php?version=0991&mother=
This is final decoded malware that gets executed on the compromised sites. For every request, it connects back to the attackers to determine what to do. The action could be to inject malware in the site, run a command in the server (it also acts as a backdoor) or to do nothing.
Note that the malware will not look like that (all pretty) on the compromised site. It can be encoded like this:
As you can see, its not using any of the normal “eval ( base64_decode” calls that webmasters are used to looking for. This malware has also evolved and it can be hidden in different ways.
We will post more details as we learn more about it.
Note that if your site is compromised, our free sitecheck scanner may miss this type of malware (because of the conditional way it works). If you think you are compromised, only our internal scans can find/clean it up.