<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>What is this thing called, SID?</title><link>http://blogs.msdn.com/b/larryosterman/archive/2004/09/01/224051.aspx</link><description>One of the core data structures in the NT security infrastructure is the security identifier, or SID. NT uses two data types to represent the SID, a PSID, which is just an alias for VOID *, and a SID, which is a more complicated structure (declared in</description><dc:language>en-US</dc:language><generator>Telligent Evolution Platform Developer Build (Build: 5.6.50428.7875)</generator><item><title>Moving a file does not recalculate inherited permissions</title><link>http://blogs.msdn.com/b/larryosterman/archive/2004/09/01/224051.aspx#717183</link><pubDate>Thu, 24 Aug 2006 17:00:23 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:717183</guid><dc:creator>The Old New Thing</dc:creator><description>Inherited permissions are established at creation.&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=717183" width="1" height="1"&gt;</description></item><item><title>What are the access rights and privileges that control changing ownership of an object?</title><link>http://blogs.msdn.com/b/larryosterman/archive/2004/09/01/224051.aspx#453057</link><pubDate>Thu, 18 Aug 2005 17:00:14 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:453057</guid><dc:creator>The Old New Thing</dc:creator><description>It's a complicated mix.&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=453057" width="1" height="1"&gt;</description></item><item><title>Breaking the Holy Law: Browsing the Web as administrator?</title><link>http://blogs.msdn.com/b/larryosterman/archive/2004/09/01/224051.aspx#355334</link><pubDate>Tue, 18 Jan 2005 21:53:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:355334</guid><dc:creator>Scupper Mumblings</dc:creator><description>Security Developer Center: Columns: Browsing the Web and Reading E-mail Safely as an Administrator Part 1 &amp;quot;&amp;gt;Part 2 I got the heads up to this pair of MSDN articles by Microsoft Security Engineering Michael Howard off the activedir list and...&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=355334" width="1" height="1"&gt;</description></item><item><title>A bit on SIDs....</title><link>http://blogs.msdn.com/b/larryosterman/archive/2004/09/01/224051.aspx#237822</link><pubDate>Tue, 05 Oct 2004 02:59:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:237822</guid><dc:creator>Eric Fleischman's WebLog</dc:creator><description>&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=237822" width="1" height="1"&gt;</description></item><item><title>Running restricted -- What does the </title><link>http://blogs.msdn.com/b/larryosterman/archive/2004/09/01/224051.aspx#227735</link><pubDate>Fri, 10 Sep 2004 07:10:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:227735</guid><dc:creator>Aaron Margosis' WebLog</dc:creator><description>What does it mean to &lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=227735" width="1" height="1"&gt;</description></item><item><title>re: What is this thing called, SID?</title><link>http://blogs.msdn.com/b/larryosterman/archive/2004/09/01/224051.aspx#227730</link><pubDate>Fri, 10 Sep 2004 04:09:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:227730</guid><dc:creator>Aaron Margosis</dc:creator><description>It's posted.  &lt;a target="_new" href="http://blogs.msdn.com/aaron_margosis/archive/2004/09/10/227727.aspx"&gt;http://blogs.msdn.com/aaron_margosis/archive/2004/09/10/227727.aspx&lt;/a&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=227730" width="1" height="1"&gt;</description></item><item><title>re: What is this thing called, SID?</title><link>http://blogs.msdn.com/b/larryosterman/archive/2004/09/01/224051.aspx#225519</link><pubDate>Sat, 04 Sep 2004 00:39:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:225519</guid><dc:creator>Aaron Margosis</dc:creator><description>The best published description of restricted tokens that I've read is in Keith Brown's &amp;quot;Programming Windows Security&amp;quot;.  He doesn't cover the &amp;quot;protect my computer&amp;quot; option, though, because his book predated Windows XP, which is where that option was introduced.  Solomon and Russinovich's upcoming &amp;quot;Windows Internals&amp;quot; book will have great info on it.&lt;br&gt;&lt;br&gt;I am planning a post on the &amp;quot;protect my computer&amp;quot; option, focusing more on the effects perceived by the end user than about how the underlying access checks actually work.  Real Soon Now.&lt;br&gt;&lt;br&gt;It takes more than a couple of paragraphs to accurately describe how an access check is performed against a non-restricted SID, when you take into account deny-only and disabled SIDs.  The important part is that an access check compares the union of the user's identity and the list of groups the user is a member of against the ACL of interest.  With a restricted token, the access check performs two passes.  The first compares the union of the user's identity and the groups against the ACL; the second test compares only the SIDs in the token's &amp;quot;restricting SIDs&amp;quot; list against the ACL.  The result of the access check is essentially the intersection of the results.  If the first pass grants you &amp;quot;full control&amp;quot; and the second pass grants you &amp;quot;read only&amp;quot;, then you get &amp;quot;read only&amp;quot;.  If either test fails to grant you any access, you get no access.  Although it is legal for the restricting SIDs list to include the user account's SID, the restricted token created by &amp;quot;protect my computer&amp;quot; does not.  Therefore, if you're running with a &amp;quot;protect my computer&amp;quot; restricted token, you do not get access to anything that is ACLed for you only.  The object needs to grant access to something else that allows the second pass to succeed.  The reason that most of HKCU gives you read-only access is because &amp;quot;RESTRICTED&amp;quot; is granted read-only.  (Like the example above:  first pass gives you &amp;quot;full&amp;quot;, second pass gives you &amp;quot;read&amp;quot;, you get &amp;quot;read&amp;quot;.)  The NTFS permissions on your profile folder hierarchy does not grant RESTRICTED anything, so you can't access your profile folder when running with a &amp;quot;protect my computer&amp;quot; restricted token.  (The reason you CAN access HKCU, which lives in a file in your profile, is because you're not accessing it directly through NTFS - if I'm not mistaken your HKCU hive is loaded by code running as System.)&lt;br&gt;&lt;br&gt;As Pavel indicated, &amp;quot;restricting SIDs&amp;quot; and &amp;quot;deny-only SIDs&amp;quot; are completely different.  &amp;quot;Restricting SIDs&amp;quot; are really misnamed, since the more SIDs you add to the list in a restricted token, the more you're granting access, not denying access.&lt;br&gt;&lt;br&gt;I'll try to get that thing posted - sorry for the delay!&lt;br&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=225519" width="1" height="1"&gt;</description></item><item><title>re: What is this thing called, SID?</title><link>http://blogs.msdn.com/b/larryosterman/archive/2004/09/01/224051.aspx#225059</link><pubDate>Fri, 03 Sep 2004 03:38:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:225059</guid><dc:creator>David Candy</dc:creator><description>Apparantly &lt;a target="_new" href="http://blogs.msdn.com/aaron_margosis"&gt;http://blogs.msdn.com/aaron_margosis&lt;/a&gt; as been promising to talk about this for a while.&lt;br&gt;&lt;br&gt;I sent him a message to remind him.&lt;br&gt;&lt;br&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=225059" width="1" height="1"&gt;</description></item><item><title>re: What is this thing called, SID?</title><link>http://blogs.msdn.com/b/larryosterman/archive/2004/09/01/224051.aspx#225055</link><pubDate>Fri, 03 Sep 2004 03:31:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:225055</guid><dc:creator>Pavel Lebedinsky</dc:creator><description>I'm using pview from Platform SDK (Program Files\Microsoft SDK\Bin\winnt). It is definitely more recent than NT4 - in fact, the version number is 5.2.3790.0 which is Win2K3.&lt;br&gt;&lt;br&gt;NT4 version probably doesn't show restricting SIDs anyway as I believe this feature was introduced in Win2K.&lt;br&gt;&lt;br&gt;I believe that the reason why &amp;quot;protect my computer&amp;quot; feature doesn't get more coverage is because it's not really secure. For example, I don't think it can prevent malicious code from sending window messages to other programs running as the user (a &amp;quot;shatter&amp;quot;-style attack).&lt;br&gt;&lt;br&gt;I still occasionally run IE in restricted mode but I definitely don't count on it as my only protection.&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=225055" width="1" height="1"&gt;</description></item><item><title>re: What is this thing called, SID?</title><link>http://blogs.msdn.com/b/larryosterman/archive/2004/09/01/224051.aspx#225015</link><pubDate>Fri, 03 Sep 2004 01:06:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:225015</guid><dc:creator>David Candy</dc:creator><description>Only the NT4 version of Pview has a button for token and that is greyed out. All the other pview/pviewer (Pview now was pviewer in NT4)are of a different style (XP support tools/MSDN 7.1(whatever that is)/VS6) and only show memory stats.&lt;br&gt;&lt;br&gt;I'll have to find a CD with the sdk on it (I only have filed CDs I got 5 years ago - I gave up filing then - so I know exactly where 1998 sdk cd is but not any more recent). But that makes some sense what you are saying. &lt;br&gt;&lt;br&gt;This page will end up as the definitive documentation on this feature. But I can't believe MS built in a prominent GUI feature without any reference mention of it anywhere and a wrong article about how good it is.&lt;br&gt;&lt;br&gt;Larry will end up being known as the &amp;quot;Protect My Computer&amp;quot; king.&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=225015" width="1" height="1"&gt;</description></item></channel></rss>