Close
  • Latest News
  • Artificial Intelligence
  • Video
  • Big Data and Analytics
  • Cloud
  • Networking
  • Cybersecurity
  • Applications
  • IT Management
  • Storage
  • Sponsored
  • Mobile
  • Small Business
  • Development
  • Database
  • Servers
  • Android
  • Apple
  • Innovation
  • Blogs
  • PC Hardware
  • Reviews
  • Search Engines
  • Virtualization
Read Down
Sign in
Close
Welcome!Log into your account
Forgot your password?
Read Down
Password recovery
Recover your password
Close
Search
Logo
Subscribe
Logo
  • Latest News
  • Artificial Intelligence
  • Video
  • Big Data and Analytics
  • Cloud
  • Networking
  • Cybersecurity
  • Applications
  • IT Management
  • Storage
  • Sponsored
  • Mobile
  • Small Business
  • Development
  • Database
  • Servers
  • Android
  • Apple
  • Innovation
  • Blogs
  • PC Hardware
  • Reviews
  • Search Engines
  • Virtualization
More
    Subscribe
    Home Cybersecurity
    • Cybersecurity
    • Networking

    Botnet Eavesdropping: Inside the Mocbot (MS06-040) Attack

    Written by

    Ryan Naraine
    Published August 17, 2006
    Share
    Facebook
    Twitter
    Linkedin

      eWEEK content and product recommendations are editorially independent. We may make money when you click on links to our partners. Learn More.

      When Joe Stewart spotted a variant of the Mocbot Trojan hijacking unpatched Windows machines for use in IRC-controlled botnets, he immediately went to work trying to pinpoint the motive for the attacks.

      Stewart, a senior security researcher with LURHQs Threat Intelligence Group, set up a way to silently spy on the botnets command-and-control infrastructure, and his findings suggest that for-profit spammers are clearly winning the cat-and-mouse game against entrenched anti-virus providers.

      “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 theres no way to be 100 percent sure that the machine is clean,” Stewart said in an interview with eWEEK.

      Stewart, a well-respected researcher who specializes in reverse-engineering malware files, echoed a warning issued earlier this year by Microsoft.

      “The only way to be [completely] sure the system is malware-free is to completely wipe the hard drive and reinstall the operating system,” he said.

      Stewart arrived at that conclusion after eavesdropping on Mocbot for a few hours.

      “I have two machines here running in an isolated network. I infect one with the malware, and I have the other machine pretending to be the entire Internet,” he explained.

      The second machine, known as a sandnet, is a custom-made tool for analyzing malware in an environment that is isolated, yet provides a virtual Internet for the malware to interact with.

      “I can sit back and see all the interaction up to point where it [the infected machine] joins botnets control channel. Then I can take that information, go outside and replicate it. I can see what the real server is doing to get an entire picture of the operation,” Stewart said.

      /zimages/1/28571.gifRead more here about the ongoing battle to shut down botnet command-and-control infrastructure.

      With Mocbot, which was targeting the Windows vulnerability patched with Microsofts MS06-040 patch, Stewart was able to figure out that the infected drones were connecting to two hard-coded command and control servers at “bniu.househot.com” and “ypgw.wallloan.com.”

      He was able to capture the IRC (Internet Relay Chat) login sequence generated by the bot. This included a user, a nickname, the channel name and the first bit of instructions to the infected machine.

      The command schemes were all encrypted, forcing Stewart to create a custom Perl script to decode the algorithms.

      “Theyre using trivial encryption, so a bit of reverse-engineering had to be done. You can see some of it in the code of Mocbot, and I wrote a little script to do the decoding. When I visit the channel and he gives a command, I can easily decrypt it to see the instructions hes sending to the bot,” Stewart said.

      Using telnet to connect to the command-and-control server on Port 18067 (the port number for the IRC server), Stewart successfully started spying on the control channel, but there was not much to see.

      “The IRC server code was stripped down to give almost no information to the client, except the channel topic line, which was encrypted,” he said.

      Once decoded, he found that the botmaster was telling the infected machines to join another control channel to receive another encrypted message.

      When decoded, the command simply served up a URL hosted at PixPond.com, a free image hosting service.

      “The command is an instruction to download and execute [a second] file in the provided URL,” Stewart said, noting that the mission of the botmaster was to get the second file into the infected system.

      /zimages/1/140275.jpg Digg this story! » Del.icio.us /zimages/1/141548.jpg Post to Slashdot!

      Next Page: Spam proxy.

      Spam Proxy

      The file is a spam proxy Trojan named Win32.Ranky.fv.

      “The entire scheme of mass infection is simply to facilitate the sending of spam. The proxy Trojan is also a bot of sorts; reporting in to a master controller to report its IP address and the SOCKS port for use in the spam operation,” Stewart said.

      With the spam proxy Trojan sitting on his test machine, Stewart was again able to join the spam proxy net to get an internal peek at the operations.

      Using the sandnet, he found that the Trojan was sending a 4-byte UDP packet to the “yu.haxx.biz” address.

      Stewart then mimicked this on an Internet connected network with a fake SOCKS proxy that feeds into a blackhole SMTP server to infiltrate the proxy network.

      He immediately started seeing “loads of spam being pumped through our SOCKS server.” This was coming from dozens of IP addresses and using forged sender addresses.

      The spam e-mails, which are now being pumped from infected Windows desktops, represented a range of the typical junk mail, Stewart said.

      He found mail advertising everything from pornography to fake Rolex watches and pharmaceuticals.

      “It looks like this was a small, targeted attack for one simple reason. They wanted to stay under the radar. This is all about setting up small botnets and making money from spam. They could be the spammers themselves or the guys doing the dirty work and then renting the botnets to spammers,” he said.

      /zimages/1/28571.gifRead more here about the Zotob worm attack of August 2005.

      “This is a business model that is obviously working. They wouldnt be going to these lengths if it wasnt making money,” Stewart added.

      The LURHQ researcher says the recent attack proves that businesses and consumers should be careful about depending on existing anti-virus software.

      In the initial stages of the Mocbot attack, only one-third of anti-virus scanners tested by Stewarts research team were detecting the malware.

      “This was just a minor variant of something that was out there for months but the majority of scanners were missing it,” he said.

      Even more worrisome is the fact that the attack included the use of botnet instructions to download the second-stage Trojan executable.

      “In this case, it was a spam proxy Trojan, but what if it was a rootkit? The rookits are getting so good these days that the programs we typically rely on to find and clean machines just cant see them. There is still the possibility that the spammers could slip in a rootkit to hide things forever,” he said.

      “Its getting to the point where you might want to consider just rebuilding and reformatting machines after these attacks. If your security software doesnt spy on the botnet and know exactly what is being dumped on the machine, the malware can go undetected for a long time,” Stewart said.

      The lesson? “Dont get infected in the first place,” Stewart said. He urged IT administrators to apply critical patches early and maintain several levels of defense against malware, including firewalls, anti-virus and system hardening.

      /zimages/1/28571.gifCheck out eWEEK.coms for the latest security news, reviews and analysis. And for insights on security coverage around the Web, take a look at eWEEK.com Security Center Editor Larry Seltzers Weblog.

      Ryan Naraine
      Ryan Naraine

      Get the Free Newsletter!

      Subscribe to Daily Tech Insider for top news, trends & analysis

      Get the Free Newsletter!

      Subscribe to Daily Tech Insider for top news, trends & analysis

      MOST POPULAR ARTICLES

      Artificial Intelligence

      9 Best AI 3D Generators You Need...

      Sam Rinko - June 25, 2024 0
      AI 3D Generators are powerful tools for many different industries. Discover the best AI 3D Generators, and learn which is best for your specific use case.
      Read more
      Cloud

      RingCentral Expands Its Collaboration Platform

      Zeus Kerravala - November 22, 2023 0
      RingCentral adds AI-enabled contact center and hybrid event products to its suite of collaboration services.
      Read more
      Artificial Intelligence

      8 Best AI Data Analytics Software &...

      Aminu Abdullahi - January 18, 2024 0
      Learn the top AI data analytics software to use. Compare AI data analytics solutions & features to make the best choice for your business.
      Read more
      Latest News

      Zeus Kerravala on Networking: Multicloud, 5G, and...

      James Maguire - December 16, 2022 0
      I spoke with Zeus Kerravala, industry analyst at ZK Research, about the rapid changes in enterprise networking, as tech advances and digital transformation prompt...
      Read more
      Video

      Datadog President Amit Agarwal on Trends in...

      James Maguire - November 11, 2022 0
      I spoke with Amit Agarwal, President of Datadog, about infrastructure observability, from current trends to key challenges to the future of this rapidly growing...
      Read more
      Logo

      eWeek has the latest technology news and analysis, buying guides, and product reviews for IT professionals and technology buyers. The site’s focus is on innovative solutions and covering in-depth technical content. eWeek stays on the cutting edge of technology news and IT trends through interviews and expert analysis. Gain insight from top innovators and thought leaders in the fields of IT, business, enterprise software, startups, and more.

      Facebook
      Linkedin
      RSS
      Twitter
      Youtube

      Advertisers

      Advertise with TechnologyAdvice on eWeek and our other IT-focused platforms.

      Advertise with Us

      Menu

      • About eWeek
      • Subscribe to our Newsletter
      • Latest News

      Our Brands

      • Privacy Policy
      • Terms
      • About
      • Contact
      • Advertise
      • Sitemap
      • California – Do Not Sell My Information

      Property of TechnologyAdvice.
      © 2024 TechnologyAdvice. All Rights Reserved

      Advertiser Disclosure: Some of the products that appear on this site are from companies from which TechnologyAdvice receives compensation. This compensation may impact how and where products appear on this site including, for example, the order in which they appear. TechnologyAdvice does not include all companies or all types of products available in the marketplace.