+ All Categories
Home > Documents > The Windows Nt Registry File Format

The Windows Nt Registry File Format

Date post: 10-Feb-2018
Category:
Upload: nobodyatwork
View: 257 times
Download: 0 times
Share this document with a friend
12
The Windows NT Regist ry File Forma t Version 0.4 Timothy D. Morgan tim-registry(α)sentinelchicken.org June 9, 2009 Abstract The Windows re gist ry serv es as a primary stor age lo- cation for system congurations and other information.  Numerous third-party commercial and open source tools have been released to interpret and manipulate registry hives, but a comprehensive description of the registry’s data structures seems to be missing from the public do- main. This document attempts to shed light on the details of the registry format and will be updated as more infor- mation is made available. 1 Intr oducti on The Windows registry stores a wide variety of informa- tion, including core system congurations, user-specic conguration, information on installed applications, and user credent ials . Litt le information has been publi shed by Microsoft related to the specics of how registry in- forma tion is organize d into data stru ctures on disk. For - tunately, various open source developers have worked to understand and publish these technical details in order to write software compatible with Microsoft’s registry for- mat. However, these sources are by and large incomplete and fragment ed, maki ng tool imple menta tion difcult and tedio us at best. Here we attempt to combine the av ail- able public information, along with additional knowledge gleaned from testing, to provide a comprehensive refer- ence on Windows NT-based registry data structures.  This should be considered a living document and will be up- dated as new information becomes available. Please con- tact the author with any errata or new information per- taining to data structure specics. Throughout this paper, note that Windows, Microsoft, Windows 95, Wind ows 98, Windo ws ME, Windows NT, Windows 2000, Windo ws XP, Windows Vista, and Windows Server are registered trademarks of Microsoft Corporation. 2 Previous Work Registry internal structures have been outlined by Mark Russinovich [15] and David Probert [14], which provide a good overview of how Windows interacts with registry compo nents . Furth er detai led work has been publis hed by unknown authors in [3] and [2], which lays the ground- work for a detailed understanding of registry data struc- tures. Numerous open source tools provide access to NT registry internals [12, 16, 18, 20] and have expanded on the public’s knowledge of technical specics. 3 Regi stry Structur e Over view Here, we briey provide an overview of the internal data stru cture s of the registr y. Later secti ons provided addi- tional details about specic groups of data structures. Fi- nally, a reference on the specic layout of each structure may be found in Appendix A. The Windows registry is organized in a tree structure and is analogous to a lesystem. For instance, registry values are similar to les in a lesystem as they store name and type informatio n for discr ete portion s of raw data. Reg- istry keys are closely analogous to lesystem directories, acti ng as paren t nodes for both subk eys and values . Fi- nally , individual registry l es (or “hive s”) are presented to users in Windows under a set of virtual top-level keys in much the same way that multiple lesystems in UNIX 1 are mounted under the same root directory. The inte rnal structure of Wi ndows regi stry hives does, however, differ a great deal from typical lesystems. One major difference is that keys reference values differently than subke ys, where as most les ystems refer ence both us- ing the same struct ures. Addit ional ly , due to the type of st orage (a bin ary le ), the all ocatio n sto rage for data st ruc- tures is done in a way as to minimize fragmentation and linear space utilization. 1 UNIX is a registered trademark of the Open Group. 1
Transcript
Page 1: The Windows Nt Registry File Format

7/22/2019 The Windows Nt Registry File Format

http://slidepdf.com/reader/full/the-windows-nt-registry-file-format 1/12

Page 2: The Windows Nt Registry File Format

7/22/2019 The Windows Nt Registry File Format

http://slidepdf.com/reader/full/the-windows-nt-registry-file-format 2/12

Page 3: The Windows Nt Registry File Format

7/22/2019 The Windows Nt Registry File Format

http://slidepdf.com/reader/full/the-windows-nt-registry-file-format 3/12

Page 4: The Windows Nt Registry File Format

7/22/2019 The Windows Nt Registry File Format

http://slidepdf.com/reader/full/the-windows-nt-registry-file-format 4/12

Page 5: The Windows Nt Registry File Format

7/22/2019 The Windows Nt Registry File Format

http://slidepdf.com/reader/full/the-windows-nt-registry-file-format 5/12

Page 6: The Windows Nt Registry File Format

7/22/2019 The Windows Nt Registry File Format

http://slidepdf.com/reader/full/the-windows-nt-registry-file-format 6/12

Page 7: The Windows Nt Registry File Format

7/22/2019 The Windows Nt Registry File Format

http://slidepdf.com/reader/full/the-windows-nt-registry-file-format 7/12

Page 8: The Windows Nt Registry File Format

7/22/2019 The Windows Nt Registry File Format

http://slidepdf.com/reader/full/the-windows-nt-registry-file-format 8/12

Page 9: The Windows Nt Registry File Format

7/22/2019 The Windows Nt Registry File Format

http://slidepdf.com/reader/full/the-windows-nt-registry-file-format 9/12

Page 10: The Windows Nt Registry File Format

7/22/2019 The Windows Nt Registry File Format

http://slidepdf.com/reader/full/the-windows-nt-registry-file-format 10/12

Page 11: The Windows Nt Registry File Format

7/22/2019 The Windows Nt Registry File Format

http://slidepdf.com/reader/full/the-windows-nt-registry-file-format 11/12

Page 12: The Windows Nt Registry File Format

7/22/2019 The Windows Nt Registry File Format

http://slidepdf.com/reader/full/the-windows-nt-registry-file-format 12/12


Recommended