Main | Content Thieves »

Friday, July 23, 2010

MaMa CaSpEr and her clan of new hack-bots... and ZB Block's Response

Well, for months, ZB Block has been concentrating on the 'QUERY_STRING' that the hostile bots were sending websites. This used to be the only way that websites were hacked, and dare I say, we were effective enough to cause the attack bot script writers to jump to a new paradigm of attacks. The new attacks, come through the 'HTTP_POST' subsystem. However like a good general, my troops had in-place a system to help combat this new vector, it just wasn't needed till now.

The new threat comes from a new family of bots. The first one of this breed of breed of bots, as far as I've been able to discern is MaMa CaSpEr, followed by Casper, Dex, Kangen, kmccrew, Sasquia, Sledink, and plaNETWORK bots, plus many others yet to be found. The one defining factor is, they attempt to execute instructions through breaking the http_post variable input system. This is done with execution wedges, either through direct "<?php (code) ?>" , bbcode "[php] (code) [/php]", or oddly enough XML "<methodCall>" execution wedging. The one defining factor is, they try to slip it in through scripts that use the once unexploited HTTP_POST vector.

Well, I guess it's now the new frontier of malicious web robot exploitation, and I hope to be here to fight it. I could remind people that sanitization of variables is the most important way to fight this plague, but no matter how hard they try to make their scripts hardened, the skiddies always find a way around it. All I can say to them is, together, we may be able to effectively fight this. You might try suggesting to your users to add ZB Block to their scripts. And to you end-users out there, your script writer tried hard to avoid these problems, together, we can be much stronger.

And to the skript kiddies, and the hackers programming the scripts that are attacking us, just remember our motto...

“Evinco, est pergo bellum!”
"To conquer, is to continue the war!"

Zap :)

Posted by Zaphod at 3:20 PM Mountain Daylight Time
Edited on: Friday, July 30, 2010 2:50 PM Mountain Daylight Time
Categories: Bad User Client, Exploit Bot, Scan Bot, Security Musings, Stupid Bot

Tuesday, October 27, 2009

China Told to Get Lost... Again.

Yep, I tried being nice, I let China/Korea have access to my site again, just incase some poor sot there was running a board, and in spam hell.

Well, lesson learned, all it did was attract low class script kiddies, skript kiddies, or skiddies, whatever you want to call them. And lo, when they saw ZB Block was impenetrable by their lame attacks, they decided to start an http_referer spam campaign against my site, usually from homosexual pornograpic sites. This is designed to hurt Google Pagerank and other indicators of a site's quality. Never once did I see a valid, interested access from China. Never once did they get through my protections.

But they annoyed the hell out of me.

It's funny how the infamous Great Firewall of China stops normal good folks from using the web, yet seems to be assisting organized crime in attacking the rest of the internet. Sounds like someone is buddy-buddy "heh-heh" getting their pockets lined by the Russian Business Network to open the floodgates of spam. Imagine that, many people going against their beloved Mao Zedong's party, and co-operating with the Russians to the detriment of his people, his party, and his state. What is worse is, the same attacks and spam were coming out of Korea too, this means that "Beloved Leader" Kim Jong-il's people are stabbing him in the back too. Just shows you how two faced communists are, no matter their stripe.

Well, lesson learned. The blocks are back in, and the ZB Block IP banlist for Chinese / Korea IPs has been updated, thanks to the lists Okean provides . Just paste them into the appropriate area of your customsig.inc to turn off China and Korea like a switch.

It's too bad I had to resort to this, but it's a lesson learned.

Zap.

Monday, July 13, 2009

ZB Block Racks Up More Bot and Script Virus Kills!

Well, Avira has gotten back to me, and it looks like I have found some viral gold they can add to their arsenal for all of us.

Here's a run-down of the fresh kills I have added to ZB Block's (custom in-house version w/ probe trap) record. Please note that ZB Block caused "natural" immunity to all attacks attempting to install these. So do the wise thing and go to http://www.spambotsecurity.com/zbblock.php and get protected.

#1

Dear Sir or Madam,

Thank you for your email to Avira's virus lab.

Tracking number: (REMOVED).

A listing of files alongside their results can be found below:File ID Filename Size (Byte) Result

25394824 Bildb 2.03 KB MALWARE

Please find a detailed report concerning each individual sample below:

Filename Result Bildb MALWARE

The file 'Bildb' has been determined to be 'MALWARE'. Our analysts named the threat BDS/PHP.ali.31. The term "BDS/" denotes a Backdoor-Server program. Backdoor-Server programs are used to spy out, modify or delete data.Detection is added to our virus definition file (VDF) starting with version 7.01.04.223.

#2

Thank you for your email to Avira's virus lab.

Tracking number: (REMOVED).

A listing of files alongside their results can be found below:File ID Filename Size (Byte) Result

25394829 dudul3.txt 40.88 KB MALWARE

Please find a detailed report concerning each individual sample below:

Filename Result dudul3.txt MALWARE

The file 'dudul3.txt' has been determined to be 'MALWARE'. Our analysts named the threat PHP/IrcBot.E.2. The term "PHP/" denotes a PHP scriptvirus.Detection will be added to our virus definition file (VDF) with one of the next updates.

#3

Dear Sir or Madam,

Thank you for your email to Avira's virus lab.

Tracking number: (REMOVED).

A listing of files alongside their results can be found below:File ID Filename Size (Byte) Result

25394826 bot_ping.txt 100.52 KB MALWARE

Please find a detailed report concerning each individual sample below:

Filename Result bot_ping.txt MALWARE

The file 'bot_ping.txt' has been determined to be 'MALWARE'. Our analysts named the threat PHP.IrcBot.nad. Detection will be added to our virus definition file (VDF) with one of the next updates.

#4

Dear Sir or Madam,

Thank you for your email to Avira's virus lab.

Tracking number: (REMOVED).

A listing of files alongside their results can be found below:File ID Filename Size (Byte) Result

25394836 spread.txt 19.34 KB MALWARE

Please find a detailed report concerning each individual sample below:

Filename Result spread.txt MALWARE

The file 'spread.txt' has been determined to be 'MALWARE'. Our analysts named the threat PHP/Pbot.A.6. The term "PHP/" denotes a PHP scriptvirus.Detection will be added to our virus definition file (VDF) with one of the next updates.

#5

Dear Sir or Madam,

Thank you for your email to Avira's virus lab.

Tracking number: (REMOVED).

We received the following archive files:

File ID Filename Size (Byte) Result

25395810 feelcomz 1.7 bot.zip 12.06 KB OK

A listing of files contained inside archives alongside their results can be found below:File ID Filename Size (Byte) Result

25395811 botphp.txt 48.89 KB MALWARE

Please find a detailed report concerning each individual sample below:

Filename Result botphp.txt MALWARE

The file 'botphp.txt' has been determined to be 'MALWARE'. Our analysts named the threat PHP/Pbot.A.7. The term "PHP/" denotes a PHP scriptvirus.Detection will be added to our virus definition file (VDF) with one of the next updates.

#6 & 7

Dear Sir or Madam,

Thank you for your email to Avira's virus lab.

Tracking number: (REMOVED).

We received the following archive files:

File ID Filename Size (Byte) Result

25395813 One attack from t...ts.zip 23.89 KB OK

A listing of files contained inside archives alongside their results can be found below:File ID Filename Size (Byte) Result

25395814 pbota.txt 27.42 KB MALWARE
25395815 pbotb.txt 27.39 KB MALWARE
25395816 pbotc.txt 27.72 KB MALWARE
25395817 pbotd.txt 27.73 KB MALWARE

Please find a detailed report concerning each individual sample below:

Filename Result pbota.txt MALWARE

The file 'pbota.txt' has been determined to be 'MALWARE'. Our analysts named the threat PHP/IrcBot.E.3. The term "PHP/" denotes a PHP scriptvirus.Detection will be added to our virus definition file (VDF) with one of the next updates.

Filename Result pbotb.txt MALWARE

The file 'pbotb.txt' has been determined to be 'MALWARE'. Our analysts named the threat PHP/IrcBot.E.4. The term "PHP/" denotes a PHP scriptvirus.Detection will be added to our virus definition file (VDF) with one of the next updates.

Filename Result pbotc.txt MALWARE

The file 'pbotc.txt' has been determined to be 'MALWARE'. Our analysts named the threat PHP/IrcBot.E.4. The term "PHP/" denotes a PHP scriptvirus.Detection will be added to our virus definition file (VDF) with one of the next updates.

Filename Result pbotd.txt MALWARE

The file 'pbotd.txt' has been determined to be 'MALWARE'. Our analysts named the threat PHP/IrcBot.E.4. The term "PHP/" denotes a PHP scriptvirus.Detection will be added to our virus definition file (VDF) with one of the next updates.

Sweetness I tell you. Nothing feels better than being the shiv in the dark that takes some of this crap off the virtual streets. Real hackers don't use scripts... they may write them, but they don't use them. (Ever wonder if your pre-made script isn't designed to take away your toys eventually, eh skiddy?)

If you want to see the places these were injected, well, where they were attempted to be injected, just pour over the killed_log.txt files shared with the public on ZB Block's page.

Most will be there. Some won't.

Where are the others? Other servers!

Where are the other servers? Wouldn't you like to know!Neener Neener!

Zap! Chasing baddies with an axe!

A little bird told me about an aviary.com full of poopy pigeons.

"But there's one thing that makes spring complete for me,
And makes ev'ry Sunday a treat for me.

All the world seems in tune
On a spring afternoon,
When we're poisoning pigeons in the park.
Ev'ry Sunday you'll see
My sweetheart and me,
As we poison the pigeons in the park."
- Tom Lehrer

Okay, to start this story, I have to give proper credit to Amber MacArthur and her netcast on TWiT.tv. She's the little bird that told me about a big nasty pidgeon ready to poop on my site, and yours, just the way tynted does. No, I have not had a chance to listen to the show, but the notes gave me all the "beef" I needed.

The pidgeon's name is Aviary.com. It's another content scraper / content theif that also allows an attacker to send a malicious request to your machine, both from the previously protected against AmazonAWS cloud, and the newly killed pwebtech / FortressITX spamhost. Modus operandi? Same as tynt.com, that being content theft and acting as an un-regulated proxy for hackers.

aviary.com getting nailed by ZB Block. Click for larger version in new window. Here is my first screenshot I wish to share with you after establishing that Aviary.com is operating out of multiple netblocks. What you see is a shot of the aviary.com site loading my site into their "screenshot". But, by the tests below, you can see it passes queries just fine, as in any exploits out there could have been done through them as an unregulated proxy server. The method used to send this query was http://aviary.com/http://www.spambotsecurity.com/?xtestx . As you can see, it bounced the AmazonAWS perfectly, and caught the trigger. Click the image for a larger (readable) one in a new window. And here is the block that it generated.

#: 6896 @: Mon, 13 Jul 2009 11:48:48 -0600
Host: ec2-174-129-94-22.compute-1.amazonaws.com
IP: 174.129.94.22
Score: 1
Why blocked: Amazon Web Services. Not an ISP. Used by hackers, Keyword spamming SEO bots, and other unsavories. Checked for bypass.
Query: xtextx
Referer:
User Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.2; Trident/4.0; Data Center; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)
Reconstructed URL: http:// www.spambotsecurity.com /?xtextx

aviary.com getting nailed again by ZB Block. Click for larger version in new window. Yet another probe of Aviary.com after addition of the new spamhost ( pwebtech/FortressITX ). Please note that now it is pulling from viary.com! Viary.com, is, like Aviary.com, hosted on the same ridin' dirty webhost. You can see, however, this time it choked. But, it still did actually hit my site. Here's the blocked request. Please note it is using random user agents to try to cloak itself. This is EXCEEDINGLY bad, and very suspicious behavior.

#: 6899 @: Mon, 13 Jul 2009 12:32:21 -0600
Host: 65.98.13.118
IP: 65.98.13.118
Score: 2
Why blocked: pwebtech/FortressITX spam-friendly host/aviary.com unregulated proxy service. Test Trigger to test function.
Query: xtestx4
Referer:
User Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.2; Trident/4.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727)
Reconstructed URL: http:// www.spambotsecurity.com /?xtestx4

avairy.com getting sent a 'you've been bad' message. Click for larger image in new window. I also used their services, if they check their logs, to send them a "you've been bad, so here's the scoop, all you get for Christmas is snowman poop!" message. And, here's the logging of that hit. (Which actually came before the previous image, but cemented FortressITX / pwebtech's doom.)

#: 6897 @: Mon, 13 Jul 2009 11:51:10 -0600
Host: 65.98.13.118
IP: 65.98.13.118
Score: 1
Why blocked: Test Trigger to test function.
Query: xtestx=your_site_is_an_unregulated_proxy_server_used_by_hackers_and_will_be_added_to_the_signatures_of_ZB_block
Referer:
User Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.2; Trident/4.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727)
Reconstructed URL: http:// www.spambotsecurity.com /?xtestx=your_site_is_an_unregulated_proxy_server_used_by_hackers_and_will_be_added_to_the_signatures_of_ZB_block

I would be remiss if I didn't mention IncrediBILL's Random Rants, his pages first turned me onto a good description of this kind of problem. (Also, previous logs were showing hacking attempts from tynt.com / tynted.net).

Zap! Chasing them with an axe! 

Friday, June 26, 2009

Booyeah! Nailed one to the wall! Scratch one bot variant.

I gots me a trophy!

*** BEGIN MESSAGE ***

Dear Sir or Madam,

Thank you for your email to Avira's virus lab.

Tracking number: (REMOVED).

A listing of files alongside their results can be found below:

File ID Filename Size (Byte) Result
25382358 mucil_idle.txt 39.07 KB MALWARE

Please find a detailed report concerning each individual sample below:

The file 'mucil_idle.txt' has been determined to be 'MALWARE'. Our analysts named the threat PHP/IrcBot.F. The term "PHP/" denotes a PHP scriptvirus.Detection will be added to our virus definition file (VDF) with one of the next updates.

Alternatively you can see the analysis result here:

http://analysis.avira.com/samples/details.php?uniqueid=(REMOVED)

An overview of all your submissions can be found here:

http://analysis.avira.com/samples/details.php?uniqueid=(REMOVED)

Please note: If you have specific questions please address them to support@avira.com

Kind regards

Avira Virus Lab

*** END OF MESSAGE ***

Interesting things happen when I modify a version of ZB Block on another site to return a false success to a scanning probe... like actually taking some scum off the streets, rather than just stopping the attack their probes were trying.

I hereby declare PHP/IrcBot.F to be my first kill, in what I hope to be a string of many! And to those who might not like this news, all I can say is, you knew it was coming.

Zap! Chasing them with an axe! 

P.S. I might also mention here, that those of you running ZB Block were naturally immune to this infection vector. My modification just had to do with modifying the output of ZB Block to cause the virus to think it had found an infectable machine, by returning the proper code to it.