The Machine SID Duplication Myth
Thursday, 05 November 2009 by Michel Roth
Mark Russinovich has dropped the proverbial brick on loca machine SIDs. I guess I have been doing it in vain for the last 10 years. Now he tells me! No seriously. Read the article and the comments, it's interesting.

On November 3 2009, Sysinternals retired NewSID, a utility that changes a computers machine Security Identifier (machine SID). I wrote NewSID in 1997 (its original name was NTSID) because the only tool available at the time for changing machine SIDs was the Microsoft Sysprep tool, and Sysprep doesn’t support changing the SIDs of computers that have applications installed. A machine SID is a unique identifier generated by Windows Setup that Windows uses as the basis for the SIDs for administrator-defined local accounts and groups. After a user logs on to a system, they are represented by their account and group SIDs with respect to object authorization (permissions checks). If two machines have the same machine SID, then accounts or groups on those systems might have the same SID. It’s therefore obvious that having multiple computers with the same machine SID on a network poses a security risk, right? At least that’s been the conventional wisdom.

The reason that I began considering NewSID for retirement is that, although people generally reported success with it on Windows Vista, I hadn’t fully tested it myself and I got occasional reports that some Windows component would fail after NewSID was used. When I set out to look into the reports I took a step back to understand how duplicate SIDs could cause problems, a belief that I had taken on faith like everyone else. The more I thought about it, the more I became convinced that machine SID duplication – having multiple computers with the same machine SID – doesn’t pose any problem, security or otherwise. I took my conclusion to the Windows security and deployment teams and no one could come up with a scenario where two systems with the same machine SID, whether in a Workgroup or a Domain, would cause an issue. At that point the decision to retire NewSID became obvious.

I realize that the news that it’s okay to have duplicate machine SIDs comes as a surprise to many, especially since changing SIDs on imaged systems has been a fundamental principal of image deployment since Windows NT’s inception. This blog post debunks the myth with facts by first describing the machine SID, explaining how Windows uses SIDs, and then showing that - with one exception - Windows never exposes a machine SID outside its computer, proving that it’s okay to have systems with the same machine SID.

 

The New Best Practice

It’s a little surprising that the SID duplication issue has gone unquestioned for so long, but everyone has assumed that someone else knew exactly why it was a problem. To my chagrin, NewSID has never really done anything useful and there’s no reason to miss it now that it’s retired. Microsoft’s official policy on SID duplication will also now change and look for Sysprep to be updated in the future to skip SID generation as an option. Note that Sysprep resets other machine-specific state that, if duplicated, can cause problems for certain applications like Windows Server Update Services (WSUS), so Microsoft support policy will still require cloned systems to be made unique with Sysprep.

Source: http://blogs.technet.com/markrussinovich/archive/2009/11/03/3291024.aspx


Related Items:

System Cloning Tool / Sysprep (20 August 2009)
Geeking out with Windows Deployment Services (26 August 2009)
VMware View: Reset, Refresh, Recompose, Rebalance? (8 July 2009)
Citrix User Profile Manager Versus Appsense User Personalisation Server (20 August 2009)
How To Build An Effective Virtual Machine Template (30 March 2006)
The Case of the Temporary Registry Profiles (11 August 2009)
System Center Virtual Machine Manager (VMM) 2008 R2 RTMs (25 August 2009)
Windows Server 2008 R2: Remote Desktop IP Virtualization (19 October 2009)
Offline Virtual Machine Servicing Tool (14 July 2008)
Amazon EC2 AWS Management Console – Bundling AMIs (2 September 2009)
Comments (0)add feed
password
 

busy