
A case of beta late than never?
By Joris Evers
Published: 2 June 2006 08:55 BST
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?
The ability to perform advanced diagnosis of problems utilising tools such as crash dumps or network traces. Experience of Windows 2000, Windows ...
I have an excellent contract opportunity with a forward thinking and industry leading Defence Company! Based in the Bristol area but will involve ...
Technical Support Engineer Windows XP 2003, Microsoft Outlook, LANs, WANs, DNS, - Lambeth - 2198 RM helps to push the boundaries of technology to ...
CIO50 2008
The silicon.com CIO50 2008 profiles the most influential and innovative tech chiefs in the UK across all industries and organisation size, from the biggest FTSE100 companies to high growth dot-com start ups and the public sector. The list was voted on by the UK CIO community and a panel of experts. Find out more in our latest special report.
Stories from the web...
Copyright ©1995-2008 CNET Networks, Inc. All rights reserved. Top of page
Peter Cochrane Peter Cochrane's Blog: Is convergence a fiction? Or could it finally be happening…
Clive Longbottom Quocirca's Straight Talking: A game of two halves Microsoft Virtualisation scores while its SOA bores...