
位址空間配置隨機載入
![]() | 此條目可参照外語維基百科相應條目来扩充。 |
在計算機科學中,位址空間配置隨機載入(英語:Address space layout randomization,缩写ASLR,又稱位址空間配置隨機化、位址空間布局隨機化)是一种防范内存损坏漏洞被利用的计算机安全技术。ASLR通过随机放置进程关键数据区域的定址空間来防止攻击者能可靠地跳转到内存的特定位置来利用函数。現代作業系統一般都加設這一機制,以防範惡意程式對已知位址進行Return-to-libc攻擊。
作用[编辑]
位址空間配置隨機載入利用隨機方式配置資料定址空間,使某些敏感資料(例如作業系統內核)配置到一個惡意程式无法事先获知的位址,令攻擊者難以進行攻擊。
實作[编辑]
大部分主流的操作系统已经实现了ASLR。
OpenBSD[编辑]
OpenBSD作为一个主流的操作系统,已在ASLR推出2年后支持,并在默认情况下是打开的。[1]
Linux[编辑]
Linux已在内核版本2.6.12中添加ASLR。
Windows[编辑]
Windows Server 2008,Windows 7,Windows Vista,Windows Server 2008 R2,Windows 10 1809,默认情况下启用ASLR,但它仅适用于动态链接库和可执行文件。
Mac OS X[编辑]
Apple在Mac OS X Leopard 10.5(2007年十月發行)中某些函式庫導入了隨機位址偏移,但其實作並沒有提供ASLR所定義的完整保護能力。[2][3][4][5]而Mac OS X Lion 10.7則對所有的應用程式均提供了ASLR支援。Apple宣稱為應用程式改善了這項技術的支援,能讓32及64位元的應用程式避開更多此類攻擊。[6]從OS X Mountain Lion 10.8開始,核心及核心擴充(kext)與zones在系統啟動時也會隨機配置。[7]
iOS(iPhone, iPod touch, iPad)[编辑]
Android[编辑]
Android 4.0提供位址空間配置隨機載入(ASLR),以帮助保护系统和第三方应用程序免受由于内存管理问题的攻击,在Android 4.1中加入地址无关代码(position-independent code)的支持。[9]
外部連結[编辑]
- PaX documentation on ASLR(页面存档备份,存于互联网档案馆)
- Comparison of PaX to Exec Shield and W^X(页面存档备份,存于互联网档案馆)
- ASLR for Windows Vista beta 2
- ASLR for Windows 2000/XP/2003 (WehnTrust)
- Bypassing PaX ASLR protection(页面存档备份,存于互联网档案馆)
- On the effectiveness of address space layout randomization
- Microsoft Finds (Random) Way to Secure Vista
- Windows Vista Randomization Gets OEM Thumbs Up
- Test Applications (or libraries) for their ASLR and DEP support(页面存档备份,存于互联网档案馆)
- ASLR Smack & Laugh Reference
參考資料[编辑]
- ^ Theo De Raadt. Exploit Mitigation Techniques (updated to include random malloc and mmap) at OpenCON 2005. [2009-08-26]. (原始内容存档于2012-07-16).
- ^ Quick Leopard Update. securosis.com. 29 October 2007 [10 April 2012]. (原始内容存档于2008-04-03).
- ^ Matasano Chargen » A Roundup Of Leopard Security Features. [2012-07-20]. (原始内容存档于2009-03-23).
- ^ Matasano Chargen » What We’ve Since Learned About Leopard Security Features. [2012-07-20]. (原始内容存档于2008-01-11).
- ^ King, Rob. TippingPoint. Dvlabs.tippingpoint.com. 7 November 2007 [10 April 2012]. (原始内容存档于2012-10-18). 已忽略文本“DVLabs” (帮助); 已忽略文本“New Leopard Security Features – Part I: ASLR” (帮助)
- ^ Security. Apple Inc. [6 June 2011]. (原始内容存档于2011年6月6日).
- ^ OS X 10.8 Mountain Lion. [19 February 2012]. (原始内容存档于2015-09-23).
- ^ Pwn2Own day 2: iPhone, BlackBerry beaten; Chrome, Firefox no-shows (页面存档备份,存于互联网档案馆), Ars Technica, 11 March 2011
- ^ [1] (页面存档备份,存于互联网档案馆),[Android Developers][Retrieved 7 July 2012]