<?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>Praetorian Prefect &#187; tutorial</title>
	<atom:link href="http://praetorianprefect.com/archives/tag/tutorial/feed/" rel="self" type="application/rss+xml" />
	<link>http://praetorianprefect.com</link>
	<description>Information security, a little slower...a little deeper</description>
	<lastBuildDate>Thu, 29 Jul 2010 16:38:31 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Using Group Policy to Disable JavaScript in Adobe PDF Files</title>
		<link>http://praetorianprefect.com/archives/2010/01/disable-acrobat-reader-pdf-in-the-enterprise/</link>
		<comments>http://praetorianprefect.com/archives/2010/01/disable-acrobat-reader-pdf-in-the-enterprise/#comments</comments>
		<pubDate>Thu, 14 Jan 2010 03:37:42 +0000</pubDate>
		<dc:creator>Simon Price</dc:creator>
				<category><![CDATA[windows]]></category>
		<category><![CDATA[adobe]]></category>
		<category><![CDATA[pdf]]></category>
		<category><![CDATA[tutorial]]></category>

		<guid isPermaLink="false">http://praetorianprefect.com/?p=2856</guid>
		<description><![CDATA[We have previously <a href="http://praetorianprefect.com/archives/2009/12/disabling-javascript-on-adobe-acrobat/">posted instructions</a> for users to disable JavaScript, giving them the option to enable it only when necessary. However, if you have made the decision to make this change across your enterprise or to a specific user base, this manual process is not practical. Therefore, a Group Policy Object is best to handle the task at hand.]]></description>
			<content:encoded><![CDATA[<p><a href="http://praetorianprefect.com/wp-content/uploads/2010/01/adobelq.png"><img src="http://praetorianprefect.com/wp-content/uploads/2010/01/adobelq.png" alt="adobelq" title="adobelq" width="43" height="72" class="alignleft size-full wp-image-3000" /></a></p>

<p>Adobe’s implementation of Javascript in PDF documents, referred to as <a href="http://www.adobe.com/devnet/acrobat/pdfs/Acro6JSGuide.pdf">Acrobat JavaScript</a>, appears to have been originally introduced based on the popularity of PDF eForms. Javascript allows for some dynamic behaviors in PDF’s, including calculations, responses to user actions, user data validation, and the integration of other dynamic capabilities.</p>

<p>We have previously <a href="http://praetorianprefect.com/archives/2009/12/disabling-javascript-on-adobe-acrobat/">posted instructions</a> for users to disable JavaScript, giving them the option to enable it only when necessary. However, if you have made the decision to make this change across your enterprise or to a specific user base, this manual process is not practical. Therefore, a Group Policy Object is best to handle the task at hand.</p>

<p>The following is a custom ADM file</p>

<pre><code>CLASS USER

CATEGORY "Adobe Reader"
     POLICY "Version 8.0 JavaScript Settings"
        KEYNAME "SOFTWARE\Adobe\Acrobat Reader\8.0\JSPrefs" 
        PART "Enable JavaScript"
            CHECKBOX
            VALUENAME "bEnableJS"
            VALUEON NUMERIC 1
            VALUEOFF NUMERIC 0
        END PART
        PART "Enable menu items JavaScript execution privileges" 
            CHECKBOX
            VALUENAME "bEnableMenuItems"
            VALUEON NUMERIC 1
            VALUEOFF NUMERIC 0
        END PART
        PART "Enable global object security policy"
            CHECKBOX
            VALUENAME "bEnableGlobalSecurity"
            VALUEON NUMERIC 1
            VALUEOFF NUMERIC 0
        END PART
        PART "Debugger: Show console on errors and messages"
            CHECKBOX
            VALUENAME "bConsoleOpen"
            VALUEON NUMERIC 1
            VALUEOFF NUMERIC 0
        END PART
    END POLICY
    POLICY "Version 9.0 JavaScript Settings"
        KEYNAME "SOFTWARE\Adobe\Acrobat Reader\9.0\JSPrefs" 
        PART "Enable JavaScript"
            CHECKBOX
            VALUENAME "bEnableJS"
            VALUEON NUMERIC 1
            VALUEOFF NUMERIC 0
        END PART
        PART "Enable menu items JavaScript execution privileges" 
            CHECKBOX
            VALUENAME "bEnableMenuItems"
            VALUEON NUMERIC 1
            VALUEOFF NUMERIC 0
        END PART
        PART "Enable global object security policy"
            CHECKBOX
            VALUENAME "bEnableGlobalSecurity"
            VALUEON NUMERIC 1
            VALUEOFF NUMERIC 0
        END PART
        PART "Debugger: Show console on errors and messages"
            CHECKBOX
            VALUENAME "bConsoleOpen"
            VALUEON NUMERIC 1
            VALUEOFF NUMERIC 0
        END PART
    END POLICY
END CATEGORY
</code></pre>

<p>Note: If you use the newer admx/adml for custom group policy, you can implement these settings as well. You can find the ADMX syntax guide <a href="http://www.microsoft.com/downloads/en/confirmation.aspx?familyId=b0628355-baa2-4565-80a4-467245db9e28&amp;displayLang=en">here</a>.</p>

<p>Save the custom ADM file where your GPO editor can browse to it. In Computer Configuration, Administrative Templates, right click and select Add/Remove templates. Once you add the template, if you are using XP/2003 you&#8217;ll have to ensure your filtering is setup to see &#8220;unmanaged&#8221; group policies, which are basically custom ADM entries which tattoo the registry. Under filtering, in your GPO editor, uncheck the option as shown:</p>

<div id="attachment_374" class="wp-caption alignnone" style="width: 393px"><a href="http://praetorianprefect.com/wp-content/uploads/2009/07/gpedit23.jpg"><img src="http://praetorianprefect.com/wp-content/uploads/2009/07/gpedit23.jpg" alt="gpedit" title="gpedit23" width="383" height="370" class="size-full wp-image-374" /></a><p class="wp-caption-text">gpedit</p></div><br /></p>

<p>Once the ADM is added, and the filter option is cleared, you will see the configuration entries for Adobe Reader. Note in the figure there are settings for both versions 8 and 9. I had to separate these since the registry locations differ based on versions, but you can edit the ADM file to just have the version you are using.</p>

<p><div id="attachment_2858" class="wp-caption aligncenter" style="width: 485px"><a href="http://praetorianprefect.com/wp-content/uploads/2010/01/ScreenHunter_03-Jan.-07-18.44.gif"><img src="http://praetorianprefect.com/wp-content/uploads/2010/01/ScreenHunter_03-Jan.-07-18.44.gif" alt="Adobe Settings in GPO" title="ScreenHunter_03 Jan. 07 18.44" width="550"  class="size-full wp-image-2858" /></a><p class="wp-caption-text">Adobe Settings in GPO</p></div>

<p>When configuring the GPO setting, you have four options in the form of checkboxes, which mirrors the JavaScript settings in the Adobe Reader preferences pane. Here, you would choose to have the global object security policy enabled and the other three settings disabled (note that JavaScript is the first setting).</p>

<div id="attachment_2866" class="wp-caption aligncenter" style="width: 310px"><a href="http://praetorianprefect.com/wp-content/uploads/2010/01/ScreenHunter_05-Jan.-07-18.55.gif"><img src="http://praetorianprefect.com/wp-content/uploads/2010/01/ScreenHunter_05-Jan.-07-18.55-300x275.gif" alt="Detailed settings" title="ScreenHunter_05 Jan. 07 18.55" width="300" height="275" class="size-medium wp-image-2866" /></a><p class="wp-caption-text">Detailed settings</p></div>

<p>With the GPO settings configured, you can link it to an organization unit (OU), a site, or a domain to deploy it. Remember that it is a user side GPO, so your user objects where the GPO is linked in AD will apply these settings.</p>

<p><strong>Related Posts:</strong></p>
<ul>
<li><a href="http://praetorianprefect.com/archives/2010/03/3473/">March&#8217;s Patch Tuesday</a></li>
<li><a href="http://praetorianprefect.com/archives/2010/03/press-f1-for-help-pwned/">Press F1 for Help, pwned.</a></li>
<li><a href="http://praetorianprefect.com/archives/2009/12/regular-or-decaf-tool-launched-to-combat-cofee/">Regular or Decaf? Tool launched to combat COFEE</a></li>
<li><a href="http://praetorianprefect.com/archives/2009/12/six-bulletins-in-last-patch-tuesday-of-2009/">Six Bulletins in Last Patch Tuesday of 2009</a></li>
<li><a href="http://praetorianprefect.com/archives/2009/11/how-to-crash-windows-7-and-server-2008/">Remote SMB Exploit: Crashing Windows 7 and Server 2008</a></li>
</ul><br />
]]></content:encoded>
			<wfw:commentRss>http://praetorianprefect.com/archives/2010/01/disable-acrobat-reader-pdf-in-the-enterprise/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
