Eavesdropping on a Botnet
wild3rbeast writes "Joe Stewart, a senior security researcher with LURHQ's Threat Intelligence Group has figured out a way to silently spy on a botnet's command-and-control infrastructure, and finds that for-profit crackers are clearly winning the cat-and-mouse game against entrenched anti-virus providers. From the article: 'The lesson here is once you get infected, you are completely under the control of the botmaster. He can put whatever he wants on your machine, and there's no way to be 100 percent sure that the machine is clean. The only way to be [completely] sure the system is malware-free is to completely wipe the hard drive and reinstall the operating system.'"
FTFA: "Stewart successfully started spying on the control channel, but there was not much to see."
In other words: nothing to see here, just remember to patch your computers.
Seriously, I was hoping for some real news, because I find malware incredibly interesting. Alas, TFA was a let-down...
Anyone else think the comments just weren't rendering right before they turned off ABP and saw ads?
-r
"The only way to be [completely] sure the system is malware-free is to completely wipe the hard drive and reinstall the operating system.'" ...or to run a live-CD version of some OS where all you need to do is reboot
options abound Linux, BSD, Windo... oh, forget about that last one
"The only way to be [completely] sure the system is malware-free is to completely wipe the hard drive and reinstall the operating system.'""
Trusted Computing to the rescue!
This happened to me once... even with a fully patched XP, up to date Norton, and Ad-Aware installed. For peace of mind, I too decided the format/reinstall route was the best option. I've since switched to the Mac and have been problem free.
Perhaps the next opportunity for profit in this game is to hack other people's botnets to bend to your own purposes? Probably a lot less risky than hacking thousands of potentially litigous members of the public. Secure encryption would stop most of this, however the master endpoint computer would still have some vulnerability.
At my computer club's PC Clinic, I set up Ethereal on our network gateway computer, to keep track of things. You can easily see this kind of crap going on.
tasks(723) drafts(105) languages(484) examples(29106)
:s/reinstall the operating system/install Linux/g
(yeah, I pretty much forgive the Digg one, everybody has those ...)
Quidquid latine dictum sit, altum videtur
OMG Think he's a goon??
Spam is one thing, but once you got access to the machine, getting logins and passwords for online stock and bank account services via a keylogger is completely different. I wonder how much stuff is silently running on users machines right now...
"Until someone creates something that can infect the various *nixes that is."
That's impossible. How do I know. Just "Ask Slashdot".
"The only way to be [completely] sure the system is malware-free is to completely wipe the hard drive and reinstall the operating system."
I say we take off and nuke 'em all from orbit. It's the only way to be sure.
Any sect, cult, or religion will legislate its creed into law if it acquires the political power to do so.
I do not believe in karma. "Funny"=-6. Do good and forbid evil. Yours, Oft-Offtopic Flamebaiting Troll.
"The lesson? Don't get infected in the first place"
:/ *grin*
Oh, *R*E*A*L*L*Y*? Gotta love some ppl aproach to security articles
I know he may not be the most favourite of people around here, but Steve Gibson was able to spy on the IRC command & control channel of a botnet a few years ago. It was precipitated by a DDoS on his site, which he investigated rather thoroughly.
Link to the article (...long article warning)
Some of the article is quite interesting, some is obvious, some is ego-boosting self-congratulatory statements, and some of it is his "teh XP can create complete 'UNIX sockets' OH NOES!" propaganda. Still worth a read, even if it is a few years old.
If all you have is a grenade, pretty soon every problem looks like a foxhole -- MightyYar
If you are a computer user, you are responsible for the problems they are creating. ISP's need to inform people they have bots and if they are infecting other computers they need their internet access dropped. Tough love.
There is no reason to just reinstall the operating system just because you got a little bit of spyware. Only about 1% of the machines that I have worked on because of spyware have I had to reinstall the operating system. The infection can always be completely gotten rid of. I've only had call backs about spyware that I missed about 3 times. And for all I know, it was because the user went and downloaded something again that put it on there (like Party Poker, etc). And it can all be done with just two a handful of tools (where AdAware is NOT included), and a little bit of creative thinking. For example, recently, I booted a computer into safe mode and used AVG Free to check for viruses. It picked up about 3000 "Trojan.Downloaders." Once it found them, I hit delete for all of them. It took about 30 seconds a file (you do the math). Well, I had two hours before the guy got on a plane. So I exported the list to CSV. Opened it in Excel, deleted all columns except the file names, and put a "del" column to the front. Save, rename to .bat or .cmd, and run. They were deleted in about 20 seconds.
Kernel Krunch - Part of a Complete OS
The Windows live CD you are thinking about is BartPE, but it's not as easy to use or setup as a Linux LiveCD.
I did set up one myself. It works pretty well once setup.
How a server got compromised, and ran a Paypal scam site for two days, more technical explanation of what happened, and how to (and how not to) make Yahoo block the accounts involved. Of course, the idea that compromised machine can in any way be trusted, sounds like one of the stupidest things ever thought up by a human.
Contrary to the popular belief, there indeed is no God.
"ISP's need to inform people they have bots and if they are infecting other computers they need their internet access dropped."
In my experience, the cable installers are clueless. When I switched from DSL to Cable, the cable installers (two of them, one was a trainee) hooked up their cable to my router/hardware firewall and everything was fine. Then the senior guy asked if he could hook up their cable box directly to my computer to show the trainee how they normally do things. After booting into a spare version of the OS that I only use for maintenance (which is on a different partition than my regular OS), I let him hook his cable directly up to my computer, bypassing my router. Within about 20 seconds my antivirus program detected and reported a virus attack, although I forget the exact details because it was several years ago.
The point is that the cable installers connect their cable up to new subscribers computers without even checking their virus protection, and the naive users computers are probably infected before the installers drive away. The ISP would be far better off supplying hardware router/firewalls to their customers gratis because of the reduced traffic load from zombie computers.
9/11 Eyewitnesses to Explosive WTC Demolition 1 of 2
Just a thought... With Windows security being what it is, how long will it be before a malware author or spamhouse coder get their stuff installed as trusted code. Then things really will be hard to remove.
Second thought. This could be a good thing. After a while of malware being "trusted" will people and companies abandon the TCP program? I am not a big fan of the TCP concept and this outcome could be the answer to getting rid of it. Or not.
It not like I'm the only one who ever figured out how to spy on botnet control channels. This has been going on for years. Some researchers only spy on the botnet to find out what the botnet is being used for. Some even take it upon themselves to try and "clean" the infected systems of the bots (Mocbot has a "remove" command, by the way, but you have to have the correct user@host mask). Botherders sometimes even spy on each others channels, to try and take control of less-protected botnets from other botherders.
-Joe
My house was robbed once... even with fully locked doors, up to date alarm company subscription, and a dog.
You probably had Windows...
... because that's where the money is.
You write about root kits and declare:
Just by the virtue of the large number of x86 Linux servers exposed to the Intarweb, there must be thousands of systems just waiting to be rooted. Fortunately for "us", there are millions of exposed Windows client PCs running as Adminstator, begging to be owned.
As if the only difference was numbers. The other difference, or so claim the FUDsters, is that "Linux is for servers." You know, like banks and businesses that handle real money. Given the profile and importance of those targets, you would think they would be hit all the time and that we would hear about it as we hear of IIS exploits. For some reason we don't hear anything, despite the very open nature of the people running the software. It would seem that there's more at work than numbers here.
On the desktop there's another crucial difference, the ease of recovery. In the Windoze world, you pull out your ancient "original" CD and put the same broken crap right back on your machine. It wipes out all your documents and setting so you suffer a loss for no gain. Then you are rooted again in about 12 minutes after hooking up to a network. In the free world, you do a net install and get the latest and greatest of everything, without losing anything at all. A few extra steps can make sure the root kit is not in your home directory. The easiest is to chmod file in your home directory to no execute. In the very worst case you can chmod and then tar up the documents you worry about and start fresh with your settings, like in the windoze world but much easier.
Friends don't help friends install M$ junk.
However, even that might not help if the OS in question is Windows XP and not integrated with SP2 on the same CD, and you don't know what you're doing. (like disconnecting the network until you've installed SP2 that you of course had lying on another disc so you don't need to go online for it)
Pretty annoying what a highly flawed and widely spread OS can do.
Beware: In C++, your friends can see your privates!
Congratulations, you noticed the reason that studies show Windows has a 12 minute half life on any network.
The ISP would be far better off supplying hardware router/firewalls to their customers gratis because of the reduced traffic load from zombie computers.
The cable modem already does that but it does not work. They block outbound ports and limit the upload speed. You can't block the inbound ports because you would block services users would actually notice. Even if you could lock up everything and only use one port for inbound and one port for outbound, the root would come through your browser or email. The bottom line is the computer on the other end has Windoze and Windoze has problems you can't fix with a router or an anti virus program. Without Windoze, you would not need any of the above, performance limiting crap.
Friends don't help friends install M$ junk.
More technical version:
http://www.lurhq.com/mocbot-spam.html
There are more interesting papers on lurhq's site:
http://www.lurhq.com/research_threat.html
-ft
I've one XP home box running.
(We play online poker ok?)
It got infected with this crap and started spewing spam. Primary cause of this is kid browsing BTW. They are the most likely to click on the baddies. Put 'yer kids on Linux or a Mac and lots of this just goes away.
Within a few hours I got a call on my cell. Asked me what I wanted to do. I said pull the plug if the box is still spewing in a few hours. (That was time enough for me to get home and deal.) I arrived home, pulled the plug on the offending box, started archiving data in preparation for a re-image. Shot off a quick e-mail asking them to check for baddies on their end just to be sure. All done, next.
This is exactly why the ISP consolidation is just horrible. Had we continued to have a high percentage of live and local ISP's, people would have someone they could trust to let them know things are not as they seem.
I know my ISP sysadmins by name. Most people should. I don't talk with them much, but when I need to, it's always worthwhile. Nice folks --we need more of them.
BTW: Joey http://www.spiretech.com/ If you are in PDX, give them a call.
Blogging because I can...
There should also be mandatory rule about not using Windows xp without firewall and virus protection. It's a useless operating system.
How much do you know about Windows Vista and how it changes this?
It's the only way to be sure that it's free of malware.
CORRECTION:
The only way to be [completely] sure the system (Windows) is malware-free is to completely wipe the hard drive and reinstall (Windows)the operating system.'"
get it right.
You have to wonder..I mean, of course it's a disaster out there, we're not setting up newbies with enough education or software. I setup my users with XPSP2, Norton, Pest Patrol, Spybot, Norton ghost or Acronis and a router and a promise to "try" and stay away from googling porn. Out of ninety regulars on my phone, only three of them need re-image instruction once in a while. Malware ? what malware ?
End of Line.
I realized that BartPE could be a handy tool for cleaning up stuff. if nothing from the hard drive is in memory when bart is running, it can't stop tools running under bart from cleaning the crud out.
I also realized that with the many plug-ins that bart has, you could make a fairly usable static system with it. it gets infected? reboot. it gets questionable? reboot.
e
The only way to be [completely] sure the system is malware-free is to completely wipe the hard drive and reinstall the operating system.
The only way to be sure on a WINDOWS system is to reinstall the operating system, something that Windows users just seem to accept. Then you have to beg MSFT to reactivate your operating system. If you reinstall routinely, some day they'll start acting like you're expected to pay for it...again.
I have one token XP Pro box on my network but don't routinely use it to surf the internet (except when it's rendering video). Email, most of my online work...all Linux. Windows is a fine operating system, just don't connect it to the internet.
That's our life, the big wheel of shit. - The Fat Man, Blue Tango Salvage
> The only way to be [completely] sure the system is
> malware-free is to completely wipe the hard drive
> and reinstall the operating system.'"
I am not sure of this. What about those hardware devices where one can upgrade the firmware without setting a jumper? In other words, everything happens in software. What if, say, a malware replaces the BIOS on one such device? Then even an OS reinstall won't help. You are owned on a lower level than the OS. AFAIR, some modems were suspectible for this.
Vilmos
The only way to be [completely] sure the system is malware-free is to completely wipe the hard drive and reinstall the operating system.
Or MD5 everything.
Have you read my journal today?
What users need, and I'm continually surprised that it isn't here already, is a Live CD Virus scanner. Download the ISO, burn the CD, boot it on suspect machines, and let it do the job of reading your system disc as a simple data disc. The idea that a program running on an infected system can spot and remove the infection seems questionable at best.
"It's the height of ridiculousness to say for those 9 lines you get hundreds of millions."
The only way to be [completely] sure the system is malware-free is to completely wipe the hard drive and reinstall the operating system.'
Yes, and your average user will quickly encounter another funny problem: He has a good chance to be infected again before the download of SP2 and/or other security updates he needs to not be re-infected, is finished...
Assorted stuff I do sometimes: Lemuria.org
He has it wrong, you have to take off and nuke the entire site from orbit. It's the only way to be sure.
"He can put whatever he wants on your machine, and there's no way to be 100 percent sure that the machine is clean."
...
- right so one cannot perform a man-in-the-middle"
"attack", to see what traffic is going into / out
a suspect machine.
"The lesson here is once you get infected, you are completely under the control of the botmaster."
-a trojan/bot whatever has the same user right as the person executing it.
the real threat of any trojan/virus/bot is bad code in the host OS, allowing for
buffer overflows, underruns etc. that's all. looking forward to buffer overflow
protection in the hardware / CPU
just wondering how long it is going to take for the win95 mentality about
file permissions / access right to go extinct. truely amazing that a computer
can not just make you smarter but also dumber
FUD
Window Live CD
Essentia non sunt multiplicanda praeter necessitatem.
So once a machine is infected the trojan can and does install anything it wants? and someone can spy on a botnet - what is new?
Of course, since he effectively broke a digital access control (reverse-engineering "trivial" encryption) and then ran the program in ways that the author did not explicitly permit (in a sandnet) then he's a criminal as bad as DMCA Jon.
AC
If you really think reinstalling is the answer then reinstalling is *not* the answer - you're so clueless that you'll be reinfected within a week.
n " and google the names of all the .exe files in there.
There's very few Windows machines which can't be fixed if all they have is a malware infection. All it normally takes is a reboot in safe mode, run an antivirus and a malware scan, then look in "...Whatever\Current_Version\Microsoft\Windows\Ru
Next, uninstall anything made by Symantec from the machine. It's all useless, every single byte of it. There's not a virus on the planet which doesn't know how to disable Norton Internet Security.
While you're at it, you can delete all the, um, "legitimate" stuff you find in the Registry's "Run" key. Most of it isn't needed and your machine will boot a lot faster without all those dumb printer driver accessories, Apple Quicktime crap, etc.
Sure, it's theoretically possible that this could fail, but in practice it doesn't. Virus writers don't need to do anything more than this infect a Windows machine so they don't bother.
No sig today...
Completely wipe the hard drive? Can he provide an example when this was necessary? Or even a theoretical example of how nascent files on a hard drive would assist in re-cracking the machine?
1. you are an anon poster. Want to actually discuss something. Get an account, so we can deal on level ground or STFU.
2. I get tons of spam. Sometimes ~1000 per day. I don't think I've ever seen a poker spam. This is a myth and is normally trotted out by those opposed to the whole idea of online poker.
3. All of those comment spams are tied to affiliate accounts. Have a problem with them? Contact the site and send them the link to the spam. It will be dealt with. The spammer will likely lose their affiliate status and the dollars they have accrued to date.
Blogging because I can...
A guy with a number that low _can't_ be that clueless, can he?
Anyway, no, as others have said, once you know the box has been penetrated there is no way to be sure you've cleaned every corner where something bad can hide.
Of course, the only really safe thing to do is pull all HDs, mount them on a known clean box (preferably a different OS to provide a discontinuity), back up the data forks of the important data files, and scrub the drives with the lowest level format that the drive itself can recover from.
Unimportant data like home movies and pictures should just be written off. Hopefully, the originals are stored off-line on something not easily writable without human interaction.
On the other hand, if the user in question doesn't care whether he is unwittingly part of a botnet or potentially giving his credit card number away, by all means, just clean the malware off and keep going until it chokes up again.