Microsoft wireless keyboard hacked from 50 metres

By Tom Espiner, ZDNet UK
06 December 2007 08:22 AM
Tags: hack, keyboard, keylogger, rf, spyware, wireless, frequency, radio

Swiss researchers say they can log keystrokes from Microsoft's wireless keyboards from up to 50 metres away using special radio equipment, and are close to being able to control affected computers remotely.

The protocol for securing some of Microsoft's wireless keyboards has been cracked, opening up the possibility of keystroke logging, according to Swiss security company Dreamlab Technologies.

Microsoft's Wireless Optical Desktop 1000 and 2000 keyboards communicate by transmitting radio signals to the sound card in a user's computer. The data stream is encrypted using an exclusion-or (XOR) cipher, which is not strong enough to secure the communication, according to Dreamlab's senior security specialist, Max Moser.

"This is nothing like a crypto-algorithm," Moser told ZDNet Australia sister site ZDNet.co.uk. "An exclusion-or binary is really a simple mathematical idea. You can crack the cipher by hand. You take two values, write both lines and look at the different digits. When either the top or the lower line is 1, you write 1. If both are 0, you write 0. For me, this is just obfuscation [rather than encryption]."

Dreamlab started their cracking efforts six months ago. They first identified the radio frequency used by the keyboards. They then used a piece of copper wire to intercept the signal, which is effective to a range of 10 metres, including through walls and floors.

However, because the radio frequency is in the citizens' band -- that is, it is used by CB radios -- Moser said it would be possible to obtain radio equipment that could intercept the transmissions from up to 50 metres away. "Range is not a problem," said the security specialist.

But Moser said that, although he could log keystrokes, he hadn't yet been able to take control of a compromised computer remotely, because there were still some parts of the keyboards' protocol that were unknown to him. Because the protocol is proprietary to Microsoft, meaning the researchers do not have access to the source code, they decided to analyse the data on a binary level, rather than use reverse engineering.

"The real challenge was to understand the keyboard protocol," said Moser. "With 40 bytes per keystroke, it's difficult to understand which [byte] holds the data. From the binary stream, we built the data into meaningful sets and groups."

Moser then wrote a software tool which automatically sifted the data. Moser said he has not publicly released the tool because he does not want it to fall into the wrong hands. He added that he has informed Microsoft of his findings.

Each keyboard transmits its own identifier, so, if two or more keyboards are working in close proximity, the signals don't interfere with each other. While this means user are unlikely to find themselves typing on a neighbour's computer, it also allows intercepted signals to be hacked because each unique identifier can be used as a key.

It takes between 30 and 50 intercepted keystrokes to break the protocol. As exclusion-or is used as a cipher mechanism, even if the user changes the key by reconnecting the keyboard, it is easy to crack the code, said Moser.

Moser said that, to mitigate this possible attack vector, companies could invest in wired or Bluetooth keyboards.

Microsoft's director of security response, Mark Miller, said the company was investigating Dreamlab's claims. He said Microsoft was unaware of any attacks exploiting the claimed vulnerability or any customer impact.

"We will take steps to determine how customers can protect themselves should we confirm the vulnerability," Miller added.

Advertisement

Talkback 6 comments

    50 metres? beneuto -- 06/12/07

    Geez, I'm lucky if my wireless desktop works 50cm from the receiver let alone metres.

    XOR Anonymous -- 06/12/07

    I think you mean exclusive-or, not exclusion-or.

    Transmitting to sound card ? Anonymous -- 06/12/07

    "Microsoft's Wireless Optical Desktop 1000 and 2000 keyboards communicate by transmitting radio signals to the sound card"

    Since when a sound card is receiving radio signals from a keyboard ?!

    Sound Card for Reception Anonymous -- 06/12/07 (in reply to #320091137)

    I've read another article which was more accurate about that I think. There it is said, that the Dreamlabs people used a Sound Card to feed the signal into a computer for further processing.

    How garbled can one article be? Anonymous -- 07/12/07

    Receiving radio signals on a sound card? "Exclusion" or? Exclusive-or not being crypto?

    1) Sound cards don't receive radio signals. They can be used to process radio signals that are converted into sound by a radio receiver. That's why they are called "sound cards". 2) I thought maybe "exclusion-or" was British English but a search shows no such thing. The term is "exclusive-or" or XOR. 3) XOR is a perfectly fine step in encryption. The security comes from what you XOR with. Obviously in this case what was XORed with the data stream can be cracked, but XOR is not the problem other tnan that cryptographers know that XOR stream ciphers such as RC4 are difficult to use in a way that can't be cracked.

    XOR should not be classified as 'encryption'. Anonymous -- 07/12/07 (in reply to #320091164)

    XOR is associative. This means that it is also 'reversable'. This means that if you have a copy of the encrypted text and the corresponding plain text, you can easily get the key by applying the XOR function using these two values. Once you have the key you can decrypt any other text from that session. This makes XOR very weak for encryption purposes and should never have been used for keyboard encryption due to the potential of remote 'drive-by' keystroke logging alone.

    XOR may be useful as a *component* in a more complicated algorithm, but should never be used alone - and especially not on links that are broadcast omni-directionally with a range of more than about two inches.

Add your opinion

Latest Videos

Blogs

  • Darren Greenwood Telecom NZ savings damage prospects
    If Telecom NZ wants to have any of the NZ$1.5 billion the government intends to spend on its new broadband network, it had better think long and hard before offshoring 1500 jobs.
  • Array iiNet: The whys and what nows
    Last week the Federal Court ruled that internet service providers are not responsible for copyright violation by their customers. This is an important decision not just for iiNet, which spent around $4 million defending the case, but for all ISPs in Australia and, indeed, globally.
  • Array Govt, hurry up with releasing data
    A programmer scraped data from the My School website to make some really cool heat maps showing regions of smart schools — no thanks to the government, which didn't supply the data in any useful kind of format.
  • More blogs »

Tags

Back to top

Featured