Dark Reading is part of the Informa Tech Division of Informa PLC

This site is operated by a business or businesses owned by Informa PLC and all copyright resides with them.Informa PLC's registered office is 5 Howick Place, London SW1P 1WG. Registered in England and Wales. Number 8860726.

Attacks/Breaches

11/11/2010
10:35 AM
Connect Directly
Google+
Twitter
RSS
E-Mail
50%
50%

Making Web Users Botnet-Resistant

HackMiami researchers create 'botnet-resistant code' to thwart botnets from stealing valuable data

WASHINGTON, D.C. -- OWASP AppSec DC 2010 -- What if you could outfit visitors to your website with a coat of anti-botnet armor? A pair of researchers has come up with coding techniques they say ultimately renders infected user machines useless to botnet operators harvesting data.

Peter Greko and Fabian Rothschild, both members of the HackMiami hackerspace, here today showed how they studied samples of the Zeus and SpyEye Trojans, as well as just how the cybercrime underground uses this code for botnets. They then used that intelligence to write code for Web servers that mitigates these botnets. Their premise is that most client machines are infected, anyway. "What we've done is make it really hard for botmasters to use any information they collect from client machines," Rothschild said.

Their hope is to convert these methods into software modules for the OWASP Enterprise Security API (ESAPI), an open-source Web app security control library aimed at making secure code simpler to write. "We want to talk to the ESAPI project and see if we can come up with modules for them," Greko said.

The techniques they developed don't prevent a bot infection, but rather stymie the botmaster from ultimately gathering any useful information from the victim. Zeus, for instance, collects logins, passwords, cookies, VIEWSTATE parameters, and any other information passed via a POST request in HTTP. There are four different options, which range from obfuscating data to encrypting it. "What we've done is come up with ways to make it really hard for botmasters to use any information they collect from client machines," Rothschild says.

Zeus uses HTTP POST-logging to glean valuable data from Web sessions from the machines it infects, and then transports the information it grabs to its command and control servers. Greko and Rothschild devised ways to make that data either too unwieldy or unrecognizable to the botnet. Each has its trade-offs on the Web server back-end load, they said. "It all depends on how heavy you want it on your Web server. The more load on your Web server equals more money [invested]," Greko said.

In what they dubbed "basic" mitigation, their method basically bloats the code so the botnet either can't find it or can't use it because it's too large of a string. "We obfuscate variable names and add extraneous hidden POST parameters that tend to bloat code," for example, Greko said. "The botnet is looking for easily recognizable logs of information and we put hidden junk values [in it]."

In the "medium" mitigation, they mangle the data such that it's unreadable to the botnet. "We are prefixing data for POSTs via client-side JavaScript," Greko said. In the "hard" mitigation approach, they used Base64 encoding to hide valuable data coming from the client.

They offered up another method dubbed "Nightmare," where they deployed RC4 symmetrical encryption on the server side. "RC4 has had a bad rap because it can be brute-forced. But if you rotate the encryption key every session, for example, the botmaster isn't going to know the key," Greko said.

The researchers said they tested all of the techniques against Zeus, and they worked. But there is still no cure-all for bot infections. "These methods do not prevent [identity theft]. If someone wants your data, you can make a plug-in for SpyEye or Zeus and ... make it harder for them to get the data," Greko said. "This will mitigate most of the script kiddies and botmasters from harvesting your data."

Have a comment on this story? Please click "Discuss" below. If you'd like to contact Dark Reading's editors directly, send us a message.

Kelly Jackson Higgins is the Executive Editor of Dark Reading. She is an award-winning veteran technology and business journalist with more than two decades of experience in reporting and editing for various publications, including Network Computing, Secure Enterprise ... View Full Bio

Comment  | 
Print  | 
More Insights
Comments
Newest First  |  Oldest First  |  Threaded View
6 Small-Business Password Managers
Curtis Franklin Jr., Senior Editor at Dark Reading,  11/8/2019
Microsoft Tools Focus on Insider Risk, Data Protection at Ignite 2019
Kelly Sheridan, Staff Editor, Dark Reading,  11/4/2019
Register for Dark Reading Newsletters
White Papers
Video
Cartoon Contest
Write a Caption, Win a Starbucks Card! Click Here
Latest Comment: Dueling Free Throws A riff on the song Dueling Banjos
Current Issue
7 Threats & Disruptive Forces Changing the Face of Cybersecurity
This Dark Reading Tech Digest gives an in-depth look at the biggest emerging threats and disruptive forces that are changing the face of cybersecurity today.
Flash Poll
Assessing Cybersecurity Risk in Today's Enterprise
Assessing Cybersecurity Risk in Today's Enterprise
Security leaders are struggling to understand their organizations risk exposure. While many are confident in their security strategies and processes, theyre also more concerned than ever about getting breached. Download this report today and get insights on how today's enterprises assess and perceive the risks they face in 2019!
Twitter Feed
Dark Reading - Bug Report
Bug Report
Enterprise Vulnerabilities
From DHS/US-CERT's National Vulnerability Database
CVE-2019-18862
PUBLISHED: 2019-11-11
maidag in GNU Mailutils before 3.8 is installed setuid and allows local privilege escalation in the url mode.
CVE-2019-18853
PUBLISHED: 2019-11-11
ImageMagick before 7.0.9-0 allows remote attackers to cause a denial of service because XML_PARSE_HUGE is not properly restricted in coders/svg.c, related to SVG and libxml2.
CVE-2019-18854
PUBLISHED: 2019-11-11
A Denial Of Service vulnerability exists in the safe-svg (aka Safe SVG) plugin through 1.9.4 for WordPress, related to unlimited recursion for a '<use ... xlink:href="#identifier">' substring.
CVE-2019-18855
PUBLISHED: 2019-11-11
A Denial Of Service vulnerability exists in the safe-svg (aka Safe SVG) plugin through 1.9.4 for WordPress, related to potentially unwanted elements or attributes.
CVE-2019-18856
PUBLISHED: 2019-11-11
A Denial Of Service vulnerability exists in the SVG Sanitizer module through 8.x-1.0-alpha1 for Drupal because access to external resources with an SVG use element is mishandled.