<?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; Simon Price</title>
	<atom:link href="http://praetorianprefect.com/archives/author/simonprice/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>May&#8217;s Patch Tuesday</title>
		<link>http://praetorianprefect.com/archives/2010/05/mays-patch-tuesday/</link>
		<comments>http://praetorianprefect.com/archives/2010/05/mays-patch-tuesday/#comments</comments>
		<pubDate>Tue, 11 May 2010 22:46:23 +0000</pubDate>
		<dc:creator>Simon Price</dc:creator>
				<category><![CDATA[Security]]></category>

		<guid isPermaLink="false">http://praetorianprefect.com/?p=3915</guid>
		<description><![CDATA[
After a busy April patch month, May&#8217;s patch Tuesday proves to be much quieter with two updates released by Microsoft. Although deemed critical, read the details below to see how your environment may or may not be affected.

Microsoft Updates



ID: MS10-030
Title: Vulnerability in Outlook Express and Windows Mail Could Allow Remote Code Execution 
Microsoft Severity: Critical

Summary: [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://praetorianprefect.com/wp-content/uploads/2010/03/msft_logo.jpg"><img src="http://praetorianprefect.com/wp-content/uploads/2010/03/msft_logo.jpg" alt="msft_logo" title="msft_logo" width="50" height="50" class="alignleft size-full wp-image-3484" /></a>
After a busy April patch month, May&#8217;s patch Tuesday proves to be much quieter with two updates released by Microsoft. Although deemed critical, read the details below to see how your environment may or may not be affected.</p>

<h3>Microsoft Updates</h3>

<hr />

<p><strong>ID:</strong> <a href="http://www.microsoft.com/technet/security/Bulletin/MS10-030.mspx">MS10-030</a><br />
<strong>Title:</strong> Vulnerability in Outlook Express and Windows Mail Could Allow Remote Code Execution <br />
<strong>Microsoft Severity:</strong> Critical<br /></p>

<p><strong>Summary:</strong> A vulnerability exists in Outlook Express and Window Mail caused by an insufficient validation of network data before using the data to calculate the necessary size of a buffer. An attacker can exploit the vulnerability by tricking a user to initiate a connection to a malicious POP or IMAP server.<br /></p>

<p><strong>Praetorian&#8217;s Recommendation:</strong> The critical severity is due to the potential for remote code execution, however their are a few key points here to mitigate the severity. First, the mail clients affected are Outlook Express and Windows Mail, Office Outlook is not affected. Second, the client must initiate a connection to a malicious server. In an corporate or enterprise environment, the egress points should restrict outbound POP and IMAP, or the desktop environment should restrict the server settings from being modified.<br /></p>

<hr />

<p><strong>ID:</strong> <a href="http://www.microsoft.com/technet/security/Bulletin/MS10-031.mspx">MS10-031</a><br />
<strong>Title:</strong> Vulnerability in Microsoft Visual Basic for Applications Could Allow Remote Code Execution <br />
<strong>Microsoft Severity:</strong> Critical<br /></p>

<p><strong>Summary:</strong> A vulnerability exists in Visual Basic for applications which can lead to remote code execution. An attacker can create a malicious Office file (Word, Excel) which exploits the VBA vulnerability.<br /></p>

<p><strong>Praetorian&#8217;s Recommendation:</strong> A user would need to open a malicious file to be expoited, therefore, continued emphasis on user training on handling email attachments and web content is necessary. Prepare this update for your next MS Office patch cycle.<br /></p>

<hr />

<p><strong>Related Posts:</strong></p>
<ul>
<li><a href="http://praetorianprefect.com/archives/2010/06/iphone-4-ordering-and-session-switching/">iPhone 4 Ordering and Session Switching</a></li>
<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/2010/01/first-patch-tuesday-of-2010/">First Patch Tuesday of 2010</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>
</ul><br />
]]></content:encoded>
			<wfw:commentRss>http://praetorianprefect.com/archives/2010/05/mays-patch-tuesday/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>WinPE 3.0 &amp; Forensics</title>
		<link>http://praetorianprefect.com/archives/2010/04/winpe-3-0-forensics/</link>
		<comments>http://praetorianprefect.com/archives/2010/04/winpe-3-0-forensics/#comments</comments>
		<pubDate>Mon, 12 Apr 2010 22:46:49 +0000</pubDate>
		<dc:creator>Simon Price</dc:creator>
				<category><![CDATA[Forensics]]></category>
		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://praetorianprefect.com/?p=3608</guid>
		<description><![CDATA[It is a common task for an investigator to boot a machine using bootable media in the form of DVD or USB and there are countless options available. This tutorial is not intended to replace your favorite Helix CD or preferred method, but you may find this analysis interesting if you are a Windows expert performing a forensics analysis.]]></description>
			<content:encoded><![CDATA[<p><a href="http://praetorianprefect.com/wp-content/uploads/2010/04/glass1.png"><img src="http://praetorianprefect.com/wp-content/uploads/2010/04/glass1-150x150.png" alt="glass1" title="glass1" width="150" height="150" class="alignleft size-thumbnail wp-image-3711" /></a></p>

<p>It is a common task for a computer forensics investigator to boot a machine using boot-able media in the form of DVD or USB and there are countless options available. This tutorial is not intended to replace your favorite Helix CD or preferred method, but you may find this analysis interesting if you are a Windows expert performing a forensics analysis.</p>

<p>Windows PE (Pre-installation Environment) is a minimal Win32 based operating system, typically used for automating deployments by booting into PE via local or PXE boot methods and then imaging or running installations of various operating systems. Version 3.0 of PE included in the latest Windows Automated Installation Kit (AIK) is based on the Windows 7 kernel.</p>

<h3>Getting Started</h3>

<p>To get started, you need the AIK which can be downloaded from <a href="http://www.microsoft.com/downloads/details.aspx?familyid=696DD665-9F76-4177-A811-39C26D3B3B34&amp;displaylang=en">the Microsoft web site</a>. After the installation, you will need to begin working on creating and customizing a WinPE image for your forensics boot disc/drive.</p>

<h4>Make WinPE into WinFE</h4>

<p>If you used WinPE as is and booted it up, it would mount available disks and may lead you in the wrong direction in terms of preserving evidence by changing the state of the drives. WinFE, which stands for Windows Forensics Environment, is based on a document written by Troy Larson, a Forensics Specialist at Microsoft. When this <a href="http://www.twine.com/item/113421dk0-g99/windows-fe">document</a> was written, it was geared toward WinPE 2.1, so there are a few differences in some of the steps I will document in this post, which is intended for version 3.0.</p>

<p>The point of WinFE is that the PE environment boots without mounting physical disks. You can then use imaging tools to capture the disk or mount it in read-only mode to run some tools against the target OS immediately without modification to data in the environment, which in this case could be evidence.</p>

<h4>Let&#8217;s get to it</h4>

<div id="attachment_3623" class="wp-caption alignright" style="width: 185px"><a href="http://praetorianprefect.com/wp-content/uploads/2010/04/copype.jpg"><img src="http://praetorianprefect.com/wp-content/uploads/2010/04/copype-150x150.jpg" alt="copype" title="copype" width="175" height="150" class="alignright size-thumbnail wp-image-3614" /></a><p class="wp-caption-text">CopyPE Command</p></div>

<p>Begin by launching the Deployment Tools Command Prompt (as an administrator). In the following examples, I am using c:\temp\winFE as the path where my PE image is processed, built, etc. The first step is to generate the basic structure and .wim file:</p>

<pre><code>copype.cmd x86 c:\temp\winFE
</code></pre>

<p>This command will create the Windows PE customization working directory. The next step is to mount the default image file so that you can then make some necessary changes: including changing the registry settings to ensure disks are not mounted at bootup and to add any tools or software you need. AIK Version 3.0 includes dism.exe, which replaces peimg.exe, and can be used to mount and unmount images like imagex.exe:</p>

<pre><code>Dism /Mount-Wim /WimFile:c:\temp\winFE\winpe.wim /index:1 /MountDir:c:\temp\winFE\mount
</code></pre>

<div id="attachment_3623" class="wp-caption alignright" style="width: 310px"><a href="http://praetorianprefect.com/wp-content/uploads/2010/04/dism-mount.jpg"><img src="http://praetorianprefect.com/wp-content/uploads/2010/04/dism-mount-300x50.jpg" alt="Mounting Image" title="dism-mount" width="300" height="50" class="size-medium wp-image-3623" /></a><p class="wp-caption-text">Mounting Image</p></div>

<p>This command mounts the PE image in the c:\temp\winfe\mount directory. If you navigate there, you&#8217;ll see a Windows directory which is the instance of PE that will boot when you finish the process. We need to make some registry changes to the PE registry to prevent mounting disks on start up.</p>

<ul>
<li>Open up the registry editor, highlight HKEY_LOCAL_MACHINE and click on File, Load Hive. </li>
<li>Browse to the mounted PE image and in the Windows\System32\Config directory, choose the file SYSTEM (no extension). </li>
<li>Choose a friendly name such as PE-System.</li>
</ul>

<p>Now under HKEY_LOCAL_MACHINE there will be another hive called PE-System. Make the following changes in this hive:</p>

<ul>
<li>Add NoAutoMount key to \ControlSet001\Services\MountMgr\ with a DWORD value 1</li>
<li>Add SanPolicy key to \ControlSet001\Services\partmgr\Parameters with a DWORD value 3</li>
</ul>

<p>Unload the hive by selecting it and clicking on File, Unload Hive.</p>

<h4>Branding</h4>

<p>Now with our registry changes made, we can make any additional customizations prior to closing up the image. You can &#8220;brand&#8221; your forensics boot with custom wallpaper by adding winpe.bmp to the mount\Windows\System32 directory.</p>

<h4>Required Tools</h4>

<p>With the image mounted, anything you add to c:\temp\winFE\mount (or if you modified it, the directory you used for the mount) will be a part of the image and boot with your PE boot. For example, I like to create a Tools directory under mount, and in there place tools such as FTK Imager Lite, dd, and netcat. You can of course add any tools of your choice.</p>

<p>If you are familiar with <a href="http://www.regripper.net/">Regripper</a>, this would be a good place to have it as you can get some information from the registry before starting any imaging process. You can add a portable version of Perl, such as <a href="http://strawberryperl.com/releases.html">Strawberry Perl</a> to the tools directory, and add the Regripper tools. I&#8217;ll show Regripper in an example later when booting WinFE.</p>

<p>For tools that require a CYGWIN environment, you can add <a href="http://sourceforge.net/projects/cygwinportable/">use this</a> portable version of CYGWIN and have this environment available in PE.</p>

<h4>Custom Scripts</h4>

<p>Being that this is a Windows environment, you can write some VBS/WMI scripts to gather some information as well. Since WMI is not added by default to the base WinPE image, you have to add this package:</p>

<pre><code>dism.exe /image:c:\temp\winFE\mount /add-package
/packagepath:"c:\Program Files\Windows AIK\Tools\PETools\x86\winpe-wmi.cab"
</code></pre>

<div id="attachment_3640" class="wp-caption aligncenter" style="width: 310px"><a href="http://praetorianprefect.com/wp-content/uploads/2010/04/wmi-add.jpg"><img src="http://praetorianprefect.com/wp-content/uploads/2010/04/wmi-add-300x73.jpg" alt="Adding WMI Package" title="wmi-add" width="300" height="73" class="size-medium wp-image-3640" /></a><p class="wp-caption-text">Adding WMI Package</p></div>

<p>I also added hta and scripting support:</p>

<pre><code>dism.exe /image:c:\temp\winFE\mount /add-package
/packagepath:"c:\Program Files\Windows AIK\Tools\PETools\x86\winpe-hta.cab"
/packagepath:"c:\Program Files\Windows AIK\Tools\PETools\x86\winpe-scripting.cab"
</code></pre>

<div id="attachment_3656" class="wp-caption aligncenter" style="width: 310px"><a href="http://praetorianprefect.com/wp-content/uploads/2010/04/scripting-hta-add.jpg"><img src="http://praetorianprefect.com/wp-content/uploads/2010/04/scripting-hta-add-300x95.jpg" alt="Add Scripting and HTA packages" title="scripting-hta-add" width="300" height="95" class="size-medium wp-image-3656" /></a><p class="wp-caption-text">Add Scripting and HTA packages</p></div>

<p>Here are two examples of some WMI queries you can use in your forensics boot:</p>

<ul>
<li><a href='http://praetorianprefect.com/wp-content/uploads/2010/04/BIOS.txt'>BIOS.vbs</a> &#8211; Retrieves information about the system BIOS.</li>
<li><a href='http://praetorianprefect.com/wp-content/uploads/2010/04/disk.txt'>disk.vbs</a> &#8211; Retrieves information about disks.</li>
</ul>

<h4>Powershell?</h4>

<p>A major issue I have with WinPE is Microsoft&#8217;s failure to provide a supported dotNet option. This removes any possibility of using powershell or creating custom applications with VB.Net. This leaves us with vbs/wmi/VB6 until dotNet support is available.</p>

<h4>Finalize the Image</h4>

<p>Once the registry changes are made and you&#8217;ve added all your tools and software into the mounted directory, you write and close the image:</p>

<div id="attachment_9999" class="wp-caption alignright" style="width: 310px"><a href="http://praetorianprefect.com/wp-content/uploads/2010/04/dism-unmount.jpg"><img src="http://praetorianprefect.com/wp-content/uploads/2010/04/dism-unmount-300x78.jpg" alt="Unmount the Image" title="Unmount the Image" width="300" height="78" class="alignright size-medium wp-image-3667" /></a><p class="wp-caption-text">Unmount the Image</p></div>

<pre><code>Dism /Unmount-Wim /MountDir:C:\winpe_x86\mount\ /Commit
</code></pre>

<p>Note that this isn&#8217;t final, you can always mount the image again, make changes, add new analysis software, etc. using the same steps above, then commit the changes and create a new ISO file.</p>

<p>Copy the resulting winpe.wim file (c:\temp\winfe) into ISO\Sources\boot.wim:</p>

<pre><code>copy c:\temp\winfe\winpe.wim c:\temp\winfe\iso\sources\boot.wim /Y
</code></pre>

<h3>Generate the ISO</h3>

<p>With our image ready, it&#8217;s time to generate the ISO. First, we don&#8217;t want the usual &#8220;Hit any key to boot from CD message&#8221; as we don&#8217;t want to risk booting from the local disks. To eliminate this message, delete the file bootfix.bin from the ISO\boot directory (c:\temp\winFE\ISO\boot).</p>

<pre><code>oscdimg -n -bc:\temp\winFE\etfsboot.com c:\temp\winFE\ISO c:\temp\winFE\forensics-boot.iso
</code></pre>

<p>This ISO file can now be burned to CD/DVD or used in a VM environment to test it out. If you intend to use a USB drive, you can prepare it by doing the following:</p>

<ul>
<li>In a command prompt, run diskpart

<ul>
<li>select disk #  (the # should refer to the USB disk, use &#8220;list disk&#8221; to determine)</li>
<li>clean</li>
<li>create partition primary</li>
<li>select partition 1</li>
<li>active</li>
<li>format fs=fat32</li>
<li>assign</li>
</ul></li>
<li>Then, copy the contents of the ISO directory to the USB disk

<ul>
<li>xcopy c:\temp\winFE&#92;iso&#92;&#42;.&#42; /s /e /f e:\ (change e: to reflect the drive of your USB key)</li>
</ul></li>
</ul>

<h3>Let&#8217;s Boot</h3>

<div id="attachment_3673" class="wp-caption alignleft" style="width: 310px"><a href="http://praetorianprefect.com/wp-content/uploads/2010/04/booting.jpg"><img src="http://praetorianprefect.com/wp-content/uploads/2010/04/booting-300x233.jpg" alt="Booting WinFE" title="booting" width="300" height="233" class="size-medium wp-image-3673" /></a><p class="wp-caption-text">Booting WinFE</p></div>
<br /></p>

<p>Take your WinFE boot-ready device and boot a workstation, VM, or machine of your choice. I had a Windows XP VMWare instance which was my target device to investigate. I configured VMWare to use the ISO for the CD-ROM device and rebooted it.</p>

<p>At first glance, it will look just like Windows 7 booting. Remember, WinPE 3.0 is based on the Windows 7 kernel. When booted, your custom wallpaper configured earlier in the post will display with a command prompt and you will be in the \Windows\System32 directory. This directory is part of the PE operating system, not the target OS which we will analyze. Change to the root directory and will you will see any directories created (such as Tools) when we customized the PE. 
<br /><br /><br /><br /></p>

<p><div id="attachment_3675" class="wp-caption alignright" style="width: 310px"><a href="http://praetorianprefect.com/wp-content/uploads/2010/04/diskpart-list.jpg"><img src="http://praetorianprefect.com/wp-content/uploads/2010/04/diskpart-list-300x116.jpg" alt="Checking drives in Diskpart" title="diskpart-list" width="300" height="116" class="size-medium wp-image-3675" /></a><p class="wp-caption-text">Checking drives in Diskpart</p></div>
<br /><br /></p>

<p>We can double check that the registry key worked and did not mount our target drive. Run diskpart, then type &#8220;list vol&#8221;. You will see a Volume which is Offline and has no drive letter, perhaps more than one. These are drives we may want to mount read-only and analyze. My VM has a single 8GB drive which is Volume 1, so that is my target.
<br /><br /></p>

<p><div id="attachment_3681" class="wp-caption alignright" style="width: 310px"><a href="http://praetorianprefect.com/wp-content/uploads/2010/04/diskpart-readonly.jpg"><img src="http://praetorianprefect.com/wp-content/uploads/2010/04/diskpart-readonly-300x191.jpg" alt="Set your disk to Read-only" title="diskpart-readonly" width="300" height="191" class="size-medium wp-image-3681" /></a><p class="wp-caption-text">Set your disk to Read-only</p></div>

<p>Let&#8217;s get this mounted in read-only mode so we can poke around and get some preliminary information prior to imaging. In diskpart, select the target volume (select vol), then set it to readonly (att vol set readonly). Now we can double check with the &#8220;detail vol&#8221; command where &#8216;Read-only&#8217; should specify &#8216;Yes&#8217;. We can mount this by assigning a drive letter (let&#8217;s assign letter=F). The F: drive is not available in read-only mode, preserving the evidence but giving access to the data that can be beneficial. In testing this process, try to write to the mounted drive (see screenshot for example). The message will come back &#8220;The media is write protected&#8221; if everything is set up properly.</p>

<h3>Analyze This</h3>

<p>Depending on how you customized your WinFE image, and what tools you added, you have many options to gather some information that can be useful prior to the potential time consuming imaging process. I mentioned RegRipper before, this tool can be used to get valuable information from the registry of our target. You could use other varieed tools to gather initial data or go straight to imaging software such as FTK Imager Lite. Here are some screenshots of the various tools running in WinFE:</p>

<div id="attachment_3689" class="wp-caption alignleft" style="width: 310px"><a href="http://praetorianprefect.com/wp-content/uploads/2010/04/rr.jpg"><img src="http://praetorianprefect.com/wp-content/uploads/2010/04/rr-300x234.jpg" alt="RegRipper in WinFE w/ Strawberry Perl" title="rr" width="300" height="234" class="size-medium wp-image-3689" /></a><p class="wp-caption-text">RegRipper in WinPE w/ Strawberry Perl</p></div>
<div id="attachment_3692" class="wp-caption alignright" style="width: 310px"><a href="http://praetorianprefect.com/wp-content/uploads/2010/04/ftk.jpg"><img src="http://praetorianprefect.com/wp-content/uploads/2010/04/ftk-300x235.jpg" alt="FTK Imager Lite" title="ftk" width="300" height="235" class="size-medium wp-image-3692" /></a><p class="wp-caption-text">FTK Imager Lite</p></div>
<br /><br /></p>

<p><div id="attachment_3694" class="wp-caption alignleft" style="width: 310px"><a href="http://praetorianprefect.com/wp-content/uploads/2010/04/cygwin.jpg"><img src="http://praetorianprefect.com/wp-content/uploads/2010/04/cygwin-300x234.jpg" alt="CygWin in WinFE" title="cygwin" width="300" height="234" class="size-medium wp-image-3694" /></a><p class="wp-caption-text">CygWin in WinFE</p></div>

<div id="attachment_3697" class="wp-caption alignright" style="width: 310px"><a href="http://praetorianprefect.com/wp-content/uploads/2010/04/fau.jpg"><img src="http://praetorianprefect.com/wp-content/uploads/2010/04/fau-300x234.jpg" alt="VolumeDump from George M. Garner Jr&#039;s FAU" title="fau" width="300" height="234" class="size-medium wp-image-3697" /></a><p class="wp-caption-text">VolumeDump from George M. Garner Jr's FAU</p></div>

<h3>Finally</h3>

<p>Ultimately, this was an exercise in reviewing ways that WinPE can be used for forensic purposes. It is another option to be aware of, and for those who are more apt to a Microsoft environment this may be your preferred boot method. Hopefully, Microsoft will create a dotNet cab file that can be added as a package to WinPE, as this would create further options for creating Win32 dotNet programs to run within the WinFE environment and opening up Powershell for scripting within WinPE.</p>

<hr />

<h3>UPDATES</h3>

<p>16 April 2010 &#8211; Brett Shavers shared a <a href="http://www.forensicfocus.com/downloads/WinFE.pdf">link</a> with us that includes a great instructional PDF and even a batch file to create the WinFE ISO for you.</p>

<p><strong>Related Posts:</strong></p>
<ul>
<li><a href="http://praetorianprefect.com/archives/2009/12/reactivating-decaf-in-two-minutes/">Reactivating DECAF in Two Minutes</a></li>
<li><a href="http://praetorianprefect.com/archives/2009/12/forensics-beverages-aside-a-look-at-incident-response-tools/">Forensics: Beverages Aside, A Look at Incident Response Tools</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/11/taxonomy-of-forensics-geeks/">Taxonomy of Forensics Geeks</a></li>
<li><a href="http://praetorianprefect.com/archives/2009/11/more-cofee-please-on-second-thought/">More COFEE Please, on Second Thought&hellip;</a></li>
</ul><br />
]]></content:encoded>
			<wfw:commentRss>http://praetorianprefect.com/archives/2010/04/winpe-3-0-forensics/feed/</wfw:commentRss>
		<slash:comments>15</slash:comments>
		</item>
		<item>
		<title>Microsoft IE 6 &amp; 7 Zero-day (Aside)</title>
		<link>http://praetorianprefect.com/archives/2010/03/microsoft-ie-6-7-zero-day-aside/</link>
		<comments>http://praetorianprefect.com/archives/2010/03/microsoft-ie-6-7-zero-day-aside/#comments</comments>
		<pubDate>Tue, 09 Mar 2010 22:00:45 +0000</pubDate>
		<dc:creator>Simon Price</dc:creator>
				<category><![CDATA[Asides]]></category>

		<guid isPermaLink="false">http://praetorianprefect.com/?p=3489</guid>
		<description><![CDATA[A blog post on the MSRC web site warned of a new zero-day in Internet Explorer versions 6 and 7 running on Windows XP, Windows 2000, or Windows 2003. The post references Security Advisory (981374), and at this time there aren&#8217;t many details about the vulnerability other than what MS has stated in the advisory.

Related [...]]]></description>
			<content:encoded><![CDATA[<p>A <a href="http://blogs.technet.com/msrc/archive/2010/03/09/security-advisory-981374-released.aspx">blog post</a> on the MSRC web site warned of a new zero-day in Internet Explorer versions 6 and 7 running on Windows XP, Windows 2000, or Windows 2003. The post references <a href="http://www.microsoft.com/technet/security/advisory/981374.mspx">Security Advisory (981374)</a>, and at this time there aren&#8217;t many details about the vulnerability other than what MS has stated in the advisory.</p>

<p><strong>Related Posts:</strong></p>
<ul>
<li><a href="http://praetorianprefect.com/archives/2010/01/microsoft-posts-advanced-notification-for-out-of-band-patch/">Microsoft Posts Advanced Notification for Out of Band Patch</a></li>
<li><a href="http://praetorianprefect.com/archives/2010/01/smb-bug-wont-be-patched-in-january/">SMB Bug won&#8217;t be patched in January</a></li>
<li><a href="http://praetorianprefect.com/archives/2009/11/taxonomy-of-forensics-geeks/">Taxonomy of Forensics Geeks</a></li>
<li><a href="http://praetorianprefect.com/archives/2009/11/1566/">What DNS is not</a></li>
<li><a href="http://praetorianprefect.com/archives/2009/10/replace-watch-swf-with-warp-swf-on-youtube/">Replace watch.swf with warp.swf on YouTube</a></li>
</ul><br />
]]></content:encoded>
			<wfw:commentRss>http://praetorianprefect.com/archives/2010/03/microsoft-ie-6-7-zero-day-aside/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>March&#8217;s Patch Tuesday</title>
		<link>http://praetorianprefect.com/archives/2010/03/3473/</link>
		<comments>http://praetorianprefect.com/archives/2010/03/3473/#comments</comments>
		<pubDate>Tue, 09 Mar 2010 20:38:40 +0000</pubDate>
		<dc:creator>Simon Price</dc:creator>
				<category><![CDATA[Administration]]></category>
		<category><![CDATA[Patch Management]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[windows]]></category>
		<category><![CDATA[excel]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[office]]></category>
		<category><![CDATA[office for mac]]></category>
		<category><![CDATA[patch]]></category>
		<category><![CDATA[patch tuesday]]></category>
		<category><![CDATA[updates]]></category>

		<guid isPermaLink="false">http://praetorianprefect.com/?p=3473</guid>
		<description><![CDATA[<a href="http://praetorianprefect.com/wp-content/uploads/2010/03/msft_logo.jpg"><img src="http://praetorianprefect.com/wp-content/uploads/2010/03/msft_logo.jpg" alt="msft_logo" title="msft_logo" width="150" height="150" class="alignleft size-full wp-image-3484" /></a>

Today is patch Tuesday for March 2010, and Microsoft has released two security bulletins for this round of updates, neither of which are deemed critical. The second bulletin addresses seven different vulnerabilities across various versions of Microsoft Office Excel.]]></description>
			<content:encoded><![CDATA[<p><a href="http://praetorianprefect.com/wp-content/uploads/2010/03/msft_logo.jpg"><img src="http://praetorianprefect.com/wp-content/uploads/2010/03/msft_logo.jpg" alt="msft_logo" title="msft_logo" width="150" height="150" class="alignleft size-full wp-image-3484" /></a></p>

<p>Today is patch Tuesday for March 2010, and Microsoft has released two security bulletins for this round of updates, neither of which are deemed critical. The second bulletin addresses seven different vulnerabilities across various versions of Microsoft Office Excel.</p>

<hr />

<p><strong>ID:</strong> <a href="http://www.microsoft.com/technet/security/bulletin/ms10-016.mspx">MS10-016</a><br />
<strong>Title:</strong> Vulnerabilities in in Windows Movie Maker Could Allow Remote Code Execution<br />
<strong>Microsoft Severity:</strong> Important<br /></p>

<p><strong>Summary:</strong> There is a buffer overflow in the Windows Movie Maker and MS Producer 2003 which can lead to code execution. Movie Maker 2.1 is included with Windows XP SP2 and SP3, and Movie Maker 6.0 is included with Vista. Movie Maker 2.6 is an optional download for Vista and Windows 7.<br /></p>

<p><strong>Praetorian&#8217;s Recommendation:</strong> This is deemed important instead of critical due to the user having to run content which exploits the vulnerability. A user would have to be tricked into opening a Movie Maker project file (mswmm) to be exploited. This can be updated in your next patch cycle, and is not considered urgent. <br /></p>

<hr />

<p><strong>ID:</strong> <a href="http://www.microsoft.com/technet/security/Bulletin/MS10-017.mspx">MS10-017</a><br />
<strong>Title:</strong> Vulnerability in Microsoft Office Excel Could Allow Remote Code Execution<br />
<strong>Microsoft Severity:</strong> Important<br /></p>

<p><strong>Summary:</strong> This update addresses seven different vulnerabilities related to Microsoft Office Excel. Each vulnerability may affect one or more of the following versions: Office Excel 2003 SP3, Office Excel 2003 SP3, Office Excel 2007 SP1 and SP2, Office 2004 for Mac, Office 2008 for Mac, Open XML File Format Converter for Mac, Office Excel Viewer SP1 and SP2, Office Compatibility Pack for Word, Excel, and Powerpoint 2007 File Formats SP1 and SP2, and Office SharePoint Server 2007 SP1 and SP2.<br /></p>

<p><strong>Praetorian&#8217;s Recommendation:</strong> Although the same requirement exists as MS10-016 for users to open malicious files, Excel formats are more recognizable and phishing and social engineering techniques can be more successful with a known or common file format. This can be updated in your next patch cycle, but should warrant more attention than MS10-017.<br /></p>

<hr />

<p><strong>Related Posts:</strong></p>
<ul>
<li><a href="http://praetorianprefect.com/archives/2010/06/iphone-4-ordering-and-session-switching/">iPhone 4 Ordering and Session Switching</a></li>
<li><a href="http://praetorianprefect.com/archives/2010/05/mays-patch-tuesday/">May&#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/2010/02/februarys-patch-tuesday/">February&#8217;s Patch Tuesday</a></li>
<li><a href="http://praetorianprefect.com/archives/2010/01/disable-acrobat-reader-pdf-in-the-enterprise/">Using Group Policy to Disable JavaScript in Adobe PDF Files</a></li>
</ul><br />
]]></content:encoded>
			<wfw:commentRss>http://praetorianprefect.com/archives/2010/03/3473/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Press F1 for Help, pwned.</title>
		<link>http://praetorianprefect.com/archives/2010/03/press-f1-for-help-pwned/</link>
		<comments>http://praetorianprefect.com/archives/2010/03/press-f1-for-help-pwned/#comments</comments>
		<pubDate>Tue, 02 Mar 2010 17:39:54 +0000</pubDate>
		<dc:creator>Simon Price</dc:creator>
				<category><![CDATA[Remote Exploit]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Security Policy]]></category>
		<category><![CDATA[Stay Safe Online]]></category>
		<category><![CDATA[Vulnerability]]></category>
		<category><![CDATA[windows]]></category>
		<category><![CDATA[help system]]></category>
		<category><![CDATA[ie]]></category>
		<category><![CDATA[Internet Explorer]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[winhlp32]]></category>
		<category><![CDATA[zero-day]]></category>

		<guid isPermaLink="false">http://praetorianprefect.com/?p=3444</guid>
		<description><![CDATA[

Microsoft published security advisory 981169 yesterday in response to the zero day vulnerability reported a few days prior. The vulnerability is in the help system and can be triggered by luring an Internet Explorer user into pressing the F1 key. Windows 2000, Windows XP SP2 &#38; SP3, and Windows 2003 SP2 with Internet Explorer 7 [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://praetorianprefect.com/wp-content/uploads/2010/03/Vista_Help_thumb_7AEAB696.png"><img src="http://praetorianprefect.com/wp-content/uploads/2010/03/Vista_Help_thumb_7AEAB696-150x150.png" alt="Vista_Help_thumb_7AEAB696" title="Vista_Help_thumb_7AEAB696" width="125" height="125" class="alignleft size-thumbnail wp-image-3449" /></a></p>

<p>Microsoft published security advisory <a href="http://www.microsoft.com/technet/security/advisory/981169.mspx">981169</a> yesterday in response to the zero day vulnerability reported a few days prior. The vulnerability is in the help system and can be triggered by luring an Internet Explorer user into pressing the F1 key. Windows 2000, Windows XP SP2 &amp; SP3, and Windows 2003 SP2 with Internet Explorer 7 and Internet Explorer 8 are all affected.</p>

<p>Credit to Maurycy Prodeus for publishing the <a href="http://isec.pl/vulnerabilities/isec-0027-msgbox-helpfile-ie.txt">initial details</a> of the vulnerability.</p>

<h3>Details</h3>

<p>Using the MsgBox VBScript function in an html file, an attacker can create a dialog box prompting the user to hit F1, something that is likely not difficult to do with a message such as &#8220;Internet Explorer encountered an error, press F1 to continue&#8221;. The <a href="http://msdn.microsoft.com/en-us/library/sfw6660x(VS.85).aspx">MsgBox</a> function is important as its fourth argument specifies a helpfile parameter, basically which hlp or chm file to launch when the user asks for help via F1.</p>

<p>I created a simple help file with the word &#8220;Test&#8221; using the Microsoft Help Workshop version 4.03. In addition to this, I added the macro to launch a command prompt (cmd.exe). When I double click this file in Windows XP SP3, I get my test helpfile and the command prompt launches as well:</p>

<div id="attachment_3447" class="wp-caption alignright" style="width: 310px"><a href="http://praetorianprefect.com/wp-content/uploads/2010/03/ScreenHunter_02-Mar.-02-11.51.jpg"><img src="http://praetorianprefect.com/wp-content/uploads/2010/03/ScreenHunter_02-Mar.-02-11.51-300x248.jpg" alt="Cmd.exe launched with my Help file." title="ScreenHunter_02 Mar. 02 11.51" width="300" height="248" class="size-medium wp-image-3447" /></a><p class="wp-caption-text">Cmd.exe launched with my Help file.</p></div>

<p>So we now have a .hlp file which executes code. As mentioned before, the MsgBox function has a parameter to specify a help file to launch when the user hits F1. Here is where I come back to a recurring issue of SMB traffic and allowing it outbound on firewalls. In order for the MsgBox parameter to launch the .hlp file, the attacker must point to a local file (which the user would have had to already download) or host a file on an internet accessible SMB share. If you look at the proof of concept code circulating, currently you will see the MsgBox help parameter is &#8220;&#92;x.x.x.x\attackfile.hlp&#8221;, a pointer to a help file on an SMB share. Corporate enterprises should certainly block SMB outbound, and with this vulnerability and the several previous attacks via SMB client, users should be blocking this outbound traffic as well.</p>

<h3>Vista, Windows 7, &amp; Server 2008</h3>

<p>The vulnerability does not work on Vista, Windows 7 and Windows 2008 due to Microsoft no longer including winhlp32.exe with these versions. However, there is an update which can install winhlp32 for these versions (<a href="http://www.microsoft.com/downloads/details.aspx?FamilyID=258aa5ec-e3d9-4228-8844-008e02b32a2c&amp;displaylang=en">Windows 7 Version I installed from here</a>). I found that these updates did not launch the cmd.exe as the Windows XP version did (I also tried Prodeus&#8217;s PoC help file and it displayed but did not run calc.exe). It is possible that Microsoft removed this code execution function from these versions.</p>

<h3>Workarounds</h3>

<p>The warnings are avoid hitting F1 when prompted by websites. Additionally, permissions to winhlp32.exe can be modified so that it doesn&#8217;t execute. In an Active Directory environment, a Group Policy software restriction setting can prohibit winhlp32.exe from launching. As mentioned, I recommend blocking outbound SMB traffic, as there is rarely a justification for mounting a network share on the public internet. This helps with many known vulnerabilities disclosed in the past as well.</p>

<p><strong>Related Posts:</strong></p>
<ul>
<li><a href="http://praetorianprefect.com/archives/2010/07/turning-an-atm-into-a-slot-machine/">Turning an ATM into a Slot Machine</a></li>
<li><a href="http://praetorianprefect.com/archives/2010/06/iphone-4-ordering-and-session-switching/">iPhone 4 Ordering and Session Switching</a></li>
<li><a href="http://praetorianprefect.com/archives/2010/05/thou-shalt-not-send-naked-pictures-to-anyone-ever/">Thou Shalt Not Send Naked Pictures&#8230;To Anyone Ever</a></li>
<li><a href="http://praetorianprefect.com/archives/2010/05/mays-patch-tuesday/">May&#8217;s Patch Tuesday</a></li>
<li><a href="http://praetorianprefect.com/archives/2010/03/iepeers-a-new-internet-explorer-zero-day-vulnerability/">IEPeers &#8211; A New Internet Explorer Zero Day Vulnerability</a></li>
</ul><br />
]]></content:encoded>
			<wfw:commentRss>http://praetorianprefect.com/archives/2010/03/press-f1-for-help-pwned/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>February&#8217;s Patch Tuesday</title>
		<link>http://praetorianprefect.com/archives/2010/02/februarys-patch-tuesday/</link>
		<comments>http://praetorianprefect.com/archives/2010/02/februarys-patch-tuesday/#comments</comments>
		<pubDate>Tue, 09 Feb 2010 22:56:29 +0000</pubDate>
		<dc:creator>Simon Price</dc:creator>
				<category><![CDATA[Patch Management]]></category>
		<category><![CDATA[ActiveX]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[patch tuesday]]></category>
		<category><![CDATA[Remote Exploit]]></category>

		<guid isPermaLink="false">http://praetorianprefect.com/?p=3305</guid>
		<description><![CDATA[Today is patch Tuesday for February 2010, and it marks a fairly busy patch cycle for Microsoft, who released thirteen updates today. In late January, there was an out-of-band release for two critical patches, in response to the high profile issue around the Internet Explorer Aurora exploit. This makes a total of fifteen total patches between since January's patch Tuesday.]]></description>
			<content:encoded><![CDATA[<p><a href="http://praetorianprefect.com/wp-content/uploads/2010/02/msft_logo1.jpg"><img src="http://praetorianprefect.com/wp-content/uploads/2010/02/msft_logo1-150x150.jpg" alt="msft_logo" title="msft_logo" width="150" height="150" class="alignleft size-thumbnail wp-image-3328" /></a></p>

<p>Today is patch Tuesday for February 2010, and it marks a fairly busy patch cycle for Microsoft, who released thirteen updates today. In late January, there was an out-of-band release for two critical patches, in response to the high profile issue around the Internet Explorer Aurora exploit. This makes a total of fifteen total patches between since January&#8217;s patch Tuesday.</p>

<hr />

<p><strong>ID:</strong> MS10-006<br />
<strong>Title:</strong> Vulnerabilities in SMB Client Could Allow Remote Code Execution<br />
<strong>Microsoft Severity:</strong> Critical<br /></p>

<p><strong>Summary:</strong> The update addresses a pool corruption issue and a race condition issue with the Server Message Blocks (SMB) client. The SMB client is responsible for client requests to network file shares. An attacker can obtain remote execution by hosting and directing a user to a malicious SMB share.<br /></p>

<p><strong>Praetorian&#8217;s Recommendation:</strong> The attack requires the client to establish an SMB connection outbound. If you enforce proper egress rules on your firewall, blocking outbound SMB traffic, you are mitigating external threats and the update is less critical. If you allow all ports outbound, apply this patch across all Windows versions as soon as possible.<br /></p>

<hr />

<p><strong>ID:</strong> MS10-007<br />
<strong>Title:</strong> Vulnerability in Windows Shell Handler Could Allow Remote Code Execution<br />
<strong>Microsoft Severity:</strong> Critical<br /></p>

<p><strong>Summary:</strong> A validation input bug exists in the ShellExecute API in Windows 2000, Windows XP, and Windows Server 2003. The vulnerability can allow attackers to execute code as the logged-in user.<br /></p>

<p><strong>Praetorian&#8217;s Recommendation:</strong> For Windows XP, Windows 2000, and Windows Server 2003, update as soon as possible as this vulnerability allows for remote code execution and there are no workarounds outside of the update. For Windows Vista, Windows 7, and Windows Server 2008, please see MS10-002.<br /></p>

<hr />

<p><strong>ID:</strong> MS10-008<br />
<strong>Title:</strong> Cumulative Security Update of ActiveX Kill Bit<br />
<strong>Microsoft Severity: Critical</strong><br /></p>

<p><strong>Summary:</strong> A vulnerability in the Data Analyzer Active-X Control can lead to remote execution. An attacker can host a malicious website to exploit the vulnerability and execute code with the privileges of the logged-in user. In addition, this update includes several kill bits (prevention of loading the ActiveX control) recommended by software vendors, such as Symantec, Google, and Facebook.<br /></p>

<p><strong>Praetorian&#8217;s Recommendation:</strong> Update Windows XP and Windows 2000 as soon as possible. Server platforms have tighter default browsing restrictions, but should still be updated during your next server patch cycle, especially in Terminal Server / Citrix environments. There is a registry setting available to prevent the browser from instantiating the COM object (known as setting the kill bit), but this requires entering the Class ID of the object, therefore the simpler approach of installing the update is recommended.<br /></p>

<hr />

<p><strong>ID:</strong> MS10-009<br />
<strong>Title:</strong> Vulnerabilities in Windows TCP/IP Could Allow Remote Code Execution<br />
<strong>Microsoft Severity:</strong> Critical<br /></p>

<p><strong>Summary:</strong> This update addresses several issues in Windows TCP/IP. Two of them a vulnerabilities in ICMPv6 which allow remote code execution, one is a vulnerability when using custom network drivers that support header MDL fragmentation, and lastly a denial of service vulnerability in TCP/IP due to mishandling malformed selective acknowledgement (SACK) packets. These vulnerabilities affect Windows Vista and Windows Server 2008 (R1 only).<br /></p>

<p><strong>Praetorian&#8217;s Recommendation:</strong> Microsoft calls this update critical due to the remote execution but there are many &#8220;ifs&#8221;. The ICMPv6 vulnerabilities can only be affected if you allow ICMPv6 traffic through your firewall and if your network infrastructure supports IPv6 or the tunneling of IPv6 over the IPv4 network. The incorrect handling of malformed SACK packets causes a denial of service. An attacker would have to host a service to accept the TCP connection, such as a website, and send the malformed SACK packet to the connecting client. With these caveats, the rating should be moderate or important. If you meet the requirements for the ICMPv6 vulnerabilities, then you should update as soon as possible.<br /></p>

<hr />

<p><strong>ID:</strong> MS10-013<br />
<strong>Title:</strong> Vulnerability in Microsoft DirectShow Could Allow Remote Code Execution<br />
<strong>Microsoft Severity:</strong> Critical<br /></p>

<p><strong>Summary:</strong> A vulnerability exists in the way that DirectShow parses AVI files. An attacker can lead a victim via phishing techniques or a malicious website to open a specially crafted AVI file. The attacker can gain remote execution with the same rights as the logged-in user.<br /></p>

<p><strong>Praetorian&#8217;s Recommendation:</strong> All versions of Windows are affected by this vulnerability and should be patched as soon as possible. Since it is less likely that AVI files would be played on server platforms, the workstations and terminal server / Citrix environments should be the priority.<br /></p>

<hr />

<p><strong>ID:</strong> MS10-003<br />
<strong>Title:</strong> Vulnerability in Microsoft Office (MSO) Could Allow Remote Code Execution<br />
<strong>Microsoft Severity:</strong> Important</p>

<p><strong>Summary:</strong> A vulnerability exists in Office XP and Office 2004 for Mac which can lead to remote code execution. A victim would need to open a malicious Office file to be attacked.<br /></p>

<p><strong>Praetorian&#8217;s Recommendation:</strong> This is rated critical due to the remote code execution. Vulnerabilities like this remind us how important user awareness training is for firms. A victim would have to open an Office file that is sent via email by an attacker or hosted on a malicious site. In a browser, the user would be prompted if they want to open the Office file in cases where they are sent a link or redirected. User awareness is important in that users must be trained not to open attachments sent from unknown sources. The criticality of the update may depend on how diligent your users are in prompting IT support before opening suspicious content. Note that only Office XP and Office 2004 for Mac are affected.<br /></p>

<hr />

<p><strong>ID:</strong> MS10-004<br />
<strong>Title:</strong> Vulnerabilities in Microsoft Office PowerPoint Could Allow Remote Code Execution<br />
<strong>Microsoft Severity:</strong> Important<br /></p>

<p><strong>Summary:</strong> This update addresses six remote code execution vulnerabilities in PowerPoint versions included in Office XP, Office 2003, and Office 2004 for Mac.<br /></p>

<p><strong>Praetorian&#8217;s Recommendation:</strong> Similar to MS10-003, this is rated critical due to remote code execution. The victim would need to open a PowerPoint document with an affected version to be compromised. In environments where these versions are in use and users are likely to open PowerPoint files from unknown websites or emails, the recommendation is to patch as soon as possible.<br /></p>

<hr />

<p><strong>ID:</strong> MS10-010<br />
<strong>Title:</strong> Vulnerability in Windows Server 2008 Hyper-V Could Allow Denial of Service<br />
<strong>Microsoft Severity:</strong> Important<br /></p>

<p><strong>Summary:</strong> This update addresses a denial of service vulnerability in Hyper-V in Windows 2008 64-bit and Windows 2008 R2 Server versions. The denial of service affects the host operating system, which in turn would bring down any guests.<br /></p>

<p><strong>Praetorian&#8217;s Recommendation:</strong> The recommendation is to apply the patch during your next patch cycle. This vulnerability would be difficult to exploit in properly managed server environments and would require valid credentials to the Hyper-V server.<br /></p>

<hr />

<p><strong>ID:</strong> MS10-011<br />
<strong>Title:</strong> Vulnerability in Windows Client/Server Run-time Subsystem Could Allow Elevation of Privilege<br />
<strong>Microsoft Severity:</strong> Important<br />
<strong>My Severity:</strong><br /></p>

<p><strong>Summary:</strong> This update addresses a bug in CSRSS (Client/Server Run-time Subsystem) which leads to local privilege elevation.</p>

<p><strong>Praetorian&#8217;s Recommendation:</strong>  The potential with this vulnerability is for a user who has credentials and is logged in can gain kernel or system level privileges. The vulnerability can not be executed remotely. This update can be included in your normal patch cycle and is not deemed critical.</p>

<hr />

<p><strong>ID:</strong> MS10-012<br />
<strong>Title:</strong> Vulnerabilities in SMB Server Could Allow Remote Code Execution<br />
<strong>Microsoft Severity:</strong> Important<br /></p>

<p><strong>Summary:</strong> This update addresses four issues in the SMB protocol across all versions of Windows. The Pathname Overflow vulnerability can lead to remote code execution but requires authentication. The memory corruption and null pointer vulnerability can lead to denial of service, and the NTLM authentication lack of entropy can lead to unauthenticated elevation of privileges.<br /></p>

<p><strong>Praetorian&#8217;s Recommendation:</strong> Keeping patches up to date is important in any environment, but these SMB updates provide a very important reminder that egress firewall rules should be just as important to firms as ingress rules. The SMB protocol (port 445) as a best practice should be blocked inbound and outbound. Many of the recent SMB vulnerabilities affect the SMB client, which means the attacker will direct the victim to attampt a SMB client connection to a malicious server. This is not possible if your firewall blocks SMB outbound.<br /></p>

<hr />

<p><strong>ID:</strong> MS10-014<br />
<strong>Title:</strong> Vulnerability in Kerberos Could Allow Denial of Service<br />
<strong>Microsoft Severity:</strong> Important<br />
<strong>My Severity:</strong> <br /></p>

<p><strong>Summary:</strong> This update addresses a denial of service vulnerability due to improper handling of Ticket-Granting-Ticket renewal requests by a client on a remote, non-Windows realm in a mixed-mode Kerberos implementation. Only Windows Server operating systems (2000, 2003, 2008) are affected and only domain controllers.<br /></p>

<p><strong>Praetorian&#8217;s Recommendation:</strong> This vulnerability requires the client sending the malformed request to be on a remote and non-Windows kerberos realm, which is very a specific setup. If your environment has a non-Windows based kerberos realm, this update can be included as part of your regular patch cycle, and is not critical for immediate action. <br /></p>

<hr />

<p><strong>ID:</strong> MS10-015<br />
<strong>Title:</strong> Vulnerabilities in Windows Kernel Could Allow Elevation of Privilege<br />
<strong>Microsoft Severity:</strong>Important<br /></p>

<p><strong>Summary:</strong> This update addresses two issues in the Windows kernel affecting all version of Windows except Windows 7 64-bit and Windows Server R2. The vulnerability leads to elevation of privileges.<br /></p>

<p><strong>Praetorian&#8217;s Recommendation:</strong> A user must be authenticated to with valid logon credentials to exploit this vulnerability; a remote or anonymous exploit is not possible. This update can be included as part of your regular patch cycle, and is not critical for immediate action</p>

<hr />

<p><strong>ID:</strong> MS10-005<br />
<strong>Title:</strong> Vulnerability in Microsoft Paint Could Allow Remote Code Execution<br />
<strong>Microsoft Severity:</strong> Moderate<br /></p>

<p><strong>Summary:</strong> This update addresses a vulnerability in MS Paint which can lead to remote code execution. Windows 200, Windows XP, and Windows Server 2003 are affected. A malicious JPEG can be crafted to exploit this vulnerability.<br /></p>

<p><strong>Praetorian&#8217;s Recommendation:</strong> By default, Windows uses the Windows Picture and Fax Viewer when opening JPEG files. An attacker would need to convince the user to open the specific malicious JPEG file in Microsoft Paint.<br /></p>

<hr />

<p><strong>Related Posts:</strong></p>
<ul>
<li><a href="http://praetorianprefect.com/archives/2010/03/3473/">March&#8217;s Patch Tuesday</a></li>
</ul><br />
]]></content:encoded>
			<wfw:commentRss>http://praetorianprefect.com/archives/2010/02/februarys-patch-tuesday/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Microsoft Posts Advanced Notification for Out of Band Patch</title>
		<link>http://praetorianprefect.com/archives/2010/01/microsoft-posts-advanced-notification-for-out-of-band-patch/</link>
		<comments>http://praetorianprefect.com/archives/2010/01/microsoft-posts-advanced-notification-for-out-of-band-patch/#comments</comments>
		<pubDate>Thu, 21 Jan 2010 00:31:43 +0000</pubDate>
		<dc:creator>Simon Price</dc:creator>
				<category><![CDATA[Asides]]></category>

		<guid isPermaLink="false">http://praetorianprefect.com/?p=3145</guid>
		<description><![CDATA[Microsoft has published the advanced notification for an unscheduled patch update release to occur tomorrow, outside of the normal patch Tuesday cycle. The update is for an Internet Explorer vulnerability reported to be a vector for the Aurora exploit which was used to attack Google and several other companies. The last time Microsoft released an [...]]]></description>
			<content:encoded><![CDATA[<p>Microsoft has published the <a href="http://blogs.technet.com/msrc/archive/2010/01/20/advance-notification-for-out-of-band-bulletin-release.aspx">advanced notification</a> for an unscheduled patch update release to occur tomorrow, outside of the normal patch Tuesday cycle. The update is for an Internet Explorer vulnerability reported to be a vector for <a href="http://praetorianprefect.com/archives/2010/01/the-aurora-ie-exploit-in-action/">the Aurora exploit</a> which was used to attack Google and several other companies. The last time Microsoft released an out of band patch was in July of 2009, when <a href="http://blogs.technet.com/msrc/archive/2009/07/24/advance-notification-for-july-2009-out-of-band-releases.aspx">an update for Internet Explorer and a related Visual Studio update</a> were released.</p>

<p><strong>Related Posts:</strong></p>
<ul>
<li><a href="http://praetorianprefect.com/archives/2010/03/microsoft-ie-6-7-zero-day-aside/">Microsoft IE 6 &#038; 7 Zero-day (Aside)</a></li>
<li><a href="http://praetorianprefect.com/archives/2010/01/smb-bug-wont-be-patched-in-january/">SMB Bug won&#8217;t be patched in January</a></li>
<li><a href="http://praetorianprefect.com/archives/2009/11/taxonomy-of-forensics-geeks/">Taxonomy of Forensics Geeks</a></li>
<li><a href="http://praetorianprefect.com/archives/2009/11/1566/">What DNS is not</a></li>
<li><a href="http://praetorianprefect.com/archives/2009/10/replace-watch-swf-with-warp-swf-on-youtube/">Replace watch.swf with warp.swf on YouTube</a></li>
</ul><br />
]]></content:encoded>
			<wfw:commentRss>http://praetorianprefect.com/archives/2010/01/microsoft-posts-advanced-notification-for-out-of-band-patch/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<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>
		<item>
		<title>First Patch Tuesday of 2010</title>
		<link>http://praetorianprefect.com/archives/2010/01/first-patch-tuesday-of-2010/</link>
		<comments>http://praetorianprefect.com/archives/2010/01/first-patch-tuesday-of-2010/#comments</comments>
		<pubDate>Tue, 12 Jan 2010 23:08:10 +0000</pubDate>
		<dc:creator>Simon Price</dc:creator>
				<category><![CDATA[Security]]></category>

		<guid isPermaLink="false">http://praetorianprefect.com/?p=2947</guid>
		<description><![CDATA[We begin a new year and arrive at the first patch Tuesday of the decade. The news and spread of malware related to Adobe Reader continues to gain momentum and the information security community believes that this year will produce more exploits using Reader. I will include both the Microsoft and Adobe updates in these [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://praetorianprefect.com/wp-content/uploads/2009/12/image_31_3_thumb1.png"><img src="http://praetorianprefect.com/wp-content/uploads/2009/12/image_31_3_thumb1.png" alt="image_31_3_thumb.png" title="image_31_3_thumb.png" width="93" height="109" class="alignleft size-full wp-image-2093" /></a>We begin a new year and arrive at the first patch Tuesday of the decade. The news and spread of malware related to Adobe Reader continues to gain momentum and the information security community believes that this year will produce more exploits using Reader. I will include both the Microsoft and Adobe updates in these patch Tuesday posts, along with the severity level I feel they deserve based on the details.</p>

<h3>Severity Levels</h3>

<p>Microsoft has a rating system for bulletins which includes: Critical, Important, Moderate, and Low; Adobe follows this same rating scale. The severity levels I provide differ from Microsoft&#8217;s in that I ascertain real world scenarios. For example, MS will give an important rating when exploitation could result in compromise of availability, as in a denial of service. MS09-069 can result in a denial of service, however, the attacker must already be authenticated. For this reason I drop the severity to Low.</p>

<h3>Microsoft Updates</h3>

<p><img src="http://praetorianprefect.com/wp-content/uploads/2010/01/ScreenHunter_08-Jan.-12-17.59.gif" alt="ScreenHunter_08 Jan. 12 17.59" title="ScreenHunter_08 Jan. 12 17.59" width="45" height="42" class="alignright size-full wp-image-2976" />A quiet patch Tuesday for Microsoft, only one bulletin exists for this month, which is marked critical only for the Windows 2000 operating system whose support is due to expire in July of this year.</p>

<hr />

<p><strong>Bulletin:</strong> <a href="http://www.microsoft.com/technet/security/bulletin/MS10-001.mspx">MS10-001</a> &#8211; Vulnerability in the Embedded OpenType Font Engine Could Allow Remote Code Execution (972270)
<strong>Recommended Action:</strong> Update Windows 2000 SP4.</p>

<p><strong>My Severity Rating:</strong> Critical for Windows 2000, Low for Windows XP, Server 2003, Windows Vista, Server 2008 and Windows 7.</p>

<p><strong>Information:</strong> An issue exists in the way that the Microsoft Windows Embedded OpenType (EOT) Font Engine decompresses specially crafted EOT fonts. An attacker can send a malicious Word or Powerpoint document containing a specially crafted Embedded OpenType (EOT) font which the victim would have to open, allowing the attacker to gain remote code execution.</p>

<hr />

<h4>Note:</h4>

<p>Microsoft announced in a blog post that the <a href="http://praetorianprefect.com/archives/2009/11/how-to-crash-windows-7-and-server-2008/">SMB bug which can crash Windows 7 and Server 2008 R2</a> will not be patched in January&#8217;s patch Tuesday. We have shown how this bug can cause a severe halt to the OS, however, Microsoft stated that they &#8220;are not aware of any active attacks using the exploit code&#8221; and are still working on an update.</p>

<hr />

<h3>Adobe Updates</h3>

<p><a href="http://praetorianprefect.com/wp-content/uploads/2009/12/adobelq1.png"><img src="http://praetorianprefect.com/wp-content/uploads/2009/12/adobelq1.png" alt="adobelq" title="adobelq" width="43" height="72" class="alignright size-full wp-image-2846" /></a>Another busy month for Adobe. We&#8217;ve seen various malware circulating the internet using the vulnerabilities found in the Util.printd, Util.Printf, Collab.getIcon and Collab.collectEmailInfo functions. Today, an update is to be released patching the vulnerability in the Doc.media.newPlayer method in Adobe Reader which was exploited in December.</p>

<hr />

<p><strong>Bulletin:</strong> <a href="http://www.adobe.com/support/security/bulletins/apsb10-02.html">APSB10-02</a> Vulnerability in the Doc.media.newPlayer method in Adobe Reader 9.2 and Acrobat 9.2, and Adobe Reader 8.1.7 and Acrobat 8.1.7</p>

<p><strong>Recommended Action:</strong> PDF&#8217;s currently are a popular vector for spreading malware and trojan downloaders. The recommended action is to update as soon as possible.</p>

<p><strong>My Severity Rating:</strong> Critical.</p>

<p><strong>Information:</strong> The update addresses the following issues:</p>

<ul>
<li><p>An unspecified memory corruption error in the Doc.media.newPlayer method can allow a remote attacker to execute arbitrary code on the system. <a href="http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2009-4324">CVE-2009-4324</a></p></li>
<li><p>An array boundary issue in U3D support that could lead to code execution.</p></li>
<li><p>A DLL-loading vulnerability in 3D that could allow arbitrary code execution.</p></li>
<li><p>A memory corruption vulnerability that could lead to code execution.</p></li>
<li><p>A script injection vulnerability by changing the Enhanced Security default.</p></li>
<li><p>A null-pointer dereference vulnerability that could lead to denial of service.</p></li>
<li><p>A buffer overflow vulnerability in the Download Manager that could lead to code execution.</p></li>
<li><p>An integer overflow vulnerability in U3D support that could lead to code execution.</p></li>
</ul>

<hr />

<p><strong>Related Posts:</strong></p>
<ul>
<li><a href="http://praetorianprefect.com/archives/2010/06/iphone-4-ordering-and-session-switching/">iPhone 4 Ordering and Session Switching</a></li>
<li><a href="http://praetorianprefect.com/archives/2010/05/mays-patch-tuesday/">May&#8217;s Patch Tuesday</a></li>
<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>
</ul><br />
]]></content:encoded>
			<wfw:commentRss>http://praetorianprefect.com/archives/2010/01/first-patch-tuesday-of-2010/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>SMB Bug won&#8217;t be patched in January</title>
		<link>http://praetorianprefect.com/archives/2010/01/smb-bug-wont-be-patched-in-january/</link>
		<comments>http://praetorianprefect.com/archives/2010/01/smb-bug-wont-be-patched-in-january/#comments</comments>
		<pubDate>Fri, 08 Jan 2010 18:07:44 +0000</pubDate>
		<dc:creator>Simon Price</dc:creator>
				<category><![CDATA[Asides]]></category>

		<guid isPermaLink="false">http://praetorianprefect.com/?p=2910</guid>
		<description><![CDATA[Microsoft announced in a blog post that the SMB bug which can crash Windows 7 and Server 2008 R2 will not be patched in January&#8217;s patch Tuesday. We have shown how this bug can cause a severe halt to the OS, however, Microsoft stated that they &#8220;are not aware of any active attacks using the [...]]]></description>
			<content:encoded><![CDATA[<p>Microsoft announced in <a href="http://blogs.technet.com/msrc/archive/2010/01/07/january-2010-bulletin-release-advance-notification.aspx">a blog post</a> that the SMB bug which can crash Windows 7 and Server 2008 R2 will not be patched in January&#8217;s patch Tuesday. We <a href="http://praetorianprefect.com/archives/2009/11/how-to-crash-windows-7-and-server-2008/">have shown</a> how this bug can cause a severe halt to the OS, however, Microsoft stated that they &#8220;are not aware of any active attacks using the exploit code&#8221; and are still working on an update.</p>

<p><strong>Related Posts:</strong></p>
<ul>
<li><a href="http://praetorianprefect.com/archives/2010/03/microsoft-ie-6-7-zero-day-aside/">Microsoft IE 6 &#038; 7 Zero-day (Aside)</a></li>
<li><a href="http://praetorianprefect.com/archives/2010/01/microsoft-posts-advanced-notification-for-out-of-band-patch/">Microsoft Posts Advanced Notification for Out of Band Patch</a></li>
<li><a href="http://praetorianprefect.com/archives/2009/11/taxonomy-of-forensics-geeks/">Taxonomy of Forensics Geeks</a></li>
<li><a href="http://praetorianprefect.com/archives/2009/11/1566/">What DNS is not</a></li>
<li><a href="http://praetorianprefect.com/archives/2009/10/replace-watch-swf-with-warp-swf-on-youtube/">Replace watch.swf with warp.swf on YouTube</a></li>
</ul><br />
]]></content:encoded>
			<wfw:commentRss>http://praetorianprefect.com/archives/2010/01/smb-bug-wont-be-patched-in-january/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Adobe util.printd Zero Day</title>
		<link>http://praetorianprefect.com/archives/2009/12/adobe-util-printd-zero-day/</link>
		<comments>http://praetorianprefect.com/archives/2009/12/adobe-util-printd-zero-day/#comments</comments>
		<pubDate>Wed, 16 Dec 2009 21:02:21 +0000</pubDate>
		<dc:creator>Simon Price</dc:creator>
				<category><![CDATA[Vulnerability]]></category>
		<category><![CDATA[adobe]]></category>
		<category><![CDATA[zero-day]]></category>

		<guid isPermaLink="false">http://praetorianprefect.com/?p=2427</guid>
		<description><![CDATA[A critical vulnerability was discovered early this week in Adobe Reader and Acrobat versions 9.2 and earlier which could allow attackers to gain control of the affected system, not even a week after Adobe <a href="http://praetorianprefect.com/archives/2009/12/six-bulletins-in-last-patch-tuesday-of-2009/">released a critical update</a> for its Flash Player on patch Tuesday last week. The attack uses a weakness in a function called util.printd along with a heap spray implemented with Javascript to attempt to inject shell code.]]></description>
			<content:encoded><![CDATA[<p><a href="http://praetorianprefect.com/wp-content/uploads/2009/12/adobelq.png"><img src="http://praetorianprefect.com/wp-content/uploads/2009/12/adobelq.png" alt="adobelq.png" title="adobelq.png" width="43" height="72" class="alignleft size-full wp-image-2086" /></a>
A critical vulnerability was discovered early this week in Adobe Reader and Acrobat versions 9.2 and earlier which could allow attackers to gain control of the affected system, not even a week after Adobe <a href="http://praetorianprefect.com/archives/2009/12/six-bulletins-in-last-patch-tuesday-of-2009/">released a critical update</a> for its Flash Player on patch Tuesday last week. The attack uses a weakness in a function called util.printd along with a heap spray implemented in Javascript to attempt to inject shell code.</p>

<p>Adobe published <a href="http://www.adobe.com/support/security/advisories/apsa09-07.html">an advisory</a> yesterday confirming the vulnerability and plans to make an update available by January 12, 2010 to resolve the issue. In the meantime, a mitigation step is available by disabling JavaScript in Adobe Reader and Acrobat. Users with Microsoft DEP (&#8220;Data Execution Prevention&#8221;) enabled reduces the exploit to a denial of service attack.</p>

<p>Some <a href="http://research.zscaler.com/2009/12/new-zero-day-adobe-acrobat-reader.html">detailed analysis</a> of a malicious PDF reveals the Javascript and shows that a function called <code>util.printd</code> leads to a memory corruption issue. This <a href="http://livedocs.adobe.com/acrobat_sdk/9/Acrobat9_HTMLHelp/wwhelp/wwhimpl/common/html/wwhelp.htm?context=Acrobat9_HTMLHelp&amp;file=JS_API_AcroJS.88.1212.html">function</a> is supposed to return a date using a specified format and takes two parameters (plus a third optional parameter not typically used). The first parameter is the format of the date and time (0 for PDF, 1 for Universal, or 2 for Localized string). The second parameter is the date object submitted to format. The code shows the first parameter contains a <code>@</code> followed by a series of numbers as opposed to the expected input.</p>

<div id="attachment_2463" class="wp-caption alignnone" style="width: 669px"><a href="http://praetorianprefect.com/wp-content/uploads/2009/12/adobe_utildate1.jpg"><img src="http://praetorianprefect.com/wp-content/uploads/2009/12/adobe_utildate1.jpg" alt="JS heap spray and vulnerable function call." title="adobe_utildate" width="659" height="357" class="size-full wp-image-2463" /></a><p class="wp-caption-text">JS heap spray and vulnerable function call.</p></div>

<h3>Email Phishing, Malicious PDFs, and Metasploit</h3>

<p>A Metasploit exploit module has been released taking advantage of this vulnerability. The integration into Metasploit can accelerate the spread of exploits for this vulnerability in the wild. A video demonstration utilizing this module can be seen <a href="http://www.offensive-security.com/videos/adobe-0day/index.html">here</a>.</p>

<p>Examples of the phishing emails along with examples of the malicious PDF files can be found on the Contagio malware dump site <a href="http://contagiodump.blogspot.com/2009/12/this-message-shows-that-adobe-zero-day.html">here</a> and <a href="http://contagiodump.blogspot.com/2009/12/zero-day-pdf-attack-of-day-2-interview.html">here</a>. The following two emails are examples of the phishing methods used to have users open the malicious PDF files:</p>

<p><em><strong>Email One:</strong></em></p>

<pre><code>[mailto:chrisanderson58@hotmail.com]
Sent: 2009-11-30 1:56 AM
To: XXX@XXX.XXX
Subject: FW: reference
\----
From: jackr@gilbrooks.edu
To: chrisanderson58@hotmail.com
Subject: reference
Date: Mon, 30 Nov 2009 06:53:52 +0000


Dear All
Please find attached the updated country briefing notes, and staff lists.


Kind regards
Jack
</code></pre>

<p><em><strong>Email Two:</strong></em></p>

<pre><code>[mailto:fureer.angelica@gmail.com]
Sent: 2009-12-13 12:14 AM
To: XXXXXX
Subject: Interview Request


This is Fureer Angelica, diplomaic broadcaster for CNN in DC.
There's growing concern about the U.S.-North Korea bilateral talks.
So, we're planning an Interview about them.
Attached is the outline of the interview.


p.s. Detailed schedules will be followed soon if you accept the offer.
</code></pre>

<h3>Workarounds (<em>from a previous post</em>)</h3>

<h4>Disabling Javascript on Adobe Acrobat</h4>

<p>Adobe notes that disabling Javascript mitigates against the specific exploit identified, although it would be possible to create a variant that does not rely on Javascript.  To disable Javascript in Adobe Reader or Acrobat, select Edit>Preferences, select the JavaScript option on the left, and uncheck the <i>Enable Acrobat JavaScript</i> option as shown.</p>

<p><div id="attachment_916" class="wp-caption alignnone" style="width: 650px"><a href="http://praetorianprefect.com/wp-content/uploads/2009/10/AcrobatPreferences.png"><img src="http://praetorianprefect.com/wp-content/uploads/2009/10/AcrobatPreferences.png" alt="Uncheck to disable Acrobat JavaScript" title="AcrobatPreferences" width="640" height="424" class="size-full wp-image-916" /></a><p class="wp-caption-text">Uncheck to disable Acrobat JavaScript</p></div>
<br /></p>

<h4>Data Execution Prevention</h4>

<p>Also, users with DEP enabled on Windows Vista or Windows 7 reduces the exploit from remote code execution to denial of service. Data Execution Prevention (DEP) performs additional checks on memory to help prevent malicious code from running, designed to prevent buffer overflow attacks. To enable DEP on Windows for all or individual programs, proceed to Control Panel -> System and Maintenance -> System, click on Advanced System Settings, under Performance click Settings, and finally under the Data Execution Prevention tab click <i>Turn on DEP for all programs and services except those I select</i>. If you can not find Acrobat in the list of programs, click Add and browse to the Acrobat executable (.exe) file and click Open.  For more information on DEP settings, visit the <a href="http://windows.microsoft.com/en-us/windows-vista/Change-Data-Execution-Prevention-settings">Microsoft help page</a>.</p>

<h3>References</h3>

<ul>
<li><a href="http://blogs.adobe.com/psirt/2009/12/new_adobe_reader_and_acrobat_v.html">Adobe PSIRT: New Adobe Reader and Acrobat Vulnerability</a></li>
<li><a href="http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2009-4324">CVE-2009-4324</a></li>
<li><a href="http://research.zscaler.com/2009/12/new-zero-day-adobe-acrobat-reader.html">New Zero day Adobe Acrobat Reader vulnerability analysis</a></li>
</ul>

<p><strong>Related Posts:</strong></p>
<ul>
<li><a href="http://praetorianprefect.com/archives/2010/07/turning-an-atm-into-a-slot-machine/">Turning an ATM into a Slot Machine</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/2010/02/microsofts-google-attack-patch/">Microsoft&#8217;s Google Attack Patch?</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/10/the-barack-obama-donations-site-was-hacked%e2%80%a6err-no-it-wasn%e2%80%99t/">The Barack Obama Donations Site was Hacked…err, no it wasn’t.</a></li>
</ul><br />
]]></content:encoded>
			<wfw:commentRss>http://praetorianprefect.com/archives/2009/12/adobe-util-printd-zero-day/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Forensics: Beverages Aside, A Look at Incident Response Tools</title>
		<link>http://praetorianprefect.com/archives/2009/12/forensics-beverages-aside-a-look-at-incident-response-tools/</link>
		<comments>http://praetorianprefect.com/archives/2009/12/forensics-beverages-aside-a-look-at-incident-response-tools/#comments</comments>
		<pubDate>Wed, 16 Dec 2009 00:57:57 +0000</pubDate>
		<dc:creator>Simon Price</dc:creator>
				<category><![CDATA[Featured]]></category>
		<category><![CDATA[Forensics]]></category>
		<category><![CDATA[cofee]]></category>
		<category><![CDATA[decaf]]></category>
		<category><![CDATA[FTK]]></category>

		<guid isPermaLink="false">http://praetorianprefect.com/?p=2333</guid>
		<description><![CDATA[In November, Microsoft's forensics tool called COFEE (Computer Online Forensic Evidence Extractor) was leaked on torrents for download. The news coverage was <a href="http://praetorianprefect.com/archives/2009/11/more-cofee-please-on-second-thought/">much hype about nothing</a>, as many free tools already out there exceed COFEE in features and functionality.]]></description>
			<content:encoded><![CDATA[<h3>There Was COFEE</h3>

<p><a href="http://praetorianprefect.com/wp-content/uploads/2009/12/cofee_pod.gif"><img src="http://praetorianprefect.com/wp-content/uploads/2009/12/cofee_pod-191x300.gif" alt="cofee_pod" title="cofee_pod" width="85" height="150" class="alignright size-medium wp-image-2336" /></a>
In November, Microsoft&#8217;s forensics tool called COFEE (Computer Online Forensic Evidence Extractor) was leaked on torrents for download. The news coverage was <a href="http://praetorianprefect.com/archives/2009/11/more-cofee-please-on-second-thought/">much hype about nothing</a>, as many free tools already out there exceed COFEE in features and functionality. However, that did not stop statements such as &#8220;now that COFEE has leaked, hackers can reverse engineer to see what it does.&#8221; Well, I can save them time and tell them it launches OS commands and sysinternals tools to collect information, using a simple method that law enforcement can easily launch from a thumb drive. <end rant> I also hesitate to call it Microsoft&#8217;s tool, as I believe it has more development coming from The National White Collar Crime Center (NW3C.org) than from Microsoft. Ok, let&#8217;s move on to DECAF.</p>

<h3>Then There Was DECAF</h3>

<p><a href="http://praetorianprefect.com/wp-content/uploads/2009/12/brushed.png"><img src="http://praetorianprefect.com/wp-content/uploads/2009/12/brushed-150x150.png" alt="brushed" title="brushed" width="75" height="75" class="alignleft size-thumbnail wp-image-2339" /></a>
Just recently, with the COFEE hype behind us, a tool <a href="http://praetorianprefect.com/archives/2009/12/regular-or-decaf-tool-launched-to-combat-cofee/">called Decaf was released</a> to combat the use of COFEE. A VB.Net application which detects for the use of COFEE and then reacts by ways configurable by the user, such as shutting down the system, clearing event logs, or disabling the network, USB, CDROM, and more. The authors of Decaf shared my distaste for COFEE and its hype, and though the press coined them hackers, they informed me that they are developers who have a passion for security, forensics, privacy, and free flow of information online.</p>

<h3>Let&#8217;s Talk Tools</h3>

<p>I want to put aside the media hoopla of COFEE and DECAF and discuss some great tools for forensic analysis out there worth discussing. I want to try and focus on volatile data collection (grabbing important information from a live running system) but many of the tools mentioned can be used in offline analysis as well. If you are familiar with digital forensics, you most likely have used these tools in many cases, and if you are new to this area I hope this provides some groundwork for you to try some of these tools out.</p>

<h4>The List</h4>

<p>Before getting into it, I want to share <a href="http://praetorianprefect.com/wp-content/uploads/2009/12/tools.zip">this Excel spreadsheet</a> that contains a good amount of various tools that can be used in the forensic analysis process. Any prices listed have either been found online or are estimates from VARs, but please check with the specific vendors for exact pricing. The tools discussed throughout the article are in this spreadsheet along with links to their respective websites. Also note this is Windows focused and this is by no means a complete list, but I feel its a good start for anyone interested in forensic analysis.</p>

<blockquote>
  <p>Don&#8217;t use a Sledgehammer to Hang a Picture &#8211; Use this <a href="http://praetorianprefect.com/wp-content/uploads/2009/12/tools.zip">comprehensive list of tools</a> for reference</p>
</blockquote>

<p>One last note before discussing the tools, it is important to know your situation and choose the right tool for the task at hand. You may grab the <a href="https://www.e-fense.com/store/index.php?_a=viewProd&amp;productId=11">Helix CD</a>, test it, and become very familiar with it where it becomes your tool of choice; but, know that it may not be suitable for all situations and you should have as many options as possible and be familiar with all that is available so you can be prepared with the right instruments. For instance, inserting the Helix CD may autorun the GUI menu system, then clicking through the menus to run acquisition tools generates many changes to the contents of memory, whereas a method to immediately run a memory acquisition tool would be less of an impact.</p>

<h3>Frameworks</h3>

<p>Let&#8217;s start by talking about what I refer to as forensics frameworks. These are programs or scripts that are wrappers to commands used to collect data. They organize a collection of common tools, handle the output of the tools, verify the tools are trusted, and provide some basic reporting. The Helix collection from e-fense includes several frameworks to choose from, including The Incident Response Collection Report (IRCR) by John McLeod, <a href="http://www.foolmoon.net/security/wft/">Windows Forensics Toolchest</a> (WFT) by Foolmoon Software and more. Another popular framework is by Harlan Carvey, author of Windows Forensic Analysis (Syngress Publishing) and the <a href="http://windowsir.blogspot.com/">Windows IR blog</a>, called the Forensic Server Project (FSP) which uses a client (FRUC) that runs the collection of tools and sends the output to a listening server (FSU).</p>

<p>I&#8217;ve also written a framework based on collating various features from the tool sets mentioned above as well as including some of my own ideas. The common theme in these, as in COFEE, is that they collect data using a suite of tools including commands available with the OS (such as netstat, net, systeminfo), Sysinternal utilities (such as pslist, listdlls, handle), and well-known utilities available freely (such as fport, autorunsc, pmdump, etc).</p>

<h3>Dealing with Memory</h3>

<p><a href="http://praetorianprefect.com/wp-content/uploads/2009/12/compfor.jpg"><img src="http://praetorianprefect.com/wp-content/uploads/2009/12/compfor-150x150.jpg" alt="compfor" title="compfor" width="110" height="110" class="alignright size-thumbnail wp-image-2362" /></a>
Any actions on a system generated by the operating system or the user constantly change the contents of memory. Thus if the first thing you do on a live system is running tools, you will be significantly modifying the memory contents. A good detailed primer on physical memory analysis by Mariusz Burdach can be <a href="http://www.blackhat.com/presentations/bh-usa-06/BH-US-06-Burdach.pdf">found here</a>. An important fact to note is the possible hardware methods available to collect the contents of memory without interacting with the operating system. The tools I list in the spreadsheet for this purpose are software based, thus their execution and their changes to memory will be in the image that is captured.</p>

<h4>Acquisition</h4>

<p>To acquire an image containing the contents of memory, start by looking at the following two tools: <a href="http://www.shakacon.org/talks/NFI-Shakacon-win32dd0.3.pdf">WinDD by Matthieu Suiche</a> and <a href="http://www.mantech.com/MSMA/mdd.asp">MDD by ManTech International</a>. Both provide a CLI tool that can be incorporated into your preferred framework which can be used to create an image of the contents of physical memory prior to running additional tools. WinDD will create a raw dump or a crash dump file which can be analyzed with standard debugging tools like WinDbg from Microsoft. A commercial tool with a nice price point from HBGary called FastDump Pro acquires memory and includes probing features for malware analysis. The folks at HBGary state that <a href="https://www.hbgary.com/products-services/memory-forensics/fastdump/">Fastdump</a> has a lighter footprint than other tools and acquires the contents of <em>all</em> physical memory (a community version is available which works on 32-bit systems only).</p>

<h4>Analysis</h4>

<p><a href="http://praetorianprefect.com/wp-content/uploads/2009/12/ScreenHunter_02-Dec.-15-19.54.gif"><img src="http://praetorianprefect.com/wp-content/uploads/2009/12/ScreenHunter_02-Dec.-15-19.54.gif" alt="ScreenHunter_02 Dec. 15 19.54" title="ScreenHunter_02 Dec. 15 19.54" width="107" height="106" class="alignleft size-full wp-image-2371" /></a>Memory analysis has come a long way since running &#8220;strings&#8221; against an image created from a memory dump. <a href="http://www.certconf.org/presentations/2006/files/RB3.pdf">This presentation</a> notes how strings can produce 50 to 80 megabytes of unusable text from a 512MB memory dump. One exciting project, founded by 
<a href="https://www.volatilesystems.com/default/management">Aaron Walters</a>, is The Volatility Framework, an amazing collection of tools written in Python and used for analyzing memory dumps. With it, you can extract very specific data from the memory dump files obtained using the tools mentioned earlier (MDD, WinDD, etc). The screenshot shows how volatility pulls the process list from a memory dump called mal.dmp. Notice the last process on the list is actually MDD. <br /></p>

<div id="attachment_2375" class="wp-caption alignright" style="width: 310px"><a href="http://praetorianprefect.com/wp-content/uploads/2009/12/ScreenHunter_03-Dec.-16-14.43.gif"><img src="http://praetorianprefect.com/wp-content/uploads/2009/12/ScreenHunter_03-Dec.-16-14.43-300x241.gif" alt="Volatility Example" title="ScreenHunter_03 Dec. 16 14.43" width="300" height="241" class="size-medium wp-image-2375" /></a><p class="wp-caption-text">Volatility Example</p></div>

<p>Volatility can extract the following information:</p>

<ul>
<li>Image date and time</li>
<li>Running processes</li>
<li>Open network sockets</li>
<li>Open network connections</li>
<li>DLLs loaded for each process</li>
<li>Open files for each process</li>
<li>Open registry handles for each process</li>
<li>A process&#8217; addressable memory</li>
<li>OS kernel modules</li>
<li>Mapping physical offsets to virtual addresses (strings to process)</li>
<li>Virtual Address Descriptor information</li>
<li>Scanning examples: processes, threads, sockets, connections,modules</li>
<li>Extract executables from memory samples</li>
</ul>

<p>The framework is open source, fully written in python, and also modular in the use of plugins. <a href="http://mnin.blogspot.com/2009/12/new-and-updated-volatility-plug-ins.html">Michael Hale Ligh has produced some great plugins</a> including malfind2 which helps detect hidden/injected code in usermode processes. Here are some <a href="http://www.cc.gatech.edu/~brendan/volatility/">more plugins</a>, and <a href="http://jessekornblum.livejournal.com/246616.html">here is a plugin</a> that can help find TrueCrypt passphrases and suspicious processes.</p>

<h3>Registry</h3>

<p><a href="http://praetorianprefect.com/wp-content/uploads/2009/12/ScreenHunter_04-Dec.-16-15.58.gif"><img src="http://praetorianprefect.com/wp-content/uploads/2009/12/ScreenHunter_04-Dec.-16-15.58-150x150.gif" alt="ScreenHunter_04 Dec. 16 15.58" title="ScreenHunter_04 Dec. 16 15.58" width="75" height="75" class="alignleft size-thumbnail wp-image-2381" /></a>You wouldn&#8217;t spend time poking around in the registry during live analysis (many CLI tools, such as autorunsc.exe, will pull pertinent information automatically from the registry), but I wanted to include this section to talk about another great tool out there. This one is also by Harlan Carvey and is called <a href="http://regripper.net/">RegRipper</a>. RegRipper is intended for use against offline registry hive files to extract information from the registry helpful to your analysis. For example, you can extract data from the registry to determine USB disks previously used on the system or wireless networks joined. The examples are numerous and the use of plugins to extract particular keys and values for information make the tool very extensible. Harlan and many others have written various plugins for RegRipper.</p>

<h3>F-Response</h3>

<p><div id="attachment_2359" class="wp-caption alignleft" style="width: 74px"><a href="http://praetorianprefect.com/wp-content/uploads/2009/12/ScreenHunter_01-Dec.-15-17.37.gif"><img src="http://praetorianprefect.com/wp-content/uploads/2009/12/ScreenHunter_01-Dec.-15-17.37.gif" alt="F-Response" title="ScreenHunter_01 Dec. 15 17.37" width="64" height="58" class="size-full wp-image-2359" /></a><p class="wp-caption-text">F-Response</p></div>
A tool that I&#8217;m giving a section on its own to is F-Response which comes in several flavors (Enterprise, Consultant, Field Kit, and Tactical Editions). F-Response in a nutshell provides a client executable to be launched on the target machine which is then connected to using Microsoft&#8217;s iSCSI Initiator, providing read-only access to physical drives across the network. On 32-bit Windows systems, physical memory can be captured as well. This is very beneficial in that you can run any tools which analyze data on the hard drive remotely and in a read-only mode. <a href="http://forensicir.blogspot.com/2008/04/ripping-registry-live.html">This video</a> demonstrates how a target was inspected using F-Response and RegRipper.</p>

<h3>Disk Imaging</h3>

<p>There are many options for disk imaging, both live and offline. Here are some of the <br />popular commercial suites:
<a href="http://praetorianprefect.com/wp-content/uploads/2009/12/Picture1.jpg"><img src="http://praetorianprefect.com/wp-content/uploads/2009/12/Picture1.jpg" alt="Picture1" title="Picture1" width="148" height="113" class="alignright size-full wp-image-2400" /></a></p>

<ul>
<li><a href="http://www.accessdata.com/forensictoolkit.html">FTK</a></li>
<li><a href="http://www.guidancesoftware.com/encase-portable.htm">EnCase</a></li>
<li><a href="http://www.techpathways.com/prodiscoverdft.htm">ProDiscover</a></li>
<li><a href="http://www.x-ways.net/forensics/">X-Ways Forensics</a></li>
<li>and more&#8230;</li>
</ul>

<p>Choose the platforms that suit you as each package has its benefits, however I will go over a method that utilizes the freely available dd.exe with netcat. Yes, this is free, but this option may not suit you in many situations, such as attempting to image large disks in a certain time frame.</p>

<p>You need a computer which will have netcat listening and retrieve the disk image. On this machine, run netcat with the following options:</p>

<p><code>nc.exe -l -p 8888 -w 5 &gt; diskimage.dd</code></p>

<p>The <code>-l</code> puts netcat in listen mode, <code>-p</code> specifies the port number (8888 in the example) and <code>-w</code> specifies the timeout for connects and final net reads. Be sure that if this host has a firewall enabled, the port you specify is open for incoming connections.</p>

<p>On the workstation which you are taking a disk image from, you need to have dd.exe and nc.exe, which can be stored on a CD (such as Helix) or a USB thumb drive for use. If you are imaging an entire disk, you need the physical drive number for the dd command. In this example, we are imaging the OS drive, which is physical drive 0, and sending to a listening netcat instance created in the previous step, which has an IP address of 192.168.100.25:</p>

<p><code>dd if=\\.\PHYSICALDRIVE0 conv=noerror bs=1024 | nc.exe 192.168.100.25 8888</code></p>

<p>The <code>if</code> parameter specifies the input file to be imaged, in this case it is PHYSICALDRIVE0. The <code>conv=noerror</code> parameters tells dd to continue processing after read errors and the <code>bs=1024</code> specifies a buffer size of 1 megabyte. Since no output file is specified (<code>of</code>) we are piping to netcat and sending the data to the IP address listening on port 8888.</p>

<h3>Evidence Handling</h3>

<p>An <a href="http://gcn.com/articles/2004/08/16/justice-issues-guidelines-for-handling-digital-evidence.aspx">excerpt from Government Computer News</a> specifies that because digital data is easily altered and it is difficult to distinguish between original data and copies, extracting, securing and documenting digital evidence requires special attention. The guidelines lay out the following general principles for handling digital evidence:</p>

<ol>
<li>The process of collecting digital evidence should not alter it or raise questions about its integrity.</li>
<li>Examination of digital evidence should be done by trained personnel.</li>
<li>All actions in processing the evidence should be documented and preserved for review.</li>
<li>Examination should be conducted on a copy of the original evidence. The original should be preserved intact.</li>
</ol>

<p><a href="http://praetorianprefect.com/wp-content/uploads/2009/12/Mission-Statement-Image.jpg"><img src="http://praetorianprefect.com/wp-content/uploads/2009/12/Mission-Statement-Image-150x150.jpg" alt="Mission Statement Image" title="Mission Statement Image" width="150" height="150" class="alignleft size-thumbnail wp-image-2405" /></a></p>

<p>The numbering above is not meant to signify priority, but rather for discussing each bullet point. Starting with number one, I&#8217;ve been a part of many discussions related to which tools are permissible in a court of law, and the answer is that evidence collected in a reliable manner and obtained legally is permissible. The reliable manner is where the tool becomes important. For example, if you are a hobbyist developer and wrote a tool to list processes with Visual Studio, you can be challenged on the accuracy of the processes running which you&#8217;ve collected. If you used pslist.exe from Sysinternals, verified the MD5 hash of the executable, and properly tagged, timestamped, labeled, and handled its output, you would have a better case in proving your process list is accurate and reliable.</p>

<p>Point number two specifies that trained personnel should be responsible for evidence examination. The point here is that systems administrators or related expertise on the operating system is not equivalent to &#8220;trained in forensic examinations&#8221;. Additionally, such internal IT resources may have difficulty being questioned and cross-examined in a court of law. One who is experienced specifically in digital forensics is better able to handle evidence and participate in the litigation.</p>

<p>Points three and four are related and involve documentation, and the processing and handling of the evidence. Every step taken in the analysis must be meticulously documented and timestamped. You should have a standard and repeatable process for this. A UK based firm has an editor type <a href="http://www.qccis.com/?section=casenotes">application</a> called Forensic CaseNotes to assist in documenting and tracking your case notes. In addition to careful documentation, an examination and analysis should be performed on duplicates. It is not dramatic step to take the original hard disk, and one additional hard disk containing an untouched block by block copy, and seal them in plastic bags marked with time, date, who collected the drives, and identification numbers. A third hard disk with a block by block copy can be used for further examination.</p>

<p>Proof of preservation can be maintained with MD5 hashing. In the exercise where we acquired an image of the hard disk, we can obtain an MD5 hash of the image file created and log that in our case notes. If that image is tampered with, the MD5 hash will change and the evidence is not reliable and thus can be dismissed. Output logs from the various tools run during an analysis should be hashed as well.</p>

<h3>Conclusion</h3>

<p>There is no conclusion to learning about digital forensics as the world of analysis techniques evolves and continuously changes. New operating system releases (Windows 7 and 2008 R2), progress in anti-forensics technologies, and sophistication of malware and rootkits continue to challenge forensic investigators. My purpose for this primer is to hopefully detract the sensationalism of COFEE being released, and DECAF to counter it, and take a look at some great aspects of forensic tools that are out there and continue to grow.</p>

<h3>Updates</h3>

<p>The intention of this article was to reflect on some of the great tools out there that have been around and growing before any word of COFEE. I feel its important to understand what is available and how it works, but one thing I did not touch on was that the tools are a just a subset of the overall <em><strong>process</strong></em>, and it is the process you use in your investigation that is critical to your analysis. Harlan provides some good examples of this in his latest <a href="http://windowsir.blogspot.com/2009/12/when-tool-is-just-tool-pt-i.html">blog entry</a>.</p>

<h3>References</h3>

<ul>
<li><a href="http://www.forensicfocus.com/">Forensic Focus</a></li>
<li><a href="https://www.volatilesystems.com/">Volatile Systems</a></li>
<li><a href="http://windowsir.blogspot.com/">Windows IR Blog</a></li>
<li><a href="http://www.forensicswiki.org/wiki/Main_Page">Forensics Wiki</a></li>
</ul>

<p><strong>Related Posts:</strong></p>
<ul>
<li><a href="http://praetorianprefect.com/archives/2010/04/winpe-3-0-forensics/">WinPE 3.0 &#038; Forensics</a></li>
<li><a href="http://praetorianprefect.com/archives/2010/01/the-aurora-ie-exploit-in-action/">The &#8220;Aurora&#8221; IE Exploit Used Against Google in Action</a></li>
<li><a href="http://praetorianprefect.com/archives/2010/01/scareware-purveyors-spammers-and-crooks-take-advantage-of-haiti-earthquake/">Scareware Purveyors, Spammers, and Crooks Take Advantage of Haiti Earthquake</a></li>
<li><a href="http://praetorianprefect.com/archives/2010/01/baidu-com-the-latest-victim-of-iranian-cyberarmy/">Baidu.com the Latest Victim of Iranian CyberArmy</a></li>
<li><a href="http://praetorianprefect.com/archives/2010/01/junos-juniper-flaw-exposes-core-routers-to-kernal-crash/">JUNOS (Juniper) Flaw Exposes Core Routers to Kernel Crash</a></li>
</ul><br />
]]></content:encoded>
			<wfw:commentRss>http://praetorianprefect.com/archives/2009/12/forensics-beverages-aside-a-look-at-incident-response-tools/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Regular or Decaf? Tool launched to combat COFEE</title>
		<link>http://praetorianprefect.com/archives/2009/12/regular-or-decaf-tool-launched-to-combat-cofee/</link>
		<comments>http://praetorianprefect.com/archives/2009/12/regular-or-decaf-tool-launched-to-combat-cofee/#comments</comments>
		<pubDate>Tue, 15 Dec 2009 01:21:34 +0000</pubDate>
		<dc:creator>Simon Price</dc:creator>
				<category><![CDATA[Forensics]]></category>
		<category><![CDATA[Incident Response]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[windows]]></category>
		<category><![CDATA[anti-forensics]]></category>
		<category><![CDATA[cofee]]></category>
		<category><![CDATA[decaf]]></category>
		<category><![CDATA[Microsoft]]></category>

		<guid isPermaLink="false">http://praetorianprefect.com/?p=2250</guid>
		<description><![CDATA[

About a month ago, there was much news about the release of COFEE into the torrent wild. I even gave my two cents about the much hyped forensics toolkit which is provided to law enforcement for the purposes of easily capturing volatile data from personal computers during evidence collection. A tool to counter COFEE, aptly [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://praetorianprefect.com/wp-content/uploads/2009/12/ScreenHunter_07-Dec.-14-16.32.gif"><img src="http://praetorianprefect.com/wp-content/uploads/2009/12/ScreenHunter_07-Dec.-14-16.32.gif" alt="ScreenHunter_07 Dec. 14 16.32" title="ScreenHunter_07 Dec. 14 16.32" width="150"  class="alignleft size-full wp-image-2265" /></a></p>

<p>About a month ago, there was much news about the release of COFEE into the torrent wild. I even gave <a href="http://praetorianprefect.com/archives/2009/11/more-cofee-please-on-second-thought/">my two cents</a> about the much hyped forensics toolkit which is provided to law enforcement for the purposes of easily capturing volatile data from personal computers during evidence collection. A tool to counter COFEE, aptly named DECAF, has been released as an anti-forensics tool to prevent the use of COFEE for data collection.</p>

<p>&#8220;We want to promote a healthy unrestricted free flow of internet traffic and show why law enforcement should not solely rely on Microsoft to automate their intelligent evidence finding,&#8221; one of the two hackers behind Decaf <a href="http://www.theregister.co.uk/2009/12/14/microsoft_cofee_vs_decaf">told The Register</a> in explaining the objective of the project.</p>

<h3>DECAF Details</h3>

<p>DECAF is written in Visual Basic 2005 and consists of a single executable and an XML configuration file called decaf.exe.config which contains the application settings (an XML is also created in the user&#8217;s profile directory for each user&#8217;s specific settings).</p>

<p>When launched, it displays the user license agreement and asks for confirmation. When agreed, it writes the following registry entry:</p>

<p>Key: <code>HKU\SOFTWARE\DECAFme</code><br />
Value: <code>AcceptedEULA</code><br />
Data: <code>true</code></p>

<p>The program then connects via HTTP to 208.68.237.165 to check the current version number and receives the following response:
<code>1.0.0|http://www.decafme.org/|</code></p>

<p>If the application does not have a network connection, it will crash upon starting up with the following event:</p>

<pre><code>EventType clr20r3, P1 decaf.exe, P2 1.0.2.0, P3 4b2679b7, P4 decaf,
 P5 1.0.2.0, P6 4b2679b7, P7 115, P8 14d, P9 
system.invalidoperationexception, P10 NIL.
</code></pre>

<div id="attachment_2277" class="wp-caption alignright" style="width: 130px"><a href="http://praetorianprefect.com/wp-content/uploads/2009/12/ScreenHunter_11-Dec.-14-18.34.gif"><img src="http://praetorianprefect.com/wp-content/uploads/2009/12/ScreenHunter_11-Dec.-14-18.34.gif" alt="Decaf Menu" title="ScreenHunter_11 Dec. 14 18.34" width="120" height="148" class="size-full wp-image-2277" /></a><p class="wp-caption-text">Decaf Menu</p></div>

<p>I produced this initially when I had my virtual host&#8217;s network interface disabled.</p>

<p>Starting the monitor puts the application in detection mode, looking for the presence of COFEE. It waits for the launch of runner.exe, the launcher in COFEE, and will perform an action based on the configuration settings. It appears the tool checks the MD5 hash of runner.exe (ab9e68c7e71ebb2d6a5b8d17e9bd6b33). In addition to detecting the launch of runner.exe, the tool performs a WMI query to detect the COFEE USB thumb drive. The WMI query used for this type of action is:</p>

<p><code>SELECT * FROM __InstanceOperationEvent WITHIN 10 WHERE TargetInstance ISA "Win32_DiskDrive"</code></p>

<p>And since the thumb drive has the COFEE label, finding its presence should not be an issue. <br /><br /></p>

<div id="attachment_2302" class="wp-caption aligncenter" style="width: 510px"><a href="http://praetorianprefect.com/wp-content/uploads/2009/12/ScreenHunter_12-Dec.-14-18.43.gif"><img src="http://praetorianprefect.com/wp-content/uploads/2009/12/ScreenHunter_12-Dec.-14-18.43.gif" alt="Notification finding COFEE" title="ScreenHunter_12 Dec. 14 18.43" width="500" class="size-full wp-image-2302" /></a><p class="wp-caption-text">Notification finding COFEE</p></div>

<p>When COFEE is found, a notification is sent over to decafme.org (note I changed the rip field to invalid IP addresses):</p>

<p><code>GET /decaf.php?&amp;rip=299.297.141.45&amp;rtime=12142009_050704PM-5&amp;sim=false HTTP/1.1</code></p>

<p>When clicking Simulate, it mimics what <em>would</em> happen if coffee is found, and the sim field is set to true:</p>

<p><code>GET /decaf.php?&amp;rip=299.297.141.45&amp;rtime=12142009_051522PM-5&amp;sim=true HTTP/1.1</code></p>

<h3>The Configuration Menu</h3>

<div id="attachment_2312" class="wp-caption alignright" style="width: 310px"><a href="http://praetorianprefect.com/wp-content/uploads/2009/12/lockdown_mode.png"><img src="http://praetorianprefect.com/wp-content/uploads/2009/12/lockdown_mode-300x252.png" alt="Lockdown Settings" title="lockdown_mode" width="300" height="252" class="size-medium wp-image-2312" /></a><p class="wp-caption-text">Lockdown Settings</p></div>

<p>In the configuration menu, there are checkboxes in the Monitor section to &#8220;Monitor USB&#8221; and &#8220;Monitor COFEE&#8221;. As discussed, these options enable checking for runner.exe and detection of the USB thumb drive. The Notification section contains options for notifying the user when detection occurs. The Actions section is the interesting part, especially editing the Lockdown Mode. Here, you can set what happens when detection occurs. Some of the options are:
<br /></p>

<ul>
<li>Shutdown the system</li>
<li>Kill selected processes</li>
<li>Disable Network, USB, CD-ROM, ports, floppy</li>
<li>Clear event viewer</li>
<li>Erase Data</li>
</ul>

<p><br />
<br /></p>

<p>The configuration settings are stored per user in an XML file located in:</p>

<p><code>%USERPROFILE%\local settings\application data\DECAFme.org\Decaf.exe_Url_5fokqfogt1qso5vyeabunvhsigozqvpo\1.0.2.0&gt;</code></p>

<p>If the config for the user does not exist, the default in the launch directory is used.</p>

<h3>Conclusion</h3>

<p>When I first heard of the tool, I assumed it would also include detection of the default OS commands and Sysinternal utilities that COFEE typically runs, such as pslist.exe or tcpvcon.exe, however, in its current version this is not the case. An anti-forensics tool which expands into detecting the typical collection tools will affect investigations that use various toolkits (Helix, IRCR, etc), not just COFEE. However, as quoted by The Register, the DECAF brewer&#8217;s intentions are not to derail just any collection suite, but for law enforcement to expand beyond using what Microsoft provides them.</p>

<p>This version of decaf is still very bitter and has quite a ways to go in its development. The authors of Decaf are promising a more light-weight version or a windows service in the next release and text message and email triggers to enter lockdown mode remotely in future versions. However, Decaf provides a good example of how anti-forensic tools continue to evolve and can become serious roadblocks for digital forensic investigators.</p>

<h3>Updates</h3>

<p>The authors of Decaf have shut down the project and have said they are starting a forum for those interested in further discussing related matters. Considered a spoof, stunt, hoax, and many other names in the media, we have discussed the matter in the <a href="http://praetorianprefect.com/archives/2009/12/reactivating-decaf-in-two-minutes/">following post</a>.</p>

<p><strong>Related Posts:</strong></p>
<ul>
<li><a href="http://praetorianprefect.com/archives/2010/06/iphone-4-ordering-and-session-switching/">iPhone 4 Ordering and Session Switching</a></li>
<li><a href="http://praetorianprefect.com/archives/2010/05/mays-patch-tuesday/">May&#8217;s Patch Tuesday</a></li>
<li><a href="http://praetorianprefect.com/archives/2010/04/winpe-3-0-forensics/">WinPE 3.0 &#038; Forensics</a></li>
<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>
</ul><br />
]]></content:encoded>
			<wfw:commentRss>http://praetorianprefect.com/archives/2009/12/regular-or-decaf-tool-launched-to-combat-cofee/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>Six Bulletins in Last Patch Tuesday of 2009</title>
		<link>http://praetorianprefect.com/archives/2009/12/six-bulletins-in-last-patch-tuesday-of-2009/</link>
		<comments>http://praetorianprefect.com/archives/2009/12/six-bulletins-in-last-patch-tuesday-of-2009/#comments</comments>
		<pubDate>Tue, 08 Dec 2009 19:39:55 +0000</pubDate>
		<dc:creator>Simon Price</dc:creator>
				<category><![CDATA[Administration]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Vulnerability]]></category>
		<category><![CDATA[windows]]></category>
		<category><![CDATA[adobe]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[ie]]></category>
		<category><![CDATA[Internet Explorer]]></category>
		<category><![CDATA[patch]]></category>
		<category><![CDATA[patch tuesday]]></category>
		<category><![CDATA[updates]]></category>
		<category><![CDATA[vulnerabilities]]></category>

		<guid isPermaLink="false">http://praetorianprefect.com/?p=2088</guid>
		<description><![CDATA[Today marks the last Microsoft patch Tuesday of 2009, and Microsoft has released patches to six bulletins:




MS09-071 &#8211; Vulnerabilities in Internet Authentication Service Could Allow Remote Code Execution (974318)
MS09-074 &#8211; Vulnerability in Microsoft Office Project Could Allow Remote Code Execution (967183) 
MS09-072 &#8211; Cumulative Security Update for Internet Explorer (976325) 
MS09-069 &#8211; Vulnerability in Local [...]]]></description>
			<content:encoded><![CDATA[<p>Today marks the last Microsoft patch Tuesday of 2009, and Microsoft has released patches to six bulletins:</p>

<p><a href="http://praetorianprefect.com/wp-content/uploads/2009/12/image_31_3.png"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image_3[1]_3" border="0" alt="image_3[1]_3" src="http://praetorianprefect.com/wp-content/uploads/2009/12/image_31_3.png" width="69" height="81" /></a></p>

<ul>
<li><strong>MS09-071</strong> &#8211; Vulnerabilities in Internet Authentication Service Could Allow Remote Code Execution (974318)</li>
<li><strong>MS09-074</strong> &#8211; Vulnerability in Microsoft Office Project Could Allow Remote Code Execution (967183) </li>
<li><strong>MS09-072</strong> &#8211; Cumulative Security Update for Internet Explorer (976325) </li>
<li><strong>MS09-069</strong> &#8211; Vulnerability in Local Security Authority Subsystem Service Could Allow Denial of Service (974392) </li>
<li><strong>MS09-070</strong> &#8211; Vulnerabilities in Active Directory Federation Services Could Allow Remote Code Execution (971726) </li>
<li><strong>MS09-073</strong> &#8211; Vulnerability in WordPad and Office Text Converters Could Allow Remote Code Execution (975539) </li>
</ul>

<h3>Severity Levels</h3>

<p>Microsoft has a <a href="http://www.microsoft.com/technet/security/bulletin/rating.mspx" target="_blank">rating system</a> for bulletins which includes: Critical, Important, Moderate, and Low. The severity levels I provide below are not directly from Microsoft. For example, MS will give an important rating when exploitation could result in compromise of availability, as in a denial of service. MS09-069 can result in a denial of service, however, the attacker must already be authenticated. For this reason I drop the severity to Low.</p>

<h3>Bulletin Summaries</h3>

<hr />

<p><strong>Bulletin:</strong> MS09-071<br/>
<strong>Recommended Action:</strong> Update Windows 2008 Server (32-bit and 64-bit) which have IAS configured to use PEAP with MS-CHAP v2 authentication.<br/>
<strong>My Severity Rating:</strong> Moderate, should patch the above mentioned software.</p>

<p>This update addresses two vulnerabilities in the Internet Authentication Service (IAS). One is an IAS memory corruption vulnerability and the second is an authentication bypass vulnerability in MS-CHAP authentication. Client operating systems contain the vulnerable code but the components are not used in a way to make them vulnerable.</p>

<hr />

<p><strong>Bulletin:</strong> MS09-074<br/>
<strong>Recommended Action:</strong> Update MS Project 2000 SR-1.<br/>
<strong>My Severity Rating:</strong> Important for Project Software</p>

<p>This update addresses a vulnerability in Microsoft Project which can cause remote code execution when a specially crafted Project file is opened.&#160; Microsoft Project 2000 SR-1, Project 2002 SP1 and Project 2003 SP3 are affected.</p>

<hr />

<p><strong>Bulletin:</strong> MS09-074<br/>
<strong>Recommended Action:</strong> Update Internet Explorer<br/>
<strong>My Severity Rating</strong> Critical</p>

<p>This update addresses five difference vulnerabilities with at least one or more affected every version of Internet Explorer. Attackers can host malicious code which can lead remote code execution on vulnerable systems. Any issues that lead to remote execution in IE should be addressed immediately; even if you are confident about not browsing malicious sites, a known site, <a href="http://praetorianprefect.com/archives/2009/12/pentagon-web-pwned/">such as the Pentagon web site</a>, could be used to automatically execute or redirect you to malicious code using cross-site scripting.</p>

<hr />

<p><strong>Bulletin:</strong> MS09-069<br/>
<strong>Recommended Action:</strong> Update Windows 2000, Windows XP and Windows 2003<br/>
<strong>My Severity Rating:</strong> Low</p>

<p>A vulnerability in LSASS can cause a denial of service. The attacker must be authenticated and communicating through IPSEC.</p>

<hr />

<p><strong>Bulletin:</strong> MS09-070<br/>
<strong>Recommended Action:</strong> Update Windows 2003 and Windows 2008 Servers<br/>
<strong>My Severity Rating:</strong> Low</p>

<p>This update addresses two vulnerabilities in Active Directory Federation Services, one which can be used to spoof an authenticated user and the second which can cause remote code execution. The spoofing requires access to a workstation and browser recently used by a targeted user and the remote code execution requires the attacker to have valid logon credentials to the vulnerable server.</p>

<hr />

<p><strong>Bulletin:</strong> MS09-069     <br/>
<strong>Recommended Action:</strong> Update Windows XP SP3 and/or Office 2003 SP3<br/>
<strong>My Severity Rating:</strong> Moderate</p>

<p>A vulnerability in text converters in WordPad and Office can cause remote code execution. Malicious code can be hosted on a website to trigger an exploit, however, an attempt would cause a dialog box to appear prompting the user to open the file (unless the option to “Always ask before opening this type of file” has been unchecked).</p>

<hr />

<h3>Adobe</h3>

<p><a href="http://praetorianprefect.com/wp-content/uploads/2009/12/adobelq.png"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="adobe-lq" border="0" alt="adobe-lq" src="http://praetorianprefect.com/wp-content/uploads/2009/12/adobelq_thumb.png" width="47" height="76" /></a></p>

<p>Adobe has mirrored the patch Tuesday schedule of releasing patches on the first Tuesday of the month. The severity ratings also follow the same definitions a s Microsoft’s.</p>

<p>Adobe has two advisories for this month:</p>

<hr />

<p><strong>Bulletin:</strong> APSA09-06     <br />
<strong>Recommended Action:</strong> Update Adobe Illustrator CS4 and earlier. (Avail Jan 8)     <br />
<strong>My Severity Rating:</strong> Low</p>

<p>A vulnerability in Illustrator CS4 and earlier could lead to remote code execution. The target is required to open a malicious eps file.</p>

<hr />

<p><strong>Bulletin:</strong> APSA09-17     <br />
<strong>Recommended Action:</strong> Update Adobe Flash Player and Adobe AIR<br/>
<strong>My Severity Rating:</strong> Low</p>

<p>Adobe states this is a critical update and it is scheduled for release today, but does not provide details of the update.</p>

<h3>Updates</h3>

<p>Adobe has released details on the Flash Player update. The update addresses six vulnerabilities, five which can lead to remote execution and one to information disclosure. The vulnerabilities were identified in Flash Player version 10.0.32.18 and earlier.</p>

<h3>References</h3>

<ul>
<li><a href="http://www.microsoft.com/technet/security/Bulletin/MS09-dec.mspx">Microsoft&#8217;s December Bulletins</a></li>
<li><a href="http://www.adobe.com/support/security/">Adobe&#8217;s Security Advisories</a></li>
</ul>

<p><strong>Related Posts:</strong></p>
<ul>
<li><a href="http://praetorianprefect.com/archives/2010/07/turning-an-atm-into-a-slot-machine/">Turning an ATM into a Slot Machine</a></li>
<li><a href="http://praetorianprefect.com/archives/2010/06/iphone-4-ordering-and-session-switching/">iPhone 4 Ordering and Session Switching</a></li>
<li><a href="http://praetorianprefect.com/archives/2010/05/mays-patch-tuesday/">May&#8217;s Patch Tuesday</a></li>
<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>
</ul><br />
]]></content:encoded>
			<wfw:commentRss>http://praetorianprefect.com/archives/2009/12/six-bulletins-in-last-patch-tuesday-of-2009/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>From Promiscuous to Port Scanning with Powershell</title>
		<link>http://praetorianprefect.com/archives/2009/11/from-promiscuous-to-port-scanning-with-powershell/</link>
		<comments>http://praetorianprefect.com/archives/2009/11/from-promiscuous-to-port-scanning-with-powershell/#comments</comments>
		<pubDate>Mon, 23 Nov 2009 19:04:15 +0000</pubDate>
		<dc:creator>Simon Price</dc:creator>
				<category><![CDATA[Security]]></category>
		<category><![CDATA[Administration]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[network]]></category>
		<category><![CDATA[portscan]]></category>
		<category><![CDATA[powershell]]></category>
		<category><![CDATA[scripting]]></category>
		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://praetorianprefect.com/?p=1924</guid>
		<description><![CDATA[

It&#8217;s been a while since my last post regarding Powershell which showed how to scan hosts for network interfaces in promiscuous mode. This time around, we’ll scan for some well known ports in our Active Directory to see who has a local IIS or SQL Express running on their machine. I know what you’re thinking. [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://praetorianprefect.com/wp-content/uploads/2009/12/powershell1.jpg"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="powershell1" border="0" alt="powershell1" src="http://praetorianprefect.com/wp-content/uploads/2009/12/powershell1_thumb.jpg" width="84" height="62" /></a></p>

<p>It&#8217;s been a while since <a href="http://praetorianprefect.com/archives/2009/09/whos-being-promiscuous-in-your-active-directory/" target="_blank">my last post regarding Powershell</a> which showed how to scan hosts for network interfaces in promiscuous mode. This time around, we’ll scan for some well known ports in our Active Directory to see who has a local IIS or SQL Express running on their machine. I know what you’re thinking. A port scanner? I already use trusty old NMAP or Superscan. This is not about port scanning, its about Powershell. In the last post, we used the <code>MSNdis_CurrentPackFilter</code> class of WMI to find any network cards in promiscuous mode, using Active Directory computer objects as our targets. Once again, I keep the AD query of computer objects as a way to source target hosts, but the scripts can easily be modified to take in a hosts file or an IP range. For making connections, let’s look into the <code>System.Net.Sockets</code> class.</p>

<p>When I started looking into a method I can use to establish a connection to a given port in order to check if it was open, I went with a Connect method using the <code>System.Net.Sockets.Socket</code> class. This isn’t what I ended up using in the finished script, but I want to mention this class, because it can be used to send data to a connected socket, or to receive data on a listening socket (there is a listen method as well). Perhaps a more detailed post will materialize on those items, but I haven’t thought of a reason to use them yet. Maybe we can convert <a href="http://praetorianprefect.com/archives/2009/11/how-to-crash-windows-7-and-server-2008/" target="_blank">Gaffie’s Python code that crashes Windows 7</a> into a Powershell script one day.</p>

<p>Why didn’t I end up using the socket.connect method? The timeout was too long and I lost patience fiddling with the <code>ConnectAsync</code> method. If interested, here is the code for the <code>socket.connect</code>:</p>

<pre><code>$computer = “test”
$ipport = [int]80
$comp = [Net.Dns]::GetHostEntry($computer)
foreach ($ip in $comp.AddressList) {
   $ep = New-Object System.Net.IPEndPoint($ip, $ipport)
   $socket = New-Object System.Net.Sockets.Socket([System.Net.Sockets.AddressFamily]::InterNetwork,
                                                  [System.Net.Sockets.SocketType]::Stream,
                                                  [System.Net.Sockets.ProtocolType]::Tcp)
   $optlevel = [System.Net.Sockets.SocketOptionLevel]::"Socket"
   $optname = [System.Net.Sockets.SocketOptionName]::"SendTimeout"
   $timeout = [Int]100
   $socket.SetSocketOption($optlevel,$optname,$timeout)
   $socket.Connect($ep)
   $socket.Close()
</code></pre>

<p>I’ve left out the AD code and the extra code that’s in the port scan script to show just the use of <code>socket.connect</code>. The workstation in the script is “test” and we’re trying to connect to port 80. If the host is using a firewall that will actively refuse the connection, we get a quick response which would be fine for a port scanner; but, if the port is simply not listening and there is no firewall to actively refuse the connection, there is a pretty significant delay before getting the connection error. This delay is not suitable for port scanning.</p>

<p>Instead of System.Net.Sockets.Socket, we will use the <code>System.Net.Sockets.TcpClient</code> class with the <code>BeginConnect</code> Method in conjunction with a timeout (if it doesn’t complete in a given time, we assume the connection is not available). I’ve seen examples of this used on <code>poshcode.org</code> for testing a connection to port 135 prior to making WMI calls or other RPC calls.</p>

<pre><code>$HostEntry = [Net.Dns]::GetHostEntry($CompName)
foreach ($ip in $HostEntry.AddressList) {
   Write-Host "Checking: $CompName on $ip"
   foreach ($tcpport in $PortList) {
      $TCPclient = new-Object system.Net.Sockets.TcpClient
      $Connection = $TCPclient.BeginConnect($ip,$tcpport,$null,$null)
      $TimeOut = $Connection.AsyncWaitHandle.WaitOne(3000,$false)  ## 3 second timeout can be modified
    if(!$TimeOut)   {
       $TCPclient.Close()
       Write-Host "     OK: Port $tcpport is closed."
       }
    else {
       try {
          $TCPclient.EndConnect($Connection) | out-Null
          $TCPclient.Close()
          ## Next line outputs that the port is closed. I prefer to see output 
          ## processing; comment for outputting only open ports.
          Write-Host "     " -nonewline
          Write-Host "Host: $CompName has port $tcpport open!" -foregroundcolor red -backgroundcolor yellow
          } 
       catch {
          ## Machine actively refused the connection. The port is not open but $TimeOut was still true
          ## Uncomment next line to output the error for this.
          ## write-host $_
         write-host "     OK: Port $tcpport is closed."
       }
</code></pre>

<div class="wp-caption" style="float: right;margin: 5px;margin-left: 60px;margin-right: 21px;"><a href="http://praetorianprefect.com/wp-content/uploads/2009/12/ScreenHunter_08Dec.0314.14.gif" title="" rel="lightbox"> <img src="http://praetorianprefect.com/wp-content/uploads/2009/12/ScreenHunter_08Dec.0314.14_thumb.gif" alt="router in router.png" border="0" width="229" height="248" /><p class="wp-caption-text">Note: the script requires a parameter<br />which is comma separated list of ports.<br /><br />Example: ad-portscan.ps1 23,80,443,1433</p></a></div>

<p>You can see by the code snippet above that we are using <code>Sockets.TcpClient</code> rather than <code>Sockets.Socket</code>, and the method used is <code>BeginConnect</code> rather than <code>Connect</code> as in the previous example. If the connection is not available in 3 seconds, the timeout is expired and the script reports the port is closed. In some cases, Windows firewall will refuse the connection while the timeout is not expired. I found in these cases, when attempting to close the connection, an error reported that the connection was refused and was never connected to begin with. This is where the TRY / CATCH comes in, as we check that we can cleanly close the open connection, which will then report that the port is open.</p>

<p>You can find the full script <a href="http://www.praetoriansecuritygroup.com/files/downloads/tools/ad-portscan.txt" target="_blank">here</a>, and while by no means is this to replace your standard port scanner, it can provide a quick way to scan your AD hosts for open ports that you specify or get you digging further into <code>Sockets.Socket</code> which can lead to many places.</p>

<p><em>Note: the script requires a parameter which is comma separated list of ports.</em></p>

<p><em>Example</em>: <code>ad-portscan.ps1 23,80,443,1433</code></p>

<hr />

<ul>
<li><a href="http://msdn.microsoft.com/en-us/library/system.net.sockets.aspx">http://msdn.microsoft.com/en-us/library/system.net.sockets.aspx</a></li>
</ul>

<p><strong>Related Posts:</strong></p>
<ul>
<li><a href="http://praetorianprefect.com/archives/2010/06/iphone-4-ordering-and-session-switching/">iPhone 4 Ordering and Session Switching</a></li>
<li><a href="http://praetorianprefect.com/archives/2010/05/mays-patch-tuesday/">May&#8217;s Patch Tuesday</a></li>
<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/2010/01/first-patch-tuesday-of-2010/">First Patch Tuesday of 2010</a></li>
</ul><br />
]]></content:encoded>
			<wfw:commentRss>http://praetorianprefect.com/archives/2009/11/from-promiscuous-to-port-scanning-with-powershell/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Remote SMB Exploit: Crashing Windows 7 and Server 2008</title>
		<link>http://praetorianprefect.com/archives/2009/11/how-to-crash-windows-7-and-server-2008/</link>
		<comments>http://praetorianprefect.com/archives/2009/11/how-to-crash-windows-7-and-server-2008/#comments</comments>
		<pubDate>Wed, 11 Nov 2009 21:16:28 +0000</pubDate>
		<dc:creator>Simon Price</dc:creator>
				<category><![CDATA[Remote Exploit]]></category>
		<category><![CDATA[windows]]></category>
		<category><![CDATA[kernal]]></category>
		<category><![CDATA[SMB]]></category>
		<category><![CDATA[windows 7]]></category>

		<guid isPermaLink="false">http://praetorianprefect.com/archives/2009/11/how-to-crash-windows-7-and-server-2008/</guid>
		<description><![CDATA[Python code was posted today by Laurent Gaffie on <a href="http://g-laurent.blogspot.com/" target="_blank">his blog</a>, demonstrating a much too easy way to remotely crash a Windows 7 or Windows Server 2008 machine. The crash is caused by sending a NetBIOS header which specifies that the SMB packet is 4 bytes smaller or larger than it actually is. In this code sample below, you can see that the header has the length of the packet set to 9a rather than 9e (4 bytes smaller).]]></description>
			<content:encoded><![CDATA[<p><a href="http://praetorianprefect.com/wp-content/uploads/2009/11/pc_guy.jpg"><img class="alignleft size-thumbnail wp-image-1585" title="pc_guy" alt="pc_guy" src="http://praetorianprefect.com/wp-content/uploads/2009/11/pc_guy-130x150.jpg" width="110" height="130" /></a></p>

<p>Python code was posted today by Laurent Gaffie on <a href="http://g-laurent.blogspot.com/" target="_blank">his blog</a>, demonstrating a much too easy way to remotely crash a Windows 7 or Windows Server 2008 machine. The crash is caused by sending a NetBIOS header which specifies that the SMB packet is 4 bytes smaller or larger than it actually is.</p>

<p>In this code sample below, you can see that the header has the length of the packet set to 9a rather than 9e (4 bytes smaller). Update: We have tested with different variations, such as 1 byte and 2 bytes off, which also caused the crash.</p>

<pre><code>packet = "\x00\x00\x00\x9a" # --&gt; length should be 9e not 9a.. 
"\xfe\x53\x4d\x42\x40\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01\x00"
"\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
"\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
"\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
"\x41\x00\x01\x00\x02\x02\x00\x00\x30\x82\xa4\x11\xe3\x12\x23\x41"
"\xaa\x4b\xad\x99\xfd\x52\x31\x8d\x01\x00\x00\x00\x00\x00\x01\x00"
"\x00\x00\x01\x00\x00\x00\x01\x00\xcf\x73\x67\x74\x62\x60\xca\x01"
"\xcb\x51\xe0\x19\x62\x60\xca\x01\x80\x00\x1e\x00\x20\x4c\x4d\x20"
"\x60\x1c\x06\x06\x2b\x06\x01\x05\x05\x02\xa0\x12\x30\x10\xa0\x0e"
"\x30\x0c\x06\x0a\x2b\x06\x01\x04\x01\x82\x37\x02\x02\x0a"
</code></pre>

<p>We also tested this by setting 9e to aa (4 bytes larger) to see if it had the same affect and it indeed it did.</p>

<p>A little about the “crash”. The Operating System actually freezes. There is no error message, no blue screen of death, no indication that anything has gone wrong. Even after power cycling, the event logs show no sign of a mishap, aside from the typical events generated from booting up again.</p>

<h4>Demonstration</h4>

<div class="wp-caption" style="float: right;margin: 5px;margin-left: 42px;margin-right: 21px;margin-bottom: 30px;"><a title="Frozen Windows 7" rel="lightbox" href="http://praetorianprefect.com/wp-content/uploads/2009/11/ScreenHunter_04Nov.1115.11.gif"><img src="http://praetorianprefect.com/wp-content/uploads/2009/11/ScreenHunter_04Nov.1115.11.gif" border="1" alt="NY Crime Rate Drop" width="300" height="218" /> </a></div>

<p>Our victim targets are:</p>

<ol>
<li>A Windows 7 Professional workstation with latest patches. </li>
<li>A Windows Server 2008 R2 Standard Core Edition with latest patches.</li>
</ol>

<p>On Open BSD, Mac OSX, and Linux 2.6 workstations, we ran the python code and had it listen on port 445.&#160; I would have had a Windows server run the listening server, but SMB on Windows already listens on port 445 and for the purpose of the demonstration it was easier to run it on machines that do not listen on this port by default.&#160; From the Windows 7 and Windows Server 2008 victim machines, we simply attempt any type of SMB connection to the bad hosts listening with the Python code. This can be done by simply doing a directory command (dir) to a non-existent share (<code>dir \\ip-address\share</code>).</p>

<p>The screenshot below shows the command window with the dir command used to attempt a connection to a host (172.17.20.139) which is running the Python code, ready to send that SMB packet over. As soon as the connection is attempted, the whole machine freezes. I had resource monitor and task manager running and every counter, even the ticking of uptime, stopped dead. In some cases, I left the machine in this state for a significant amount of time.&#160; Also, the host was no longer pingable, so once the crash occurred, it was off the network and no longer attempting any more SMB traffic.</p>

<h4>What is the big deal?</h4>

<div class="wp-caption" style="float: right;margin: 5px;margin-left: 42px;margin-right: 21px;"><a title="Internal Example URI" rel="lightbox" href="http://praetorianprefect.com/wp-content/uploads/2009/11/ScreenHunter_06Nov.1115.51new.gif"><img src="http://praetorianprefect.com/wp-content/uploads/2009/11/ScreenHunter_06Nov.1115.51new.gif" border="1" alt="NY Crime Rate Drop" width="300" height="218" /> </a></div>

<p>To simulate how an attacker could use this, we hosted a small internal web page, with a simple link to direct the user to our malicious host. Now, as seen in the image below, our link was very obvious for demonstration purposes, users can be redirected in various obfuscated ways.&#160; Although remote elevated privileges or sensitive data theft is not part of this proof of concept, this can still be a very troublesome issue.</p>

<hr />

<h3>References</h3>

<ul>
<li>g-laurent.blogspot.com: <a href="http://g-laurent.blogspot.com/">Windows 7 / Server 2008R2 Remote Kernel Crash</a></li>
<li>informationweek.com: <a href="http://www.informationweek.com/news/security/vulnerabilities/showArticle.jhtml?articleID=221601573">Microsoft Investigating Zero-Day Windows 7 Flaw</a></li>
<li>darkreading.com: <a href="http://www.darkreading.com/security/app-security/showArticle.jhtml?articleID=221700053&amp;cid=ref-true">Microsoft Looks Into Bug That Can Crash Windows 7</a></li>
<li>thetechherald.com: <a href="http://www.thetechherald.com/article.php/200946/4784/Microsoft-Kernel-Smash-vulnerability-being-investigated">Microsoft Kernel Smash vulnerability being investigated</a></li>
</ul>

<h3>Update</h3>

<p>Microsoft says this is being investigated as a possible denial of service vulnerability, but initially responded that correcting it will be handled in the first service pack updates for Windows 7 and Server 2008 R2 rather then as a &quot;Patch Tuesday&quot; security update.</p></p>

<p>Microsoft has posted a <a href="http://www.microsoft.com/technet/security/advisory/977544.mspx">security advisory (977544)</a> regarding the issue.</p>

<p><strong>Related Posts:</strong></p>
<ul>
<li><a href="http://praetorianprefect.com/archives/2010/03/iepeers-a-new-internet-explorer-zero-day-vulnerability/">IEPeers &#8211; A New Internet Explorer Zero Day Vulnerability</a></li>
<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/2010/01/the-aurora-ie-exploit-in-action/">The &#8220;Aurora&#8221; IE Exploit Used Against Google in Action</a></li>
<li><a href="http://praetorianprefect.com/archives/2010/01/windows-smb-crash-video/">Windows 7 SMB Kernel Crash Video</a></li>
</ul><br />
]]></content:encoded>
			<wfw:commentRss>http://praetorianprefect.com/archives/2009/11/how-to-crash-windows-7-and-server-2008/feed/</wfw:commentRss>
		<slash:comments>24</slash:comments>
		</item>
		<item>
		<title>More COFEE Please, on Second Thought&#8230;</title>
		<link>http://praetorianprefect.com/archives/2009/11/more-cofee-please-on-second-thought/</link>
		<comments>http://praetorianprefect.com/archives/2009/11/more-cofee-please-on-second-thought/#comments</comments>
		<pubDate>Mon, 09 Nov 2009 17:24:49 +0000</pubDate>
		<dc:creator>Simon Price</dc:creator>
				<category><![CDATA[Featured]]></category>
		<category><![CDATA[Forensics]]></category>
		<category><![CDATA[hype]]></category>
		<category><![CDATA[Microsoft]]></category>

		<guid isPermaLink="false">http://praetorianprefect.com/archives/2009/11/more-cofee-please-on-second-thought/</guid>
		<description><![CDATA[The forensics tool provided to law enforcement officials created by Microsoft called COFEE&#160; (Computer Online Forensic Evidence Extractor) has been leaked on torrents last week, and this has caused quite a bit of excitement.&#160; Let’s see if the big deal is warranted.]]></description>
			<content:encoded><![CDATA[<p><div class="wp-caption" style="float: right;margin: 5px;margin-left: 60px;margin-right: 21px;"><a href="http://praetorianprefect.com/wp-content/uploads/2009/11/938024.jpg"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="938-024" border="0" alt="938-024" align="right" src="http://praetorianprefect.com/wp-content/uploads/2009/11/938024_thumb.jpg" width="113" height="166" /></a></div> The forensics tool provided to law enforcement officials created by Microsoft called COFEE&#160; (Computer Online Forensic Evidence Extractor) has been leaked on torrents last week, and this has caused quite a bit of excitement.&#160; Let’s see if the big deal is warranted.</p>

<p>The software is made up of three components or phases: </p>

<ul>   <li>The tool generation phase which is meant for the more tech-savvy forensics examiner to setup a profile which is exported to a USB disk. This is a simple decision making process of which tools and parameters should be setup to run from the USB drive. </li>    <li>The data acquisition phase which is meant for the non-technical law enforcement folks who arrive on the scene to collect evidence. They use the USB disk configured in the tool generation phase which runs through a set of common tools to gather volatile data, such as running processes, etc and saves the output from each command. </li>    <li>The report generation phase is once again meant for the tech-savvy.&#160; It uses the same GUI console as the tool generation phase, but this time to view the reports which are generated from the output of the tools run from the USB disk. </li> </ul>

<p>I’ve been reading some of the news articles, blogs, and related comments on the issue of the software being leaked and how the hackers now have more ammunition, by seeing how COFEE works they can improve malicious code to avoid or misrepresent data.&#160; However, COFEE is not very special.&#160; Aside from being provided by Microsoft, it really doesn’t do much more than the other forensics toolkits out there.&#160; For example, IRCR (Incident Response Collection Report) by John McLeod, the Windows Forensics Toolchest by Monty McDougal, Harlan Carvey’s FSP (Forensic Server Project) , and a forensics toolkit called PTN-FT that I’ve written myself, all operate on the same basis of providing a forensics framework which allows you to configure a list of commands used to collect volatile data and save the output for use in some reporting format or a format that can be uploaded to a database for analysis. </p>

<p><a rel="lightbox" href="http://praetorianprefect.com/wp-content/uploads/2009/11/ScreenHunter_01Nov.0911.30.gif"><img style="border-right-width: 0px; margin: 0px 10px 0px 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="ScreenHunter_01 Nov. 09 11.30" border="0" alt="ScreenHunter_01 Nov. 09 11.30" align="right" src="http://praetorianprefect.com/wp-content/uploads/2009/11/ScreenHunter_01Nov.0911.30_thumb.gif" width="244" height="194" /></a> Microsoft provides a GUI for tool selection (see figure) whereas most toolkits use a config file or batch file to modify tool selection and parameters.&#160; It appears even the configuration of the USB disk comes with an easy to use interface.&#160; In addition to the tools preconfigured, you can add tools from your own collection.</p>

<p>One feature I found to be useful from COFEE is the random generation of the tool name.&#160; While most toolkits out there will use tools from a good source (such as the Helix CD), Microsoft goes a step further in renaming the tools to random generated names, causing no doubt that the intended version of the tool is running.&#160; </p>

<p><br /></p>

<p><a rel="lightbox" href="http://praetorianprefect.com/wp-content/uploads/2009/11/ScreenHunter_02Nov.0911.46.gif"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="ScreenHunter_02 Nov. 09 11.46" border="0" alt="ScreenHunter_02 Nov. 09 11.46" src="http://praetorianprefect.com/wp-content/uploads/2009/11/ScreenHunter_02Nov.0911.46_thumb.gif" width="244" height="190" /></a></p>

<p>The output format is in XML and when loaded&#160; into the GUI, gives a view to the information as seen in the figure on the left. As mentioned, this is not ground-breaking forensics technology as many toolkits give a nice view into the output data by framing it in HTML.</p>

<p>More of the same in terms of forensics toolkits, COFEE keeps hashes of the tools in a checksum file and also has multiple directories for OS specific tools (\winxp, \win2k03, etc). According to the documentation, it is not supported on Vista and Windows 7, but apparently a new version is planned for those operating systems. </p>

<div id='extendedEntryBreak' name='extendedEntryBreak'></div>

<p></p>

<h3>Conclusion</h3>

<p>The conclusion is that the excitement is not warranted.&#160; There is nothing groundbreaking in COFEE that has not been seen in other toolkits.&#160; It may even come short in some areas as I did not see any methods of memory dumps or capturing of the prefetch directory.&#160; The excitement is rather because this piece of software has been difficult to obtain, even by law enforcement, and that both forensics experts and the anti-forensics communities has been curious to see what Microsoft themselves had to provide in this space.&#160; Personally, I will pass on this cup of COFEE and continue using my own forensics framework along with the others I mentioned earlier.</p>

<p>&#160;</p>

<p>&#160;</p>

<hr />

<p>Default tools &amp; parameters launched by COFEE:</p>

<p><pre><code>arp.exe ‐a&#160; <br />at.exe&#160;&#160;&#160; <br />autorunsc.exe&#160;&#160;&#160; <br />getmac.exe&#160;&#160;&#160; <br />handle.exe ‐a&#160; <br />hostname.exe&#160;&#160;&#160; <br />ipconfig.exe&#160; /all&#160; <br />msinfo32.exe&#160; /report %OUTFILE%&#160; <br />nbtstat.exe ‐n&#160; <br />nbtstat.exe ‐A 127.0.0.1&#160; <br />nbtstat.exe ‐S&#160; <br />nbtstat.exe ‐c&#160; <br />net.exe&#160; share&#160; <br />net.exe&#160; use&#160; <br />net.exe&#160; file&#160; <br />net.exe&#160; user&#160; <br />net.exe&#160; accounts<br />net.exe&#160; view&#160; <br />net.exe&#160; start&#160; <br />net.exe&#160; Session&#160; <br />net.exe&#160; localgroup administrators /domain&#160; <br />net.exe&#160; localgroup&#160; <br />net.exe&#160; localgroup administrators&#160; <br />net.exe&#160; group&#160; <br />netdom.exe&#160; query DC&#160; <br />netstat.exe ‐ao&#160; <br />netstat.exe ‐no&#160; <br />openfiles.exe&#160; /query/v&#160; <br />psfile.exe&#160;&#160;&#160; <br />pslist.exe&#160;&#160;&#160; <br />pslist.exe ‐t&#160; <br />psloggedon.exe&#160;&#160;&#160; <br />psservice.exe&#160;&#160;&#160; <br />pstat.exe&#160;&#160;&#160; <br />psuptime.exe&#160;&#160;&#160; <br />quser.exe&#160;&#160;&#160; <br />route.exe&#160; print&#160; <br />sc.exe&#160; query&#160; <br />sc.exe&#160; queryex&#160; <br />sclist.exe&#160;&#160;&#160; <br />showgrps.exe&#160;&#160;&#160; <br />srvcheck&#160; &#92;127.0.0.1&#160; <br />tasklist.exe&#160; /svc&#160; <br />whoami.exe&#160;&#160; </code></pre></p>

<div id='extendedEntryBreak' name='extendedEntryBreak'></div>

<p></p>

<h3>Update &#8211; 11/10/09</h3>

<p>There is speculation that the version released only has 45 commands and is therefore not the full &#8220;150 command&#8221; version that Microsoft reported releasing. The released version is 1.1.2 which corresponds to the version information in the documentation. The documentation does not list 150 discrete commands (really separate programs). Therefore the 150 command statement may be incorrect or may just be inflation of what&#8217;s there (for example treating &#8216;netstat + option&#8217; as its own command).</p>

<p><strong>Related Posts:</strong></p>
<ul>
<li><a href="http://praetorianprefect.com/archives/2010/04/winpe-3-0-forensics/">WinPE 3.0 &#038; Forensics</a></li>
<li><a href="http://praetorianprefect.com/archives/2010/01/the-aurora-ie-exploit-in-action/">The &#8220;Aurora&#8221; IE Exploit Used Against Google in Action</a></li>
<li><a href="http://praetorianprefect.com/archives/2010/01/scareware-purveyors-spammers-and-crooks-take-advantage-of-haiti-earthquake/">Scareware Purveyors, Spammers, and Crooks Take Advantage of Haiti Earthquake</a></li>
<li><a href="http://praetorianprefect.com/archives/2010/01/baidu-com-the-latest-victim-of-iranian-cyberarmy/">Baidu.com the Latest Victim of Iranian CyberArmy</a></li>
<li><a href="http://praetorianprefect.com/archives/2010/01/junos-juniper-flaw-exposes-core-routers-to-kernal-crash/">JUNOS (Juniper) Flaw Exposes Core Routers to Kernel Crash</a></li>
</ul><br />
]]></content:encoded>
			<wfw:commentRss>http://praetorianprefect.com/archives/2009/11/more-cofee-please-on-second-thought/feed/</wfw:commentRss>
		<slash:comments>12</slash:comments>
		</item>
		<item>
		<title>Where is your BES Policy?</title>
		<link>http://praetorianprefect.com/archives/2009/10/where-is-your-bes-policy/</link>
		<comments>http://praetorianprefect.com/archives/2009/10/where-is-your-bes-policy/#comments</comments>
		<pubDate>Mon, 26 Oct 2009 16:23:52 +0000</pubDate>
		<dc:creator>Simon Price</dc:creator>
				<category><![CDATA[Administration]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[data leak prevention]]></category>
		<category><![CDATA[BES]]></category>
		<category><![CDATA[blackberry]]></category>
		<category><![CDATA[exchange]]></category>
		<category><![CDATA[iphone]]></category>
		<category><![CDATA[IT]]></category>
		<category><![CDATA[mobile]]></category>
		<category><![CDATA[passwords]]></category>
		<category><![CDATA[policy]]></category>
		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://praetorianprefect.com/?p=1139</guid>
		<description><![CDATA[Several months ago, users of a wireless carrier in the United Arab Emirates (UAE) were sent an SMS message to their Blackberry devices instructing them to install a software patch that would resolve recent network trouble they’ve been experiencing. The patch turned out to be spyware (Etisalat.A[MA]) and would intercept the user’s email, sending the [...]]]></description>
			<content:encoded><![CDATA[<p>Several months ago, users of a wireless carrier in the United Arab Emirates (UAE) were sent an SMS message to their Blackberry devices instructing them to install a software patch that would resolve recent network trouble they’ve been experiencing. The patch turned out to be spyware (<a href="http://threatcenter.smobilesystems.com/?p=1001" target="_blank">Etisalat.A[MA]</a>) and would intercept the user’s email, sending the messages to a listening agent inside the Etisalat network.</p>

<p>About one month ago, a problem in the Blackberry browser left devices open to attack due to a certificate notification flaw. An <a href="http://www.blackberry.com/btsc/viewContent.do?externalId=KB19552" target="_blank">advisory</a> from Research in Motion details how a malicious user could spoof a “trusted” website then use a phishing technique to send users to that site using SMS or email.</p>

<p>A malformed SMS message causing a memory corruption error could be used to cause a denial of service or execution of arbitrary code on Apple’s iPhone (<a href="http://support.apple.com/kb/HT3754" target="_blank">CVE-2009-2204</a>). Although not related to Blackberry, I wanted to get the point across that mobile devices are beginning to see their fair share of vulnerabilities which could lead to malicious activity.</p>

<p><img style="border-right-width: 0px; margin: 0px 20px 0px 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="ScreenHunter_18 Oct. 26 10.36" border="0" alt="ScreenHunter_18 Oct. 26 10.36" align="left" src="http://praetorianprefect.com/wp-content/uploads/2009/10/ScreenHunter_18Oct.2610.36_thumb.gif" width="177" height="244" />Turning our focus back to the Blackberry, a director for Hermis Consulting in Jakarta, Indonesia recently wrote an application for the Blackberry which can turn the handheld into a remote bugging device.     <br />The software is called <a href="http://chirashi.zensay.com/2009/10/remote-listening-for-the-blackberry/" target="_blank">PhoneSnoop</a> and was written to demonstrate how an “attacker can activate the microphone of a Blackberry handheld and listen to sounds near or around it.” There are currently no stealth or spyware aspects of the software, but it shows how the capabilities of a Blackberry could be used for malicious purposes.</p>

<p>These issues remind me of my previous position, managing a global infrastructure team for a financial company.&#160; Exchange and Blackberry services were under our umbrella of responsibilities.&#160; When I first arrived many years ago, as with most companies that are victims of rapid growth, IT policies were non-existent.&#160; Though unpopular with the users, I had to have a BES policy implemented, and one that took quite a bit of control from the user. From password policies to WiFi disabling, where is your BES policy?</p>

<p>&#160;</p>

<p><img style="border-right-width: 0px; margin: 0px 20px 20px; float: right; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="blackberry-bold-att-single_tall" border="0" alt="blackberry-bold-att-single_tall" align="right" src="http://praetorianprefect.com/wp-content/uploads/2009/10/blackberryboldattsingle_tall.jpg" width="123" height="175" /></p>

<p><em>Note: A BES (Blackberry Enterprise Software) is middleware software which connects to your enterprise messaging solution (such as Microsoft Exchange or IBM Lotus Domino) and redirects email and PIM information to and from Blackberry mobile devices. </em></p>

<p><em>Note: A BES IT Policy is configured from the BES and are assigned to the Blackberry devices over the air.&#160; Policies can be assigned to users and user groups. The default installation does not enforce policies which should definitely be enabled and are best practices on any platform or device. See the bottom of this post for the KB with instructions on how to create and apply policies.</em></p>

<h4>At the bare minimum, you should have these basic policies set:</h4>

<ul>   <li>Password Required Rule – True </li>    <li>User Can Change Time – False </li>    <li>User Can Disable Password – False </li>    <li>Password Pattern Checks – Require at least 1 alpha and 1 numeric </li>    <li>Minimum Password Length – 7 characters </li>    <li>Maximum Password Age – 30 or 60 days </li>    <li>Set Password Timeout – 10 minutes </li>    <li>Set Maximum Password Attempts – 10 </li>    <li>Maximum Password History – 6 </li>    <li>Set Owner Info – Customize </li>    <li>Set Owner Name – Customize </li>    <li>Lock Owner Info – Customize </li>    <li>Remote Wipe Reset to Factory Defaults &#8211; True </li> </ul>

<h4>Control Upgrades:</h4>

<ul>   <li>Allow Non Enterprise Upgrade – False </li>    <li>Disallow Device User Requested Upgrade – True </li> </ul>

<h4>Camera Options:</h4>

<ul>   <li>Disable Photo Camera – True&#160; </li>    <li>Disable Video Camera – True </li> </ul>

<h4>Application Control:</h4>

<ul>   <li>Disable Application Center – True </li>    <li>Allow Application Down Services – False </li>    <li>Disallow Third Party Application Downloads – True </li> </ul>

<h4>Other Policies I Like:</h4>

<ul>   <li>Disable USB Mass Storage – True </li>    <li>Disable Blackberry Messenger – True </li>    <li>Disable Bluetooth – True </li>    <li>Allow Application Download Services – False </li>    <li>Allow Hotspot Browser – False </li>    <li>Allow IBS Browser – False </li> </ul>

<h4>Too Much?</h4>

<p>Now, these policies are starting to sound too strict at a glance; but, the purpose of the device is for users to have access to their email, contacts and calendars anywhere and to have a mobile phone they can be reached at any time.&#160; Cameras, Hotspots and transferring photos and music using USB mass storage are features that are not necessary. If you have legitimate business needs for these features, than you can enable them for certain user groups using a policy.</p>

<p>The policies mentioned are a very small fraction of what is available. I’d like to hear which policies you find useful in your environment, or which you find to be more harm than good.</p>

<p>For a complete list of policies, please see the <a href="http://docs.blackberry.com/eng/deliverables//3801/Policy_Reference_Guide.pdf" target="_blank">Policy Reference Guide</a>.</p>

<h4>&#160;</h4>

<h4>Howto</h4>

<p><b>     <br />Create, Assign, View, and Send IT policies</b>     <br /><b>Doc ID :</b> KB02022     <br /><b>Last Modified :</b> 2007-02-01     <br /><b>Document Type :</b> How To     <br /><b>Environment</b>     <br />This article applies to BlackBerry® Enterprise Server software versions 3.6, 4.0, and 4.1 for Microsoft® Exchange.     <br /><b>Procedure</b>     <br />The BlackBerry Enterprise Server uses an IT policy to control the behavior of the BlackBerry devices assigned to it. IT policies cover a wide range of BlackBerry device functions (for example, passwords, attachment viewing, and available browsers). Administrators can create custom IT policies in addition to the IT policies already present on the BlackBerry Enterprise Server.     <br /><b>Creating IT Policies</b>     <br />To create an IT policy, complete these steps:     <br />BlackBerry Enterprise Server software versions 3.6 and 4.0</p>

<ol>   <li>Depending on your version, open the BlackBerry Enterprise Server Management console or BlackBerry Manager. </li>    <li>Right-click the BlackBerry Enterprise Server name, then click <b>IT Policy</b>. </li>    <li>Click <b>New</b>, then create a name for the IT policy. </li>    <li>Select the check box beside each IT policy rules item you would like to assign. A description of the IT policy will appear. </li>    <li>To enable the selected IT policy, in the description window, click <b>TRUE</b>. </li>    <li>Click <b>Apply</b>, then click <b>OK</b>. </li> </ol>

<p>BlackBerry Enterprise Server software version 4.1</p>

<ol>   <li>In BlackBerry Manager, select <b>Servers</b>, then click the <b>Global</b> tab. </li>    <li>From the Tasks menu, click <b>Edit Properties</b>. </li>    <li>Select <b>IT Policy</b>, then double-click <b>IT Policies</b>. </li>    <li>Click <b>New</b>, then create a name for the IT policy. </li>    <li>Select an IT policy group to view the associated IT policy rules. </li>    <li>Select the appropriate IT policy rules. </li>    <li>Click <b>Apply</b>, then click <b>OK</b>. </li> </ol>

<p><b>Assigning IT Policies</b>     <br />To assign an IT policy to a BlackBerry device user, complete the following steps:     <br />BlackBerry Enterprise Server software versions 3.6 and 4.0</p>

<ol>   <li>Depending on your version, open the BlackBerry Enterprise Server Management console or BlackBerry Manager. </li>    <li>Right-click the BlackBerry Enterprise Server name, then click <b>IT Policy</b>. </li>    <li>Select an IT policy, then click <b>Edit User List</b>. </li>    <li>Click <b>Add Users to This Policy</b>. </li>    <li>Select a BlackBerry device user, then click <b>Add</b>. </li>    <li>Click <b>Close</b>, then click <b>OK</b> to close the Edit IT Policy Userlist window. </li>    <li>Click <b>OK</b> again. </li> </ol>

<p>BlackBerry Enterprise Server software version 4.1</p>

<ol>   <li>In BlackBerry Manager, select <b>Servers</b>, then click the <b>Global</b> tab. </li>    <li>From the Tasks menu, select <b>Edit Properties</b>. </li>    <li>Select <b>IT Policy</b>, then double click <b>IT Policy to User Mapping</b>. </li>    <li>Select a BlackBerry device user, then click the button next to the appropriate IT policy. </li>    <li>Click <b>OK</b> to close the IT policy to User Mapping window. </li>    <li>Click <b>Apply</b>, then click <b>OK</b>. </li> </ol>

<p><b>Viewing IT Policies</b>     <br />To view IT policies on the BlackBerry Enterprise Server, complete these steps:     <br />BlackBerry Enterprise Server software versions 3.6 and 4.0</p>

<ol>   <li>Depending on your version, open the BlackBerry Enterprise Server Management console or BlackBerry Manager </li>    <li>Right-click the BlackBerry Enterprise Server name, then click <b>IT Policy</b>. </li>    <li>Select an IT policy, then click <b>View</b> to see the BlackBerry device and Desktop Policy Settings that have been applied. </li>    <li>Click <b>OK</b> to close the View Policy window. </li>    <li>Click <b>OK</b> again. </li> </ol>

<p>BlackBerry Enterprise Server software version 4.1</p>

<ol>   <li>In BlackBerry Manager, click <b>Servers</b>, then click the <b>Global</b> tab. </li>    <li>From the Tasks menu, select <b>Edit Properties</b>. </li>    <li>Select <b>IT Policy</b>, then double-click <b>IT Policies</b>. </li>    <li>To view the IT policy rules, click <b>Properties</b>. </li>    <li>Click <b>OK</b>. </li> </ol>

<p>To view an IT policy on a BlackBerry device, complete these steps:</p>

<ol>   <li>From the Home screen, select <b>Options</b>. </li>    <li>Select <b>Security Options &gt; General Settings</b>. </li>    <li>The IT policy Name, Last Updated, and Time Stamp fields will be listed. </li> </ol>

<blockquote>   <p><b>Note:</b> Depending on the BlackBerry device and BlackBerry Device Software version, the instructions for viewing the IT policy on the BlackBerry device may vary. For example, on the BlackBerry 7100 series, the BlackBerry device user must select <b>Settings</b> or <b>Tools</b>, then select <b>Security</b>.</p> </blockquote>

<p><b>Sending IT Policies</b>     <br />To send an IT policy to a BlackBerry device user, complete the following steps:     <br /><b>Note:</b> By default, when you assign an IT policy to a BlackBerry device user, the IT policy is automatically sent to the BlackBerry device user.     <br /><b>Note:</b> When a change is made to an existing IT policy, it is automatically resent to all BlackBerry device users assigned to that IT policy.     <br />BlackBerry Enterprise Server software versions 3.6 and 4.0</p>

<ol>   <li>Depending on your version, open the BlackBerry Enterprise Server Management console or BlackBerry Manager </li>    <li>Select the BlackBerry Enterprise Server name, then right-click a BlackBerry device user name. </li>    <li>Click <b>Properties</b>. </li>    <li>On the IT Admin tab, click <b>Resend policy</b>. </li>    <li>Click <b>Apply</b>, then click <b>OK</b>. </li> </ol>

<p>BlackBerry Enterprise Server software version 4.1</p>

<ol>   <li>In BlackBerry Manager, select the BlackBerry Enterprise Server name. </li>    <li>Select a BlackBerry device user, then click the question mark ( <b>?</b> ) symbol beside <b>IT Admin</b>. </li>    <li>From the menu that appears, you can resend the IT policy or assign an IT policy to a BlackBerry device user. </li>    <li>Click <b>OK</b>. </li> </ol>

<p><strong>Related Posts:</strong></p>
<ul>
<li><a href="http://praetorianprefect.com/archives/2010/06/iphone-4-ordering-and-session-switching/">iPhone 4 Ordering and Session Switching</a></li>
<li><a href="http://praetorianprefect.com/archives/2010/05/mays-patch-tuesday/">May&#8217;s Patch Tuesday</a></li>
<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/2010/01/first-patch-tuesday-of-2010/">First Patch Tuesday of 2010</a></li>
</ul><br />
]]></content:encoded>
			<wfw:commentRss>http://praetorianprefect.com/archives/2009/10/where-is-your-bes-policy/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Adobe to release critical update on patch Tuesday</title>
		<link>http://praetorianprefect.com/archives/2009/10/adobe-to-release-critical-update-on-patch-tuesday/</link>
		<comments>http://praetorianprefect.com/archives/2009/10/adobe-to-release-critical-update-on-patch-tuesday/#comments</comments>
		<pubDate>Fri, 09 Oct 2009 15:03:50 +0000</pubDate>
		<dc:creator>Simon Price</dc:creator>
				<category><![CDATA[Featured]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[adobe]]></category>
		<category><![CDATA[exploit]]></category>
		<category><![CDATA[patch]]></category>
		<category><![CDATA[patch tuesday]]></category>
		<category><![CDATA[reader]]></category>
		<category><![CDATA[updates]]></category>
		<category><![CDATA[Vulnerability]]></category>
		<category><![CDATA[zero-day]]></category>

		<guid isPermaLink="false">http://praetorianprefect.com/?p=882</guid>
		<description><![CDATA[A new zero-day vulnerability in Adobe Reader and Acrobat 9.1.3 has been identified by Chia-Ching Fang and the Taiwanese Information and Communication Security Technology Service Center that allows an attacker to remotely execute arbitrary code. The attack is seeded by providing via e-mail or download a specially crafted PDF file which in current examples will then drop a malware executable as well as an unaffected pdf file.]]></description>
			<content:encoded><![CDATA[<p><a href="http://praetorianprefect.com/wp-content/uploads/2009/10/adobelq1.png"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="adobe-lq" border="0" alt="adobe-lq" src="http://praetorianprefect.com/wp-content/uploads/2009/10/adobelq_thumb1.png" width="47" height="76" /></a></p>

<p>A new zero-day vulnerability in Adobe Reader and Acrobat 9.1.3 has been identified by Chia-Ching Fang and the Taiwanese Information and Communication Security Technology Service Center that allows an attacker to remotely execute arbitrary code. The attack is seeded by providing via e-mail or download a specially crafted PDF file which in current examples will then drop a malware executable as well as an unaffected pdf file. McAfee is identifying this under Exploit-PDF.m, and has a signature for a specific Trojan already identified. This is the fourth PDF related zero-day attack of 2009, and a further incentive for enterprises to bring patching of applications in line with processes for operating system patching.</p>

<p>The crafted PDF file contains a Javascript which is used to execute arbitrary code via a technique known as heap spraying. The initial shell code jumps program execution to a second shell code, which in turn executes a malicious file that creates a backdoor (remote access to the infected computer). <a href="http://blog.trendmicro.com/new-adobe-zero-day-exploit/">Trend Micro</a> is identifying this malware as a Protux variant. Protux backdoors provide user level access to the machine and have been associated as the payloads of Microsoft Office (Word, PowerPoint, Excel, Access) as well as previous Adobe Reader exploits. The Protux family of Trojans has been around since at least 2007.</p>

<p>The identification of this exploit has prompted Adobe to announce release of a critical patch for release on Tuesday, October 13th. The company posted a <a href="http://www.adobe.com/support/security/bulletins/apsb09-15.html">security advisory</a> yesterday, announcing plans to release the update to “resolve critical security issues&#8221;. The vulnerability is being exploited, although it is unclear how widespread the attacks are. Adobe asserts that the vulnerability is being exploited in “limited, targeted attacks” limited to Windows operating systems although the vulnerability itself also exists for other operating systems.</p>

<blockquote>
  <p>“There are reports that this issue is being exploited in the wild in limited targeted attacks”     <br /> – David Lenoe of Adobe</p>
</blockquote>

<p>Vupen Security posted an <a href="http://www.vupen.com/english/advisories/2009/2851&quot;">advisory</a> on the vulnerability (CVE-2009-3459) which states that the issue is an unspecified memory corruption error, which could be exploited allowing attackers to comprise a system remotely.</p>

<h3>Workarounds</h3>

<h4>Disabling Javascript on Adobe Acrobat</h4>

<p>Adobe notes that disabling Javascript mitigates against the specific exploit identified, although it would be possible to create a variant that does not rely on Javascript.  To disable Javascript in Adobe Reader or Acrobat, select Edit > Preferences, select the JavaScript option on the left, and uncheck the <i>Enable Acrobat JavaScript</i> option as shown.</p>

<p><div id="attachment_916" class="wp-caption alignnone" style="width: 650px"><a href="http://praetorianprefect.com/wp-content/uploads/2009/10/AcrobatPreferences.png"><img src="http://praetorianprefect.com/wp-content/uploads/2009/10/AcrobatPreferences.png" alt="Uncheck to disable Acrobat JavaScript" title="AcrobatPreferences" width="640" height="424" class="size-full wp-image-916" /></a><p class="wp-caption-text">Uncheck to disable Acrobat JavaScript</p></div>
<br /></p>

<h4>Data Execution Prevention</h4>

<p>Also, users with DEP enabled on Windows Vista or Windows 7 are protected from this exploit. Data Execution Prevention (DEP) performs additional checks on memory to help prevent malicious code from running, designed to prevent buffer overflow attacks. To enable DEP on Windows for all or individual programs, proceed to Control Panel -> System and Maintenance -> System, click on Advanced System Settings, under Performance click Settings, and finally under the Data Execution Prevention tab click <i>Turn on DEP for all programs and services except those I select</i>. If you can not find Acrobat in the list of programs, click Add and browse to the Acrobat executable (.exe) file and click Open.  For more information on DEP settings, visit the <a href="http://windows.microsoft.com/en-us/windows-vista/Change-Data-Execution-Prevention-settings">Microsoft help page</a>.</p>

<h3>In Conclusion</h3>

<p>In June Adobe moved to the same Tuesday patch management schedule that Microsoft and Oracle previously adopted. This latest zero-day exploit represents another opportunity to address an ongoing issue for organizations: that patch management must extend beyond just the operating system level. While enterprises focus on ensuring the latest Microsoft updates to the desktop and server environment, applications, such as Adobe Reader, fail to be a part of the the same rigorous patch management exercise.</p>

<p>Qualys demonstrated this problem when the first Adobe exploit was released this year in February, APSA09-01.  While a fix was released on March 10th (demonstrated by the red line in their graph), by April 27th there was still no clear reduction in the number of vulnerable machines. A 30 day patch management cycle, including testing of the patch before full enterprise release, would have shown a steep drop off on or about April 10th:</p>

<p><div id="attachment_914" class="wp-caption alignnone" style="width: 609px"><a href="http://praetorianprefect.com/wp-content/uploads/2009/10/adobe_april_09.png"><img src="http://praetorianprefect.com/wp-content/uploads/2009/10/adobe_april_09.png" alt="Source: http://laws.qualys.com/lawsblog/2009/04/new-adobe-0-day-vulnerability.html" title="adobe_april_09" width="599" height="341" class="size-full wp-image-914" /></a><p class="wp-caption-text">Source: http://laws.qualys.com/lawsblog/2009/04/new-adobe-0-day-vulnerability.html</p></div>
<br />
In March Adobe patched a two month old zero day exploit, followed by another patch in May to block a second zero day attack. In July a fix was released for a Flash PDF related flaw.  As evidenced by the four exploits thus far this year, Adobe applications are becoming an increasingly attractive target for bad actors.
<br /><br /></p>

<p><strong>Related Posts:</strong></p>
<ul>
<li><a href="http://praetorianprefect.com/archives/2010/06/iphone-4-ordering-and-session-switching/">iPhone 4 Ordering and Session Switching</a></li>
<li><a href="http://praetorianprefect.com/archives/2010/05/mays-patch-tuesday/">May&#8217;s Patch Tuesday</a></li>
<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/2010/01/the-aurora-ie-exploit-in-action/">The &#8220;Aurora&#8221; IE Exploit Used Against Google in Action</a></li>
</ul><br />
]]></content:encoded>
			<wfw:commentRss>http://praetorianprefect.com/archives/2009/10/adobe-to-release-critical-update-on-patch-tuesday/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Server 2008 R2: Active Directory Functional Levels</title>
		<link>http://praetorianprefect.com/archives/2009/10/server-2008-r2-active-directory-functional-levels/</link>
		<comments>http://praetorianprefect.com/archives/2009/10/server-2008-r2-active-directory-functional-levels/#comments</comments>
		<pubDate>Tue, 06 Oct 2009 09:12:14 +0000</pubDate>
		<dc:creator>Simon Price</dc:creator>
				<category><![CDATA[Administration]]></category>
		<category><![CDATA[Networking]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[windows]]></category>
		<category><![CDATA[active directory]]></category>
		<category><![CDATA[federation services]]></category>
		<category><![CDATA[kerberos]]></category>
		<category><![CDATA[ldap]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[powershell]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[windows 2008]]></category>

		<guid isPermaLink="false">http://praetorianprefect.com/?p=758</guid>
		<description><![CDATA[Windows Server 2008 R2 was released in August, and it introduced new functional levels for Active Directory. This article takes a look back at the different functional levels of the past and what is new in the latest release of the server operating system for Active Directory (yes, a recycle bin for AD objects!).

Functional levels [...]]]></description>
			<content:encoded><![CDATA[<p>Windows Server 2008 R2 was released in August, and it introduced new functional levels for Active Directory. This article takes a look back at the different functional levels of the past and what is new in the latest release of the server operating system for Active Directory (yes, a recycle bin for AD objects!).</p>

<p>Functional levels were first introduced when Active Directory made its appearance in Windows 2000 Server. They allowed you to run different versions of domain controllers in your environment, and when all the domain controllers were brought up to a certain version of Windows, you could raise the functional levels to gain the added features of that operating system version. Now that Windows 2008 R2 is released, it is unlikely that you will mass deploy this new operating system to your entire forest or domain. Instead, you&#8217;ll deploy a single domain controller and kick the tires, so to speak. The time will eventually come when you&#8217;ve upgraded every domain controller to R2, and at that point you can raise the functional level to 2008 R2 to take advantage of the new features.</p>

<p>Functional levels can be raised in domains or, as of Windows 2003 Server, in the forest, providing different features in each. They are differentiated by labeling them Domain Functional Level and Forest Functional Level.</p>

<h3>What&#8217;s new in 2008 R2</h3>

<h4><u>Domain Functional Level</u></h4>

<p>There are two features added when raising the domain functional level to 2008 R2. They are Authentication Mechanism Assurance and Automatic SPN Management.</p>

<p><strong>Authentication mechanism assurance</strong> is meant for domains that utilize federation services (ADFS) or certificate-based authentication methods, such as smart card or token-based authentication. This mechanism adds information to the user&#8217;s kerberos token on the type of authentication used. This allows administrators to modify group membership based on how the user authenticates. For example, a user can have access to different resources if they log in with a certificate versus when they log in with just their username and password.</p>

<p><strong>Automatic SPN management</strong> provides a method for managing service accounts for applications such as Exchange, SQL and IIS. In the past, regular domain accounts were used for these purposes, adding management headaches in terms of password management and service principle names (SPNs). This new feature provides the following benefits:</p>

<ul>
<li>A class of domain accounts can be used to manage and maintain services on local computers.</li>
<li>Passwords for these accounts will be reset automatically.</li>
<li>Do not have to complete complex SPN management tasks to use managed service accounts.</li>
<li>Administrative tasks for managed service accounts can be delegated to non-administrators.</li>
</ul>

<h4><u>Forest Functional Level</u></h4>

<p>There is one new feature in raising the forest functional level to Server 2008 R2, and it is long overdue. It is the Active Directory recycle bin. In the days of old, when an IT administrator or help desk operator accidentally deleted an OU filled with user or computer objects (this has happened more times than you would think), there would be a scramble to perform a restore. The delete replicates to all domain controllers, so an authoritative restore in Active Directory restore mode from a good backup using NTDSutil would be in order. With 2008 R2 forest functional level, a powershell cmd-let will undo this instantly.</p>

<p>Note that this feature is not enabled automatically when raising forest functional level. Additionally, you must run the following command in the Active Directory Module for Powershell.</p>

<pre><code>Enable-ADOptionalFeature –Identity ‘CN=Recycle Bin Feature,CN=Optional Features,CN=Directory
Service,CN=Windows NT,CN=Services,CN=Configuration, DC=mydomain,DC=com’
–Scope ForestOrConfigurationSet –Target ‘mydomain.com’
</code></pre>

<h4>Functional levels of previous version</h4>

<p>The following are the previous functional levels and what features they added, as documented in <a href="http://technet.microsoft.com/en-us/library/cc771132(WS.10).aspx">Technet</a>.</p>

<hr />

<h3>Domain Functional Levels:</h3>

<h4>Windows 2000 Native:</h4>

<ul>
<li>Universal groups are enabled for both distribution groups and security groups.</li>
<li>Group nesting.</li>
<li>Group conversion is enabled, which makes conversion between security groups and distribution groups possible.</li>
<li>Security identifier (SID) history.</li>
</ul>

<h4>Windows Server 2003</h4>

<ul>
<li>The availability of the domain management tool, <code>Netdom.exe</code>, to prepare for domain controller rename.</li>
<li>Update of the logon time stamp. The <code>lastLogonTimestamp</code> attribute will be updated with the last logon time of the user or computer. This attribute is replicated within the domain.</li>
<li>The ability to set the <code>userPassword</code> attribute as the effective password on <code>inetOrgPerson</code> and user objects.</li>
<li>The ability to redirect Users and Computers containers. By default, two well-known containers are provided for housing computer and user/group accounts: namely, <code>cn=Computers</code>, and <code>cn=Users,</code>. This feature makes possible the definition of a new well-known location for these accounts.</li>
<li>Makes it possible for Authorization Manager to store its authorization policies in Active Directory Domain Services (AD DS).</li>
<li>Includes constrained delegation so that applications can take advantage of the secure delegation of user credentials by means of the Kerberos authentication protocol. Delegation can be configured to be allowed only to specific destination services.</li>
<li>Supports selective authentication, through which it is possible to specify the users and groups from a trusted forest who are allowed to authenticate to resource servers in a trusting forest.</li>
</ul>

<h4>Windows Server 2008</h4>

<ul>
<li>Distributed File System (DFS) Replication support for SYSVOL, which provides more robust and detailed replication of SYSVOL contents.</li>
<li>Advanced Encryption Services (AES 128 and 256) support for the Kerberos authentication protocol.</li>
<li>Last Interactive Logon Information, which displays the time of the last successful interactive logon for a user, from what workstation, and the number of failed logon attempts since the last logon.</li>
<li>Fine-grained password policies (FGPP), which make it possible for password and account lockout policies to be specified for users and global security groups in a domain.</li>
</ul>

<h3>Forest Functional Levels:</h3>

<h4>Windows 2000:</h4>

<p>There were no forest functional levels, just domain.</p>

<h4>Windows Server 2003:</h4>

<ul>
<li>Forest trust.</li>
<li>Domain rename.</li>
<li>Linked-value replication (changes in group membership store and replicate values for individual members instead of replicating the entire membership as a single unit). This change results in lower network bandwidth and processor usage during replication and eliminates the possibility of lost updates when different members are added or removed concurrently at different domain controllers.</li>
<li>The ability to deploy a read-only domain controller (RODC) that runs Windows Server 2008.</li>
<li>Improved Knowledge Consistency Checker (KCC) algorithms and scalability. The Intersite Topology Generator (ISTG) uses improved algorithms that scale to support forests with a greater number of sites than can be supported at the Windows 2000 forest functional level. The improved ISTG election algorithm is a less intrusive mechanism for choosing the ISTG at the Windows 2000 forest functional level.</li>
<li>An improved ISTG algorithm (better scaling of the algorithm that the ISTG uses to connect all sites in the forest).</li>
<li>The ability to create instances of the dynamic auxiliary class called dynamicObject in a domain directory partition.</li>
<li>The ability to convert an <code>inetOrgPerson</code> object instance into a User object instance, and the reverse.</li>
<li>The ability to create instances of the new group types, called application basic groups and Lightweight Directory Access Protocol (LDAP) query groups, to support role-based authorization.</li>
<li>Deactivation and redefinition of attributes and classes in the schema.</li>
</ul>

<h4>Windows Server 2008:</h4>

<p>No forest functional level changes occurred from Windows 2003 to Windows 2008.</p>

<p><strong>Related Posts:</strong></p>
<ul>
<li><a href="http://praetorianprefect.com/archives/2010/06/iphone-4-ordering-and-session-switching/">iPhone 4 Ordering and Session Switching</a></li>
<li><a href="http://praetorianprefect.com/archives/2010/05/mays-patch-tuesday/">May&#8217;s Patch Tuesday</a></li>
<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/2010/01/disable-acrobat-reader-pdf-in-the-enterprise/">Using Group Policy to Disable JavaScript in Adobe PDF Files</a></li>
</ul><br />
]]></content:encoded>
			<wfw:commentRss>http://praetorianprefect.com/archives/2009/10/server-2008-r2-active-directory-functional-levels/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>2008 Server to the Core</title>
		<link>http://praetorianprefect.com/archives/2009/09/2008-server-to-the-core/</link>
		<comments>http://praetorianprefect.com/archives/2009/09/2008-server-to-the-core/#comments</comments>
		<pubDate>Wed, 23 Sep 2009 21:47:06 +0000</pubDate>
		<dc:creator>Simon Price</dc:creator>
				<category><![CDATA[Administration]]></category>
		<category><![CDATA[Featured]]></category>
		<category><![CDATA[Networking]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[active directory]]></category>
		<category><![CDATA[cli]]></category>
		<category><![CDATA[firewall]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[scripting]]></category>
		<category><![CDATA[windows]]></category>
		<category><![CDATA[windows 2008]]></category>

		<guid isPermaLink="false">http://praetorianprefect.com/?p=398</guid>
		<description><![CDATA[One of my favorite websites in the days of Windows 2000 Server was a project from a group of system managers from the Department of Electrical Engineering at the Swiss Federal Institute of Technology; it was titled “Real Men Don&#8217;t Click”, and it was dedicated to accomplishing tasks solely using the command line interface (CLI). [...]]]></description>
			<content:encoded><![CDATA[<p>One of my favorite websites in the days of Windows 2000 Server was a project from a group of system managers from the Department of Electrical Engineering at the Swiss Federal Institute of Technology; it was titled “Real Men Don&#8217;t Click”, and it was dedicated to accomplishing tasks solely using the command line interface (CLI). I was glad to see I wasn&#8217;t the only CLI fan in the Windows world who wasn&#8217;t inherently a former UNIX guy. Well, discounting the fact our friends at SFIT were inherently UNIX guys, they were very fair in their presentation of how to get around in the CLI.</p>

<p>This article is not just for the CLI fans like me, who snicker when forced to grab at the mouse for tasks they much prefer taking on in that wonderful black box with the blinking cursor; but for anyone who will deploy a core installation of Windows. This is not an anti-GUI rant, but a look into the CLI, and one that is much needed after Microsoft released Windows 2008 Server Core Edition.</p>

<p>Microsoft started to return CLI tools back to administrators in Windows 2000 when they released <code>netsh.exe</code>. More and more CLI options surfaced with releases of Support Tools, Resource Kits, and the popular PS suite from SysInternals (now Microsoft). The most recent evidence of the resurgence of the CLI is Windows 2008 Server Core Edition. This version is entirely driven with the command line interface.</p>

<p>The following roles are supported in a core installation:</p>

<ul>
    <li>Active Directory Certificate Services</li>
    <li>Active Directory Domain Services</li>
    <li>Active Directory Lightweight Directory Services (AD LDS)</li>
    <li>DHCP Server</li>
    <li>DNS Server</li>
    <li>File Services (including File Server Resource Manager)</li>
    <li>Hyper-V</li>
    <li>Print and Document Services</li>
    <li>Web Server (including a subset of ASP.NET)</li>
</ul>

<p>Why choose core over a standard installation? A core setup will only install the binaries needed by the server roles. Microsoft claims that if Windows 2000 Server had a core edition, it would have had a <strong>60% reduction</strong> in patches (40% in Windows 2003). This is a considerable amount of patches for critical servers such as domain controllers.</p>

<p>So let’s get started with some administration tasks in Windows 2008 Server Core Edition: getting things up and running, configuring roles, promoting to a domain controller, and essentially running a version of Microsoft&#8217;s OS that does not include explorer.exe. (What? No Desktop?)</p>

<p>The following commands were executed on an installation of Microsoft Windows 2008 Server Core Standard R2. For those who don&#8217;t have the time to muck with the CLI, R2 has included a new VBScript (<strong>sconfig.vbs</strong>) which provides a menu driven server configuration tool to quickly get through these steps. However, I recommend doing it the long way at least once to understand what&#8217;s happening in case you run into issues in the future. The install is straightforward, so details not needed. Most important is the option of which version of the OS to install, which I selected Windows 2008 R2 Standard (Server Core Installation). After a dialog to set the administrator password, I&#8217;m left with a DOS prompt.</p>

<p><strong><span style="text-decoration: underline;">GETTING STARTED</span></strong></p>

<p>First things first, IP connectivity. I&#8217;ll be using 192.168.1.0/24 for the network:</p>

<p><em><span style="font-size: xx-small;">Note: netsh.exe allows you to add all the options/parameters in one line, or you can run netsh.exe and go into each configuration category, (ie. interface), then eventually when deep enough into the options, execute the command, (ie. set). To keep it simple, I&#8217;ll write out the commands in single lines, but definitely run netsh.exe with no options and look into the many configuration areas available.</span></em></p>

<p>Let’s list available network interfaces to see which one we need to configure:</p>

<pre><code>netsh interface ipv4 show interfaces
</code></pre>

<p>Result:
<pre><code>
  Idx     Met        MTU           State                Name
  &ndash;--  ----------  ----------  ------------  ---------------------------
    3           5        1500  connected     Local Area Connection
    1          50  4294967295  connected     Loopback Pseudo-Interface 1
</code></pre>
Now, Local Area Connection is what I’m interested in, which Idx=3. Let&#8217;s set an IP to that interface:</p>

<pre><code>netsh int ipv4 set address name=3 source=static address=192.168.1.25 mask=255.255.255.0 gateway=192.168.1.1
</code></pre>

<p>Note the name=3 parameter; 3 was the IDX number retrieved in the previous step. You will not get a resulting output, but you can double check your settings by running <strong>ipconfig /all</strong>.</p>

<p>Next step is to add DNS servers for name resolution. If this will be the first Domain Controller in the Forest and will run DNS, you can skip this, otherwise, add your DNS servers now (the example assumes DNS servers 192.168.1.20 and 192.168.1.21):</p>

<pre><code>netsh interface ipv4 add dnsserver name=3 address=192.168.1.20 index=1
</code></pre>

<p>add a secondary dns server:</p>

<pre><code>netsh interface ipv4 add dnsserver name=3 address=192.168.1.21 index=2
</code></pre>

<p>Note that we used the name=3 parameter again to add these DNS entries to the network interface we are interested in. Once again, you can double check your settings with <strong>ipconfig /all</strong>.</p>

<p>Now we have connectivity. Let&#8217;s rename the computer and join a domain. Windows had assigned a random computer name, you can see what it is by typing <strong>hostname</strong>. Mine happened to be WIN-EPNB8G5FAUI. Let&#8217;s rename this to CORE-DEV:</p>

<pre><code>netdom renamecomputer %COMPUTERNAME% /NewName:CORE:DEV
</code></pre>

<p>You will be warned about the potential hazards of renaming the computer, not our concern since this is a brand new installation. Proceed, and you will have the following results:</p>

<pre><code>The computer needs to be restarted in order to complete the operation.

The command completed successfully.
</code></pre>

<p>Restart the computer by typing: <strong>shutdown /r /t 001</strong></p>

<p>After restarting, log back in, and let&#8217;s join a domain. Our test domain is called testdom.local. We will use an account called admin to join the domain:</p>

<pre><code>netdom join CORE-DEV /domain:testdom.local /userd:testdom\admin /passwordd:*
</code></pre>

<p align="left">The * for the password option will prompt you for the password. A reboot is again required.</p>

<p>Now you can log in with a domain account by choosing other user, then typing domain\user for the user.</p>

<p><strong><span style="text-decoration: underline;">ACTIVATION</span></strong></p>

<p>Now, let&#8217;s activate Windows. In R2, you enter the license key with slmgr.vbs (prior to R2, the installation setup prompted for the license key).</p>

<pre><code>slmgr.vbs –ipk ABCDE-FGHIJ-KLMNO-PQRST-UVWXY
</code></pre>

<p>Next, activate:</p>

<pre><code>slmgr.vbs -ato
</code></pre>

<p>If successful, you will not receive any messages back.</p>

<p><strong>
<span style="text-decoration: underline;">CONFIGURING AUTOMATIC UPDATES</span></strong></p>

<p>I recommend controlling the behavior of automatic updates with Group Policy, but if you need to toggle the settings, here are the commands:</p>

<p>To verify the current setting:</p>

<pre><code>cscript scregedit.wsf /AU /v
</code></pre>

<p>To enable automatic updates:</p>

<pre><code>cscript scregedit.wsf /AU 4
</code></pre>

<p>To disable automatic updates:</p>

<pre><code>cscript scregedit.wsf /AU 1
</code></pre>

<p>To check for updates:</p>

<pre><code>wuauclt /detectnow
</code></pre>

<p><strong><span style="text-decoration: underline;">
FIREWALL</span></strong></p>

<p>Let&#8217;s take a look at the firewall now, since we will want to open up some rules to perform remote administrations tasks, such as using Remote Desktop or MMC tools to manage the server.</p>

<p>We can take a look at the firewall profiles by typing:</p>

<pre><code>netsh advfirewall show allprofiles
</code></pre>

<p>If you have a domain profile applied via GPO, then those will apply. You can also look at all the rules by typing:</p>

<pre><code>netsh advfirewall firewall show rule name=all
</code></pre>

<p>That command will display quite a bit of information. I like to output it to a text file and view it with notepad.</p>

<p>Now, let&#8217;s make some changes to allow remote connections to the server. Here, I don&#8217;t exactly follow the steps documented in Technet or most web sources since the commands documented will open up the ports and allow any source address. Here, we open Remote Desktop (TCP-3389) only to our subnet.</p>

<pre><code>netsh advfirewall firewall set rule name="Remote Desktop (TCP-In)" new remoteip=192.168.1.0/24
</code></pre>

<p>This changes the firewall RDP rule to allow our subnet only. The default rule is Any. Now, let&#8217;s go ahead and enable this rule:</p>

<pre><code>netsh advfirewall firewall set rule name="Remote Desktop (TCP-In)" new enable=yes
</code></pre>

<p>The firewall is now open for RDP connections from our internal subnet, but we still have to enable Remote Desktop:</p>

<pre><code>cscript %windir%\system32\SCRegEdit.wsf /ar 0
</code></pre>

<p>Now you could Remote Desktop to the server. Of course you will only get a command prompt when you do.</p>

<p>Next, we’ll open up some rules to allow remote management using the MMC. This will allow using Computer Management, Shared Folders, Event Viewer, and other important snap-ins to manage your server. The process is the same as it was opening the Remote Desktop rule, but the rule names are different:</p>

<pre><code>netsh advfirewall firewall set rule name="Remote Administration (NP-In)" new remoteip=192.168.1.0/24
netsh advfirewall firewall set rule name="Remote Administration (NP-In)" new enable=yes
netsh advfirewall firewall set rule name="Remote Administration (RPC)" new remoteip=192.168.1.0/24
netsh advfirewall firewall set rule name="Remote Administration (RPC)" new enable=yes
netsh advfirewall firewall set rule name="Remote Administration (RPC-EPMAP)" new remoteip=192.168.1.0/24
netsh advfirewall firewall set rule name="Remote Administration (RPC-EPMAP)" new enable=yes
</code></pre>

<p>These three rules are in a group called “Remote Administration” and if you are not concerned about modifying the rules so that only the specific subnet is allowed, you can modify enable the group as-is which will allow connections from any IP:</p>

<pre><code>netsh advfirewall firewall set rule group="Remote Administration" new enable=yes
</code></pre>

<p><strong>
<span style="text-decoration: underline;">CONFIGURING ROLES</span></strong></p>

<p>There are two commands to use when dealing with server roles: <strong>oclist</strong> and <strong>ocsetup</strong>. Later, we will look at the new <strong>dism.exe</strong> If you type oclist, you will get a list of all the roles and their optional components. The list is pretty lengthy, so I like to use the <strong>find</strong> command to narrow my results. For example, if we wanted to add the DHCP server role, I would check for the precise name of the role by typing:</p>

<pre><code>oclist | find /i "dhcp"
</code></pre>

<p>Results:</p>

<pre><code>Not Installed: DHCPServerCore
</code></pre>

<p>Now I know the role name is specifically DHCPServerCore and that it is in fact not installed. So, we install the role by typing:</p>

<pre><code>ocsetup DHCPServerCore
</code></pre>

<p>Note that the above server role IS case sensitive. If I use oclist again to check for DHCP, I now see the following:</p>

<pre><code>oclist | find /i "dhcp"
</code></pre>

<p>Results:</p>

<pre><code>Installed: DHCPServerCore
</code></pre>

<p>If I wanted to remove the role, I&#8217;d use the uninstall switch with ocsetup:</p>

<pre><code>ocsetup DHCPServerCore /uninstall
</code></pre>

<p>Pretty straight forward. Now, with R2, there is a new CLI tool called <strong>dism.exe</strong>. This tool can also configure server roles, but it does much more. For now, we will use it to configure roles like we did with ocsetup/oclist.</p>

<p>To get a list of roles (called features in dism):</p>

<pre><code>dism /online /get-features
</code></pre>

<p>Let&#8217;s add that DHCPServerCore feature using dism:</p>

<pre><code>dism /online /enable-feature /featurename:DHCPServerCore
</code></pre>

<p>And then to remove it:</p>

<pre><code>dism /online /disable-feature /featurename:DHCPServerCore
</code></pre>

<p>So, what is the big deal? Same results as ocsetup, but, dism will replace it because it goes further than just toggling features. It will service WIM and VHD image files, allowing add/remove of drivers and features, especially useful if your server has the role of deploying images or runs Hyper-V.</p>

<p><strong><span style="text-decoration: underline;">PROMOTING TO A DC</span></strong></p>

<p><code>dcpromo</code> is still the way to handle promoting and demoting domain controllers, but in a Server Core installation, there is no GUI wizard that comes along with it. Instead, you use an answer file with the command to instruct how to promote your DC. The syntax to this is:</p>

<pre><code>dcpromo /unattend:c:\temp\answerfile.ini
</code></pre>

<p>I like to use ini for my answer file extension, but that&#8217;s a personal preference. Here are two examples of answer files to us with dcpromo:</p>

<p>To create the very first DC in a Forest:
<pre><code>[DCInstall]
ReplicaOrNewDomain=Domain
Installdns=Yes
confirmgc=yes
domainlevel=4
domainnetbiosname=TESTDOM
forestlevel=4
newdomain=forest
newdomaindnsname=testdom.local
safemodeadminpassword=password123
</code></pre>
Note that the forest level and domain level are set to 4. This option is for R2 only as it is the R2 functional level. For 2008 non-R2, this value needs to be 3 instead.</p>

<p>To add a replica domain controller in an existing domain:
<pre><code>[DCInstall]
ReplicaOrNewDomain=Replica
ReplicaDomainDNSName=testdom.int
Installdns=Yes
confirmgc=yes
safemodeadminpassword=password123
</code></pre>
There are quite a few configurable options to put in an answer file. You can check the help by typing: <strong>dcpromo /?:promotion</strong></p>

<p><strong><span style="text-decoration: underline;">MORE IN THE CLI</span></strong></p>

<p>Now you have a fully functioning server, are able to manage it with your MMC, and can connect via Remote Desktop. Although there are hundreds of commands you can use in the CLI, one that can do an enormous amount of tasks is <strong>wmic.exe</strong>. WMIC<strong> </strong>is a tool with hundreds of options for WMI. You can do just about anything here. A few examples:</p>

<pre><code>wmic useraccount list
wmic process list
wmic share list
</code></pre>

<p>The above examples are all very simple queries for information. You can also use wmic to add and modify (ie. not just list shares, but create or change them). To see a full list of options: <strong>wmic /?</strong></p>

<p><strong></p>

<p></strong></p>

<p><span style="text-decoration: underline;"><strong>POWERSHELL</strong></span></p>

<p>Powershell is now included with R2 and you can enable it just like any other feature. Powershell provides a shell and scripting language which will open up a world of options for administrating your Windows environment. What gives this shell its power is that it accepts and returns .NET objects. Instead of getting stdout, you can get an object and then perform actions with that object or get its properties. With a couple of lines of script code, you can pull all users from an OU and set their description field, or check when the passwords were last set. That is just one simple example working with objects using the DirectoryServices interface, and there are many others.</p>

<p><span style="text-decoration: underline;"><strong>CONCLUSION</strong></span></p>

<p>It is nice to see that the command line has made a return in the Windows world. If you’re unlike me, who typically has five or six command prompts open during a regular day, don’t be intimidated by it. Server Core can be a lean, secure, and well-managed option in your environment. It may take a little time getting used to not reaching for the mouse and clicking on the start button, but at the end of the day you will have that extra bit of satisfaction knowing exactly what occurred without a GUI keeping the details behind the scenes.</p>

<hr />

<p>References:</p>

<ul>
<li>Real Men Don&#8217;t Click&#8211;The Project: <a href="http://isg.ee.ethz.ch/tools/realmen/">http://isg.ee.ethz.ch/tools/realmen/</a></li>
<li>Server Core Installation: <a href="http://technet.microsoft.com/en-us/library/cc753802(WS.10).aspx">http://technet.microsoft.com/en-us/library/cc753802(WS.10).aspx</a></li>
<li>Using DISM: <a href="http://www.windowsnetworking.com/articles_tutorials/Deploying-Windows-7-Part2.html">http://www.windowsnetworking.com/articles_tutorials/Deploying-Windows-7-Part2.html</a></li>
<li>DISM Command Line Options: <a href="http://technet.microsoft.com/en-us/library/dd772580(WS.10).aspx">http://technet.microsoft.com/en-us/library/dd772580(WS.10).aspx</a></li>
<li>WMIC: <a href="http://technet.microsoft.com/en-us/library/bb742610.aspx">http://technet.microsoft.com/en-us/library/bb742610.aspx</a></li>
<li>Powershell: <a href="http://www.microsoft.com/windowsserver2003/technologies/management/powershell/default.mspx">http://www.microsoft.com/windowsserver2003/technologies/management/powershell/default.mspx</a></li>
<li>Windows 2008 Command Line List (A-Z): <a href=http://technet.microsoft.com/en-us/library/cc772390(WS.10).aspx>http://technet.microsoft.com/en-us/library/cc772390(WS.10).aspx</a>
</span></li>
</ul>

<p><strong>Related Posts:</strong></p>
<ul>
<li><a href="http://praetorianprefect.com/archives/2010/06/iphone-4-ordering-and-session-switching/">iPhone 4 Ordering and Session Switching</a></li>
<li><a href="http://praetorianprefect.com/archives/2010/05/mays-patch-tuesday/">May&#8217;s Patch Tuesday</a></li>
<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/2010/01/the-aurora-ie-exploit-in-action/">The &#8220;Aurora&#8221; IE Exploit Used Against Google in Action</a></li>
</ul><br />
]]></content:encoded>
			<wfw:commentRss>http://praetorianprefect.com/archives/2009/09/2008-server-to-the-core/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Who’s Being Promiscuous in Your Active Directory?</title>
		<link>http://praetorianprefect.com/archives/2009/09/whos-being-promiscuous-in-your-active-directory/</link>
		<comments>http://praetorianprefect.com/archives/2009/09/whos-being-promiscuous-in-your-active-directory/#comments</comments>
		<pubDate>Tue, 15 Sep 2009 00:18:50 +0000</pubDate>
		<dc:creator>Simon Price</dc:creator>
				<category><![CDATA[Administration]]></category>
		<category><![CDATA[Networking]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[active directory]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[powershell]]></category>
		<category><![CDATA[windows]]></category>
		<category><![CDATA[WMI]]></category>

		<guid isPermaLink="false">http://praetorianprefect.com/?p=719</guid>
		<description><![CDATA[I’m always a fan of more queries and peaks at what is going on in my AD domain, especially at what is happening on the workstations. I was working on some WMI queries to get information about network interfaces using the Win32_NetworkAdapterConfiguration class, and thought about promqry.exe. Promqry is a tool provided by Microsoft to [...]]]></description>
			<content:encoded><![CDATA[<p>I’m always a fan of more queries and peaks at what is going on in my AD domain, especially at what is happening on the workstations. I was working on some WMI queries to get information about network interfaces using the Win32_NetworkAdapterConfiguration class, and thought about promqry.exe. <a href="http://support.microsoft.com/kb/892853" target="_blank">Promqry</a> is a tool provided by Microsoft to query a computer’s network interfaces and return if it is running in promiscuous mode.</p>

<p>This information can be handy for several reasons:</p>

<ul>
    <li>An interface running in promiscuous mode may be due to the user running network sniffer such as Wireshark.</li>
    <li>An interface running in promiscuous mode may be due to the user running virtualization software, such as Virtual PC.</li>
    <li>An interface running in promiscuous mode may be due to malicious code.</li>
</ul>

<p>I definitely want to know if users are running network sniffers, or virtualization software (likely the guests are not licensed or managed causing rogue workstations in the environment). Of course any potential activity that may be caused by malware or malicious code is a concern as well.</p>

<p>You could very easily download promqry and run a <em>for</em> loop against your machines. I wanted to use WMI for this task instead and rather than a text file, use the directoryservices object to query my AD for computers.</p>

<p>I couldn’t find any property in Win32_NetworkAdapterConfiguration to check for this, but I found <a href="http://windowsir.blogspot.com/2005/02/promqry-revisited.html" target="_blank">this post</a> on promqry which tracked down the WMI classes it uses. That led me in the right direction. The other key to this is what MSNdis_CurrentPacketFilter returns. Microsoft documents this <a href="http://msdn.microsoft.com/en-us/library/bb648512.aspx" target="_blank">here</a> and we are checking if the NDIS_PACKET_TYPE_PROMISCUOUS bit is enabled.</p>

<p>Below is a quick Powershell script which will grab computer objects from AD, then use WMI and the MSNdis_CurrentPacketFilter class to check for promiscuous mode. You can incorporate this WMI query with Win32_NetworkAdapterConfiguration and get a better picture of the interface network settings:
<pre><code>
$ErrorActionPreference = "SilentlyContinue"</p>

<p>$PingTest = New-Object System.Net.NetworkInformation.Ping
$Filter = "(&amp;(ObjectCategory=computer))"
$Searcher = New-Object System.DirectoryServices.DirectorySearcher($Filter)
ForEach ($comp in $Searcher.Findall()) {
    $strComputer = $comp.properties.item("Name")
    write-host "Checking: $strComputer"
    if ($PingTest.Send($strComputer).Status -eq "Success") {
        $colComputer = get-wmiObject -class "MSNdis_CurrentPacketFilter" -namespace "root\WMI" -comp $strComputer
        if ($colComputer -eq $null) {
            write-host "Couldn't connect to WMI" }
        else {
            foreach ($comp in $colcomputer) {
                $val = $comp.NdisCurrentPacketFilter
                if ($val -band 0x00000020) {
                    $inst = $comp.InstanceName
                    write-host "Interface: $inst"
                    write-host "The NDIS_PACKET_TYPE_PROMISCUOUS value is set" -foregroundcolor red -backgroundcolor yellow
                }
            }
        }
    }
    else { write-host "Could not ping, machine not queried." }
}</p>

<p></code></pre>
 </p>

<p>The following screenshot shows the results. I don’t like waiting for RPC to time out when the machine is off or not reachable, so a quick ping check before querying WMI speeds things up. Also, when an interface has the bit set, the output is highlighted with red text and a yellow foreground. You could wrap an email function and schedule this so that you are alerted when it comes up.</p>

<p><a href="http://praetorianprefect.com/wp-content/uploads/2009/10/ScreenHunter_06Oct.0120.51.gif"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="ScreenHunter_06 Oct. 01 20.51" src="http://praetorianprefect.com/wp-content/uploads/2009/10/ScreenHunter_06Oct.0120.51_thumb.gif" border="0" alt="ScreenHunter_06 Oct. 01 20.51" width="244" height="173" /></a></p>

<p> </p>

<p> </p>

<p> </p>

<p> </p>

<p> </p>

<p> </p>

<p>You will need proper access to the workstations to query root\WMI so when you run this in a domain, your account should have local administrator privileges to the computers it will query. If it doesn’t, the command will return “Couldn’t connect to WMI”.</p>

<p>Finally, if you haven’t looked at the MSNdis class yet, I suggest taking a look, especially at MSNdis_80211 which will query various wireless information that may be of interest. There isn’t a whole lot of documentation on it, so I’ll work on getting some details together and maybe draft a Powershell script to find wireless adapters and networks they are connected to or available networks close enough to connect to. Until then, enjoy finding those promiscuous mode adapters in your domain.</p>

<p> </p>

<p><a title="http://windowsir.blogspot.com/2005/02/promqry-revisited.html" href="http://windowsir.blogspot.com/2005/02/promqry-revisited.html"> </a></p>

<p><strong>Related Posts:</strong></p>
<ul>
<li><a href="http://praetorianprefect.com/archives/2010/06/iphone-4-ordering-and-session-switching/">iPhone 4 Ordering and Session Switching</a></li>
<li><a href="http://praetorianprefect.com/archives/2010/05/mays-patch-tuesday/">May&#8217;s Patch Tuesday</a></li>
<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/2010/01/first-patch-tuesday-of-2010/">First Patch Tuesday of 2010</a></li>
</ul><br />
]]></content:encoded>
			<wfw:commentRss>http://praetorianprefect.com/archives/2009/09/whos-being-promiscuous-in-your-active-directory/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Windows Task Scheduler: Backwards Incompatibility</title>
		<link>http://praetorianprefect.com/archives/2009/09/windows-task-scheduler-backwards-incompatibility/</link>
		<comments>http://praetorianprefect.com/archives/2009/09/windows-task-scheduler-backwards-incompatibility/#comments</comments>
		<pubDate>Mon, 07 Sep 2009 01:49:35 +0000</pubDate>
		<dc:creator>Simon Price</dc:creator>
				<category><![CDATA[Administration]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[vista]]></category>
		<category><![CDATA[windows]]></category>
		<category><![CDATA[windows 7]]></category>
		<category><![CDATA[WMI]]></category>
		<category><![CDATA[xp]]></category>

		<guid isPermaLink="false">http://praetorianprefect.com/?p=741</guid>
		<description><![CDATA[Scheduled tasks are plentiful in most environments. Managing them is typically a nightmare. You have some running to truncate and copy off logs someplace, or others to run a proprietary backup utility to dump a copy of your Quickbooks data; whatever the reason, over time there are more and they are everywhere. Typically, you want [...]]]></description>
			<content:encoded><![CDATA[<p>Scheduled tasks are plentiful in most environments. Managing them is typically a nightmare. You have some running to truncate and copy off logs someplace, or others to run a proprietary backup utility to dump a copy of your Quickbooks data; whatever the reason, over time there are more and they are everywhere. Typically, you want to know that they exist, when they are scheduled to run, and most importantly who they are going to run as. (Look our for password expirations!)</p>

<p>Unless you have invested in an enterprise solution for tasks, you are using Windows Task Scheduler and have the tools included with the Windows OS to do the trick. This article is to point out two major snafus you may come across when attempting to manage scheduled tasks across your environment:</p>

<ol>
<li><p>Using WMI class versus the task scheduler API and what effects it has.</p></li>
<li><p>New versions in Vista / Windows 7 / Windows 2008 that do not work with XP / 2003.</p></li>
</ol>

<p>The first item is more for those who attempt scripting and programming to manage the tasks across machines in the environment. WMI has a class called Win32_Scheduledjob which does quite a bit for managing tasks. However, any tasks created with or modified by the task scheduler API  (such as through the task scheduler GUI or schtasks.exe) will cause the tasks to no longer be managed by WMI. For example, if you create a task using schtasks.exe, this tasks will not be returned in a WMI query; or, if you create a task using WMI, but then modify it with the task scheduler GUI, it will also no longer turn up in WMI. </p>

<p>So, Win32_Schedulejob is not a great option and we go about our business using the GUI and schdtasks.exe. We move on to our second issue, which is the backwards incompatibility for those using Vista, Windows 7 or Windows 2008. For example, from my Windows 7 workstation, if I use schtasks.exe or the Task Schedule MMC snap-in, I can query, manipulate, create tasks on Vista, Windows 7 or Windows 2008. When I attempt to reach a Windows XP or Windows 2003 machine, I get Access Denied. Running the older XP version of schtasks.exe did not return errors when run against any version OS. This is painful. The solution is to run the management commands from an XP or 2003 machine, or to copy the schtasks.exe and schedsvc.dll files from those version into a directory on your Vista / Win7 machine and run it from there. See this screenshot using both versions of the tool from my  Windows 7 workstation, querying a Windows XP machine. I printed the file version each time to show the newer copy fails with Access is Denied.</p>

<p><a href="http://praetorianprefect.com/wp-content/uploads/2009/10/ScreenHunter_03Oct.0221.452.gif"><img style="border-bottom: 0px; border-left: 0px; display: inline; margin-left: 0px; border-top: 0px; margin-right: 0px; border-right: 0px" title="ScreenHunter_03 Oct. 02 21.45" src="http://praetorianprefect.com/wp-content/uploads/2009/10/ScreenHunter_03Oct.0221.45_thumb2.gif" border="0" alt="ScreenHunter_03 Oct. 02 21.45" width="244" height="158" align="left" /></a></p>

<blockquote> 

You may very well have proper access, but this Access Denied means you have a newer version of the tool.</blockquote>

<p> </p>

<p> </p>

<p> </p>

<p> </p>

<p> </p>

<p> </p>

<p>This <a href="http://msdn.microsoft.com/en-us/library/bb756979.aspx" target="_blank">Technet article</a> explains what is new in Task Scheduler 2.0 (Vista and above) compared to 1.0. There are many new features, but I would have liked to have a schtasks.exe and a MMC snap-in that was backwards compatible to manage older versions.</p>

<p>One last note is that .job files from XP/2003 are not compatible with the newer Task Scheduler 2.0 (xml format). I’ve seen that folks used the older schtasks.exe to dump the task information in table format, than use Excel to properly edit it to the valid xml format.</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/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/ossec-agentless-its-good-but-not-good-enough/">OSSEC: Agentless&#8230;It&#8217;s good, but not good enough</a></li>
<li><a href="http://praetorianprefect.com/archives/2009/11/ossec-agentless-scripts/">OSSEC: Agentless scripts</a></li>
</ul><br />
]]></content:encoded>
			<wfw:commentRss>http://praetorianprefect.com/archives/2009/09/windows-task-scheduler-backwards-incompatibility/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Warnings Ignored, Thousands of Websites Suffer</title>
		<link>http://praetorianprefect.com/archives/2009/06/warnings-ignored-thousands-of-websites-suffer/</link>
		<comments>http://praetorianprefect.com/archives/2009/06/warnings-ignored-thousands-of-websites-suffer/#comments</comments>
		<pubDate>Fri, 12 Jun 2009 20:27:57 +0000</pubDate>
		<dc:creator>Simon Price</dc:creator>
				<category><![CDATA[Security]]></category>

		<guid isPermaLink="false">http://praetorianprefect.com/?p=314</guid>
		<description><![CDATA[“We have been working diligently to recover the information that we can. Currently if your VPS is not responding it is best to consider that all data and information is lost…” This is the start of a message posted on VAServ’s website, a UK-based provider of virtual private servers.  VAServ uses HyperVM,  a virtualization application [...]]]></description>
			<content:encoded><![CDATA[<p class="MsoNormal" style="margin: 0in 0in 10pt;"><span style="font-family: Calibri; font-size: small;">“We have been working diligently to recover the information that we can. Currently if your VPS is not responding it is best to consider that all data and information is lost…” This is the start of a message posted on VAServ’s website, a UK-based provider of virtual private servers.<span style="mso-spacerun: yes;">  </span>VAServ uses HyperVM,<span style="mso-spacerun: yes;">  </span>a virtualization application developed by Bangalore-based LxLabs, which was found to contain critical vulnerabilities that led to a 0-day data destroying attack leaving many clients in the dark.<span style="mso-spacerun: yes;">  </span>A <a href="http://www.theregister.co.uk/2009/06/08/webhost_attack/">report</a> from The Register states that as many as 100,000 websites were destroyed, most without an option of any kind of data restore. The vulnerabilities were <a href="http://www.milw0rm.com/exploits/8880">posted</a> on May 21 and the timeline suggests the software vendor had ignored the warnings. Additionally, LxLabs founder and owner K.T. Ligesh committed suicide this week by hanging himself.<span style="mso-spacerun: yes;">  </span>His best friend reported Ligesh was depressed over losing an important contract.</span></p>

<p><strong>Related Posts:</strong></p>
<ul>
<li><a href="http://praetorianprefect.com/archives/2010/06/iphone-4-ordering-and-session-switching/">iPhone 4 Ordering and Session Switching</a></li>
<li><a href="http://praetorianprefect.com/archives/2010/05/mays-patch-tuesday/">May&#8217;s Patch Tuesday</a></li>
<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/2010/01/first-patch-tuesday-of-2010/">First Patch Tuesday of 2010</a></li>
</ul><br />
]]></content:encoded>
			<wfw:commentRss>http://praetorianprefect.com/archives/2009/06/warnings-ignored-thousands-of-websites-suffer/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
