




版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進行舉報或認領(lǐng)
文檔簡介
1、Windows Vista Heap Management EnhancementsAdrian MarinescuDevelopment LeadadrmarinWindows NT Heap Management basics and evolutionWindows Vista heap major milestoneDevelopment principles and guidelinesSecurity featuresPerformance featuresAgendaQ & ASecurity industry-wide concernTwCdriving multipl
2、e security initiativesThe NT HeapStrategic point in defenseImproved to respond to industry trends in usageIntroductionPart I BasicsBlock Entry in prior Windows NT VersionsF-LinkB-Link0:018> dc 04392f80000200010442da60segmentSizeunused bytesflagstag9Early Heap MitigationsSafe List RemovalEntry->
3、;FwdLink->BkLink= Entry->BkLink->FwdLink= Entry8-bit cookie tested on freeLFH block entry encodingF (random number,Blockaddress, heap)Change in LandscapeNew exploiting methods surfacedChange in usage outlookMemory usageIncrease availability of SMPIncrease relevance of 64 bit computingCode q
4、uality higher demand in industryWindows Vista Heap ManagerKey Development DirectionsPerformance and reliabilitySecurityCode qualityWindows NT Heap RequirementsSecurityCorrectness like:Guarantees requested sizesLifetime of allocationsClearing content when requested etc.Defense line in heap based expl
5、oits:Attempts to mitigate the effect of an attackMakes difficult hiding heap-based exploitsPerformanceScale from small devices to large serversOptimized for varied usage patternsFollow the industry trendMemory usageIncrease in SMP availabilityH/W architecture advancesCompatibilityApplications may re
6、ly on things like:Reallocreturning same pointerRead/write after releasing a blockDouble freeOverruns over unused structures etc.Heap changes may have unintended effects, such as:Crashes, leaks or broken functionality in poorly written applicationsSevere performance regressionsPart II -Windows Vista
7、HeapWindows Vista Heap Security FeaturesBlock metadata randomizationIntegrity check on block entryAlgorithm variation in response to usage patternRandom rebasingFunction pointer randomizationAbrupt application termination on error22Block Metadata RandomizationA part of the header is XORdwith a rando
8、m valueLow performance impactShould make guessing the right value impracticalFlexible and containedalgorithm and implementationAgile in updatesEntry Integrity CheckPrevious 8-bit cookie has been repurposed to validate a larger part of the headerValue may be randomized along with the other fieldsVali
9、dated during internal operations tooDemo Heap Header LayoutRuntime Algorithm VariationAutomatic tuningShift to LFH allocations at arbitrary points on runtimeTriggers on various patternsInvolves also de-commit / commit policiesMore Heap RandomizationsHeap base randomization things to consider:Fragmen
10、tation of the application address space affecting large server applicationsPossible performance issues if higher randomization is usedHeap function pointer randomizationTakes away a known place to facilitate the code execution along with rebasingDemoAbrupt Termination on ErrorAny data inconsistency
11、or invalid heap function usage detected may trigger itThe scope is process-wide (any heap in the process has the same behavior)The process is terminated via Windows Error ReportingDetailed info is available in the dump fileNo function provided to disable itOn by default for 64 bit platforms &29a
12、ppsTermination on Errors (cont.)Programmatic opt-In method(new HeapEnableTerminationOnCorruptionclass defined)BOOLHeapSetInformation(HANDLE,HEAP_INFORMATION_CLASS,PVOID,SIZE_T);Large number of components with Windows Vista are opted inThe information is available in a debugger extension30DemoNT Heap
13、 Manager ImprovesCode QualityBenefits to app developers Early error detectionImproved debugging aid to reduce cost of investigating corruptionsReduced tolerance to misusageWindows Vista apps will be more resilient to future heap changesKnown Attack Vectors & Windows VistaRemoved lookasidelist an
14、d array of lists targeted by previous exploits Integrity check on block metadata significant obstacle to brute force attacksMost Windows processes terminate on memory errorsDynamic (runtime) change in heap algorithms obstacle to consistent exploitsHeap structures and memory mgmt33changes limit porta
15、bility of exploitsSecurity enhancements are a journeyMitigations are not substitute for good development practicesWindows Vista is just a milestone in continual heap improvementsWindows Vista Heap Perf&ReliabilityImproved scenarios by default for:SMP scalabilityExternal fragmentationLarge heapsI
16、mproved reference locality on 64 bit platformsReduced Virtual Address exhaustionIncreased resilience to patterns involving long-term allocationsKey Performance EnhancementsAutomatic tuning Lower granularity of control policies to switch to the Low Fragmentation HeapUse of lazy initializationRedesign
17、ed segment managementImproved internal lookup algorithmsAddressed fragmentation in problematic scenariosLower overhead on 64 bit36SummaryAttacks get more sophisticated But so does the heap management and not only for securityWe laid the foundation for increased agility in heap improvements with reduced compatibility risks Improved scenarios for SMP and large memory usageDesigned to enhance the code quality for applicationsWe are not yet done
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預覽,若沒有圖紙預覽就沒有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負責。
- 6. 下載文件中如有侵權(quán)或不適當內(nèi)容,請與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準確性、安全性和完整性, 同時也不承擔用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 廁所施工安全保障協(xié)議書
- 扶貧資金入股協(xié)議協(xié)議書
- 黃粉蟲養(yǎng)殖回收協(xié)議書
- 公路貨物食品運輸協(xié)議書
- 機場修建材料供貨協(xié)議書
- 農(nóng)村個人墓地買賣協(xié)議書
- 學生緊急離校交接協(xié)議書
- 婚后夫妻房產(chǎn)共有協(xié)議書
- 保潔合同提前終止協(xié)議書
- 完成目標銷量獎勵協(xié)議書
- 工資調(diào)整單模板
- 中國各鄉(xiāng)鎮(zhèn)名錄大全、街道名錄大全(甘肅省)
- GB∕T 2518-2019 連續(xù)熱鍍鋅和鋅合金鍍層鋼板及鋼帶
- 安徽省2022年中考地理真題試卷(圖片版含答案)
- 青海省部門統(tǒng)計數(shù)據(jù)直報系統(tǒng)
- 常見輸液反應(yīng)及處理
- 大氣商務(wù)勵志年終工作總結(jié)PPT模板課件
- 幼兒園辦園標準
- 10kV及以下架空配電線路設(shè)計技術(shù)規(guī)程
- 硅膠安全技術(shù)說明書(MSDS)
- 鋼筋加工下料自動計算表樣品
評論
0/150
提交評論