<?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>Database Encryption Key (DEK) management</title><link>http://blogs.msdn.com/b/sqlsecurity/archive/2010/06/14/database-encryption-key-dek-management.aspx</link><description>This post will talk about DEK, what it is and how it is securely stored and managed inside a database. Before enabling TDE a DEK must be created which is used to encrypt the contents of the database. It is a symmetric key and supported algorithms are</description><dc:language>en-US</dc:language><generator>Telligent Evolution Platform Developer Build (Build: 5.6.50428.7875)</generator><item><title>re: Database Encryption Key (DEK) management</title><link>http://blogs.msdn.com/b/sqlsecurity/archive/2010/06/14/database-encryption-key-dek-management.aspx#10227222</link><pubDate>Tue, 18 Oct 2011 22:57:19 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10227222</guid><dc:creator>shradg</dc:creator><description>&lt;p&gt;Very nice representation of the dependencies of the key in TDE.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10227222" width="1" height="1"&gt;</description></item><item><title>re: Database Encryption Key (DEK) management</title><link>http://blogs.msdn.com/b/sqlsecurity/archive/2010/06/14/database-encryption-key-dek-management.aspx#10120223</link><pubDate>Tue, 25 Jan 2011 21:31:22 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10120223</guid><dc:creator>Jerrod</dc:creator><description>&lt;p&gt;So, just to clarify. &amp;nbsp;When you run the ALTER DATABASE ENCRYPTION KEY and replace the DEK with a new key, what happens to the backups that were taken previous to the key rotation. &amp;nbsp;Do the old DEK and new DEK stay in the database so they can both be used to decrypt backups?&lt;/p&gt;
&lt;p&gt;Additionally, what if you also want to replace your Certificate that is used to encrypt the DEK? &amp;nbsp;My assumption is that I would create the new certificate, in the master DB, then use the new certificate to encrypt the new DEK that is set up with the Alter DB Encryption key command. &amp;nbsp;Please correct me if I am thinking of this in the wrong way. &amp;nbsp;Also, my assumption is that you would still need to leave the old and new certificates in the sysdb so they would be available to decrypt the old/new DEK. &amp;nbsp;Is this correct?&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Jerrod&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10120223" width="1" height="1"&gt;</description></item><item><title>re: Database Encryption Key (DEK) management</title><link>http://blogs.msdn.com/b/sqlsecurity/archive/2010/06/14/database-encryption-key-dek-management.aspx#10117379</link><pubDate>Wed, 19 Jan 2011 00:37:01 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10117379</guid><dc:creator>Raul Garcia - MS</dc:creator><description>&lt;p&gt; &amp;nbsp;The information in sys.dm_database_encryption_keys includes the thumbprint for the object protecting the DEK, unfortunately we missed to add an encryptor_type column that would explicitly define the nature of this protection. &lt;/p&gt;
&lt;p&gt; &amp;nbsp;The following query should be a good starting point. It is not a 100% solution since there is a very slim possibility (close to 0, but it exists) of thumbprint collision between a certificate &amp;amp; the EKM-based asymmetric key (the HSM would define this thumbprint).&lt;/p&gt;
&lt;p&gt;SELECT deks.*, certs.name as encryptor_name, &amp;#39;certificate&amp;#39; as encryptor_type FROM sys.dm_database_encryption_keys deks, sys.certificates certs WHERE deks.encryptor_thumbprint = certs.thumbprint&lt;/p&gt;
&lt;p&gt;UNION&lt;/p&gt;
&lt;p&gt;SELECT deks.*, asmk.name as encryptor_name, &amp;#39;asymmetric key&amp;#39; as encryptor_type FROM sys.dm_database_encryption_keys deks, sys.asymmetric_keys asmk WHERE deks.encryptor_thumbprint = asmk.thumbprint&lt;/p&gt;
&lt;p&gt; &amp;nbsp;I hope this information helps,&lt;/p&gt;
&lt;p&gt; -Raul Garcia&lt;/p&gt;
&lt;p&gt; &amp;nbsp;SDE/T&lt;/p&gt;
&lt;p&gt; &amp;nbsp;SQL Server Engine&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10117379" width="1" height="1"&gt;</description></item><item><title>re: Database Encryption Key (DEK) management</title><link>http://blogs.msdn.com/b/sqlsecurity/archive/2010/06/14/database-encryption-key-dek-management.aspx#10115366</link><pubDate>Thu, 13 Jan 2011 16:32:21 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10115366</guid><dc:creator>Dora_TDE</dc:creator><description>&lt;p&gt;Hi, &lt;/p&gt;
&lt;p&gt;I want to know which query can i execute to see informations about the DEK in SQL Server ? &lt;/p&gt;
&lt;p&gt;like, when i want to see an asymmetric key i put : &lt;/p&gt;
&lt;p&gt;select * from sys.asymmetric_keys &lt;/p&gt;
&lt;p&gt;which one for the DEK ???? &lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10115366" width="1" height="1"&gt;</description></item><item><title>re: Database Encryption Key (DEK) management</title><link>http://blogs.msdn.com/b/sqlsecurity/archive/2010/06/14/database-encryption-key-dek-management.aspx#10085000</link><pubDate>Tue, 02 Nov 2010 19:57:14 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10085000</guid><dc:creator>Mei</dc:creator><description>&lt;p&gt;Good information about the encryption scan. &lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10085000" width="1" height="1"&gt;</description></item><item><title>re: Database Encryption Key (DEK) management</title><link>http://blogs.msdn.com/b/sqlsecurity/archive/2010/06/14/database-encryption-key-dek-management.aspx#10071849</link><pubDate>Tue, 05 Oct 2010 19:27:02 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10071849</guid><dc:creator>Zubair Ahmed Mughal - MSFT</dc:creator><description>&lt;p&gt;Hi Paul,&lt;/p&gt;
&lt;p&gt; The short answer is No. They would need the encryptor (Certificate or the Asymmetric key) to decrypt the database.&lt;/p&gt;
&lt;p&gt; TDE encrypts the database using DEK which is encrypted by a certificate. This certificate is stored in master database and is required to decrypt the database. If someone copies your database and log files they will need the certificate (with private key) or the asymmetric key to restore it on their server. Note that the database files are encrypted so they won&amp;#39; be able to see you data if they even try to directly open the file.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10071849" width="1" height="1"&gt;</description></item><item><title>re: Database Encryption Key (DEK) management</title><link>http://blogs.msdn.com/b/sqlsecurity/archive/2010/06/14/database-encryption-key-dek-management.aspx#10046527</link><pubDate>Thu, 05 Aug 2010 13:21:17 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10046527</guid><dc:creator>Paul</dc:creator><description>&lt;p&gt;Hi Zubair,&lt;/p&gt;
&lt;p&gt;I read your article but I don&amp;#39;t understand most of it simply because I&amp;#39;m very very new to SQL Server. My previous db experience was only with MS Access.&lt;/p&gt;
&lt;p&gt;Say if I use TDE on my database and the database files (mdb, log, etc..) are copied by some other people. Will they be able to see the data if they attach the database files to their SQL server?&lt;/p&gt;
&lt;p&gt;Thanks.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10046527" width="1" height="1"&gt;</description></item><item><title>re: Database Encryption Key (DEK) management</title><link>http://blogs.msdn.com/b/sqlsecurity/archive/2010/06/14/database-encryption-key-dek-management.aspx#10024921</link><pubDate>Mon, 14 Jun 2010 23:39:01 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10024921</guid><dc:creator>Zubair Ahmed Mughal - MSFT</dc:creator><description>&lt;p&gt;The bootpage image got resized during publishing. To see the full sized image either copy the image and paste it in MS Paint, MS Word, etc. OR open this link:&lt;/p&gt;
&lt;p&gt;&lt;a rel="nofollow" target="_new" href="http://blogs.msdn.com/resized-image.ashx/__size/1138x441/__key/CommunityServer-Blogs-Components-WeblogFiles/00-00-00-92-93/8420.Bootpage.png"&gt;blogs.msdn.com/.../8420.Bootpage.png&lt;/a&gt;&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10024921" width="1" height="1"&gt;</description></item></channel></rss>