<?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>Alik Levin's : Deployment Inspection</title><link>http://blogs.msdn.com/alikl/archive/tags/Deployment+Inspection/default.aspx</link><description>Tags: Deployment Inspection</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>Securing IIS7 - Windows Server 2008 Security Guide</title><link>http://blogs.msdn.com/alikl/archive/2008/02/28/securing-iis7-windows-server-2008-security-guide.aspx</link><pubDate>Thu, 28 Feb 2008 22:09:42 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:7936911</guid><dc:creator>alikl</dc:creator><slash:comments>1</slash:comments><comments>http://blogs.msdn.com/alikl/comments/7936911.aspx</comments><wfw:commentRss>http://blogs.msdn.com/alikl/commentrss.aspx?PostID=7936911</wfw:commentRss><wfw:comment>http://blogs.msdn.com/alikl/rsscomments.aspx?PostID=7936911</wfw:comment><description>&lt;p&gt;&lt;a href="http://technet.microsoft.com/en-us/library/cc264463.aspx" target="_blank"&gt;Windows Server 2008 Security Guide&lt;/a&gt; is out.&lt;/p&gt;  &lt;p&gt;It covers many crucial aspects but my favorite of course is IIS7 chapter:&lt;/p&gt;  &lt;blockquote&gt;   &lt;h4&gt;&lt;a name="_Toc191716753"&gt;Chapter 6: Hardening&lt;/a&gt;&lt;a name="_Idx118"&gt;&lt;/a&gt; Web Services&lt;/h4&gt;    &lt;p&gt;This chapter provides prescriptive guidance for hardening&lt;a name="_Idx119"&gt;&lt;/a&gt; the Web Server role. The chapter discusses how the Web server role installs Microsoft&amp;#174; Internet Information Services&lt;a name="_Idx120"&gt;&lt;/a&gt; (IIS) 7.0, which has been redesigned into forty modular components that you can choose to install as needed.&lt;/p&gt; &lt;/blockquote&gt;  &lt;p&gt;It points to the following resources:&lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;&lt;a href="http://technet2.microsoft.com/WindowsServer2008/en/library/dbaadb7c-433d-4c88-ab7f-1575258131dc1033.mspx" target="_blank"&gt;IIS 7.0: Configuring Authentication in IIS 7.0&lt;/a&gt;&lt;/li&gt;    &lt;li&gt;&lt;a href="http://technet2.microsoft.com/WindowsServer2008/en/library/2464e39e-2a21-4c7b-907c-ed8b4b4f3d031033.mspx" target="_blank"&gt;IIS 7.0: Configuring IPv4 Address and Domain Name Rules&lt;/a&gt;&lt;/li&gt;    &lt;li&gt;&lt;a href="http://technet2.microsoft.com/WindowsServer2008/en/library/ec81dd52-8ddc-41d3-984f-9f710c21add91033.mspx" target="_blank"&gt;IIS 7.0: Configuring URL Authorization Rules in IIS 7.0&lt;/a&gt;&lt;/li&gt;    &lt;li&gt;&lt;a href="http://technet2.microsoft.com/WindowsServer2008/en/library/bf4afb4c-4ce3-40e1-bd4b-d7df6daeb9b61033.mspx" target="_blank"&gt;IIS 7.0: Configuring Server Certificates in IIS 7.0&lt;/a&gt;&lt;/li&gt;    &lt;li&gt;&lt;a href="http://technet2.microsoft.com/WindowsServer2008/en/library/8ddc1f85-27fb-439d-a3da-ced11f7dcf031033.mspx" target="_blank"&gt;IIS 7.0: Configuring ISAPI and CGI Restrictions in IIS 7.0&lt;/a&gt;&lt;/li&gt;    &lt;li&gt;&lt;a href="http://technet2.microsoft.com/WindowsServer2008/en/library/70c33ea8-4192-4110-be70-a11e11984f1e1033.mspx" target="_blank"&gt;IIS 7.0: Configuring Secure Sockets Layer in IIS 7.0&lt;/a&gt;&lt;/li&gt;    &lt;li&gt;&lt;a href="http://technet2.microsoft.com/WindowsServer2008/en/library/7b4d4d2b-780f-47d5-bc6c-514c65754c521033.mspx" target="_blank"&gt;IIS 7.0: Configuring Request Filters&lt;/a&gt;&lt;/li&gt;    &lt;li&gt;&lt;a href="http://technet2.microsoft.com/WindowsServer2008/en/library/b0a91b50-1582-44b5-b61e-7207e6e1c2d11033.mspx" target="_blank"&gt;IIS 7.0: Configuring Shared Configuration&lt;/a&gt;&lt;/li&gt;    &lt;li&gt;&lt;a href="http://go.microsoft.com/fwlink/?LinkId=103904" target="_blank"&gt;How to Setup SSL on IIS7&lt;/a&gt;. &lt;/li&gt;    &lt;li&gt;&lt;a href="http://go.microsoft.com/fwlink/?LinkId=94165" target="_blank"&gt;How to Use Request Filtering&lt;/a&gt;&lt;a name="_Idx1510"&gt;&lt;/a&gt;. &lt;/li&gt;    &lt;li&gt;&lt;a href="http://go.microsoft.com/fwlink/?LinkId=86769" target="_blank"&gt;Improving Web Application Security: Threats and Countermeasures&lt;/a&gt;&lt;a name="_Idx1511"&gt;&lt;/a&gt;. &lt;/li&gt;    &lt;li&gt;&lt;a href="http://technet2.microsoft.com/windowsserver2008/en/library/939d621e-c023-48f8-9503-47f24a6be7211033.mspx?mfr=true" target="_blank"&gt;IIS 7.0: Configure Web Server Security&lt;/a&gt;. &lt;/li&gt;    &lt;li&gt;&lt;a href="http://go.microsoft.com/fwlink/?LinkId=99832" target="_blank"&gt;Server Core Installation Option of Windows Server 2008 Step-By-Step Guide&lt;/a&gt;. &lt;/li&gt;    &lt;li&gt;&lt;a href="http://go.microsoft.com/fwlink/?LinkId=3655" target="_blank"&gt;Windows Management Instrumentation&lt;/a&gt;. &lt;/li&gt;    &lt;li&gt;&lt;a href="http://go.microsoft.com/fwlink/?LinkId=89710" target="_blank"&gt;Windows Server 2008 Technical Library&lt;/a&gt;. &lt;/li&gt;    &lt;li&gt;&lt;a href="http://go.microsoft.com/fwlink/?LinkId=100617" target="_blank"&gt;Understanding IIS7 URL Authorization&lt;/a&gt;.&lt;/li&gt; &lt;/ul&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=7936911" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/alikl/archive/tags/Security/default.aspx">Security</category><category domain="http://blogs.msdn.com/alikl/archive/tags/Deployment+Phase/default.aspx">Deployment Phase</category><category domain="http://blogs.msdn.com/alikl/archive/tags/Deployment+Inspection/default.aspx">Deployment Inspection</category><category domain="http://blogs.msdn.com/alikl/archive/tags/IIS+7/default.aspx">IIS 7</category><category domain="http://blogs.msdn.com/alikl/archive/tags/Planning+Phase/default.aspx">Planning Phase</category></item><item><title>Security Deployment Inspection Using Office.</title><link>http://blogs.msdn.com/alikl/archive/2007/03/22/security-code-deployment-review-using-office.aspx</link><pubDate>Thu, 22 Mar 2007 10:30:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1929247</guid><dc:creator>alikl</dc:creator><slash:comments>1</slash:comments><comments>http://blogs.msdn.com/alikl/comments/1929247.aspx</comments><wfw:commentRss>http://blogs.msdn.com/alikl/commentrss.aspx?PostID=1929247</wfw:commentRss><wfw:comment>http://blogs.msdn.com/alikl/rsscomments.aspx?PostID=1929247</wfw:comment><description>&lt;P&gt;I am a big fun of small time savers to be more productive.&lt;/P&gt;
&lt;P&gt;&lt;A href="http://blogs.msdn.com/jmeier/default.aspx" mce_href="http://blogs.msdn.com/jmeier/default.aspx"&gt;JD&lt;/A&gt; has the whole category for &lt;A href="http://blogs.msdn.com/jmeier/archive/tags/Effectiveness/default.aspx" mce_href="http://blogs.msdn.com/jmeier/archive/tags/Effectiveness/default.aspx"&gt;Effectiveness&lt;/A&gt;&amp;nbsp;tag&amp;nbsp;- worth checking on these gems.&lt;/P&gt;
&lt;P&gt;So I am looking always how to reuse my practices across disciplines&lt;/P&gt;
&lt;P&gt;I&amp;nbsp;am trying to combine my security engineering practice with MS Office productivity tool&lt;A href="http://blogs.msdn.com/blogfiles/alikl/WindowsLiveWriter/SecurityCodeReviewUsingOutlook2007_7786/image%7B0%7D%5B3%5D.png" atomicselection="true" mce_href="http://blogs.msdn.com/blogfiles/alikl/WindowsLiveWriter/SecurityCodeReviewUsingOutlook2007_7786/image%7B0%7D%5B3%5D.png"&gt;s&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;This time I will show how I use Excel for &lt;A href="http://msdn2.microsoft.com/en-us/library/ms998401.aspx" mce_href="http://msdn2.microsoft.com/en-us/library/ms998401.aspx"&gt;Deployment Inspection&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;&lt;FONT color=#ff0000&gt;NOTE: It is not ultimate holistic approach for deployment inspection rather some productivity trick. For me at least :)&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;Imagine I have a strong desire to inspect deployment on some IIS server where &lt;A href="http://msdn2.microsoft.com/en-us/library/aa479071.aspx" mce_href="http://msdn2.microsoft.com/en-us/library/aa479071.aspx"&gt;Pet Shop Web App&lt;/A&gt; is deployed. One thing I'd check if there are only sane files deployed. I will use my friend DIR command&lt;/P&gt;
&lt;P&gt;/A:-D means no directories please&lt;/P&gt;
&lt;P&gt;/S means subfolder too please&lt;/P&gt;
&lt;P&gt;/B means no summaries please&lt;/P&gt;
&lt;P&gt;thank you&lt;/P&gt;
&lt;P&gt;&lt;IMG height=130 src="http://blogs.msdn.com/blogfiles/alikl/WindowsLiveWriter/SecurityCodeReviewUsingOutlook2007_7786/image%7B0%7D_thumb%5B1%5D.png" width=845 mce_src="http://blogs.msdn.com/blogfiles/alikl/WindowsLiveWriter/SecurityCodeReviewUsingOutlook2007_7786/image%7B0%7D_thumb%5B1%5D.png"&gt; &lt;/P&gt;
&lt;P mce_keep="true"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;Here is how result looks like, notice source files deployed to production - not the best practices, but we just spotted it - good job!&lt;/P&gt;
&lt;P&gt;&lt;A href="http://blogs.msdn.com/blogfiles/alikl/WindowsLiveWriter/SecurityCodeReviewUsingOutlook2007_7786/image%7B0%7D%5B13%5D.png" atomicselection="true" mce_href="http://blogs.msdn.com/blogfiles/alikl/WindowsLiveWriter/SecurityCodeReviewUsingOutlook2007_7786/image%7B0%7D%5B13%5D.png"&gt;&lt;IMG height=395 src="http://blogs.msdn.com/blogfiles/alikl/WindowsLiveWriter/SecurityCodeReviewUsingOutlook2007_7786/image%7B0%7D_thumb%5B7%5D.png" width=507 mce_src="http://blogs.msdn.com/blogfiles/alikl/WindowsLiveWriter/SecurityCodeReviewUsingOutlook2007_7786/image%7B0%7D_thumb%5B7%5D.png"&gt;&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P mce_keep="true"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I've recently reviewed application with 650 dlls... well notepad is handy but not in this case. So let me open the txt file in Excel 2007 (other version are good too for this task) and define formula in B column like =RIGHT(A1, 3) - now I got extensions. "fig" would stand for .config files I presume. Now you have the power of excel spotting sane and insane files&lt;/P&gt;
&lt;P mce_keep="true"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://blogs.msdn.com/blogfiles/alikl/WindowsLiveWriter/SecurityCodeReviewUsingOutlook2007_7786/image%7B0%7D%5B21%5D.png" atomicselection="true" mce_href="http://blogs.msdn.com/blogfiles/alikl/WindowsLiveWriter/SecurityCodeReviewUsingOutlook2007_7786/image%7B0%7D%5B21%5D.png"&gt;&lt;IMG height=444 src="http://blogs.msdn.com/blogfiles/alikl/WindowsLiveWriter/SecurityCodeReviewUsingOutlook2007_7786/image%7B0%7D_thumb%5B11%5D.png" width=758 mce_src="http://blogs.msdn.com/blogfiles/alikl/WindowsLiveWriter/SecurityCodeReviewUsingOutlook2007_7786/image%7B0%7D_thumb%5B11%5D.png"&gt;&lt;/A&gt; &lt;/P&gt;
&lt;P mce_keep="true"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;More on files that should be deployed to production are here &lt;A class="" href="http://msdn2.microsoft.com/en-us/library/ms998367.aspx#paght000028_binandspecial" mce_href="http://msdn2.microsoft.com/en-us/library/ms998367.aspx#paght000028_binandspecial"&gt;Bin and Special Directories&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Enjoy&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=1929247" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/alikl/archive/tags/Security/default.aspx">Security</category><category domain="http://blogs.msdn.com/alikl/archive/tags/Tools/default.aspx">Tools</category><category domain="http://blogs.msdn.com/alikl/archive/tags/Deployment+Phase/default.aspx">Deployment Phase</category><category domain="http://blogs.msdn.com/alikl/archive/tags/Deployment+Inspection/default.aspx">Deployment Inspection</category></item></channel></rss>