Please create an account to participate in the Slashdot moderation system

 



Forgot your password?
typodupeerror
×
Security Software Linux

Entropy Problems For Linux In the Cloud 179

CalTrumpet writes "Our research group recently spoke at Black Hat USA on the topic of cloud computing security. One of the interesting outcomes of our research was the discovery that the combination of virtualization technologies and public system images results in a problem for random number generation on guest operating systems. This is especially true for Linux, since its PRNG uses only a small set of entropy-gathering events, and virtual Linux images often generate SSH host keys within seconds of their initial boot. The slides are available; the PRNG vulnerability material begins at slide 63."
This discussion has been archived. No new comments can be posted.

Entropy Problems For Linux In the Cloud

Comments Filter:
  • Getting creative (Score:3, Interesting)

    by Brian Gordon ( 987471 ) on Monday August 03, 2009 @08:36PM (#28935085)
    How about getting signed entropy from a trusted server on the network/internet? How about putting that microsecond-accurate system clock to use?
  • by BadAnalogyGuy ( 945258 ) <BadAnalogyGuy@gmail.com> on Monday August 03, 2009 @08:39PM (#28935115)

    Why can't the CPU contain a register which holds a random number which is updated with every clock cycle?

  • Not surely (Score:4, Interesting)

    by Kaseijin ( 766041 ) on Monday August 03, 2009 @08:51PM (#28935189)

    Generating SSH keys involves interaction via at least keyboard and possibly mouse at a terminal.

    SSH host keys are often generated automatically when the init script notices there aren't any.

  • by lamber45 ( 658956 ) <lamber45@msu.edu> on Monday August 03, 2009 @08:52PM (#28935201) Homepage Journal
    The nice thing about Linux is that you can develop whatever entropy-producing process you want and write its output to /dev/urandom to add more entropy to the pool. For instance, a boot script could issue an HTTP request to a website backed by a hardware random-number generator (access-control to only machines in the cloud by IP range). It is something to be worried about, though.

    Java code that does cryptography or generates UUIDs (in the hope that they will be a truly universal key for something) operates under similar problems. JavaScript is even worse; all it has is the time, perhaps the user's window-size (not very random if maximised) and mouse-movements, and the built-in random() method, which is not expected to be of cryptographic quality.

  • Why can't the CPU contain a register which holds a random number which is updated with every clock cycle?

    Some do have something like that [via.com.tw], although it's only about 800kbps instead of 4 bytes per cycle.

  • by noric ( 1203882 ) on Monday August 03, 2009 @09:05PM (#28935283)
    I'd like some evidence that cloud computing is a fad. Tens of thousands of companies, in dozens of industries, do not list "computing hardware, availability, and capacity management" as a core competency, making them prime cloud customers.
  • Eh? (Score:4, Interesting)

    by ledow ( 319597 ) on Monday August 03, 2009 @09:37PM (#28935471) Homepage

    If you "need" cloud computing, then you're bright enough to install an entropy daemon on one of the machines and maybe even slap a hardware-based RNG on it (probably worth sourcing a VIA or similar just for this purpose, to be honest). It's not hard.

    Anything else, your "randomness" really doesn't matter and the standard entropy will be just fine.

  • Re:Getting creative (Score:5, Interesting)

    by Brian Gordon ( 987471 ) on Monday August 03, 2009 @09:58PM (#28935587)
    I think of some primitive post-human civilization struggling to industrialize amid the ruins of the heat-dead universe.

    There's little solid matter left. Nobody really knows why; the legends tell of ancient, sprawling empires releasing great monsters that consume worlds and deliver energy to fuel their eons-old wars in the cold between the stars. Several human colonies survived the Last Scourge. One even knew something of their people's history. This colony of merchant-scholars thrived in an old space-borne city drifting about a great lightyears-long dust cloud inexplicably left untouched by the wars. The city was old, very old, built by a generation of master engineers who etched their likenesses in the great canvases of the city's impervious white construction. Quiet machinery lurked untouched in the mysterious depths of the undercity, seen only by outcasts wandering alone through those vast echoing chambers.

    The city provided everything the civilization needed. Somehow (so much seemed like magic to them that even the usually-curious humans grew bored of speculation) their reservoirs filled with water, their air recycled, and their waste disappeared down bottomless shafts. All of their needs were filled, but they craved expansion and exploration. They were able to harvest some limited chemical energy from the food supplied by the city, and build using scrap. Still, entropy was a problem in the dust cloud of Linux. ....
  • by Anonymous Coward on Tuesday August 04, 2009 @12:48AM (#28936717)

    A better question would be if you changed your known hosts file to assign the key to another VPS IP and ssh'd to that IP, do other servers have the same key?

    Personally, the first thing I would have suspected if this happened to me is that this "wipe and rebuild" backs up part of /etc

  • Re:Getting creative (Score:3, Interesting)

    by Brian Gordon ( 987471 ) on Tuesday August 04, 2009 @01:03AM (#28936785)
    From my fingers 3 hours ago, you insensitive clod. But if you liked it, maybe I should write similar teasers for some story ideas I've had sitting in a text file for a few months.....
  • Re:Getting creative (Score:3, Interesting)

    by the_womble ( 580291 ) on Tuesday August 04, 2009 @03:59AM (#28937485) Homepage Journal

    You should. It is well written and has good ideas in it.

Our business in life is not to succeed but to continue to fail in high spirits. -- Robert Louis Stevenson

Working...