« Srizbi control regained by original owner | Main | Cut the Cutwail....! »

2008.11.25

TrackBack

TrackBack URL for this entry:
http://www.typepad.com/services/trackback/6a00d835018afd53ef01053623c519970c

Listed below are links to weblogs that reference Technical details of Srizbi's domain generation algorithm:

Comments

Feed You can follow this conversation by subscribing to the comment feed for this post.

thanks Aha! so that’s how they do it, those little rats

The best way to fix the problem is to monitor the DNS queries and then have ISPs contact the infected customers to clean their computers through their walled garden infrastructure.

Is there code available that will generate the DNS names?

This may be a naive idea, but would it not make sense to try and decode the communications between the individual bots and the Commanders then create your own C&C server and register it with as many names as you can that this algorithm will generate, for say 01 FEB 2009 - 07 FEB 2009. Then force another shutdown of the current C&C servers at the end of JAN.

Then those of us who would rather see an end to this botnet would have effectively performed a technological coup d'etat and gathered control of it ourselves. Even if there is no shutdown or uninstall function built into the code base (a truly malicious coder wouldn't have one) with a command hierarchy whose only order is "stand your ground" the spam would still stop.

Again, I've never looked into this code or the communications between the clients and servers, so I don't know how feasible this idea truly is. But you must admit, it at least sound good.

--R

Wow Julia!

This is awesome research.

I analyzed two variants of the Srizbi malware in a VM environment, my published report can be found at
http://dash.za.net/Sources/Docs/Srizbi.pdf

Keep the good work up!

All the best!

Sincerely,
Dash Shendy

Sven - I don't understand why the private key is important, somebody has the recipient (in this case the bot). Encryption is only important to secure the communication channel.

An even simpler solution to prevent this botnet from being revived is for Verisign to block registration of these domain names!

Rather than trying to break the PKI, as long as messages can be sent to the bot, there's a chance that there are exploitable bugs in the bot's code. Has analysis been done to identify possible buffer overflows in the bot, and if present, exploit them?

Also, is it possible to track down where the domain registrations are coming from? It's pretty easy to cover up a single registration, but I can only imagine it would be harder to cover up (potentially) many registrations for domains that are known in advance to all participants.

compuboy04: as I understand it, the bots need to see a private key from the C&C servers before accepting instructions, and from what I recall, it's a 1024 byte key, which nobody has cracked yet.

Couldn't the hosts just use the same algorithm and blacklist all those names generated from it ... forever? I'm sure it wouldn't affect the rest of the world if the domain name is gibberish to begin with.

Why couldnt one of the domains be registered and then uninstall instructions be sent to infected PC's by a security group?

If they had been really clever, they would've just used some pki magic.

Allen,

to put it in simpler terms, from what i understand the bot takes the current date, runs it through the function as describes and spits out a few domain names for that day, then the next day comes along and it has 4 more it can use. This cycle continues forever, and makes it possible to reconnect with any bot even if it takes awhile for the bot to find a registered domain by the hacker, without the hacker having to sit on domains and servers.

I believe this blog talked about there being 4 domains hardcoded into the bot. However, I dont think that they knew that the domains would change every day, because the bot has never ran the function due to the CnC servers always being online. I think everyone just blew off the domains thing thinking it was just a dumb mistake of the hacker coding domains in then not registering them.

Because the main CnC server has never been down before, no one really cared too much to study the rest of the bot that wasn't being utilized. Only now that the servers are down did they find that the bot generates new domains everyday.

when you said "Does this mean the bad guys can more or less pick one of the new names for the current date and register that name, to setup the new c&c server ?" you are exactly correct. even if security groups kept buying the domains everyday before the hacker could, eventually they would run out of money and the bot would be regained by the hacker. Once the connection to the CnC is reestablished the bot no longer needs to keep generating the domains.

And to answer your second question about always having to register new domains. They know they probably wont get every bot like this, but the vast majority will be picked up. and if the hacker wanted to he could easily just buy a few more domains at random times and pickup the rest.

this backup plan is pretty ingenious if you ask me, as long as the hacker is patient he/she/they can get the botnet back under control no matter what happens.

Oh my god ... what an inventive system these guys used ! And from recent news, I understand it actually worked (even for a short while). Does this mean the bad guys can more or less pick one of the new names for the current date and register that name, to setup the new c&c server ?
but, does it not mean they have to keep registering new names at a very high rate, I presume not all bots are online all the time and they dont want to miss out bots that are only online this week but not the next and come back after that ? Im not sure I understand the whole thing ....

The comments to this entry are closed.