On GameFAQs: Is it OK to lay my Wii down on its side?
BNET Business Network:
BNET
TechRepublic
ZDNet

August 21st, 2007

Can Microsoft ever stop kernel tampering in Vista?

Posted by Ryan Naraine @ 1:21 pm

Categories: Black Hat, Botnets, Browsers, Data theft, Digital rights management, Exploit code, Hackers, Metasploit, Microsoft, Open source, Passwords, Patch Watch, Pen testing, Punditocracy, Responsible disclosure, Rootkits, Viruses and Worms, Vulnerability research, Windows Vista, Zero-day attacks

Tags: Security, Tampering, Driver, Microsoft Windows Vista, Microsoft Windows, Microsoft Corp., Kernel, Ryan Naraine

In Focus » See more posts on: DRM

I was just going through the slides from Joanna Rutkowska’s Black Hat talk (127-page .ppt file) and discovered that there’s another unpatched driver flaw that exposes Windows Vista to kernel tampering.

This flaw, in NVIDIA nTune, is similar to the recent ATI Technologies driver issue that provides a foolproof way to load unsigned drivers onto Vista — defeating one of the new security mechanisms built into Microsoft’s newest operating system.

Can Microsoft ever stop kernel tampering in Vista?

Because the buggy driver is legitimately signed, Vista will always load it, setting up a scenario where an attacker can bring the driver to the target machine, install it and then exploit it.

[ SEE: ATI driver flaw exposes Vista kernel to attackers ]

Even in cases where all device drivers are perfect (we all know that world doesn’t exist), Rutkowska showed how certificates can be purchased by anyone for $250 and attached to legitimate drivers rigged with what she calls “innocent” backdoors.

“Nobody can charge us for creating and signing an ‘innocent’ driver, which just happens to be somewhat buggy (a subtle buffer overflow somewhere,” she argues. The driver can then be loaded into Vista (legitimately) and the attacker can simply exploit the bug to get access to the kernel.

“It’s not our driver that behaves maliciously, but it’s the exploit, which is not signed by any certificate.”

The takeaway from Rutkowska’s talk, which is not being disputed by Microsoft, is that it’s not possible to implement effective kernel protection using device driver signing.

Alex Ionescu’s Purple Pill, which piggy-backed on the ATI driver flaw, put Rutkowska’s theory into practice and sent Redmond scurrying to look at its anti-rootkit/anti-DRM security mechanisms.

Last Tuesday, as part of Patch Day, Microsoft shipped a non-security update (see advisory here) to add additional checks to the Kernel Patch Protection system. This update, which was NOT related to the Purple Pill release, is meant to protect code and critical structures in the Windows kernel from modification by unknown code or data.

I exchanged e-mails with Ken ‘Skywing’ Johnson, a Microsoft SDK MVP known for breaking Vista’s PatchGuard, and he explained the latest update as just another salvo in the never-ending cat-and-mouse game to attack — and defend — the Windows kernel.

“It changes t he way that PatchGuard’s integrity checks are periodically run in an effort to break publicly available code that disabled PatchGuard v2. This includes the code that I published for disabling PatchGuard v2 in Uninformed vol 6,” Johnson said.

It also extends PatchGuard’s integrity check to include several other key areas that could possibly be used to achieve results similar to patching the kernel but without arousing PatchGuard’s attention (which would allow one to simply ignore PatchGuard entirely and coexist with it while still altering the behavior of the kernel in ways that PatchGuard was designed to stop).

In other words, Johnson explained, it’s the latest iteration in the play-by-play between Microsoft and anybody who wants to patch the kernel. “As far as I know, it is successful in stopping all of the current, publicly available code for disabling PatchGuard v2. However, a motivated and skilled individual would likely not find the new PatchGuard version unstoppable,” he added.

“Microsoft is fighting a primarily reactive battle against people who are (or might be) shipping code that is designed to disable PatchGuard… I would consider it very likely that the new revision will be disabled just as effectively as v2 and v1 have, given time,” Johnson argued.

For its part, Microsoft views Kernel Patch Protection and the device driver signing mechanism as “parts of a defense in depth approach to security. ”

A spokesman explained to me that PatchGuard and practices such as using User Account Control (which limits how much code runs with administrative permissions) are parts of this approach that combine to make the operating system hacker-proof.

“Windows Vista was engineered to be the most secure version of Windows, however it is important to note that no operating system is 100% secure. Microsoft periodically reviews and adjusts mechanisms such as KPP based on evolving research and threads – security is an ever evolving process,” he added.

Ryan NaraineRyan Naraine is a journalist and security evangelist at Kaspersky Lab. He manages Threatpost.com, a security news portal. Here is Ryan's full profile and disclosure of his industry affiliations.


Email Ryan Naraine

For daily updates on Ryan's activities, follow him on Twitter.

Subscribe to Zero Day via Email alerts or RSS.

  • Talkback
  • Most Recent of 48 Talkback(s)
It's a flaw if it's not ME patching
It's one thing for me to patch my own OS.

What Microsoft is trying to do is to prevent other people from patching my OS, and that's a good thing. And anything that interferes with that, is a fl... (Read the rest)
Posted by: Bob.Kerns Posted on: 09/06/07 You are currently: a Guest | | Terms of Use
Windows defender is supposed to be an antispyware program  zmud | 08/21/07
RE: Windows defender is supposed to be an antispyware program  Kaiwai | 08/21/07
This is another case of microsoft protecting itself  zmud | 08/22/07
I wouldn't put too much stock in Defender  intrepi@... | 08/22/07
Captain Obvious  Yagotta B. Kidding | 08/21/07
Captain Oblivious  Hamlet_z | 08/21/07
Other methods of kernal protection by other OS are better...  jjarman | 08/21/07
Revisionist History...  jcg_z | 08/22/07
Any standard BSD-based UNIX, and some Linux  Resuna | 08/22/07
Many OS protect and managed access to the kernal level interfaces  jjarman | 08/22/07
No, he's right, it's Microsof's fault...  jinko | 08/21/07
It's the design, silly  SpikeyMike | 08/22/07
Point  sysop-dr | 08/22/07
Bad analogy  zmud | 08/22/07
NT 3.51  Sxooter_z | 08/22/07
Making the perfect the enemy of the good  larry@... | 08/21/07
I really would like you for a boss  intrepi@... | 08/22/07
Yes, it can be fixed  rpmyers1 | 08/21/07
Legs Kicked Out From Beneath Vista  chessmen | 08/21/07
I still believe it is the complexity.  TripleII | 08/21/07
Message has been deleted.  ballmerrules@... | 08/21/07
Ha Ha  waynearcelectcom | 08/22/07
I agree, but then a lot of them bought Vista  intrepi@... | 08/22/07
another "VISTA" flame  jackie40d@... | 08/22/07
Start writing about MAC, Linux, enough allready!  johann@... | 08/22/07
Mo, I want Microsoft to stop calling this a flaw.  Resuna | 08/22/07
How does MS stop you from doing this?  NonZealot | 08/22/07
Whatever  zkiwi | 08/22/07
the difference is...  mdsmedia | 08/23/07
A little dramatic?  NonZealot | 08/23/07
The answer: NO !!  Wm.Franklin | 08/22/07
THIS IS STILL NOT A FLAW!  Resuna | 08/22/07
very intelligent point, thanks!  jjarman | 08/22/07
it's a way  Monkey_MCSE | 08/22/07
Where is this a right?  NonZealot | 08/22/07
Totally brainwashed  Ole Man | 08/22/07
You sure nailed this one down, Bravo !  intrepi@... | 08/22/07
If you agreed to the EULA...  TripleII | 08/22/07
It's a flaw if it's not ME patching  Bob.Kerns | 09/06/07
KERNEL TAMPERING  BALTHOR | 08/22/07
Hope you didn't buy Creative's Soundblaster  intrepi@... | 08/22/07
AT BOOT UP---  BALTHOR | 08/22/07
No reboot needed  rpmyers1 | 08/23/07
windows security  HellzArcticWolf | 08/22/07
Security By Design  raisch@... | 08/23/07
Actually, DRM is everywhere in Vista  blarman_z | 08/23/07
Reading Vista's EULA  Ole Man | 08/24/07
Unpatched Driver Flaws ought to STAY Unpatched.  XweAponX | 09/05/07

What do you think?

SponsoredWhite Papers, Webcasts, and Downloads

advertisement

Recent Entries

advertisement

Archives

Favorite Links

ZDNet Blogs

White Papers, Webcasts, and Downloads

SmartPlanet

  • Thought-provoking progressive ideas on diverse topics that intersect with technology, business, and life, and matter to the world at large. Visit SmartPlanet
  • More from IBM
  • Innovate your business' process model, play against the market, compete against others on our scoreboards and WIN! Try INNOV8 2.0: A BPM Simulator
  • Enabling Real-World Business Transformation through IBM Service Management Read the EMA Analyst Report
Click Here