Feeds

Can WinXP Product Activation be reverse engineered?

It's beginning to look possible...

  • alert
  • submit to reddit

High performance access to file storage

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

Combat fraud and increase customer satisfaction

More from The Register

next story
This time it's 'Personal': new Office 365 sub covers just two devices
Redmond also brings Office into Google's back yard
Oh no, Joe: WinPhone users already griping over 8.1 mega-update
Hang on. Which bit of Developer Preview don't you understand?
Microsoft lobs pre-release Windows Phone 8.1 at devs who dare
App makers can load it before anyone else, but if they do they're stuck with it
Half of Twitter's 'active users' are SILENT STALKERS
Nearly 50% have NEVER tweeted a word
Internet-of-stuff startup dumps NoSQL for ... SQL?
NoSQL taste great at first but lacks proper nutrients, says startup cloud whiz
Ditch the sync, paddle in the Streem: Upstart offers syncless sharing
Upload, delete and carry on sharing afterwards?
New Facebook phone app allows you to stalk your mates
Nearby Friends feature goes live in a few weeks
Microsoft TIER SMEAR changes app prices whether devs ask or not
Some go up, some go down, Redmond goes silent
Batten down the hatches, Ubuntu 14.04 LTS due in TWO DAYS
Admins dab straining server brows in advance of Trusty Tahr's long-term support landing
prev story

Whitepapers

SANS - Survey on application security programs
In this whitepaper learn about the state of application security programs and practices of 488 surveyed respondents, and discover how mature and effective these programs are.
Combat fraud and increase customer satisfaction
Based on their experience using HP ArcSight Enterprise Security Manager for IT security operations, Finansbank moved to HP ArcSight ESM for fraud management.
The benefits of software based PBX
Why you should break free from your proprietary PBX and how to leverage your existing server hardware.
Top three mobile application threats
Learn about three of the top mobile application security threats facing businesses today and recommendations on how to mitigate the risk.
3 Big data security analytics techniques
Applying these Big Data security analytics techniques can help you make your business safer by detecting attacks early, before significant damage is done.