The common cold of IT security

 

Connecting state and local government leaders

Buffer overflows, one of the oldest tricks used by hackers, are still a threat after first being recognized in the 1960s.

IT security experts are not ready to admit defeat by one of the most common types of exploits, but the battle against buffer overflows so far has produced about the same results as medical science has against the common cold: We can treat it, but we haven't found a way to cure it.

'It's the same problem over and over again,' independent security consultant Shawn Moyer said Thursday at the Black Hat Federal Briefings in Washington. 'We patch, we scan, we patch, we scan, and the cycles get shorter and shorter and the problem is worse.' The result, he said, is a 'flailing death spiral of updates and patches.'

There are defenses to block and mitigate these attacks, such as non-executable stacks and randomizing addresses within a system. None of them are bulletproof, but they do offer some relief.

A stack buffer overflow is one of the oldest tricks used by hackers to take control of a computer. When a malicious program writes excess data to an address on the call stack of an application with a fixed length buffer, the corrupted stack can make the application run improperly. Moyer described the technique as 'ten pounds of crap in a five pound bag.' This sometimes allows the exploiter to gain control by injecting executable code into the running program.

The problem is not new. Its roots go back to John von Neumann, a physicist who worked on the Manhattan Project during World War II and came up with some of the first ideas for reprogramming a computer without physically rewiring it. The possible threat it represents was recognized in the 1960s, and the first widely recognized Internet worm, the Morris worm, exploited buffer overflows in 1988.

'It's all basically the same problem for 20 years,' Moyer said.

One way to fight buffer overflows in the stack is to use non-executable stacks, which segregate executable instructions from other data. This is done in some systems, but often it is made optional because of the difficulties it can present in running applications. This means that even if the function is used, a worm could simply shut it off and gain the access it needs to execute code.

Another technique is adding extensions to the stack, 'guard values' or 'trip wires' that look for and halt unauthorized executables. Randomizing addresses in the stack also makes it more difficult for malicious code to find its intended target. This technique, while not necessarily killing the code, can at least slow it down and limit its spread. The technique is not easy to do well, however.

Microsoft's Vista is the first Windows operating system to natively support Address Space Layout Randomization, which puts programs and associated memory in random locations between reboots or executions, making them more difficult to attack because vulnerabilities are not found in predictable locations.

But it turns out that a tool used to randomize the addresses of data to hide it from hackers is not quite as random as it could be. Ollie Whitehouse, a security analyst with Symantec Corp., examined how information was distributed through the address space of Vista, and reported at last year's Black Hat Federal Briefings that some significant biases were discovered in address allocation for some functions, reducing the effectiveness of ASLR. This weakness is expected to be corrected in the first Service Pack release for Vista.

The Holy Grail of defense would to go to the root of the problem and fix it there, Moyer said. 'We could fix the code,' he added. 'That would be refreshing.'

It also is about as likely as doctors fixing our DNA to makes us immune from colds. The problem is that there is so much code to be examined and fixed that fixing it all is impossible, just as starting over from scratch with all new code for all of our software is impossible. Existing code can be scanned and sometimes fixed with automated tools. But even that has drawbacks.

'One of the problems with all of this is that it is going to break bad code,' which means that users tend to disable the tools so that applications can be used, Moyer said. For the foreseeable future, manual review of code probably will remain an important, if time-consuming, tool in the fight against buffer overflows.

NEXT STORY: Hacking access

X
This website uses cookies to enhance user experience and to analyze performance and traffic on our website. We also share information about your use of our site with our social media, advertising and analytics partners. Learn More / Do Not Sell My Personal Information
Accept Cookies
X
Cookie Preferences Cookie List

Do Not Sell My Personal Information

When you visit our website, we store cookies on your browser to collect information. The information collected might relate to you, your preferences or your device, and is mostly used to make the site work as you expect it to and to provide a more personalized web experience. However, you can choose not to allow certain types of cookies, which may impact your experience of the site and the services we are able to offer. Click on the different category headings to find out more and change our default settings according to your preference. You cannot opt-out of our First Party Strictly Necessary Cookies as they are deployed in order to ensure the proper functioning of our website (such as prompting the cookie banner and remembering your settings, to log into your account, to redirect you when you log out, etc.). For more information about the First and Third Party Cookies used please follow this link.

Allow All Cookies

Manage Consent Preferences

Strictly Necessary Cookies - Always Active

We do not allow you to opt-out of our certain cookies, as they are necessary to ensure the proper functioning of our website (such as prompting our cookie banner and remembering your privacy choices) and/or to monitor site performance. These cookies are not used in a way that constitutes a “sale” of your data under the CCPA. You can set your browser to block or alert you about these cookies, but some parts of the site will not work as intended if you do so. You can usually find these settings in the Options or Preferences menu of your browser. Visit www.allaboutcookies.org to learn more.

Sale of Personal Data, Targeting & Social Media Cookies

Under the California Consumer Privacy Act, you have the right to opt-out of the sale of your personal information to third parties. These cookies collect information for analytics and to personalize your experience with targeted ads. You may exercise your right to opt out of the sale of personal information by using this toggle switch. If you opt out we will not be able to offer you personalised ads and will not hand over your personal information to any third parties. Additionally, you may contact our legal department for further clarification about your rights as a California consumer by using this Exercise My Rights link

If you have enabled privacy controls on your browser (such as a plugin), we have to take that as a valid request to opt-out. Therefore we would not be able to track your activity through the web. This may affect our ability to personalize ads according to your preferences.

Targeting cookies may be set through our site by our advertising partners. They may be used by those companies to build a profile of your interests and show you relevant adverts on other sites. They do not store directly personal information, but are based on uniquely identifying your browser and internet device. If you do not allow these cookies, you will experience less targeted advertising.

Social media cookies are set by a range of social media services that we have added to the site to enable you to share our content with your friends and networks. They are capable of tracking your browser across other sites and building up a profile of your interests. This may impact the content and messages you see on other websites you visit. If you do not allow these cookies you may not be able to use or see these sharing tools.

If you want to opt out of all of our lead reports and lists, please submit a privacy request at our Do Not Sell page.

Save Settings
Cookie Preferences Cookie List

Cookie List

A cookie is a small piece of data (text file) that a website – when visited by a user – asks your browser to store on your device in order to remember information about you, such as your language preference or login information. Those cookies are set by us and called first-party cookies. We also use third-party cookies – which are cookies from a domain different than the domain of the website you are visiting – for our advertising and marketing efforts. More specifically, we use cookies and other tracking technologies for the following purposes:

Strictly Necessary Cookies

We do not allow you to opt-out of our certain cookies, as they are necessary to ensure the proper functioning of our website (such as prompting our cookie banner and remembering your privacy choices) and/or to monitor site performance. These cookies are not used in a way that constitutes a “sale” of your data under the CCPA. You can set your browser to block or alert you about these cookies, but some parts of the site will not work as intended if you do so. You can usually find these settings in the Options or Preferences menu of your browser. Visit www.allaboutcookies.org to learn more.

Functional Cookies

We do not allow you to opt-out of our certain cookies, as they are necessary to ensure the proper functioning of our website (such as prompting our cookie banner and remembering your privacy choices) and/or to monitor site performance. These cookies are not used in a way that constitutes a “sale” of your data under the CCPA. You can set your browser to block or alert you about these cookies, but some parts of the site will not work as intended if you do so. You can usually find these settings in the Options or Preferences menu of your browser. Visit www.allaboutcookies.org to learn more.

Performance Cookies

We do not allow you to opt-out of our certain cookies, as they are necessary to ensure the proper functioning of our website (such as prompting our cookie banner and remembering your privacy choices) and/or to monitor site performance. These cookies are not used in a way that constitutes a “sale” of your data under the CCPA. You can set your browser to block or alert you about these cookies, but some parts of the site will not work as intended if you do so. You can usually find these settings in the Options or Preferences menu of your browser. Visit www.allaboutcookies.org to learn more.

Sale of Personal Data

We also use cookies to personalize your experience on our websites, including by determining the most relevant content and advertisements to show you, and to monitor site traffic and performance, so that we may improve our websites and your experience. You may opt out of our use of such cookies (and the associated “sale” of your Personal Information) by using this toggle switch. You will still see some advertising, regardless of your selection. Because we do not track you across different devices, browsers and GEMG properties, your selection will take effect only on this browser, this device and this website.

Social Media Cookies

We also use cookies to personalize your experience on our websites, including by determining the most relevant content and advertisements to show you, and to monitor site traffic and performance, so that we may improve our websites and your experience. You may opt out of our use of such cookies (and the associated “sale” of your Personal Information) by using this toggle switch. You will still see some advertising, regardless of your selection. Because we do not track you across different devices, browsers and GEMG properties, your selection will take effect only on this browser, this device and this website.

Targeting Cookies

We also use cookies to personalize your experience on our websites, including by determining the most relevant content and advertisements to show you, and to monitor site traffic and performance, so that we may improve our websites and your experience. You may opt out of our use of such cookies (and the associated “sale” of your Personal Information) by using this toggle switch. You will still see some advertising, regardless of your selection. Because we do not track you across different devices, browsers and GEMG properties, your selection will take effect only on this browser, this device and this website.