Feeds

Can WinXP Product Activation be reverse engineered?

It's beginning to look possible...

  • alert
  • submit to reddit

Choosing a cloud hosting partner with confidence

When Fully Licensed GmbH published details of its analysis of Microsoft's Windows Product Activation (WPA) system earlier this week, it had deliberately removed a small piece of the picture. The company made a fully-working executable of its XPDec utility available for download along with the XPDec source code, but it removed the encryption key from the source.

It seems, however, that this is only a minor obstacle for anyone wishing to have the complete source; The Register has been passed an explanation of how it can be restored, and it really sounds quite simple:

In main.c, there's a function called KeyedHash. From the source:

static unsigned char Key[4] =
{
#error The key has been removed from the source code. Please obtain the executable.
};

Since the key is 4 bytes long, simply insert the 4-letter word of your choice, and compile the project (I was thinking of our good friend Mr Gates when I thought up mine)

static unsigned char Key[4] =
{
"TWAT"
};

This produces an almost identical .exe file, which with the aid of a hex editor can then be compared to the downloaded .exe, and this allows you to zero in on the key.

But what is the point of having it? It is not in itself, according to our informant, the key to the gates of heaven. It doesn't allow you to get around WPA directly; what it does is encrypt the already-hashed part of the data, including the hardware data, when XP is generating a product key to be verified.

He suggests: "What it does allow you to do is generate vast numbers of arbitrary product IDs, which you can then (if you're clever) trick MS into giving you the unlock codes for. If you have access to a ready supply of Windows serial numbers (ie a corporate network), you can feed them in, activate them with different hardware data until they are exhausted, and get lots and lots of corresponding unlock keys."

So it begins to sound interesting, and maybe Microsoft does have some kind of security headache here. He continues: "With a bit of reverse engineering (well, maybe quite a lot), some hacking around with the various encryption algorithms used, and a lot of patience, you should (theoretically) be able to create an app that will give you the unlock code for any arbitrary product key; obviously this process will be greatly simplified with the addition of more sample data."

Not that it's necessarily going to be even that easy: "If MS are not entirely stupid, they should have implemented some kind of public-key cipher (RSA would be ideal) for the unlock codes; MS would encrypt the 'OK' message with their private key, and the client would use the freely-available public key to verify it. Even so, most of the public-key algorithms used suffer from some kind of weakness given enough sample data; it's also dependent on them implementing it properly."

At the very least, this opens up intriguing possibilities. ®

Related Stories

WinXP Product Activation decoded and analysed

Secure remote control for conventional and virtual desktops

More from The Register

next story
UNIX greybeards threaten Debian fork over systemd plan
'Veteran Unix Admins' fear desktop emphasis is betraying open source
Netscape Navigator - the browser that started it all - turns 20
It was 20 years ago today, Marc Andreeesen taught the band to play
Redmond top man Satya Nadella: 'Microsoft LOVES Linux'
Open-source 'love' fairly runneth over at cloud event
Return of the Jedi – Apache reclaims web server crown
.london, .hamburg and .公司 - that's .com in Chinese - storm the web server charts
Chrome 38's new HTML tag support makes fatties FIT and SKINNIER
First browser to protect networks' bandwith using official spec
Admins! Never mind POODLE, there're NEW OpenSSL bugs to splat
Four new patches for open-source crypto libraries
Torvalds CONFESSES: 'I'm pretty good at alienating devs'
Admits to 'a metric ****load' of mistakes during work with Linux collaborators
prev story

Whitepapers

Forging a new future with identity relationship management
Learn about ForgeRock's next generation IRM platform and how it is designed to empower CEOS's and enterprises to engage with consumers.
Cloud and hybrid-cloud data protection for VMware
Learn how quick and easy it is to configure backups and perform restores for VMware environments.
Three 1TB solid state scorchers up for grabs
Big SSDs can be expensive but think big and think free because you could be the lucky winner of one of three 1TB Samsung SSD 840 EVO drives that we’re giving away worth over £300 apiece.
Reg Reader Research: SaaS based Email and Office Productivity Tools
Read this Reg reader report which provides advice and guidance for SMBs towards the use of SaaS based email and Office productivity tools.
Security for virtualized datacentres
Legacy security solutions are inefficient due to the architectural differences between physical and virtual environments.