ZDNet UK


Skip to Main Content

ZDNet.co.uk - Winner of Best Business Website 2007
  1. Home
  2. News
  3. Blogs
  4. Reviews
  5. Prices
  6. Resources
  7. Community
  8. My ZDNet

 

ZDNet UK RSS Feeds


IT Jobs

Security threats Toolkit

Researcher: Debian cryptography may be flawed

Tom Espiner ZDNet.co.uk

Published: 16 May 2008 10:34 BST

  • Email
  • Trackback
  • Clip Link
  • Print friendly
  • Post Comment

A security researcher has warned that cryptographic keys generated in the last year and a half using Debian OpenSSL may be invalid.

HD Moore, director of research for network-security company BreakingPoint Systems, posted details of the compromise on Metasploit.com on Wednesday.

According to Moore, a bug in a Debian OpenSSL package was created in 2006 by the removal of a piece of code, which was taken out to stop the Valgrind and Purify security tools producing warnings about certain code linked to OpenSSL.

However, the removal of this line of code had the side effect of "crippling" the pseudo-random number generator (PRNG) in OpenSSL, wrote Moore. Instead of using random data to generate basic "seed" values for keys, the OpenSSL PRNG used the current process ID, a unique process identifier. The problem is that, in Linux, the default maximum process ID is 32,768, meaning the seed value could be overcome by brute force, or systematically applying different values in the range 0 to 32,768.

"On the Linux platform, the default maximum process ID is 32,768, resulting in a very small number of seed values being used for all PRNG operations," wrote Moore. "When creating a new key for OpenSSH [which uses OpenSSL], there are only 32,767 possible outcomes for a given architecture, key size and key type. The reason is that the only 'random' data being used by the PRNG is the ID of the process."

Once the seed value of a possible key was known, Moore developed a process to generate the keys themselves. Moreover, the researcher published a complete list of cracked 1,024-bit DSA keys, and 2,048 and 4,096-bit RSA keys, and said he intends to make a brute-force tool available "in the near future".

Moore wrote that the effects of the flaw could be wide-ranging, including the need to revoke and regenerate any keys created on a Debian system.

Read this

Comment
PGP: Encryption alone no cure for data breaches

In the fight against security breaches, PGP CEO Phil Dunkelberger cautions that encryption by itself is not the answer...

Read more +

"In the case of SSL keys, all generated certificates will be need to recreated and sent off to the certificate authority to sign," wrote Moore. "Any certificate authority keys generated on a Debian-based system will need be regenerated and revoked. All system administrators that allow users to access their servers with SSH and public-key authentication need to audit those keys to see if any of them were created on a vulnerable system. Any tools that relied on OpenSSL's PRNG to secure the data they transferred may be vulnerable to an offline attack. Any SSH server that uses a host key generated by a flawed system is subject to traffic decryption, and a man-in-the-middle attack would be invisible to the users."

Bojan Zdrnja, a researcher for security-training organisation the Sans Institute, wrote in a blog post that this flaw is "very scary", as any cryptographic material created on Debian systems could be now cracked.

"The bottom line is: this is very, very, very serious and scary," wrote Zdrnja. "Keep in mind that any cryptographic material created on vulnerable systems can be compromised. If you generated SSL keys on such Debian or Ubuntu systems, you will have to recreate the certificates and get them signed again. An attacker can even decrypt old SSH sessions now. Please check your systems and make sure that you are both patched and that you regenerated any potentially weak cryptographic material."

  • Email
  • Trackback
  • Clip Link
  • Print friendly Print with Dell

Did you find this article useful?
14 out of 14 people found this useful


Full Talkback thread

0 comments


Company/Topic Alerts

Create a new alert from the list below:









Related Jobs

Operations Manager (Technical pre-sales team)/ IT Manager- Abingdon, Oxfordshire

Develop tools and processes to ensure right first time implementations BSF Bid support: Provide resource and tools to support the BSF Solution ...

Service Delivery Manager - West Midlands

Own and drive ongoing service improvements and help achieve additional planned revenues The Individual - Of graduate calibre with extensive IT ...

Development Team Leader - (Development Manager) C# / ASP.NET / SharePoint Oxfordshire

This rapidly developing division offers a rare chance for the development team leader to shape the future direction and architecture of an enterprise ...

Featured Talkback

What was achieved there is recognised to be of fundamental importance to both winning the war (Churchill visited to say 'thank you' to them) and the development of the computer. Maybe Bill Gates doesn't want to support this museum because it underlines where electronic computing started i.e. here, not the U.S.

By: 1000103773

Read full story:
Bletchley Park faces bleak future

Sentry Posts Blog

Skype - The Roach Motel

Here is an interesting article from The National Business Review, pointing out once again that you can never delete a Skype account. Never. Period. This is something I am familiar... More

Post a comment

The vPhone: Why Visa Should Go Mobile

The vPhone: Why Visa Should Go Mobile Author: Eric Everson, Founder MyMobiSafe.com With all of the success of Apple’s iPhone, there is a growing case to support a company like Visa... More

Post a comment

The Google Apple Merger: Fantasy or Fu...

The Google Apple Merger: Fantasy or Future? Author: Eric Everson, Founder MyMobiSafe.com Market research suggests that Microsoft controls upwards of 90% of the respective computer-based... More

2 comments