<?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>SQL Server 2005: A look at the master keys - part 2</title><link>http://blogs.msdn.com/lcris/archive/2005/09/30/sql-server-2005-a-look-at-the-master-keys-part-2.aspx</link><description>This is a continuation of a previous post , in which I discussed the service master key (SMK) and the database master keys. I mentioned in that post that a new encryption will be added to the SMK and I will describe it in this article. Also, a few things</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>re: SQL Server 2005: A look at the master keys - part 2</title><link>http://blogs.msdn.com/lcris/archive/2005/09/30/sql-server-2005-a-look-at-the-master-keys-part-2.aspx#571444</link><pubDate>Sat, 08 Apr 2006 12:50:35 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:571444</guid><dc:creator>SteveJC</dc:creator><description>Hi Laurentiu &lt;BR&gt;&lt;BR&gt;If we need to use the FORCE option when regenerating the SMK it mentions data loss. &lt;BR&gt;&lt;BR&gt;If after using the FORCE we alter the DbMK and drop and then add the encryption by the SMK, will this prevent the data loss? &lt;BR&gt;&lt;BR&gt;Cheers</description></item><item><title>re: SQL Server 2005: A look at the master keys - part 2</title><link>http://blogs.msdn.com/lcris/archive/2005/09/30/sql-server-2005-a-look-at-the-master-keys-part-2.aspx#572681</link><pubDate>Mon, 10 Apr 2006 21:51:25 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:572681</guid><dc:creator>lcris</dc:creator><description>I just wrote a new post on this topic:
&lt;br&gt;
&lt;br&gt;&lt;a rel="nofollow" target="_new" HREF="/lcris/archive/2006/04/10/572678.aspx"&gt;http://blogs.msdn.com/lcris/archive/2006/04/10/572678.aspx&lt;/a&gt;
&lt;br&gt;
&lt;br&gt;In the case of the DbMK, a loss could only occur if you don't remember the DbMK password. Take a look at the above link and let me know if it doesn't answer your questions.
&lt;br&gt;
&lt;br&gt;Thanks</description></item><item><title>re: SQL Server 2005: A look at the master keys - part 2</title><link>http://blogs.msdn.com/lcris/archive/2005/09/30/sql-server-2005-a-look-at-the-master-keys-part-2.aspx#583029</link><pubDate>Tue, 25 Apr 2006 15:20:34 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:583029</guid><dc:creator>MelS</dc:creator><description>Can you clarify the scenario in a cluster failover? &amp;nbsp;Are you saying that if the Service Master Key's machine encryption is no longer valid because of a failover, any encryption that incorporates the SMK component in the DMK will fail? &amp;nbsp;Decrypt and encrypt no longer valid in that database while it is failed over? &amp;nbsp;Say it isn't so... </description></item><item><title>re: SQL Server 2005: A look at the master keys - part 2</title><link>http://blogs.msdn.com/lcris/archive/2005/09/30/sql-server-2005-a-look-at-the-master-keys-part-2.aspx#583368</link><pubDate>Tue, 25 Apr 2006 20:38:41 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:583368</guid><dc:creator>lcris</dc:creator><description>It isn't so. That's why there are two encryptions of the SMK. If the machine key encryption is no longer valid, then the service account encryption will be used to access the SMK. Also, the machine key encryption will be restored if it was found to be invalid. So, it's a self-healing mechanism. This is explained in the second paragraph of my original post.</description></item><item><title>re: SQL Server 2005: A look at the master keys - part 2</title><link>http://blogs.msdn.com/lcris/archive/2005/09/30/sql-server-2005-a-look-at-the-master-keys-part-2.aspx#659022</link><pubDate>Fri, 07 Jul 2006 17:13:18 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:659022</guid><dc:creator>si.rapier</dc:creator><description>I've got a couple of questions, hope they aren't too simplistic.
&lt;br&gt;
&lt;br&gt;1. I understand that sql login passwords are hashed with SHA-1. Are they then encrypted via the service master key before being physically stored in the database file?
&lt;br&gt;
&lt;br&gt;2. If I'm running the sql service under the Network Service account and I restore my master database to another server do I need to restore the service master key if I run the sql service under the Network Service account on the new server? In other words, are the Network Service account credentials the same on different machines?
&lt;br&gt;
&lt;br&gt;I guess I'm most concerned about linked server passwords and other credentials rather than encrypted user database data, although cleary that would be affected in the same way.</description></item><item><title>re: SQL Server 2005: A look at the master keys - part 2</title><link>http://blogs.msdn.com/lcris/archive/2005/09/30/sql-server-2005-a-look-at-the-master-keys-part-2.aspx#659527</link><pubDate>Sat, 08 Jul 2006 02:54:07 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:659527</guid><dc:creator>lcris</dc:creator><description>1. For SQL logins, SQL Server only stores the SHA1 hashes, so no encryption is necessary. For linked server SQL logins, we need the actual passwords, so they are encrypted using the SMK. No SHA1 hashes are maintained for linked logins - there is no need because we have the passwords themselves.
&lt;br&gt;
&lt;br&gt;2. Yes, if the service account is Network Service, you should backup the SMK before moving the master database, and then you should restore it on the new server after copying the database. The only case when you don't need to do this backup-restore of the SMK is if the service account on the source and destination server is the same domain account.
&lt;br&gt;</description></item><item><title>re: SQL Server 2005: A look at the master keys - part 2</title><link>http://blogs.msdn.com/lcris/archive/2005/09/30/sql-server-2005-a-look-at-the-master-keys-part-2.aspx#700683</link><pubDate>Tue, 15 Aug 2006 08:44:46 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:700683</guid><dc:creator>Catherine</dc:creator><description>We setup DR machine using disk Mirroring (e.g. EMC mirroring) from production to DR machine for the full databases disks. i.e. including the master, msdb &amp;amp; application databases &lt;BR&gt;If we use the SAME 'DOMAIN SQL Server Services' account in both Production and DR machine, when we fail over to the DR machine, the encrypted data should be readable. This means we do NOT need to explicity restoring the SMK backup from production to DR machine? &lt;BR&gt;If so, it will streamline the failover.</description></item><item><title>re: SQL Server 2005: A look at the master keys - part 2</title><link>http://blogs.msdn.com/lcris/archive/2005/09/30/sql-server-2005-a-look-at-the-master-keys-part-2.aspx#701432</link><pubDate>Tue, 15 Aug 2006 21:57:27 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:701432</guid><dc:creator>lcris</dc:creator><description>What does DR stand for? If the DR machine and the production machine have the same set of databases and if SQL Server runs under the same domain account, then you should not need to do anything for the SMK in the event of a failover - the DPAPI service account encryption of the SMK will be used to decrypt it. If you can't make this work, please start a thread on &lt;a rel="nofollow" target="_new" href="http://forums.microsoft.com/MSDN/ShowForum.aspx?ForumID=92&amp;amp;SiteID=1"&gt;http://forums.microsoft.com/MSDN/ShowForum.aspx?ForumID=92&amp;amp;SiteID=1&lt;/a&gt; and we'll look into it.
&lt;br&gt;
&lt;br&gt;Thanks
&lt;br&gt;</description></item><item><title>re: SQL Server 2005: A look at the master keys - part 2</title><link>http://blogs.msdn.com/lcris/archive/2005/09/30/sql-server-2005-a-look-at-the-master-keys-part-2.aspx#701616</link><pubDate>Wed, 16 Aug 2006 00:10:22 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:701616</guid><dc:creator>tdubya</dc:creator><description>Please let me know if this seems feasible or if it's a totally screwy idea. &amp;nbsp;I have a SQL 2000 cluster with two nodes on which I need to be able to encrypt some sensitive data in one table. &amp;nbsp;We're not quite ready to upgrade the whole system to SQL 2005. &amp;nbsp;I was thinking of installing SQL 2005 on the same cluster and letting it run in parallel with SQL 2000 and then moving just the one table that needs to be encrypted into the 2005 instance. &amp;nbsp;Would it be possible to do this and access the table in the 2005 instance using a DBLink and encrypt and decrypt the data in the process? &amp;nbsp;</description></item><item><title>re: SQL Server 2005: A look at the master keys - part 2</title><link>http://blogs.msdn.com/lcris/archive/2005/09/30/sql-server-2005-a-look-at-the-master-keys-part-2.aspx#701879</link><pubDate>Wed, 16 Aug 2006 04:36:36 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:701879</guid><dc:creator>Catherine</dc:creator><description>I have to appologize, the &amp;quot;DR&amp;quot; stands for &amp;quot;Disaster Recovery&amp;quot; machine.</description></item><item><title>re: SQL Server 2005: A look at the master keys - part 2</title><link>http://blogs.msdn.com/lcris/archive/2005/09/30/sql-server-2005-a-look-at-the-master-keys-part-2.aspx#703193</link><pubDate>Thu, 17 Aug 2006 03:14:27 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:703193</guid><dc:creator>lcris</dc:creator><description>Thanks for the explanation Catherine.</description></item><item><title>re: SQL Server 2005: A look at the master keys - part 2</title><link>http://blogs.msdn.com/lcris/archive/2005/09/30/sql-server-2005-a-look-at-the-master-keys-part-2.aspx#703194</link><pubDate>Thu, 17 Aug 2006 03:15:06 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:703194</guid><dc:creator>lcris</dc:creator><description>Re: tdubya's post &lt;BR&gt;&lt;BR&gt;If I understand well, you want to move some data into SQL Server 2005, encrypt it there, and then access it from the SQL Server 2000 instance. The encryption should be no problem, you could automate it using triggers to do the encryption and a view for the decryption. But there may be issues if you have constraints that you need to maintain across the servers, for example. Basically, the encryption would not be a problem, but other aspects of accessing data on another server may be. &lt;BR&gt;</description></item><item><title>re: SQL Server 2005: A look at the master keys - part 2</title><link>http://blogs.msdn.com/lcris/archive/2005/09/30/sql-server-2005-a-look-at-the-master-keys-part-2.aspx#8622653</link><pubDate>Thu, 19 Jun 2008 21:23:03 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8622653</guid><dc:creator>bstichter</dc:creator><description>&lt;p&gt;lcris, A thought occured to me as I read this post and I wanted your thoughts. &amp;nbsp;It seems to me that in this era of virtualization the dual encryption of the SMK introduces a new problem. &amp;nbsp;No longer do sysadmins &amp;quot;just&amp;quot; backup the data (which they probably do as well), but now they backup the entire machine by taking a snapshot of the virtual. &amp;nbsp;Wouldn't that mean that anyone who successfully obtains a backup of a virtual now have the machine credentials necessary to obtain the SMK? &amp;nbsp;In the pre-virtual world backups were safe with this sceme, but it seems they could now be compromised. &amp;nbsp;Am I right?&lt;/p&gt;</description></item><item><title>re: SQL Server 2005: A look at the master keys - part 2</title><link>http://blogs.msdn.com/lcris/archive/2005/09/30/sql-server-2005-a-look-at-the-master-keys-part-2.aspx#8643411</link><pubDate>Mon, 23 Jun 2008 22:11:17 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8643411</guid><dc:creator>lcris</dc:creator><description>&lt;P&gt;I don't think the problem is introduced by the dual encryption - it is introduced by the ability to take the VM snapshot, which, depending on the extent of information that it captures, might expose sensitive information that is normally protected by the OS/applications. Loosing a snapshot would be similar (if not equivalent) to having the entire machine stolen.&lt;/P&gt;
&lt;P&gt;To decrypt the SMK using the machine credentials, you just need access to the machine and to the registry. You can probably get the registry contents from the snapshot and if you can restore the snapshot and logon to the system, then you can eventually decrypt the SMK (same path you would need to follow with a stolen machine).&lt;/P&gt;
&lt;P&gt;If you want to protect against a VM snapshot loss, the best solution is to cut the dependency on the SMK by having the root of your encryption key chain be protected by a password - even then you're still running a risk if the snapshot could capture that password in memory (it should only be kept around while it is used for decryption, but if that's when the snapshot occurs...).&lt;/P&gt;
&lt;P&gt;Note that if your data depends on the security of the SMK, then to protect it against the case of machine theft, you should also use a feature like Vista's BitLocker, which will protect the DPAPI keys protecting the SMK. If we keep the comparison between machine loss and VM snapshot loss, then the equivalent of BitLocker in the latter case would be a snapshot encryption feature.&lt;/P&gt;
&lt;P&gt;Hope this helps. Also see &lt;A href="http://blogs.msdn.com/lcris/archive/2005/12/20/about-security-and-encryption-with-references-to-sql-server-2005.aspx"&gt;http://blogs.msdn.com/lcris/archive/2005/12/20/about-security-and-encryption-with-references-to-sql-server-2005.aspx&lt;/A&gt;.&lt;/P&gt;</description></item></channel></rss>