<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Paranoid Admin &#187; How-to&#8217;s</title>
	<atom:link href="http://www.paranoid-admin.net/article/security/howtos/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.paranoid-admin.net</link>
	<description></description>
	<lastBuildDate>Sat, 24 Jul 2010 00:57:49 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>Secure your browser&#8217;s cache using Software Restrictions</title>
		<link>http://www.paranoid-admin.net/security/2009/06/01/secure-your-browsers-cache/</link>
		<comments>http://www.paranoid-admin.net/security/2009/06/01/secure-your-browsers-cache/#comments</comments>
		<pubDate>Mon, 01 Jun 2009 10:22:23 +0000</pubDate>
		<dc:creator>Ron S.</dc:creator>
				<category><![CDATA[How-to's]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[2003 server]]></category>
		<category><![CDATA[2008 server]]></category>
		<category><![CDATA[browser]]></category>
		<category><![CDATA[browser cache]]></category>
		<category><![CDATA[file execution]]></category>
		<category><![CDATA[gpedit]]></category>
		<category><![CDATA[how-to]]></category>
		<category><![CDATA[no execute]]></category>
		<category><![CDATA[path rule]]></category>
		<category><![CDATA[software restriction policy]]></category>
		<category><![CDATA[vista]]></category>
		<category><![CDATA[xp]]></category>

		<guid isPermaLink="false">/?p=15</guid>
		<description><![CDATA[Configuring your browser’s cache using the Group Policy Object Editor and Software Restriction Policies. Disallowing execution in the cache can keep viruses/trojans/adware/spyware etc. from being installed from sites you visit - without your knowledge.]]></description>
			<content:encoded><![CDATA[<p class="note"><strong>This tip only applies to the following Windows OS versions:</strong><br />
Windows XP Professional, Windows Server 2003, Windows Vista Small Business, Windows Vista Professional, Windows Vista Enterprise, Windows Vista Ultimate, Windows Server 2008</p>
<p>You have probably browsed sites that were all too happy to download trojans/spyware/adware/etc., and run them on your machine without your knowledge&#8230; leading to all kinds of up-all-night fun.</p>
<p>If you have had these experiences, then you also may have cursed Windows &#8211; for not including tools necessary to secure the Windows OS.</p>
<p>Well they DO, to a point. Your day is about to get a lot better.</p>
<p class="note">This technique does NOT protect you from errant and malicious ActiveX controls. You will have to configure security for ActiveX controls under IE in Tools &gt; Internet Options &gt; Security.</p>
<p>Enter our good friend, and drinking buddy, gpedit.msc. You can give it a call by going to Start &gt; Run, and typing gpedit.msc&#8230; then hitting ENTER, of course. Let the good times roll.</p>
<p>What you are presented with is the &#8220;Group Policy Object Editor&#8221; &#8211; as shown below:</p>
<div id="attachment_33" class="wp-caption aligncenter" style="width: 571px"><img class="size-full wp-image-33" src="http://www.paranoid-admin.net/wp-content/uploads/2009/06/gpedit1.png" alt="Group Policy Object Editor" width="561" height="400" /><p class="wp-caption-text">Group Policy Object Editor</p></div>
<p><a name="step1"></a><strong>Step 1</strong> &#8211; After opening the Group Policy Object Editor, navigate to Computer Configuration &gt; Windows Settings &gt; Security Settings &gt; Software Restriction Policies. If you haven&#8217;t been here before, you will see the following screen:</p>
<div id="attachment_34" class="wp-caption aligncenter" style="width: 571px"><img class="size-full wp-image-34" src="http://www.paranoid-admin.net/wp-content/uploads/2009/06/gpedit-nosrpoliciesdefined1.png" alt="Group Policy Object Editor - No Software Restriction Policies Defined" width="561" height="400" /><p class="wp-caption-text">Group Policy Object Editor - No Software Restriction Policies Defined</p></div>
<p>If you do not see this screen (a.k.a. Software Restriction Policies <em>have</em> been defined), then proceed to <a href="#step2">Step 2</a>. For those that have this screen in front of them:</p>
<p><a name="step1a"></a><strong>Step 1a</strong> &#8211; Right click on Software Restriction Policies and select the following &#8211; All Tasks &gt; New Software Restriction Policies, then left click on it. After doing so, you should see:</p>
<div id="attachment_38" class="wp-caption aligncenter" style="width: 571px"><img class="size-full wp-image-38" src="http://www.paranoid-admin.net/wp-content/uploads/2009/06/gpedit-srpoliciesdefined2.png" alt="Group Policy Object Editor - Software Restriction Policy Defined" width="561" height="400" /><p class="wp-caption-text">Group Policy Object Editor - Software Restriction Policy Defined</p></div>
<p><a name="step2"></a><strong>Step 2</strong> &#8211; After the policies have been defined, or have been previously defined if you skipped here from <a href="#step1">Step 1</a>, then left click on Additional Rules below Software Restriction Policies.</p>
<p><a name="step2a"></a><strong>Step 2a</strong> &#8211; In the right hand pane of the Group Policy Object Editor window, right click in an empty area, and select New Path Rule.  You are presented with:</p>
<div id="attachment_37" class="wp-caption aligncenter" style="width: 416px"><img class="size-full wp-image-37" src="http://www.paranoid-admin.net/wp-content/uploads/2009/06/gpedit-srpolicies-newpathrule2.png" alt="Group Policy Object Editor - Software Restriction Policies - New Path Rule" width="406" height="448" /><p class="wp-caption-text">Group Policy Object Editor - Software Restriction Policies - New Path Rule</p></div>
<p>Here you can enter a directory (a.k.a. path) to apply software restriction rules to. Notice the default Security level is set to &#8220;Disallowed&#8221; &#8211; this is what you want, as you are DISALLOWING execution rights for this directory. In the Description field, you will want to add some descriptive text to define the path rule, like &#8220;IE cache protection&#8221;, or whatever it is meant for. Be creative, but to the point.</p>
<p>Now, you are wondering &#8220;What do I do here?&#8221; Well, read through. Don&#8217;t worry, it isn&#8217;t that difficult.</p>
<p><a name="step3"></a><strong>Step 3</strong> &#8211; You will want to enter the directory(ies) for your browser&#8217;s cache&#8230; i.e. where your browser of choice downloads it&#8217;s temporary files to, a.k.a. the files that are downloaded from the sites you visit &#8211; which includes the nasty files, such as viruses/trojans/etc. Enter a single path and click OK. You CANNOT put all the paths in the same field, just so we understand each other. Repeat the process from <a href="#step2a">Step 2a</a> for all the paths you need to enter.</p>
<p>The beauty of Path Rules is that you can use <a href="http://en.wikipedia.org/wiki/Environment_variable#DOS_and_Windows">environment variables</a> and <a href="http://webmake.taint.org/doc/globs.html">globbing patterns</a> to simplify, and make all-inclusive,  the directories you are wanting to lock down. Below is a simple list of popular browsers and their directories that you should add path rules for (all using environment variables and globbing patterns, for simplicity):</p>
<ul>
<li><strong>Internet Explorer (Version 7 and higher):</strong> <em>%USERPROFILE%\Local Settings\Temporary Internet Files</em></li>
<li><strong>Internet Explorer (Version 6 and below):</strong> <em>%USERPROFILE%\Local Settings\Temporary Internet Files</em> AND ALSO <em>%USERPROFILE%\Local Settings\Temp</em> <strong>(Note: the \Temp directory will stop you from installing certain software, especially from ZIP self-extracting archives. We suggest you upgrade to version 7 or higher, so you will NOT have to include the \Temp directory. If you need to install software that runs from \Temp, go into the Software Restriction Policies and set the \Temp directory to &#8220;Unrestricted&#8221; temporarily)</strong></li>
<li><strong>Mozilla Firefox (Version 2 and 3):</strong> <em>%USERPROFILE%\Local Settings\Application Data\Mozilla\Firefox\Profiles\*\Cache</em></li>
<li><strong>Opera (Version 9 and higher):</strong> <em>%USERPROFILE%\Local Settings\Application Data\Opera\Opera\profile\cache*</em></li>
</ul>
<p><a name="step4"></a><strong>Step 4 (optional)</strong> &#8211; You may also want to secure the system&#8217;s global Temp directory &#8211; if you are paranoid, like I am:</p>
<p><strong>System Temp:</strong> <em>%windir%\Temp</em></p>
<p>&#8230;of course, this may depend on if you configured the system temporary directory to another folder other than C:\Windows\Temp.</p>
<p><a name="step5"></a><strong>Step 5</strong> &#8211; Congratulations, you are now finished.</p>
<p class="note">When you download a executable from the internet, you will now have to SAVE it instead of opening/running it directly. The Open/Run function will download the file to your temporary internet files (cache) and run it from there &#8211; which it is now NOT allowed to do. This DOES NOT affect non-executable files like ZIP archives and such.</p>
<p>You can reboot if you want, but there is no need to &#8211; Software Restriction Policies do not require a reboot of the system. Go ahead and try out your new setup. For instance, go download <a href="http://the.earth.li/~sgtatham/putty/latest/x86/putty.exe">PuTTY</a> (SSH client), or any other executable file &#8211; such as the new AOL setup &#8211; and click Open/Run from the dialog box instead of save. You will be greeted with the following error message dialog box (or whatever your browser reports):</p>
<div id="attachment_26" class="wp-caption aligncenter" style="width: 523px"><img class="size-full wp-image-26" src="http://www.paranoid-admin.net/wp-content/uploads/2009/06/gpedit-srrules-disallowedexecution1.png" alt="Software Restriction Policy - Disallowed Execution" width="513" height="122" /><p class="wp-caption-text">Software Restriction Policy - Disallowed Execution</p></div>
<p>Your browser&#8217;s cache is now secured.</p>
<p class="warning">This does NOT protect you from downloading and saving mysterious files, then running them YOURSELF. To protect your computer from yourself AND other users downloading files and running them, your account should be a limited user.</p>
<p>Enjoy surfing without having to worry about garbage being installed in the background. It should also be noted, that Software Restriction Policies apply to ANY type of software, not just browsers. Be creative and explore.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.paranoid-admin.net/security/2009/06/01/secure-your-browsers-cache/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
	</channel>
</rss>
