October 2010 - Posts

Error 0x800f0818 during Windows Server 2008 R2 SP1 RC update
28 October 10 11:58 AM | forefrontsecurity | with no comments

Hi,

I encountered a strange issue during WS2008 R2 SP1 installation. After reading blogs and forums, I have finally found what was wrong : It seems that if you have installed IE 9 beta before SP1 RC, update always fails. Below are the steps of my troubleshoot, and the solution. Hope this post can help other people

So, here is my issue : When I launch the SP1 update, installation fails with error 0x800f0818.

Under c:\windows\logs\CBS, I found the CBS.log, with the following errors :

Failed to internally open package. [HRESULT = 0x800f0818 - CBS_E_IDENTITY_MISMATCH]

2010-10-27 15:19:14, Info CBS Mark store corruption flag because there is a mismatch between package identity and its content on package: Microsoft-Windows-InternetExplorer-Package~31bf3856ad364e35~amd64~~9.2.7930.16406. [HRESULT = 0x00000000 - S_OK]

2010-10-27 15:19:14, Info CBS Identity mismatch: Specified Identity: Microsoft-Windows-InternetExplorer-Package~31bf3856ad364e35~amd64~~9.2.7930.16406, actual package Identity: Microsoft-Windows-Foundation-Package~31bf3856ad364e35~amd64~~6.1.7600.16385 [HRESULT = 0x800f0818 - CBS_E_IDENTITY_MISMATCH]

Seems to be a problem with Internet Explorer.

I have tried to apply the following KB : http://support.microsoft.com/kb/929833 but the sfc /scannow returns 0 errors.

The I found this KB http://support.microsoft.com/kb/947821. The installation run the System Update Readiness Tool. Under c:\windows\logs\CBS I found the CheckSUR.log

=================================
Checking System Update Readiness.
Binary Version 6.1.7600.20751
Package Version 9.0
2010-10-27 16:22

Checking Windows Servicing Packages

Checking Package Manifests and Catalogs

(f)        CBS MUM Corrupt        0x00000000        servicing\Packages\Microsoft-Windows-InternetExplorer-Package~31bf3856ad364e35~amd64~~9.2.7930.16406.mum                Expected file name Microsoft-Windows-Foundation-Package~31bf3856ad364e35~amd64~~6.1.7600.16385.mum does not match the actual file name

Checking Package Watchlist

Checking Component Watchlist

Checking Packages

Checking Component Store

Summary:
Seconds executed: 268
Found 1 errors
CBS MUM Corrupt Total count: 1

Unavailable repair files:
servicing\packages\Microsoft-Windows-InternetExplorer-Package~31bf3856ad364e35~amd64~~9.2.7930.16406.mum
servicing\packages\Microsoft-Windows-InternetExplorer-Package~31bf3856ad364e35~amd64~~9.2.7930.16406.cat

Here are my corrupted files. I have to restore them. To do that, I followed and adapt the last post of this thread : http://social.technet.microsoft.com/Forums/en-US/winservermanager/thread/7216345c-fc73-4bc1-9b54-dcfe224ba59e

Download the IE9 installation package.

Expand the .exe into a new directory : c:\servicing for example

c:\servicing>IE9-Windows7-x64-fra.exe /x:"c:\servicing\IE9"

c:\servicing>cd IE9

Extract the .msu content

c:\servicing\IE9>wusa IE9-Win7.MSU /extract:"c:\servicing\IE9"\Packages

c:\servicing\IE9>cd Packages

c:\servicing\IE9\Packages>mkdir files

Expand the .cab

c:\servicing\IE9\Packages>expand Windows6.1-KB982861-x64.cab -F:* files

Then, to restore files, I applied the end of the http://support.microsoft.com/kb/929833 for the .mum and .cat files

takeown /f c:\Windows\servicing\Packages\Microsoft-Windows-InternetExplorer-Package~31bf3856ad364e35~amd64~~9.2.7930.16406.mum

icacls c:\Windows\servicing\Packages\Microsoft-Windows-InternetExplorer-Package~31bf3856ad364e35~amd64~~9.2.7930.16406.mum /GRANT Administrators:F

copy ".\files\microsoft-windows-internetexplorer-package~31bf3856ad364e35~amd64~~9.2.7930.16406.mum" "c:\Windows\servicing\Packages"\microsoft-windows-internetexplorer-package~31bf3856ad364e35~amd64~~9.2.7930.16406.mum

Overwrite c:\Windows\servicing\Packages\microsoft-windows-internetexplorer-package~31bf3856ad364e35~amd64~~9.2.7930.16406.mum? (Yes/No/All): yes

1 file(s) copied.

Do the same for the .cat file

Then I launch installation again, and this time, it's a success, and IE9 beta is still in use.

imageimage

Published by Olivier DETILLEUX

Windows Server 2008 R2 SP1 Release Candidate
27 October 10 12:37 PM | forefrontsecurity | with no comments

As seen on other blogs, the Release Candidate of Windows Server 2008 R2 (and Windows 7) SP1 is available. You will find all the informations here : http://www.microsoft.com/windowsserver2008/en/us/sp1.aspx

You will find 2 new features :

  • Dynamic Memory lets Hyper-V administrators pool available memory on a physical host and dynamically distribute it to any virtual machine(s) running on that host.
  • RemoteFX lets Windows Server 2008 R2 administrators provide a rich end user desktop virtualization experience by delivering vivid content, independent of any graphics stack, to server-hosted virtual and session-based desktops.

Published by Olivier DETILLEUX

FUAG SP1 RC : Monitoring and Troubleshooting
26 October 10 09:39 AM | forefrontsecurity | with no comments

In a previous posts, I have introduce the new interface. There are a lot of new features.

As an example, we can talk about monitoring and client side troubleshooting, 2 features that was hard to implement with UAG RTM.

I have allready deploy DCA (DirectAccess Connectivity Assistant) on my Windows 7 client. There is a GPO to do that.

image_thumb3

Let’s talk about the new configuration feature. It’s under Step 1 : Clients and GPOs. We also active the “local name resolution through DCA”. We’ll talk about that later. You can specify wich tests you want to run to verify the DirectAccess connectivity. For example, access to the file server. Notice that you cannot make ping test.It’s recommended to specify different kinds of ressources.

image_thumb9

Then, you can configure the URL of a portal to help the users with connectivity issues. You can use a local portal published with UAG, or an external URL. In this lab, I have configured an external URL. The last step consist of the configuration of an admin email address, and optional custom diagnostics script.

You can now generate the policy and activate the configuration.

Let’s go to the client side. You have to deploy the new DCA. In this lab, I do that manually. If there is Antimalware Engine activated on the workstation, a reboot could be needed (you can disable Antimalware engine on the other hand).

If there is a connectivity issue, a red icon appears. With the advanced option, you can view the log folder with a new log type : HTML. It’s the same as before (.txt), but less complicated to read. You can also view some explicit messages about the connection state. You can launch the custom troubleshooting portal that you have configured before.

image_thumb10

In this example, my computer is not compliant with the NAP policy (AV is disable). The new DCA shows an explicit message and a link to the NAP report :

image

When all is right, we are happy to see this message :

image

One of the feature is the capability to bypass corporate DNS servers. You can do that with the advanced features :

image

In this configuration, you can access single label url, for example when you are located in a customer network.

On the server side, DirectAccess monitoring is integrated into the monitoring Web Page : It’s easy to see if all is OK

image

An other great feature is the capability to see active session on the server, and to look for a specific user, computer, certificate :

image

You can find a list of actions associated to the state of the DCA here :

http://technet.microsoft.com/en-us/library/gg313782.aspx

Published by Olivier DETILLEUX

FEP 2010 Release Candidate Announcement only for TAP/CAG/CEP customers
26 October 10 09:33 AM | forefrontsecurity | with no comments

What a great month ! First UAG SP1 RC, now FEP 2010 RC.

So, Forefront Endpoint Protection 2010 RC is available on connect for TAP/CAG and CEP Customers. As a CEP Customers, I can try this release, and I will post new articles when the public release will be available.

Published by Olivier DETILLEUX

Upgrade your Forefront UAG installation to UAG SP1 RC
25 October 10 05:54 PM | forefrontsecurity | with no comments

I have got a Direct Access lab environment with an UAG RTM, and I want to upgrade to UAG SP1.

So I have downloaded the upgrade package (http://www.microsoft.com/downloads/en/details.aspx?FamilyID=980ff09f-2d5e-4299-9218-8b3cab8ef77a) and launch it on my platform. During the prerequisite installation, there was an error :

“Setup failed UAG during Prerequisites installation”

image

After a manual installation of Forefront TMG SP1, installation was successfull.

A restart later, here is the new management console :

image

You cannot generate and activate the configuration right now, because some features needs some configuration.

There are an other issue : If you allready have an HRA server in your organisation, he’s automatically added to a custom servers groups : “NAP”. I recommand to move this server into the HRA predefined group. The connectivity was KO until I move the server.

Published by Olivier DETILLEUX

Announcing Forefront UAG 2010 SP1 RC
25 October 10 09:56 AM | forefrontsecurity | with no comments

Since the 21 October, Forefront UAG SP1 RC is available. You can find all the informations here : http://blogs.technet.com/b/edgeaccessblog/archive/2010/10/21/announcing-forefront-uag-2010-service-pack-1.aspx

There are a lot of greats features for DirectAccess, like :

  • Integrated NAP for simplified endpoint policy enforcement
  • Improved monitoring and troubleshooting by adding new DCA diagnostics and server-side reports
  • Support for DirectAccess deployments which enable only the “always managed” functionality

and so on…

Hope we can find some times to test all the features.

All the new features are listed here : http://technet.microsoft.com/en-us/library/gg295322.aspx

Published by Olivier DETILLEUX

New Antimalware Engine 1.1.6301.0
19 October 10 09:23 AM | forefrontsecurity | with no comments

Antimalware Engine 1.1.6301.0 is released to all MSE and FCS customers on 18 October 2010. Signature package 1.93.26.0 is the first that contains this engine, according to the Antimalware Engine Notifications Blog

It’s also available for Forefront Endpoint Protection beta, as you can see in your registry database. Go under HKLM\Software\Microsoft\Microsoft Antimalware\Signature Updates. You will see 2 security key :

  • EngineVersion : 1.1.6301.0
  • AVSignatureVersion : 1.93.26.0

image

Published by Olivier DETILLEUX

Forefront TMG Troubleshooting
13 October 10 05:15 PM | forefrontsecurity | with no comments

Yesterday, my colleague Mark inform me that he cannot connect to this ftp web site : ftp://ftp-sj.cisco.com/pub/mibs/supportlists/wsc6000/wsc6000-supportlist-ios.html using Internet Explorer, from our enterprise network, behind a Forefront TMG Web proxy. A good opportunity to write a post about TMG troubleshooting.

1. The symptom

During the connexion to this specific web site using IE, the browsing always failed with the following error :

Forefront TMG: extended error message :

200 Type set to A

550 Permission denied: PORT not allowed here

2. Troubleshoot

2.1 The error seems to come from TMG, but are we sure ?

The connexion to the site via an external network (3G or Wifi) is ok. So TMG seems to be guilty.

2.2 TMG Logs analysis

We have to check that TMG doesn’t block any ftp trafic. According to the live capture, there are no filtering issues.

image

2.3 Is the case systematic for all ftp web sites ?

The connexion to ftp://ftp.hp.com/pub is OK. The problem seems to come from the ftp-sj.cosco.com site specifically.

2.4 Try other connexion methods

In our case, ftp access through IE uses FTP over HTTP protocol. We can try to connect with native ftp, using Windows Explorer for example. With Windows Explorer, browsing of the ftp site is OK.

2.5 Connexion methods comparison

There are 3 steps during the connexion :

  • connexion (yellow)
  • authentication (blue)
  • mode negociation (green)

Below, connexion using Windows Explorer

image

Connexion using IE without proxy parameters.

image

Connexion using IE with proxy parameters. The capture is made on the TMG server.

image

As you can see, negociation mode is not the same. We can find our error codes (200 and 550 Permission denied). So, we can say that the problem occurs during this mode negociation.

3. Résolution

The problem is isolated : during mode negociation through FTMG, passive mode is not used, and the FTP server refuse the connexion. We have to find the solution, with checking all the connexion actors.

3.1 The client

We are using IE. He might be guilty, but troubleshooting doesn’t prove that. There is an option to force passive mode, but it’s allready checked. We have to look forward.image

3.2 The intermediate : FTMG

There are some options we have to ckeck :

FTP Access Filter : The checkbox is not selected. It’s ok.

image

FTP protocol configuration : Read Only is not selected, so all ftp options are allowed (including PORT)

image

FTP passive access is not selected, and the problem always occures.

We have to ask the MS knowledge base.

3.3 MS knowledge base

With a few research, I find this KB : http://support.microsoft.com/kb/300641/en-us

But unfortunately, this KB is not applicable for my case (ISA 2000 to 2006). Moreover, it is specifically mentionned that, for FTMG 2010, we have to use the GUI.

However, I decide to set the following registry key :

HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Services/W3Proxy/Parameters NonPassiveFTPTransfer DWORD 0

That solves my problem.

Conclusion

This case is pretty simple, but with a rigorous approach, we can isolate the problem and easily solve it. The MS knowledge bases and the community forums are always available for helping us, if we can describe precisely our problems.

Published by Olivier DETILLEUX

FCS v1 Update
13 October 10 10:50 AM | forefrontsecurity | with no comments

Petite note sur la mise à disposition d’un update pour FCS :

  • This update is supported on Windows 7 SP1 RC or greater.  Windows 7 Service Pack 1 will check for the presence of this update or a superseding update before installing.
  • This update contains changes to the Forefront Client Security service to improve remediation of certain malicious software.
  • This update corrects two issues in the mpfilter.sys kernel component used by Client Security that cause deadlocks.
  • This update corrects an issue during definition update, computers that utilize the Volume Shadow Copy service appear to hang for several minutes. This issue may occur on computers using backup software that leverages shadow copy volumes.
  • This update corrects a stop error with the error code 0x00000050 on computers running Windows Vista, Windows 2008 Server, Windows 7 or Windows 2008 R2 Server. If Client Security is installed on a computer. 
  • This update increases the priority of the antimalware engine and definitions that are loaded during antimalware service start. The priority change enables the antimalware service to handle requests sooner, mitigating the UI unresponsiveness. However, this change may slightly increase boot time on limited systems by consuming more processor resources during system start.
  • This update corrects an issue in real-time protection when volumes are encrypted using certain 3rd party technologies.

For more information about the update, Microsoft Knowledge Base article 2394439 (http://support.microsoft.com/kb/2394439) will have the detail. This KB may not be live until later in the day on 12 October.

source : http://blogs.technet.com/b/clientsecurity/archive/2010/10/12/fcs-v1-update.aspx

Publié par Olivier DETILLEUX

New Antimalware Engine is planned for release on 18 October 2010
11 October 10 10:48 AM | forefrontsecurity | with no comments

Hi,

The Antimalware Engine Notifications Blog announce an update for the Antimalware Engine for MSE et FCS (and FEP I guess) :

As part of regular update of our antimalware technology to address the latest in the threat landscape, MMPC is planning to release a new antimalware engine on 18 October 2010

Affected products: Microsoft Security Essentials (MSE), Forefront Client Security (FCS)

Engine Version will be in the range of 1.1.630X.0

Published by Olivier DETILLEUX

Introduction à DirectAccess dans ITPro Magazine
05 October 10 12:23 PM | forefrontsecurity | with no comments

Bonjour,

Un rapide billet concernant la publication dans ITPro Magazine d’un article sur une introduction à DirectAccess dans le cadre de la dépérimétrisation que j’ai écris il y a quelque mois. Vous le trouverez dans le numéro de Septembre 2010, et en téléchargement ici.

Un grand merci à Stanislas Quastana et Frédéric Esnouf pour leurs relectures et leurs conseils.

Publié par Olivier DETILLEUX

Implementing SSO for the SCOM Login Page through UAG
05 October 10 10:48 AM | forefrontsecurity | with no comments


I’d like to mention that this article was co-Written with Frederic Esnouf whom i thank for his help.he also published it on his blog: http://blogs.technet.com/b/fesnouf/archive/2010/10/01/implementing-uag-sso-with-scom.aspx.

I decided to write this article after trying to follow a small post that he’d made earlier and encountering few problems. 

We’ve seen in previous articles how to implement SSO through UAG for non-default websites. Those solutions however do not apply for all encountered form login website and you might encounter some issues implementing this solution for some forms.
We will go through the implementation of the SSO solution for the SCOM Form login website and walkthrough the troubleshooting process that could be followed in case of problems.

1- Web publishing

Below is the SCOM forms login page that we need to avoid manually login on to.

clip_image002[7]

We will start by creating a new “Other Web Application (application specific hostname)” publishing

clip_image004[7]

Follow the wizard’s steps and note the «Application type » specified.

clip_image006

On the authentication step, activate the single sign-on checkbox, select an authentication server and choose “HTML form” as the authentication method.

clip_image008

Once the configuration is done and activated, the SCOM form login website will be accessible on this address: https://scom.xxx.fr/, you will have to authenticate and login manually though.

Next step is to create the Custom XML file that will enable the SSO access to the SCOM page,

The file should be called formlogin.xml and stored in the following folder:

« C:\Program Files\Microsoft Forefront Unified Access Gateway\von\Conf\WizardDefaults\FormLogin\CustomUpdate\ »

Below is the custom formlogin.xml file that was created for the SCOM page SSO:

<WHLFILTFORMLOGIN ver="1.0">

<APPLICATION>

<APPLICATION_TYPE>ScomWI</APPLICATION_TYPE>

<USAGE description="form_login">

<PRIMARY_HOST_URL>.*login\.aspx.*</PRIMARY_HOST_URL>

<SCRIPT_NAME source="file">Autosubmit_Scom.js</SCRIPT_NAME>

<USER_AGENT>

<AGENT_TYPE search="group">all_supported</AGENT_TYPE>

<POLICY>multiplatform</POLICY>

<SCRIPT_NAME source="data_definition">FormLoginHandler</SCRIPT_NAME>

</USER_AGENT>

<LOGIN_FORM>

<NAME>form1</NAME>

<METHOD>POST</METHOD>

<CONTROL handling="real_value">

<TYPE>USER_NAME</TYPE>

<NAME>Login1$UserName</NAME>

<DEF_VALUE>siteuser</DEF_VALUE>

</CONTROL>

<CONTROL handling="real_value">

<TYPE>PASSWORD</TYPE>

<NAME>Login1$Password</NAME>

<DEF_VALUE>sitepass</DEF_VALUE>

</CONTROL>

<CONTROL handling="real_value">

<TYPE>submit</TYPE>

<NAME>Login1$LoginButton</NAME>

<DEF_VALUE>Log In</DEF_VALUE>

</CONTROL>

</LOGIN_FORM>

</USAGE>

</APPLICATION>

</WHLFILTFORMLOGIN>

<APPLICATION_TYPE> must be the same as the application type entered during the Publishing.

<PRIMARY_HOST_URL> must be equal to the Forms’ web address to which you would like to apply the script.in our case the address is https://scom.xxx.fr/login.aspx?ReturnUrl=%2fdefault.aspx, through REGEX syntax the address can be reduced to .*login\.aspx.*

<SCRIPT_NAME source="file">Autosubmit_Scom.js</SCRIPT_NAME> is the JavaScript file that will allow us to submit the filled out form and login. We will view it in more details later on.

<NAME>form1</NAME> must be equal to the form’s name

This parameter can be found by browsing the web page’s source code for the following element:

<form name="form1" method="post" action="login.aspx?ReturnUrl=%2fdefault.aspx" onsubmit="javascript:return WebForm_OnSubmit();" id="form1">

<NAME>Login1$UserName</NAME> must be equal to the form’s field that the script will fill with the Username.

This parameter can be found by browsing the web page’s source code for the following element:

<td align="right"><label for="Login1_UserName">Domain\User Name :</label></td><td><input name="Login1$UserName" type="text"

<DEF_VALUE>siteuser</DEF_VALUE> this value is a constant and will automatically fill the above field with the correct info.

<NAME>Login1$Password</NAME> must be equal to the form’s field that the script will fill with the Password.

This parameter can be found by browsing the web page’s source code for the following element:

<td align="right"><label for="Login1_Password">Password :</label></td><td><input name="Login1$Password" type="password"

<DEF_VALUE>siteuser</DEF_VALUE> > this value is a constant and will automatically fill the above field with the correct info.

<NAME>Login1$LoginButton</NAME> must be equal to the form’s login button name.

This parameter can be found by browsing the web page’s source code for the following element:

<<td align="right" colspan="2"><input type="submit" name="Login1$LoginButton" value="Log In"

<DEF_VALUE>Log In</DEF_VALUE> must be equal to the value that the login button has.

 

 

Once those parameters filled correctly, the Autosubmit_Scom.js script must be edited and copied to the correct location.

The default Autosubmit.js provided by UAG usually submits the filled out form without any problem.

 

It is located in the following directory

« C:\Program Files\Microsoft Forefront Unified Access Gateway\von\Conf\WizardDefaults\FormLogin\ »

It must be copied to « C:\Program Files\Microsoft Forefront Unified Access Gateway\von\Conf\WebSites\extranet\conf » and renamed as autosubmit_Scom.js as specified in the formlogin file.

After activating the UAG configuration, accessing the https://scom.xxx.com/ link, we fill out the UAG authentication form and submit the request.

 

Troubleshooting :

Implementing this solution requires a little knowledge of HTML and Javascript, there are however some tools that can help out troubleshoot problems you might encounter.

Among the issues that might happen:

 

1- The Scom page is not filled with any login information:

The problem in this case is most probably with the formlogin.xml file that was not filled correctly.

HTTPWatch is a browser plugin that can help you trace the script execution.

By recording the ongoing events you can check and see if the script was executed or not.

In the snapshot below, we located the post event and by looking at the post data noticed that the requested data is being sent to the Scom Form.

clip_image010[7]

Additionally when looking at the Content tab you should see the « FormLoginOnLoad » function at the top and bottom of the HTML code.

<SCRIPT language="JavaScript">

var gSafeOnload = new Array();

function FormLoginOnload()

{

for (var i=0; i < gSafeOnload.length; i ++)

{

gSafeOnloadIdea();

}// for i

}// FormLoginOnload

if (window.onload)

{

gSafeOnload[0] = window.onload;

gSafeOnload[gSafeOnload.length] = FormLoginSubmit;

window.onload = FormLoginOnload;

}

else

{

window.onload = FormLoginSubmit;

} // if window.onload

</SCRIPT>

 

If either one is missing, then the formlogin.xml was not detected by UAG because of some incorrect information.

 

2- The form was successfully filled but was not submitted:

The problem in this case lies in the autosubmit_Scom.js script

The submit function can vary from an HTML page to another, meaning that the default submit code might not always work.

In order to trace the behavior of the SCOM login page during the script’s execution we will use internet explorer’s Developer tools which are now integrated with IE 8.

Enable the tools, access SCOM login page and ask the developer tools to monitor the login button’s behavior.

The HTML code will be displayed and by selecting the script tab, you will be able to execute the autosubmit.js content and see the page’s reaction live.

clip_image012

The following functions are but few of the possible functions that could make the HTML page execute a submit.

In our case the example 2, simulating a click on the button was the one that worked, and executing the function in the developer tools script windows allowed us to identify that.

Par default

Exemple 1

Exemple 2

function FormLoginSubmit()

{  

            document.forms[1].submit();

            return false;

}

function FormLoginSubmit()

{  

            logon();

           return false;

}

function FormLoginSubmit()

{

document.form1.Login1$LoginButton.click();

return false;

}


 

Published By Hicham Bardawil


Ressources FEP 2010
04 October 10 02:17 PM | forefrontsecurity | with no comments

Mon collègue Aurélien Bonnin a publié sur son blog une liste de l’ensemble des ressources FEP 2010 beta à notre disposition. Très utile à quelques mois de la sortie.

Ressources FEP 2010 beta

Publié par Olivier DETILLEUX

This Blog

News

    We talk about Forefront Unified Access Gateway, Web SSO, DirectAccess, Threat Management Gateway, Identity Manager and other Forefront Technologies. Also, some post about Active Directory and other Identity and Access technos.

Syndication