• Fabrice *.*
  • Video games
  • Photography
  • Links
  • Justine

Fabrice Roux *.*

Blogs aggregated
  • Home
  • Contact
  • Log in

Hardware DEP has a backdoor

Introduction :
Hardware DEP (Data Execution Prevention) is a feature that protects Windows XP SP2 from buffer overruns. When a compatible CPU is present, Windows XP SP2 DEP interface offers 2 options. The default one protects only the core Windows components and the ones manually added by the user. (OPTIN) The most secure one protects all the programs on your systems except the ones manually added by the user. (OPTOUT)
For more informations on how to activate hardware DEP, visit my "DEP to keep buffer overrun at bay" blog post.

Investigating hardware DEP :
I activated DEP on my 2 compatible PCs in mid 2006, it was protecting my PCs in the background so I forgot about it. Recently the security guru Steve Gibson of grc.com in it's Security Now podcasts mentioned that IrfanView refused to run in ALWAYSON DEP mode. While it would run perfectly in in OPTOUT mode. Theoretically OPTOUT with an empty exclusion list should behave exactly like ALWAYSON. The only possible explainations were either IrfanView was doing a nasty trick to evade DEP or Microsoft lied about the definition of OPTOUT. :whistle:

I ran a bunch of queries on Google to find more information on the subject... nothing really impressive. Then a contributor on the GRC security newsgroup posted about packed executable disabling DEP. Back in late 2005, when the WMF exploit surfaced Kaspersky pointed out that IrfanView and XnView were running without protection even in OPTOUT mode. Leaving their users with their pants on the ankles. It clearly stated:

However, when testing the latest builds of third party image viewers like Irfanview and XnView HW DEP didn't prevent exploitation, even with HW DEP enabled for all programs. This is because both Irfanview and XnView are packed with ASPack and Windows disables HW DEP for ASPack packed files.

ASPack allows to compress executable files (EXE, DLL, OCX,...) so their footprint on the hard disk is smaller. The file is decompressed on the fly at runtime. The CPUs are faster than hard disk so in the end running these apps should be faster. I never used DriveSpace/DoubleSpace (back in the DOS days) or RAID0... mainly for low reliability and lack of decent performance boost. So I have a hard time believing that saving 2MB on my laptop 160GB hard disk is a useful trick. Especially when it comes at the expense of DEP protection.

So this new keyword unleashed the doors of very interesting stuff on Google. (query ASPack DEP Kaspersky) I quickly found out that IrfanView was not using any trick to evade DEP... Microsoft just coded a backdoor used only in OPTOUT. Bascially Microsoft checks the executable header for a section matching one of the 3 strings. If one these strings is found, DEP will be turned OFF for this application by windows. To find these strings all you have to do is use a hex editor to open ntdll.dll found in your sytem32 directory.

The 3 backdoor strings in ntdll.dll:
DEP backdoor in ntdll.dll

By order of appearance, the strings are:

  1. aspack : from ASPack. Common programs that use ASPack are the 2 image viewers IrfanView and XnView... but also the web browser Opera.
  2. pcle : (source not yet identified) I put my 0.02? on Pinnacle System for their long history of crashing apps and their NASDAQ ticker. :cool:
  3. sforce : from Star-Force the highly unpopular game/app copy protection. The list of current Star-Force protected games can be found on the Boycott StarForce website.

The easiest way to identify the DEP status of an application is to run Process Explorer. In order to display the DEP status you'll need to go to the View menu, click on Select columns and then tick the "DEP status" checkbox.

Process Explorer window:
Process Explorer DEP status

The compressed programs appear in purple. You can see that packed apps are common but only the ASPack ones disable DEP. Both IrfanView and Opera run with DEP off. In this case, I had Skype (proprietary packer???) and FastStone Capture (UPX). I also use uTorrent which uses PECompact.

From my point of view the worst case is Opera. By definition a web browser is on the front line it has to be backed up by DEP. I would barely tolerate that a local widget that displays an analog clock disables DEP... but a browser is way beyond my threshold. :mgun: If the widget requires DEP to be turned off to run, I want to be in charge of doing so. Just like I want to control the opened ports in my routers and therefore turn off UPnP, I want to have the control of my hardware DEP protection.

Conclusion :
I want to believe that Microsoft will eventually release a properly named OPTOUT mode. If the current backdoored version was to stay it should be named with clear unsecured in its description. If some spin doctor wanted to pull "Hybrid" out of his sleeves he should take this PR stunt and >:XX. On the programs side, it would be a good time for the ASPack users to switch to UPX which is open source and DEP compliant. Or simply dump packed executables for good. I don't care if my web browser takes 200 extra milliseconds to launch. But I do care to have DEP blindly protecting my programs from undisclosed buffer overruns.

Some will say that ALWAYSON locks this backdoor... but in my case being able to OPTOUT one program in beta stage is priceless. Therefore I'd rather replace the strings in ntdll.dll by some random gibberish so that no other app can slip thru my fingers. Last year, for speed reasons, I switched from IrfanView to FastStone Image Viewer. I'll now use Opera only as the last resort and for testing purpose on known websites.

Edits:

  • IrfanView 4.x+ now uses UPX packer so it's fully hardware DEP compliant.
  • A bunch of PhotoShop compatible plugins require switching DEP off for the hosting app. (PhotoShop, Paint Shop Pro or others) These plugins don't trigger a DEP interception, they just fail to properly run and crash the host application. Here are some plugins that crash: Xero Graphics, PhotoWiz and plugins built using FilterMeister. The FilterMeister devs are aware of the issue and are working on a solution.
  • Opera from version 9.50 alpha and up is now DEP compliant. (FYI: it uses UPX to pack its executable)

Useful links:

  • Steve Gibson GRC and its newsgroups. (news.grc.com/grc.security)
  • Security Now podcast and also the Security Now host Leo Laporte at TWIT.
  • Wikipedia DEP article in case you believe in Wikiality and the no-facts zone. (c) Stephen Colbert :cool:
  • Wikipedia NX bit article gives more information about the hardware level and OS support.
  • Microsoft list of programs that had issues when Windows XP SP2 was released.
  • By Fabrice
  • February 26th, 2007
  • Posted in security
  • 46756 views
  English (US) latin1  
 

DEP to keep buffer overrun at bay

Since the service pack 2 (august 2004), Windows XP supports the hardware DEP. (Data Execution Prevention) This feature is hardwired in the modern CPUs, it allows to intercept and lock programs before buffer overruns lead to issues. It requires a compatible BIOS, CPU and operating system.

By default the DEP is only applied only to the Windows core programs and services. The main reason behind this default behavior is that back in august 2004 a bunch of legit apps were locked by hardware DEP. (Adobe Reader 6, Jasc Paint Shop Pro 8, Pinnacle Systems Studio 9,...) These programs were patched out of the bugs / performance tricks to be hardware DEP compliant.

If your gear supports hardware DEP, it's highly recommended to activate it. To do so, you'll need:

  • Open the system applet in the control panel.
  • Select the advanced tab then click on parameters in the Performance section.
  • Select the Data Execution Prevention tab.
  • Select the Turn on DEP for all programs and services except those I select.
  • Click on Ok then reboot to apply the changes.

DEP options:
DEP modes

From now on your PC is protected against most buffers overruns. If a program tries to execute code in a forbidden area, the following window will appear.

DEP warning:
DEP crash

In this example, Windows Explorer is not behaving properly... If a legit program is stopped by DEP, you still have the option to add it to the Opt-out list. But you'll have to understand that disabling DEP leaves a breach in the security wall created by DEP.

In case you don't know if your PC supports hardware DEP, Steve Gibson from grc.com made a program called Securable. Securable checks your system for the following security features:

  • Hardware DEP: for Windows XP SP2 32/64 bits and up.
  • 64 bits: for the Kernel Patch Protection of Windows Vista 64 bits.
  • Virtualization: for the future HyperVisor of Windows Vista 64 bits.

Securable ran on my laptop:
Securable

Additional informations: for the advanced users
The DEP mode is a parameter of the operating system in the boot.ini file.

[boot loader]
timeout=30
default=multi(0)disk(0)rdisk(0)partition(1)\WINDOWS
[operating systems]
multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="Microsoft Windows XP Professionnel" /fastdetect /NoExecute=OptOut

The possible values for the NoExecute parameter are:

  • ALWAYSOFF turns DEP off.
  • OPTIN activates DEP only for the main Windows programs and services and those added to the list. (Windows XP SP2 default mode)
  • OPTOUT activates DEP for all the programs et services except those added to the list. (best mode available from the DEP options window)
  • ALWAYSON activates DEP for all programs and services. (only available by manually editing the boot.ini file)

Remark: If a bug in a critical driver triggers a DEP lock in OPTOUT or ALWAYSON modes it might prevent your PC from booting. In that case you'll have to access the recovery console and edit the boot.ini file to switch to OPTIN mode.

  • By Fabrice
  • February 25th, 2007
  • Posted in security
  • 14602 views
  English (US) latin1  
 

uTorrent 1.6.1.490 released

Link: http://www.utorrent.com/

µTorrent is an efficient and feature rich BitTorrent client for Windows sporting a very small footprint. It was designed to use as little cpu, memory and space as possible while offering all the functionality expected from advanced clients.

With BitTorrent, you can download files faster and contribute by sharing files and bandwidth.

uTorrent

  • By Fabrice
  • February 15th, 2007
  • Posted in peer 2 peer, portable apps
  • 225 views
  English (US) latin1  
 

FastStone Capture 5.3 released

Link: http://www.faststone.org/FSCaptureDetail.htm

FastStone Capture is a powerful, flexible and intuitive screen-capture utility. It allows you to capture anything on the screen including windows, objects, full screen, rectangle regions, freehand-selected regions and scrolling windows/web pages. It has innovative features such as a floating Capture Panel, hotkeys, resizing, cropping, text annotation, printing, e-mailing, screen magnifier and many more.

FastStone Capture

  • By Fabrice
  • February 13th, 2007
  • Posted in misc tool
  • 125 views
  English (US) latin1  
 

Virtual console games list

Link: http://www.vc-reviews.com/available_now.php

The Virtual Console Archive updates the lists of all the VC games available for both NTSC and PAL Wiis. These lists comes in the following flavors:

  • Available games.
  • Planned games.
  • Nintendo NES games.
  • Nintendo SNES games.
  • Nintendo 64 games.
  • Sega Megadrive/Genesis games.
  • Nec PC-Engine/Turbo-Grafx.

Since I still have my SNES with PAL 50/60Hz on the fly switch, I won't get any SNES VC game soon. But I'll probably get the following games:

  • PCE - Bomberman '93 - 600 points
  • PCE - Bonk's adventure - 600 points
  • PCE - R-Type - 800 points
  • PCE - Soldier Blade - 600 points
  • N64 - Mario Kart 64 - 1000 points
  • By Fabrice
  • February 10th, 2007
  • Posted in wii
  • 1276 views
  English (US) latin1  
 

DEP pour bloquer les buffers overruns

Depuis le service pack 2 (aout 2004), Windows XP supporte le DEP matériel. (Data Execution Prevention) Cette fonctionalité incluse dans les processeurs récents permet de bloquer l'éxécution de code dans les zones mémoire allouée aux données.

Par défaut lors de l'installation du service pack 2 de Windows XP, cette protection n'est appliquée qu'aux programmes et services Windows uniquement. La principale raison était qu'au mois d'aout 2004, un grand nombre de programmes étaient bloqués par le DEP matériel. (Adobe Reader 6, PaintShop Pro 8, Studio 9,...) Depuis ces programmes ont étés patchés de leurs bugs / astuces pour que le DEP matériel ne les bloque plus.

Si votre matériel le supporte, il est fortement recommandé d'activer le DEP matériel. Pour se faire il faut:

  • Ouvrir l'application système du panneau de configuration.
  • Sélectionner l'onglet Avancé et cliquer sur Paramètres dans la section Performances.
  • Sélectionner l'onglet Prévention de l'exécution des données.
  • Sélectionner Activer la prévention des données pour tous les programmes et les services, sauf ceux que je sélectionne.
  • Cliquer sur Ok pour valider la sélection puis rebooter pour prendre en compte les modifications.

Sélection du mode DEP:
Mode DEP

A partir de ce moment votre PC est protégé contre la majorité des buffers overruns. Si une application venait a exécuter du code dans une zone interdite la fenêtre suivante apparaitrait.

Interception par DEP:
DEP crash

Dans cet exemple, ZGuideTV n'est pas attaqué... il est seulement en développement et TRES fortement buggé. Si le programme est légitime, il suffit de l'intégrer à la liste des programmes à ne pas protéger par DEP.

Si vous ne savez pas si votre PC supporte le DEP matériel, Steve Gibson de grc.com a développé un programme appelé Securable. Securable identifie les éléments matériel relatif à la sécurité:

  • DEP matériel: pour Windows XP SP2+
  • 64 bits: pour le Kernal Patch Protection de Windows Vista 64 bits.
  • Virtualisation: pour le futur HyperVisor de Windows Vista 64 bits.

Securable sur mon PC portable:
Securable

Informations supplémentaires: pour les utilisateurs avancés
Les différents modes DEP sont paramétrés dans le fichier boot.ini.

[boot loader]
timeout=30
default=multi(0)disk(0)rdisk(0)partition(1)\WINDOWS
[operating systems]
multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="Microsoft Windows XP Professionnel" /fastdetect /NoExecute=OptOut

Les valeurs possibles pour le paramètre NoExecute sont:

  • ALWAYSOFF désactive le DEP complètement.
  • OPTIN active le DEP seulement pour les programmes et services Windows et ceux spécifiés dans la liste. (mode par défaut Windows XP SP2)
  • OPTOUT active le DEP pour tous les programmes et services à l'exception de ceux spécifiés dans la liste. (mode activé par l'interface graphique)
  • ALWAYSON active le DEP pour tous les programmes et services sans exceptions. (ne peut être activé que par l'édition du fichier boot.ini)

Si un bug sur un driver bloque le démarrage du PC sous avec les modes OPTOUT ou ALWAYSON, il suffit d'éditer le fichier boot.ini et de retourner dans le mode OPTIN.

  • By Fabrice
  • February 9th, 2007
  • Posted in security
  • 660 views
  fr-FR  
 

Justine 11 mois

Justine a maintenant son Mii sur la Nintendo Wii de papa. :woot: C'est une petite fille modèle, elle mange bien, elle dort bien, elle n'est pas souvent malade... et supporte bien les milliers de bisous que lui font ses parents. :baby:

Famille directe:
FaMiille

"Mes parents sont collants":
Justine

Justine s'éclate avec Weez son doudou:
Justine

  • By Fabrice
  • February 8th, 2007
  • Posted in photos
  • 216 views
  • Send feedback »
  fr-FR  
 

InkScape 0.45 released

Link: http://www.inkscape.org/

Inkscape is an Open Source vector graphics editor that uses the W3C standard Scalable Vector Graphics (SVG) file format.

InkScape

Download mirror: MajorGeeks

  • By Fabrice
  • February 6th, 2007
  • Posted in net tool
  • 97 views
  English (US) latin1  
 
<< 1 ... 6 7 8 9 10 11 12 13 14 15 16 ... 61 >>
  • September 2010
    Sun Mon Tue Wed Thu Fri Sat
     << <   > >>
          1 2 3 4
    5 6 7 8 9 10 11
    12 13 14 15 16 17 18
    19 20 21 22 23 24 25
    26 27 28 29 30    
  • Fabrice Roux *.*

  • You'll find in this blog what is posted on all other blogs.
    • Recently
    • Archives
    • Categories
    • Latest comments
  • Search

  • Categories

    Fabrice Roux *.*

    • CRM - GRC
    • jokes
    • news
    • security
    • thoughts
    • tutorial

    Video games

    • console
      • ds
      • wii
    • news
    • tribes

    Photography

    • canon dSLR
    • news
    • panoramic
    • retouche
      • paint shop pro
      • photoshop

    Links

    • crm / grc
    • dev tools
    • internet
      • extensions
        • firefox
        • thunderbird
      • net tool
      • peer 2 peer
      • server
      • tutorial
    • misc tool
      • office
      • portable apps
      • tweaks
    • palm
    • photography
      • photo tool
    • security

    Justine

    • news
    • photos
    • videos
  • Blogroll

    • panoramic
      • Panorama Factory 4.3 released
      • WPanorama 6.2.1 released
      • HDR Shop
      • Millau bridge panorama
      • Panorama stitching steps
      • Sunday sunrise 360° panorama
    • photoshop
      • Adobe Photoshop Elements 4 released
      • Photoshop CS 2 announced
      • Photoshop CS actions links
    • paint shop pro
      • Corel PaintShop Pro Photo XI released
      • Faramir PSP script pack 3.2 released
      • Faramir Paint Shop Pro script pack 3.1
      • Faramir Paint Shop Pro script pack 3.0
      • The death of Paint Shop Pro
      • Corel acquires Jasc
      • Faramir Paint Shop Pro script pack 2.4 available
    • retouche
      • Paint.NET 3.10 released
      • IrfanView 4.00 released
      • DxO FilmPack 1.0 released
      • DxO Optics Pro 4.1 released
  • XML Feeds

    • RSS 2.0: Posts
    • Atom: Posts
    What is RSS?
  • Sidebar 2

    This is the "Sidebar 2" container. You can place any widget you like in here. In the evo toolbar at the top of this page, select "Customize", then "Blog Widgets".
  • Contents

    • Please buy HD DVD instead of Blu-ray
    • 20 mois et en pleine forme
    • 18 mois et les premiers pas
    • Derniers pas incertains
    • NSIS 2.30 released
    • SandboxIE 3.01 released
    • Paint.NET 3.10 released
    • ArtRage 2.5 released
    • Canon 40D and 1DSmk3
    • Opera 9.23.8807 released
    • Et 2 canines... soit 13 dents
    • Recuva 1.03.100 released
    • Skype 3.5.0.202 released
    • Firefox 2.0.0.6 released
    • Poids et taille - Size and weight
    • Justine et ses 11 dents font du velo
    • Thunderbird Portable Edition 2.0.0.5 released
    • Firefox Portable Edition 2.0.0.5 released
    • Thunderbird 2.0.0.5 released
    • PC Decrapifier 1.8.3 released

powered by b2evolution free blog software


Contact | Powered by b2evolution
Credits: Foppe Hemminga | multiple blogs | web hosts