
A case of beta late than never?
By Joris Evers
Published: 2 June 2006 08:55 GMT
Windows Vista Beta 2, released last week, includes a new security feature designed to protect against buffer overrun exploits.
The feature, which is called Address Space Layout Randomization (ASLR), loads key system files in different memory locations each time the PC starts, making it harder for malicious code to run, according to Microsoft.
Michael Howard, a senior security programme manager at Microsoft, wrote in a blog post announcing the feature: "It is not a panacea. It is not a replacement for insecure code. But when used in conjunction with other technologies... it is a useful defence, because it makes Windows systems look 'different' to malware, making automated attacks harder."
A buffer overrun exploit is malicious code that seeks to exploit a common error in computer code called a buffer overrun or buffer overflow. In such an attack, data is stored beyond the boundaries of a buffer, with the result that the extra data overwrites adjacent memory locations. This can cause a process to crash, or allow malicious code to run.
ASLR is not a Microsoft invention. Several open source security systems use it already, including OpenBSD, and the PaX and Exec Shield patches for Linux.
Certain attacks attempt to call Windows system functions, such as the "socket()" function in "wsock32.dll", to open a network socket. The new security feature moves these system files around so they're in unpredictable locations. In Windows Vista Beta 2, a DLL or EXE file could be loaded into any of 256 locations, Howard wrote.
He added: "An attacker has a one in 256 chance of getting the address right."
Randomisation seems to have served open source systems fairly well, according to Russ Cooper, senior scientist at security vendor Cybertrust. The question is how Microsoft implements ASLR and whether the randomisation is predictable at all, he said.
Cooper said: "I suspect this will be the first thing looked for - something which tells you which of the locations has been chosen, or anything that provides you with a pointer."
Attackers could also create malicious software that tries to poke at all 256 memory locations. However, that's more likely to cause the PC to crash, rather than allow a complete compromise, Cooper said. "That's good if all you care about is preventing malware from running but it might not bode well for keeping systems up and running," he said.
Microsoft gets some praise in the security world for its ASLR efforts in Vista. David Litchfield, a researcher at Next Generation Security Software, wrote in an email to the BugTraq mailing list: "Remote exploitation of overflows has just got a lot harder."
But there is also scepticism. Somebody using the alias 'c0ntex' wrote in a reply to Litchfield that ASLR has been "trivially circumvented in Linux for years now".
Microsoft has only just added ASLR to a Windows Vista trial release, another sign that the successor to Windows XP is not yet ready for prime time. Microsoft's Howard wrote: "We added ASLR pretty late in the game but we decided that adding it to beta 2 and enabling it by default was important so we can understand how well it performs in the field."
Together with other enhancements in Vista, ASLR raises the bar in terms of security in the forthcoming operating system, Microsoft says. The company has described Vista, slated to be broadly available in January, as the most secure version of Windows to date.
In addition to ASLR, Howard mentioned a buffer overrun detection option in Visual C++; an exception checker in Vista; function pointer obfuscation; and support for NX, or No-Execute, data execution protection that is included in processors.
He wrote: "The net of this is, ASLR is seen as just another defence."
Joris Evers writes for CNET News.com
Why is buffer overflow not prevented? In the old d...
misceng
Microsoft's Vista search plans get the nod
Microsoft issues Vista 'shopping list'
Symantec accuses Microsoft of "IP violations"
Microsoft: 'Get ready for Vista now'
Ballmer: Symantec suit 'won't hold back Vista'
Vista won't crack the living room, says AMD
Microsoft to take away staff admin rights?
Windows XP, Vista support It now has a turnover in the region of 6M, employee numbers are nudging 150 across 8 locations globally, including US & ...
Keywords:Senior software engineer senior kernel engineer device driver engineer windows developer software development C/C++ Intel x86 Assembler ...
You will need to have in depth technical knowledge but also be able to engage with clients both face to face and via the telephone.Required ...
Agenda Setters 2009
Welcome to the ninth annual Agenda Setters poll – silicon.com's list of the top 50 most influential individuals in the technology and IT industries, from techies and CIOs to entrepreneurs and business leaders. Find out more in our latest special report.
Stories from the web...
Copyright © 2008 CBS Interactive Limited. All rights reserved. Top of page
Tim Ferguson Exclusive: Former MySQL boss Marten Mickos talks open source Why Microsoft could become one of the "biggest friends of open source" and why Oracle getting its hands on MySQL could be "one of the biggest open source coups ever"...
Naked CIO Naked CIO: Cloud computing more expensive than we thought? Smart IT leaders will examine the impact of how they pay for tech