<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.technet.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>Melville Thomson's Blog : Security</title><link>http://blogs.technet.com/melville/archive/tags/Security/default.aspx</link><description>Tags: Security</description><dc:language>en-GB</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>Configuring SQL Server 2005 Logins</title><link>http://blogs.technet.com/melville/archive/2006/08/30/configuring-sql-server-2005-logins.aspx</link><pubDate>Thu, 31 Aug 2006 01:36:00 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:452934</guid><dc:creator>Melville</dc:creator><slash:comments>0</slash:comments><comments>http://blogs.technet.com/melville/comments/452934.aspx</comments><wfw:commentRss>http://blogs.technet.com/melville/commentrss.aspx?PostID=452934</wfw:commentRss><description>&lt;P mce_keep="true"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;One question I have been asked is about &lt;A href="http://msdn2.microsoft.com/en-us/library/aa337562.aspx" mce_href="http://msdn2.microsoft.com/en-us/library/aa337562.aspx"&gt;SQL Server 2005 Logins&lt;/A&gt;.&amp;nbsp; Logins are the Server principles which give user’s access to SQL Server.&amp;nbsp; We can create Logins using the SQL Server Management Studio (SSMS) graphically or use the CREATE LOGIN statement.&lt;BR&gt;The syntax for a windows login&lt;/P&gt;
&lt;P&gt;&lt;BR&gt;CREATE LOGIN [Domain\User] FROM WINDOWS&lt;BR&gt;The password and account policy is managed by Active Directory.&lt;/P&gt;
&lt;P&gt;&lt;BR&gt;The biggest change is with SQL Server logins the syntax is&lt;/P&gt;
&lt;P&gt;&lt;BR&gt;CREATE LOGIN login_name WITH PASSWORD=’password’ &lt;/P&gt;
&lt;P&gt;You can use the following options when you create the login&lt;BR&gt;MUST_CHANGE The user should change the password at the next login.&lt;BR&gt;CHECK_EXPIRATION SQL Server will check the Windows expiration policy for the SQL Server login.&lt;BR&gt;CHECK_POLICY SQL Server will apply the local Windows password policy on SQL Server logins.&lt;/P&gt;
&lt;P&gt;&lt;BR&gt;For full syntax see &lt;A href="http://msdn2.microsoft.com/en-us/library/ms189751.aspx"&gt;CREATE LOGIN &lt;/A&gt;(Transact-SQL) &lt;/P&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=452934" width="1" height="1"&gt;</description><category domain="http://blogs.technet.com/melville/archive/tags/SQL+Server/default.aspx">SQL Server</category><category domain="http://blogs.technet.com/melville/archive/tags/Security/default.aspx">Security</category></item><item><title>SQL Server 2005 Encryption</title><link>http://blogs.technet.com/melville/archive/2006/08/25/sql-server-2005-encryption.aspx</link><pubDate>Fri, 25 Aug 2006 19:23:00 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:451725</guid><dc:creator>Melville</dc:creator><slash:comments>1</slash:comments><comments>http://blogs.technet.com/melville/comments/451725.aspx</comments><wfw:commentRss>http://blogs.technet.com/melville/commentrss.aspx?PostID=451725</wfw:commentRss><description>&lt;P&gt;Steve asked me about encryption in SQL Server 2005.&amp;nbsp; I have found a few areas of information that are useful.&amp;nbsp; In BOL there is an article about the &lt;A href="http://msdn2.microsoft.com/en-us/library/ms189586.aspx" mce_href="http://msdn2.microsoft.com/en-us/library/ms189586.aspx"&gt;Encryption Hierarchy&lt;/A&gt;&amp;nbsp; this explains quite a lot about how it is organised.&amp;nbsp; I quite like it because it has a diagram which is easy to understand.&lt;/P&gt;
&lt;P&gt;SQL Server encrypts data with a hierarchical encryption key management infrastructure.&amp;nbsp; Each layer encrypts the layer below it.&amp;nbsp; &lt;/P&gt;
&lt;P&gt;The first is the service master key &lt;BR&gt;&amp;nbsp;This secures:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;linked server passwords&lt;/LI&gt;
&lt;LI&gt;Connection strings&lt;/LI&gt;
&lt;LI&gt;&amp;nbsp;Account credentials&lt;/LI&gt;
&lt;LI&gt;All database master keys&lt;/LI&gt;&lt;/UL&gt;
&lt;P&gt;There&amp;nbsp;are optional database master key's&lt;BR&gt;&amp;nbsp;This is used for:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Certificates&lt;/LI&gt;
&lt;LI&gt;Asymmetric Keys&lt;/LI&gt;
&lt;LI&gt;Symmetric Keys&lt;/LI&gt;&lt;/UL&gt;
&lt;P&gt;There are a number of &lt;A href="http://msdn2.microsoft.com/en-us/library/ms173744.aspx" mce_href="http://msdn2.microsoft.com/en-us/library/ms173744.aspx"&gt;Cryptographic Functions&lt;/A&gt;&amp;nbsp;&amp;nbsp; in Transact-SQL these support encryption, decryption, digital signing and the validation of digital signatures.&lt;/P&gt;
&lt;P&gt;To see what is going on there are a number of &lt;A href="http://msdn2.microsoft.com/en-us/library/ms178542.aspx." mce_href="http://msdn2.microsoft.com/en-us/library/ms178542.aspx."&gt;Security Catalog Views &lt;/A&gt;&amp;nbsp;which show you cryptographic information&amp;nbsp;these are useful.&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;One tip I would recommend is to backup the service master key and secure it offsite for safety you can use ‘BACKUP MASTER KEY’ and ‘RESTORE MASTER KEY’ Transact-SQL statements.&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;BACKUP SERVICE MASTER KEY TO FILE = 'c:\temp_backups\keys\service_master_key' ENCRYPTION BY PASSWORD = '3dH85Hhk003GHk2597gheij4';&lt;BR&gt;GO &lt;/P&gt;
&lt;P&gt;RESTORE SERVICE MASTER KEY FROM FILE = 'c:\temp_backups\keys\service_master_key' DECRYPTION BY PASSWORD = '3dH85Hhk003GHk2597gheij4'; &lt;BR&gt;GO&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;But very important&lt;/STRONG&gt; &lt;BR&gt;When the service master key is restored, SQL Server decrypts all the keys and secrets that have been encrypted with the current service master key, and then encrypts them with the service master key loaded from the backup file. &lt;BR&gt;If any one of the decryptions fails, the restore will fail. You can use the FORCE option to ignore errors, but this option will cause the loss of any data that cannot be decrypted.&lt;BR&gt;&lt;/P&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=451725" width="1" height="1"&gt;</description><category domain="http://blogs.technet.com/melville/archive/tags/SQL+Server/default.aspx">SQL Server</category><category domain="http://blogs.technet.com/melville/archive/tags/Security/default.aspx">Security</category></item><item><title>SQL Server Security issues reduced</title><link>http://blogs.technet.com/melville/archive/2006/03/30/sql-server-security-issues-reduced.aspx</link><pubDate>Thu, 30 Mar 2006 16:53:00 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:423639</guid><dc:creator>Melville</dc:creator><slash:comments>0</slash:comments><comments>http://blogs.technet.com/melville/comments/423639.aspx</comments><wfw:commentRss>http://blogs.technet.com/melville/commentrss.aspx?PostID=423639</wfw:commentRss><description>&lt;P&gt;In &lt;A href="http://blogs.msdn.com/dtjones/archive/2006/03/28/563653.aspx" mce_href="http://blogs.msdn.com/dtjones/archive/2006/03/28/563653.aspx"&gt;Dan's Blog&lt;/A&gt;&amp;nbsp;he talks about the &lt;A href="http://www.sans.org/top20/#c4" mce_href="http://www.sans.org/top20/#c4"&gt;Sans Top 20 Security Vulnerabilities&lt;/A&gt;.&amp;nbsp; The main point being Microsoft SQL Server not making the top 20 but other database systems did.&amp;nbsp; I looked back at previous years and we had our own section of vulnerabilities.&amp;nbsp; I am wondering if that was because we were more open?&amp;nbsp; Or&amp;nbsp;are the different industries looking harder at security issues &amp;nbsp;more now than in the past.&lt;/P&gt;
&lt;P&gt;The Sans site publishes the list and provides useful links and tips to resolve and detect the various Database vulnerabilities mentioned.&lt;/P&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=423639" width="1" height="1"&gt;</description><category domain="http://blogs.technet.com/melville/archive/tags/SQL+Server/default.aspx">SQL Server</category><category domain="http://blogs.technet.com/melville/archive/tags/Security/default.aspx">Security</category></item></channel></rss>