Slashdot Mirror


New Javascript Attack Lets Websites Spy On the CPU's Cache

An anonymous reader writes: Bruce Upbin at Forbes reports on a new and insidious way for a malicious website to spy on a computer. Any computer running a late-model Intel microprocessor and a Web browser using HTML5 (i.e., 80% of all PCs in the world) is vulnerable to this attack. The exploit, which the researchers are calling "the spy in the sandbox," is a form of side-channel attack. Side channel attacks were previously used to break into cars, steal encryption keys and ride the subway for free, but this is the first time they're targeted at innocent web users. The attack requires little in the way of cost or time on the part of the attacker; there's nothing to install and no need to break into hardened systems. All a hacker has to do is lure a victim to an untrusted web page with content controlled by the attacker.

134 comments

  1. Link to original paper by Anonymous Coward · · Score: 5, Informative

    http://arxiv.org/pdf/1502.07373v2

    Thanks, dipshit editors, for not taking the 60 seconds to include the original paper, instead of linking to a Forbes article.

    1. Re:Link to original paper by John+Bokma · · Score: 1

      It's called click bait. It keeps people like you coming to Slashdot and keep the site interesting (yes, this is a compliment).

    2. Re:Link to original paper by Anonymous Coward · · Score: 1

      It's called click bait. It keeps people like you coming to Slashdot and keep the site interesting (yes, this is a compliment).

      Click bait?

      Yes, this would be a perfect time to do that. Yes, let's do some of THAT shit while discussing how attackers are luring their victims to malicious content...and we wonder where they got the idea from...

    3. Re:Link to original paper by Kkloe · · Score: 0, Troll

      considering the article has in the first sentence a link to the original article linking to it here in the way you are doing seems highly unnecessary, you sound like douche plain and simple

    4. Re:Link to original paper by Anonymous Coward · · Score: 3, Insightful

      Hopefully you're aware by now that not all papers on arxiv have been peer reviewed.
      Linking to forbes instead of arxiv shows that important people are taking the paper seriously.

      Analogy time: There's no reason for anyone to bother reading one of the thousands of P vs NP proofs posted on arxiv, but we occasionally care when a famous CS prof says "shit, this might be right." When that happens, you'll see a link on slashdot to the professor's university page that links to the arxiv page. (Btw, so far they've all been wrong.)

    5. Re:Link to original paper by Anomalyst · · Score: 2

      S/He could be complexly filigreed and still a douche.

      --
      There is no right to feel safe thru security vaudeville at the expense of everyone's freedom, privacy and tax money.
    6. Re:Link to original paper by Nyder · · Score: 1

      It's called click bait. It keeps people like you coming to Slashdot and keep the site interesting (yes, this is a compliment).

      Wow, someone has been drinking the New Slashdot Koolaid.

      --
      Be seeing you...
    7. Re:Link to original paper by Anonymous Coward · · Score: 0

      I don't consider Forbes to be security-oriented, so I don't think they are qualified to peer-review any paper in this particular field. While I certainly agree with your point in general, it would be far better if (say) Bruce Schneier had a link to the paper on his blog.

    8. Re:Link to original paper by Anonymous Coward · · Score: 0

      Classically educated Hans Gruber reads Forbes, so the article can't be that bad.

    9. Re:Link to original paper by Anonymous Coward · · Score: 0

      > Classically educated Hans Gruber reads Forbes

      Not only classically educated, but an experimental expert in kinetic energy applications in his own right!

    10. Re:Link to original paper by sproketboy · · Score: 1

      Because that link has the exploit. (just kidding!)

    11. Re:Link to original paper by tepples · · Score: 1

      There's no reason for anyone to bother reading one of the thousands of P vs NP proofs posted on arxiv, but we occasionally care when a famous CS prof says "shit, this might be right."

      And this is why Wikipedia relies on reliable secondary sources, so that self-published bullcrap hoaxes don't compromise articles.

  2. Immune? by Anonymous Coward · · Score: 3, Interesting

    AMD CPU and NoScript FTW!

    1. Re:Immune? by Anonymous Coward · · Score: 0

      How is having your browser fail to work on many websites "FTW?"

    2. Re:Immune? by hawguy · · Score: 1

      How is having your browser fail to work on many websites "FTW?"

      Because if you want to ensure your security and privacy, you shouldn't use the web.

    3. Re:Immune? by Anonymous Coward · · Score: 0

      Noscript can whitelist domains and you know it, don't be stupid.

    4. Re:Immune? by Runaway1956 · · Score: 1

      Lemme think here. If the primary goal of the site is to spy on you, that site puts out some kind of bait for you to take. Failing to take the bait means you win. But, you see winning as breaking the internet?

      It's like, you're a spy. The enemy puts the most beautiful woman on earth at your disposal, as bait. Use whichever movie plot you like - if you sleep with her, you die. If you don't sleep with her - then what? She's broken? You're broken? WTF?

      Just don't take the bait. That doesn't "break the web".

      --
      "Windows is like the faint smell of piss in a subway: it's there, and there's nothing you can do about it." - Charlie Br
    5. Re:Immune? by Anonymous Coward · · Score: 0

      You all are the dumbfucks for insisting that everything on the goddamned planet be running your your fucking browsers. Serves you right to get bent over and exploited. And guess what, the butthurt from that stupid all-in-one choice you made ain't gonna stop until you get back to standalone applications.
      Dumbass browser retards, all of you.

    6. Re:Immune? by scrib · · Score: 3, Insightful

      Considering what many websites consider "working" to be, "breaking" many sites IS the win.
      I use noscript all the time, easily whitelist the few sites I WANT to "work" and things work so much better.
      I get on a computer without noscript and I am astonished by all the cruft that passes for content. Use noscript for a week and you won't go back.

      --
      Help! Help! I'm being repressed!
    7. Re:Immune? by Anonymous Coward · · Score: 0

      If user-permitted selective functionality is "fails to work" I hope my cable provider fails to work the way that my cell phone plan fails to work. Maybe even fail all the way down to $10/mo, like the phone.

      What's next, al a carte loot crates? Keep the fails coming.

    8. Re:Immune? by Anonymous Coward · · Score: 0

      Loling all the way down the street as well. Also, I wonder how this affects Mac users with their intel based CPU builds? Oh well I don't care about that either since I don't own one.

    9. Re:Immune? by BronsCon · · Score: 2

      Probably the same way it affects Windows and Linux users with Intel CPUs? Or users of any other OS like for example, any of the BSDs. Android on x86 is typically based on the Atom platform, so also Intel. Thankfully, my servers and cloud hosts use AMD.

      --
      APK quotes people (including myself) without context and should not be trusted. Just thought you should know.
    10. Re: Immune? by Anonymous Coward · · Score: 0

      What AMD cpu's does your cloud provider use? I have yet to see this, though I can only speak of 3-4 providers.
      For virtualization, I have never heard of any one suggesting it for anything other than desktop VM.

    11. Re:Immune? by Anonymous Coward · · Score: 0

      It only fails on websites that try to push javascript on me that I don't want. That's a win.

    12. Re: Immune? by BronsCon · · Score: 1

      Thank you for prompting me to check, it does look like they switched to Intel for their 64-bit instances. I know my 32-bit instances were running on Opterons, but I couldn't tell you which exact part numbers at this point.

      --
      APK quotes people (including myself) without context and should not be trusted. Just thought you should know.
  3. {yos | vpk | simha | angelos}@cs.columbia.edu by NotInHere · · Score: 3, Insightful

    What has become out of bash styled mail address combination?

    1. Re:{yos | vpk | simha | angelos}@cs.columbia.edu by Anonymous Coward · · Score: 0

      That is weird. I've always seen comma, not bar, separated lists for that before. That said, that paper is clearly an unedited preprint which will likely be cleaned up for the camera-ready, likely fixing weird style mistakes like that.

  4. And the problem is? by Anonymous Coward · · Score: 0

    Let them have my cache. They can eat it, too.

    1. Re:And the problem is? by ColdWetDog · · Score: 2

      Let them have my cache. They can eat it, too.

      The cache is a lie.

      --
      Faster! Faster! Faster would be better!
  5. x86 ecosphere horribly broken by Anonymous Coward · · Score: 1, Interesting

    If an interpreted language, running in a user context, can somehow observe what's in CPU cache, then something is really, very broken.

    As long as people trade security for features, this crap is inevitable.

    1. Re:x86 ecosphere horribly broken by Anonymous Coward · · Score: 1

      I don't know if you read the paper or not, but it can only observe whether or not a CPU cache location has changed or not.

      The paper suggests that security countermeasures would probably have performance impact, so the features seem to have been more about speed than bells and whistles.

    2. Re:x86 ecosphere horribly broken by viperidaenz · · Score: 5, Informative

      It can construct a data set across its virtual memory space that will cause an eviction of all the cache lines.
      It then knows only it's own data is in the cache.

      The next time it runs it can time how long it takes to access its own data, quick times mean no other process has used those cache lines. Longer access times mean another process has.
      The attacking code can build up a memory access pattern of other processes on the machine. Each line is physically tied to a set of physical memory and there is also a co-incidental mapping to virtual memory pages.
      If the attacking code knows exactly how the victim code works, it can find those access patterns and use them to determine which code branches it is likely taking. If that code is an encryption algorithm and you know what the plain or ciphertext data is, you can figure out what the key was.

      The summary is wrong on by saying it's all Intel CPU's though. The attack was made for a specific Intel CPU, the Core i7-3720QM, where they know how it's 6MB of cache maps to physical memory. Any CPU with a different amount of cache will have a different mapping. There is no reason an AMD CPU couldn't be targeted.

    3. Re:x86 ecosphere horribly broken by Anonymous Coward · · Score: 5, Informative

      Actually the summary is right for once (page 2 of the paper):

      The Intel cache micro-architecture is inclusive – all elements in the L1 cache must also exist in the L2 and L3
      caches. Conversely, if a memory element is evicted from
      the L3 cache, it is also immediately evicted from the L2
      and L1 cache. It should be noted that the AMD cache
      micro-architecture is exclusive, and thus the attacks described in this report are not immediately applicable to
      that platform.

  6. I call bullshit on anything from Forbes by Anonymous Coward · · Score: 1

    They cant even describe what happens.

    " Once there, the software inside the bogus content launches a program that manipulates how data moves in and out of a victim PC’s cache"

    Uh, if the website can launch programs to manipulate your CPU cache, that's a problem.

    I suspect this is the old "set up a webgl context, read back a framebuffer, maybe you will see some old shit in the framebuffer" attack that Microsoft used to attack WebGL back in the day.

    Sounds like typical OMG COMPUTERS!!!!!!! from the business crowd.

    God how I wish everyone with an MBA would just get the fuck out of my way when I have grownup work to do.

    1. Re:I call bullshit on anything from Forbes by hawguy · · Score: 2

      They cant even describe what happens.

      " Once there, the software inside the bogus content launches a program that manipulates how data moves in and out of a victim PC’s cache"

      Uh, if the website can launch programs to manipulate your CPU cache, that's a problem.

      I suspect this is the old "set up a webgl context, read back a framebuffer, maybe you will see some old shit in the framebuffer" attack that Microsoft used to attack WebGL back in the day.

      Sounds like typical OMG COMPUTERS!!!!!!! from the business crowd.

      God how I wish everyone with an MBA would just get the fuck out of my way when I have grownup work to do.

      If you understand the CPU architecture, any program that can control what happens within its address space can manipulate data moving in and out of the CPU cache.

    2. Re:I call bullshit on anything from Forbes by Flavianoep · · Score: 1

      Does that implies that AMD CPUs are also 'vulnerable'?

      --
      Linux is for people who don't mind RTFM.
    3. Re:I call bullshit on anything from Forbes by hawguy · · Score: 4, Informative

      Does that implies that AMD CPUs are also 'vulnerable'?

      RTFA:

      It should be noted that the AMD cache
      micro-architecture is exclusive, and thus the attacks described
      in this report are not immediately applicable to
      that platform

    4. Re:I call bullshit on anything from Forbes by vux984 · · Score: 2

      I suspect this is the old "set up a webgl context, read back a framebuffer, maybe you will see some old shit in the framebuffer" attack that Microsoft used to attack WebGL back in the day.

      No. That's not it I don't think. (And the guard for that is trivial; zero the memory in all allocations.)

      Although a user process shouldn't even be able to read "someone elses cache"; it should only be able to read from the cache something cached from its own process/address space so all it should be able to see is its own old shit.)

      From my skim of the attack; I think its using high resolution timers plus carefully crafted memory usage to force the cache to flush/reload etc to detect "fingerprints" for certain types of activity... e.g. I could see how maybe one could craft a "signature" for what chrome looks like when loading a particular web page. Or a signature outlook starting up... etc.

      And then you could watch for that sequence of cache event / timings (ie watch for the "signature" and discover with high reliability when that event happened.)

      But I fail to see how this translates into being able to log keystrokes, steal encryption keys, steal data, or anything else.

      It seems to me roughly the equivalent of monitoring the energy draw of a home and being able to determine when the fridge, stove, vaccuum, TV, or microwave, or hair dryer, are being turned on and off... provided you know what make and model of each they have. And then based on durations and so forth you can make educated guesses whether they heated some soup or are roasting a turkey, or whether its the short haired mother or the long haired daughter who is drying her hair...

    5. Re:I call bullshit on anything from Forbes by michelcolman · · Score: 1

      They can't even do that. All they can see is whether or not certain areas of memory have been accessed. They write something to a specific location to use a line in the cache and thereby invalidate it for other apps. Then, some small amount of time later, they read from that same location and time how long it takes for the data to arrive. If it takes longer, that means the cache line has been invalidated and therefore some other process must have accessed the memory that uses the same cache line. That gives them a very rough idea about which parts of memory could have been accessed. Very rough, since the same cache line corresponds to many different memory locations.

    6. Re:I call bullshit on anything from Forbes by DamonHD · · Score: 1

      http://en.wikipedia.org/wiki/N...

      [citation provided]

      I know someone who can do that right now for appliances, probably previously unseen.

      Thus with a big enough incentive (such as getting access to your bank account) the danger is real.

      Rgds

      Damon

      --
      http://m.earth.org.uk/
    7. Re:I call bullshit on anything from Forbes by jandrese · · Score: 1

      It's a cache timing app. Pretty impressive that they were able to maintain the precise timing necessary to conduct the attack in Javascript, but still quite limited in what it can collect. Basically they can tell if certain cache lines are in use, and figure out maybe what those lines are shared with to do some behavior analysis on the victim. This application is a bit of a stretch, since learning the allocation patterns is not going to be easy.

      Their other example is a user that has a machine with two VMs on it. One is highly secure (no network access) but has been rooted. The other has network access but no normal connection to the rooted VM. You can pass data from the secure VM to the network VM and then ex-filtrate the data using a malicious advertisement injected into a normal browsing session. It does require the victim to not understand that VMs are not airgapped though.

      --

      I read the internet for the articles.
    8. Re:I call bullshit on anything from Forbes by Anonymous Coward · · Score: 0

      Could that exclusive design choice be one of the reasons for why AMD cpu cache's are higher latency? Trading off among a few things, speed for security?

    9. Re:I call bullshit on anything from Forbes by PRMan · · Score: 1

      People have already stolen bitcoin keys with a similar attack, so encryption keys are a definite possibility.

      --
      Peter predicted that you would "deliberately forget" creation 2000 years ago...
    10. Re:I call bullshit on anything from Forbes by mysidia · · Score: 2

      any program that can control what happens within its address space can manipulate data moving in and out of the CPU cache.

      Yes, but it cannot observe what data from other processes is moving out of the cache The attacking process already has to know what bits the other process might have in the cache that they are attempting to time. The cache side-channel attacks are using statistical techniques... in artificially constructed scenarios: where only one other process has shared data you want to do a timing attack against.

      It only works when the spying process knows the bits; And the timing at which those shared known bits are accessed, reveals information that can be used to infer other bits

      Cryptographic algorithms are susceptible to this, BUT the algorithms and implementations can be made resistant through various methods.

    11. Re:I call bullshit on anything from Forbes by vux984 · · Score: 1

      Oh I know it can be done; but thanks for providing the proper name, acronym, and citation.

      Thus with a big enough incentive (such as getting access to your bank account) the danger is real.

      But that's what I'm not seeing. The cache usage fingerprinting, at worst, knows when I visit my bank*

      But it can't steal my bank account number or password. Whether my password is 1-2-3-4 or 4-3-2-1 is not going to be discernible from a cache timing side channel attack. They won't get my bank account number either.

      At worst they might be able to guess how many characters it is.* (And only if I type it... which I don't... I use a password safe, and copy/paste it. So maybe they can detect a copy/paste event.... )

      But the practical security risk is pretty miniscule. They can't get access to my bank account... some random website "striking the jackpot" now knows that somebody on the internet uses bank X with a password of 11 characters.

      I could have told you that.

      How do they get access to my bank account with that?

      I could literally log onto amazon, add a credit card to my account, and have this side channel attack running the whole time... and at WORST ... some malicious website now knows that a person at my ip address... wait for it... has a VISA credit card. I can live with that.

      What is the real risk here?

      * Note, this attack is bad enough that YES, we ABSOLUTELY should be looking to close the holes, and disrupt or block the side channel to make this impossible in the future. But what is a real practical attack that could really actually harm me from this?

    12. Re:I call bullshit on anything from Forbes by vux984 · · Score: 1

      Ok, that's fair. Although the bitcoin attack amounted not to reading any data, but rather deducing the key over watching several iterations of it being used to encrypt. So they were able to get some insight into what the key must be by watching how the hashing algorithm operated using it.

      Neat stuff.

      A theoretical similar attack might be to watch a browser use its https session key to grab the key, and then allow a malicious user to decrypt the https stream (assuming they had a separate means to capture / record that...) and that would be pretty bad.

      I was already on board with this being fixed, and it seems that preventing browser javascript from having access to high resolution timers is a "quick fix" until something better comes along.

    13. Re:I call bullshit on anything from Forbes by Anonymous Coward · · Score: 0

      But it wouldn't be that difficult to implement your own high-resolution timer in JavaScript. Just implement a loop that you know will get fully JITd, then see how many iterations you can do within some coarse amount of time. You also need to figure out the processor family and clock rate, but that can probably be easily done by having a test farm of machines and creating a database of timings, then running a battery of tests to determine the processor. You could probably do this with high confidence in the majority of cases in a matter of a few seconds, if not faster.

      The thing with timing attacks is that you can overcome the lack of high resolution simply by iterating the attack. That has been one of the major theoretical breakthrough in these side-channel timing attacks--generalized methods for deducing bits by reducing a set of timing variances.

      So yours and similar suggestions aren't fixes, they just raise the bar. A proper fix requires that you _prove_ the inability to circumvent around the fix. Sometimes that means proving it's a complete solution, other times that means proving that only a small subclass of circumvention techniques will work. In the latter case that allows you to focus your subsequent defense efforts.

      For example, one of my ideas was to introduce intentional, random runtime jitter into the JavaScript VM. But that alone isn't sufficient. You first need to prove as a general matter how such random jitter effects classes of side-channel timing attacks, then you need to apply the proof to figure out how it effects particular attacks. I doubt it's possible such a measure could absolutely prevent cache timing attacks. It might be useful, but it would require a ton of theoretical and empirical research, lest you waste your time on something that is eventually easily circumvented.

      It's not like buffer overflow attacks were stopped by ASLR and non-executable stacks. They certainly made them much more difficult, but the thing about software is that it only takes one person to solve the problem, and then everybody is able to copy the solution. Which isn't to say ASLR, etc, weren't worthwhile. In fact, they're likely more efficacious against buffer overflows than making high-resolution timers inaccessible from JavaScript would be against timing side-channel cache attacks.

    14. Re:I call bullshit on anything from Forbes by hawguy · · Score: 1

      Yes, but it cannot observe what data from other processes is moving out of the cache The attacking process already has to know what bits the other process might have in the cache that they are attempting to time. The cache side-channel attacks are using statistical techniques... in artificially constructed scenarios: where only one other process has shared data you want to do a timing attack against.

      Well yeah, that's kind of what the whole paper is about - the fact that they can analyze cache behavior to detect network and mouse activity on the system.

    15. Re:I call bullshit on anything from Forbes by BronsCon · · Score: 2

      Uh, if the website can launch programs to manipulate your CPU cache, that's a problem.

      If a program can't manipulate the CPU, it's not much of a program now, is it?

      --
      APK quotes people (including myself) without context and should not be trusted. Just thought you should know.
    16. Re:I call bullshit on anything from Forbes by Anonymous Coward · · Score: 0

      There are a lot of things to consider when talking about latencies.
      Even the bigger chip/bigger cache can add to the total latency.
      I don't know exactly about bulldozer but I know that back in the athlon days, amd's cache was some hybrid between inclusive and exclusive.
      I just found this article that explains a few things about bulldozer http://www.extremetech.com/computing/100583-analyzing-bulldozers-scaling-single-thread-performance/
      AFAIK intel has/had another "flaw" that I don't know in what state is now, s/w or by h/w it must have been eliminated but it is good to mention it : http://www.daemonology.net/hyperthreading-considered-harmful/ .

    17. Re:I call bullshit on anything from Forbes by tgv · · Score: 1

      But Javascript?

    18. Re:I call bullshit on anything from Forbes by DamonHD · · Score: 1

      Look elsewhere in this story: I've posted a 2013 paper where using this type of attack it appears that very nearly 100% of your secret key bits can be recovered as you do a single encryption in another process.

      Note: not just revealing that I did an encryption, but what the bits of the key were that did it.

      *That* seems bad enough to need serious thought (or refutation) ASAP.

      Rgds

      Damon

      --
      http://m.earth.org.uk/
    19. Re:I call bullshit on anything from Forbes by hawguy · · Score: 1

      But Javascript?

      RTFA:

      Two specific
      APIs which are of use to us in this work are the
      Typed Array Specification [9], which allows efficient access
      to unstructured binary data, and the High Resolution
      Time API [16], which provides sub-millisecond time
      measurements to Javascript programs

    20. Re:I call bullshit on anything from Forbes by tgv · · Score: 1

      Wow, I did not believe this. I skimmed the article, and that's quite impressive. I don't see how to could do anything more nefarious than some observations on user activity with just Javascript, but thanks for pointing it out.

    21. Re:I call bullshit on anything from Forbes by Anonymous Coward · · Score: 0

      Could that exclusive design choice be one of the reasons for why AMD cpu cache's are higher latency? Trading off among a few things, speed for security?

      Security was probably not the reason for AMD's design (unless they knew about this kind of exploit for many years), more likely it was simply intended to avoid "wasting" cache capacity by duplicating data at every cache level. Such design differences existed already in the Pentium era, when Intel used a split instruction/data L1 cache, while AMD made it shared, which is more efficient in terms of using the total available storage capacity.

    22. Re:I call bullshit on anything from Forbes by Anonymous Coward · · Score: 0

      that's all they can do though.
      and that's after analyzing on the particular machine.

      however, the whole paper is written in other parts as if they were able to do sidechannel attacks on encryption or such, but what they can only analyze is some activities based on how long it took to run again..

    23. Re:I call bullshit on anything from Forbes by AqD · · Score: 1

      A theoretical similar attack might be to watch a browser use its https session key to grab the key, and then allow a malicious user to decrypt the https stream (assuming they had a separate means to capture / record that...) and that would be pretty bad.

      But you still have to repeat the same encryption/decryption enough times to detect anything close. It might be easily defended by simple and random obfuscation to make the detection much more difficult (ex: running multiple encryption/decryption by different keys at the same time), or moving the entire code into GPU, where operations are asynchronous and timing cannot be accurate.

    24. Re: I call bullshit on anything from Forbes by Anonymous Coward · · Score: 0

      You forgot one important word. cache :/

  7. Re:all they have to do is lure them to a webpage by John+Bokma · · Score: 5, Informative

    Our attack, which is an extension of the last-level cache attacks of Yarom et al. [23], allows a remote adversary recover information belonging to other processes, other users and even other virtual machines running on the same physical host as the victim web browser. We describe the fundamentals behind our attack, evaluate its performance using a high bandwidth covert channel and finally use it to construct a system-wide mouse/network activity logger.

    Source: http://arxiv.org/pdf/1502.0737...

  8. So Basically... by Anonymous Coward · · Score: 0

    A paper saying they discovered that javascript runs slower when a computer is busy doing other things at the same time?

  9. Active Content by Anonymous Coward · · Score: 0

    So, once again, as we step into yet another iteration of the browser as arbitrary execution environment, we find that it's leaky.

    Which is the very argument that is made for throwing out the previous iteration (Java applets, Flash, ActiveX, etc.) every time.

    Now can I please have a browser that doesn't run arbitrary code unless I give it permission?

    1. Re:Active Content by Thiez · · Score: 1

      Sure, disable javascript. Alternatively, run Firefox + NoScript and distrust everything by default.

    2. Re:Active Content by Anonymous Coward · · Score: 0

      https://en.wikipedia.org/wiki/...
      Any version before 2.0 should do.

      Industry observers confidently forecast the dawn of a new era of connected computing. The underlying operating system, it was believed, would become an unimportant consideration; future applications would run within a web browser. This was seen by Netscape as a clear opportunity to entrench Navigator at the heart of the next generation of computing, and thus gain the opportunity to expand into all manner of other software and service markets.

      Wow.. prophetic much. :D

    3. Re:Active Content by guruevi · · Score: 1

      The problem isn't necessary running untrusted code. The problem is that the code can without any notice to the user send arbitrary data pretty much anywhere. JavaScript should require user permission to load/post data. This would help with the awful interfaces out there that arbitrarily load data incurring additional network requests and latencies.

      --
      Custom electronics and digital signage for your business: www.evcircuits.com
    4. Re:Active Content by Anonymous Coward · · Score: 0

      Actually, I disable JavaScript often. It's one of the reasons I still run Opera 12 for a lot of my browsing. Two keystrokes to toggle it.

  10. As an actual fanboy, let me be the first to say... by Anonymous Coward · · Score: 0

    AMD FTW

  11. Internet Explorer by vossman77 · · Score: 5, Funny

    >Web browser using HTML5 (i.e., 80% of all PCs in the world)

    Internet Explorer 6 for the win.

    1. Re:Internet Explorer by Ravaldy · · Score: 1, Funny

      You will be stoned to death for suggesting this. LOL!!

    2. Re:Internet Explorer by Anonymous Coward · · Score: 0

      >Web browser using HTML5 (i.e., 80% of all PCs in the world)

      Internet Explorer 6 for the win.

      Flash based sites; at the buzzer!

  12. late model? wtf? by Anonymous Coward · · Score: 0

    try "Sandy Bridge, Ivy Bridge, Haswell, and Broadwell micro-architectures".

  13. Fuck the paper, a POC? by Anonymous Coward · · Score: 0

    Anyone have a POC?

  14. lure a victim to an untrusted web page by holophrastic · · Score: 1

    umm, all I need to do is lure a victim to my untrusted dumpster, and I can do all sorts of bad things to them.

    The problem isn't that there's a way for me to hurt you. The problem is that you're walking down dark alleys alone at night.

    Stop doing that.

    Why are you going to untrusted web-sites in the first place?

    1. Re:lure a victim to an untrusted web page by Em+Adespoton · · Score: 1

      umm, all I need to do is lure a victim to my untrusted dumpster, and I can do all sorts of bad things to them.

      The problem isn't that there's a way for me to hurt you. The problem is that you're walking down dark alleys alone at night.

      Stop doing that.

      Why are you going to untrusted web-sites in the first place?

      Do you trust Forbes?

    2. Re:lure a victim to an untrusted web page by DarkOx · · Score: 0

      The problem isn't that there's a way for me to hurt you. The problem is that you're walking down dark alleys alone at night.

      Stop doing that.

      Why are you going to untrusted web-sites in the first place?

      Beware what you have said is dangerously near to the sort of statement that bring the Social Justice Warrior types down on you. Just encase you missed the memo, we are no long allowed to chastise people for engaging in overly risky, and ignorant behavior, its not longer their failing in the form of lack of personal responsibility, but yours and mine in that we are are "victim blaming".

      --
      Repeal the 17th Amendment TODAY! Also Please Read http://www.gnu.org/philosophy/right-to-read.html
    3. Re:lure a victim to an untrusted web page by Fnord666 · · Score: 1

      Do you trust Forbes?

      Not at all, but I get your point. OTOH why are you letting every Tom, Dick and Forbes run code, "sandbox"ed or not, on your computer?

      --
      'The tyrant will always find pretext for his tyranny.' - Aesop's Fables
    4. Re: lure a victim to an untrusted web page by Anonymous Coward · · Score: 0

      Do you trust aikami and all the other cdn networks?

    5. Re: lure a victim to an untrusted web page by Anonymous Coward · · Score: 0

      Plus code injection on any site, including the most "official" and "trusted" ones...

    6. Re:lure a victim to an untrusted web page by serviscope_minor · · Score: 1

      Goodness me, is there no enormity that SJWs won't stoop to?

      Yeah, the reason I rant about the blatant stupidity of the term "SJW" if because of idiots like you. You've somehow managed to make an article about side channel attacks and leaky sandboxes with javascript about "social justice warriros".

      Because it's totally impossible for a whitelisted website to get hacked.

      Moron.

      And speaking of which... whitelists? Which year is it? You know written directories of all the websites in the world went out of style in 1996? So how are you supposed to find new ones then? Rely on word of mouth? Well how are THOSE people supposed to know?

      So I say again: Moron.

      --
      SJW n. One who posts facts.
    7. Re:lure a victim to an untrusted web page by gstoddart · · Score: 1

      Do a Google search, end up on some random web page. Do you trust that website? Then why the fuck is your computer letting it run scripts?

      Now, take the embedded scripts linking across a dozen or so sites which also ran in that page. Do you trust any of them? Why the hell would you? Why the fuck is your computer running them, then?

      The problem is that the web has been more or less set up so that you will encounter websites you neither know nor trust all the time ... and unless you're fairly paranoid and proactive, your browser is set to treat them all like they can be trusted, and just run any old shit they serve up .. javascript, Flash, videos.

      So, I'm sorry, but your objection to "stop going to untrusted websites in the first place" sounds as if you have never actually used the internet before.

      Hell, you hit the odd website which basically gives you instructions to turn on all cookies and javascript for any website you encounter.

      The problem is that people who write websites act as if they are trustworthy out of the box, and practically insist you trust everything in order to be able to make anything work.

      Sorry, but the internet is full of assholes and crooks ... finding yourself looking at a page containing malicious crap but having your browser trust it is pretty much the default.

      --
      Lost at C:>. Found at C.
    8. Re:lure a victim to an untrusted web page by Anonymous Coward · · Score: 0

      *----- Tumblr is that way.

  15. Not very useful. by Cafe+Alpha · · Score: 1

    at most you could use this to have an infected process communicate indirectly with a javascript process by tying up cache lines - and the javascript could detect that.

    But so what? If you've already installed malicous code, why does it have to communicate indirectly?

    You're not going to be able to tell much useful about a machine by getting a very low quality of image of what cache lines are in heavy use at the moment when you DIDN'T write the programs being used.

    This sounds like a useless fingerprinting technique.

    1. Re:Not very useful. by DamonHD · · Score: 3, Informative

      Such as this?

      https://eprint.iacr.org/2013/4...

      "We demonstrate the efficacy of the FLUSH+RELOAD
      attack by using it to extract the private encryption keys
      from a victim program running GnuPG 1.4.13. We tested
      the attack both between two unrelated processes in a sin-
      gle operating system and between processes running in
      separate virtual machines. On average, the attack is able
      to recover 96.7% of the bits of the secret key by observ-
      ing a single signature or decryption round"

      Rgds

      Damon

      --
      http://m.earth.org.uk/
    2. Re:Not very useful. by jandrese · · Score: 3, Interesting

      The paper assumes that your problem is exfiltrating data because the target has somehow gotten infected but is ultra-paranoid about outbound traffic from his machine. You can instead transfer the data to a javascript app running in a webpage on a different VM that may be less secure. It seems pretty cornercase to me, but every time I think that someone comes out with some crazy exploit that extracts all of your SSH keys or something from the box using what seems like a nearly useless exploit.

      --

      I read the internet for the articles.
  16. Re:all they have to do is lure them to a webpage by michelcolman · · Score: 3, Insightful

    Wow, it actually knows whether or not you moved the mouse, that's mega-hyper-dangerous! And the fact that you sent or received some unknown data over the network! Think of the possibilities!

    I know side channel attacks have been used to extract AES keys, but that's like saying you can use a miniature matchbox car to transport hundreds of people at 300 km/h because things with wheels have been demonstrated to be capable of doing that.

    The resolution of the detection system is cache lines, which are pretty big, and even though they are using system timers with nanosecond precision, actual sampling rate was a few hundred Hz. Good luck finding an AES key that way.

    The covert channel is the only example that might be useful in very extraordinary circumstances: if the required apps are running on two VMs on the same machine, they can send data from one VM to the other. But on the other hand, aren't there plenty of other ways to do that? If you've already lured them onto an infection website, chances are the VMs are... connected to the internet and able to communicate that way.

    So, unless I missed something, I don't think this is worth losing a lot of sleep over. Feel free to enlighten me if I'm wrong.

  17. To make it clear. by Cafe+Alpha · · Score: 1

    This is just detecting which cache lines are in heavy use at a moment in time, not WHAT'S IN THEM.

    Very useless.

    1. Re:To make it clear. by YossiOren · · Score: 3, Interesting

      It's not so useless, Mr. Cafe. Case in point:

      Bitcoin attack: https://eprint.iacr.org/2014/1...

      GnuPG attack: http://www.nicta.com.au/pub-do...

      ASLR attack: http://www.internetsociety.org...

      All of these are cache-based side-channel attacks.

    2. Re:To make it clear. by Anonymous Coward · · Score: 0

      You sound like the NSA talking about meta-data! ;-)

  18. Re:As an actual fanboy, let me be the first to say by Adriax · · Score: 1

    Yup, not just cheaper but safer.
    Too bad intel probably already tasked a dozen engineers to expand this to cover AMD as well.

    --
    I don't suffer from insanity, I enjoy every minute of it!
  19. Re:Apps! by Opportunist · · Score: 1

    Who forgot to close the door and let the markedroid in?

    --
    We used to have a Bill of Rights. Now, with the rights gone, all we have left is the bill.
  20. Re:all they have to do is lure them to a webpage by PRMan · · Score: 2

    People have stolen bitcoin keys with a similar attack in the past. Bitcoin keys are just another form of encryption key. There are serious risks here.

    --
    Peter predicted that you would "deliberately forget" creation 2000 years ago...
  21. Sorry, I tried to resist... by hyades1 · · Score: 1

    Any computer running a late-model Intel microprocessor and a Web browser using HTML5...is vulnerable to this attack.

    Which brings a whole new depth of meaning to "Intel Inside". ;-)

    --
    I've calculated my velocity with such exquisite precision that I have no idea where I am.
  22. Re:all they have to do is lure them to a webpage by michelcolman · · Score: 3, Informative

    Those attacks are about as similar as the matchbox car and the high speed train in my example above.

    The kind of attacks that could extract bitcoin keys were monitoring certain system parameters like energy consumption with a very high resolution.

    This attack can just say whether certain groups of memory locations that correspond to certain cache lines (which is a many-to-one relationship) have been accessed during a certain (rather long) time frame. We're talking a few hundred Hz resolution here. Good luck finding that bitcoin key. Or even a simple web address. OK, maybe visiting certain specific websites would show a specific memory usage pattern that might be recognized. So you'll know that the victim might have visited FaceBook. That's about the best you can do, and even that is pushing it. You're not going to find much more detailed data than that, the method is just too coarse.

  23. Re:all they have to do is lure them to a webpage by Anonymous Coward · · Score: 1

    Attacks only get better, never worse. You have to prove _why_ the technique could never be improved to become more of a problem. Both the limitations of the proof of concept, as well as your general intuition are completely meaningless, except as rough guides to prioritizing your threat mitigation measures in the short term.

    There are all kinds of theoretical side channel attacks. What distinguishes this one is that it has evolved from theory to practice. That the particular practical attack isn't very worrisome is of little matter. It's a _huge_ step from theory to practice, compared to subsequent improvements. That, and the lack of a proof that forecloses or at least constrains improvements, is all you need to know to take it seriously.

  24. Re:nothing to steal here by Anonymous Coward · · Score: 0

    Ummmmm, no. I could go into the details here, but I won't because literally 2 seconds of research as to how standard computer memory architectures work will explain why you are wrong. It's literally common knowledge if you work in IT on why you are wrong. All data goes through the cache. It has to. That's how the architecture is laid out.

  25. Grr... by Anonymous Coward · · Score: 0

    And we all know who's behind this.

    That's right!

    GCHQ!

    Thanks a fucking lot.

  26. Re:all they have to do is lure them to a webpage by Anonymous Coward · · Score: 0

    There are serious risks here.

    Only for those who take 'encryption' seriously, believing you need anything more than a Captain Crunch Code Ring to break. Encryption is NSA snake oil. Roll something of your own, or use the classifieds to communicate.

  27. Accuracy of the paper is suspect already... by Glasswire · · Score: 4, Informative

    I don't know what else they are wrong about but in the paper it says: "For example, the Intel Core i7-3720QM processor, which belongs
    to the Haswell family, includes 8192 = 213 cache sets, each of which can hold 12 lines of 64 = 26 bytes each, giving a total cache size of 8192x12x64=6MB".
    No, an i7-3xxx anything is in the Ivy Bridge not Haswell family but those cache characteristics would be correct for the Ivy Bridge i7-3720QM.
    But if it was a Haswell it would be an i7-4xxx processor. So either they meant a last generation IVB processor or a different Haswell than they called out, but what they said is wrong.
    Anyone see any other mistakes?

    1. Re:Accuracy of the paper is suspect already... by Anonymous Coward · · Score: 1

      So, if one word is changed, everything would be correct? We call these things "typos", which everyone produces at some point.

    2. Re:Accuracy of the paper is suspect already... by Anonymous Coward · · Score: 0

      What the hell keyboard are you using where mistyping ivy bridge results in the word Haskell?

    3. Re:Accuracy of the paper is suspect already... by Anonymous Coward · · Score: 0

      This is the absolute least important part of this paper, who gives a shit?

    4. Re:Accuracy of the paper is suspect already... by Anonymous Coward · · Score: 0

      Technical accuracy is pretty different than a typo.

    5. Re:Accuracy of the paper is suspect already... by Trogre · · Score: 1

      What the hell keyboard are you using where mistyping ivy bridge results in the word Haskell?

      Beautiful.

      --
      "Nine times out of ten, starting a fire is not the best way to solve the problem." - my wife
  28. Re:all they have to do is lure them to a webpage by lgw · · Score: 1

    A keylogger that runs on one VM to spy on anther is a huge deal, if true. A great many companies rely on VM isolation to keep customers separated cleanly on the same host. The entire "compute" cloud, for starters.

    What makes you think the apps need to run on both machines to leak data? CPU cache snooping can see almost anything.

    --
    Socialism: a lie told by totalitarians and believed by fools.
  29. Noscript by Anonymous Coward · · Score: 1

    And people say I'm paranoid for using noscript...

  30. Re:x86 ecosphere horribly FIXABLE by redelm · · Score: 2

    This mem.thrasher pgm will be a very fat piggy -- load one core 100% and slow everything else _way_ down. I don't know about you, but I slaughter such beasts on principle.

    Should this mem watching ever become a threat (keystroke time-gap reading?) then an easy counter-measure is to detune the high-res timers, say zero out the lower 24 bits of rdtsc() in the JSlib. Still leaves ~10ms resolution but will break any attempt to time cache-reloads.

  31. Re:all they have to do is lure them to a webpage by myowntrueself · · Score: 2, Interesting

    A keylogger that runs on one VM to spy on anther is a huge deal, if true. A great many companies rely on VM isolation to keep customers separated cleanly on the same host. The entire "compute" cloud, for starters.

    What makes you think the apps need to run on both machines to leak data? CPU cache snooping can see almost anything.

    You are running a browser on the VM's host???

    --
    In the free world the media isn't government run; the government is media run.
  32. The reason I get html 5 errors on youtube? by Anonymous Coward · · Score: 0

    The reason I get html 5 errors on youtube?

  33. Defective WinTEL MMU .. by DougPaulson · · Score: 1

    Yet another example of the defective nature of the WinTEL Memory Management Unit.

    The Spy in the Sandbox – Practical Cache Attacks in Javascript

  34. Re:all they have to do is lure them to a webpage by gl4ss · · Score: 5, Informative

    ...read the paper.

    it's like he said, you can detect that the network is being used or that there "probably was some user input".

    which is pretty far away from keylogging, so far in fact that it's unlikely to be possible at all.

    the whole paper up until that is written though as if you could snoop everything in the computer so not to blame you too much.

    "e. Instead of the
    traditional cryptanalytic application of the cache attack,
    we instead showed how user behavior can be effectively
    tracked using this method." you know why? BECAUSE THEY COULDN'T FUCKING EXECUTE A FUCKING SIDECHANNEL ATTACK!

    --
    world was created 5 seconds before this post as it is.
  35. So let me get this straight by Anonymous Coward · · Score: 0

    A process can measure memory access latency to determine that *something* else on the system *somewhere* has touched some memory *somewhere* that is on a shared cache line with the spy process... and somehow from there you can magically figure out not only that that some process somewhere is doing something like writing an aes key to some memory somewhere and.... and... you still can't see what that key is...

    1. Re:So let me get this straight by gweihir · · Score: 1

      Actually, while it sounds hard, such leakage can be quite enough to get crypto-keys from memory. Sure, you may have to try a few billion times, but that is really not a problem.

      --
      Most ACs are not even worth the keystrokes to insult them. Be generically insulted by this and ignored otherwise.
  36. Re:all they have to do is lure them to a webpage by WarlockD · · Score: 1

    The side channel communication was kind of cool though (Usenix!) But seems completely useless unless there is another application looking for it. Its a web script that has to run at-least a minute and even then the author states it only gets 50% of the cache lines. Its easier to do a code injection in one of the wonderful holes in un-patched XP computers out there than do this kind of mission impossible.

  37. Re:nothing to steal here by gweihir · · Score: 1

    You really have no clue. Everything the CPU loads from memory goes into all cache-levels. That is how a cache works, you know.

    --
    Most ACs are not even worth the keystrokes to insult them. Be generically insulted by this and ignored otherwise.
  38. good thing all of us use no-script add on 100% by Anonymous Coward · · Score: 1

    good thing all of us use no-script add on for 100% of the sites we visit, and ONLY turn it on for 100% known sites
    I mean, I've honestly been doing that since before no-script existed, did'nt all /. people?
    so, meh

    1. Re:good thing all of us use no-script add on 100% by jones_supa · · Score: 0

      Do you also wear a respiratory mask and rubber gloves when you visit public places?

    2. Re:good thing all of us use no-script add on 100% by tepples · · Score: 1

      good thing all of us use no-script add on for 100% of the sites we visit, and ONLY turn it on for 100% known sites

      How do sites become "100% known sites" to you?

  39. Re:x86 ecosphere horribly FIXABLE by Anonymous Coward · · Score: 0

    This mem.thrasher pgm will be a very fat piggy -- load one core 100% and slow everything else _way_ down.

    That sounds perfectly normal for modern web pages that use Javascript or Flash.

  40. Re:all they have to do is lure them to a webpage by michelcolman · · Score: 2

    They did not demonstrate CPU cache snooping. The only thing the app can see, is whether or not certain cache lines have been used (and therefore, some of a whole lot of different possible memory locations may have been accessed). So, for example, if you can figure out that certain cache lines are used every time the user presses a key, you can watch those cache lines to have a rough idea of whether the user is typing or not. You don't know what's in those cache lines, just that they have been used. But since a cache line corresponds to a multitude of possible address ranges, you're not even sure which memory addresses were accessed. It could very well be some totally unrelated process doing totally unrelated things that happen to use the same cache line. But statistically, you get a better than average guess about what kind of activity is occurring on the other end.

    The part you need two apps for, is where they demonstrated sending actual data from one VM to another. The app on one side (a keylogger, perhaps) accesses specific memory locations corresponding to specific cache lines. The app on the other side watches those cache lines by reading from them and timing how long it takes. If the location is read instantly, the process on the other side has not accessed that cache line, so that's a zero. If it takes slightly longer, the other side may have accessed it (or some totally unrelated process has), so that's a "probably one". Throw in some error correction, and you can slowly send data from one VM to the other.

    There. Still scared?

  41. Re:all they have to do is lure them to a webpage by Carewolf · · Score: 1

    ...read the paper.

    it's like he said, you can detect that the network is being used or that there "probably was some user input".

    With a bit higher sampling though, you can significantly narrow the likely password range, simply by using the timing of key presses.

    But yeah, I want to see something like that demonstrated before worrying about it.

  42. This is why Amazon offer dedicated instances by Wootery · · Score: 1

    Amazon AWS offers 'dedicated instances' (ctrl-f for "Dedicated Instances") for security reasons.

    for workloads where corporate policies or industry regulations require that your EC2 instances be physically isolated at the host hardware level from instances that belong to other customers

    Anyone know if this attack would actually work today on, say, Amazon's shared-hosting?

  43. Javascript is Evil by trek00 · · Score: 1

    Simply don't use it!

  44. Re:all they have to do is lure them to a webpage by Anonymous Coward · · Score: 0

    Thin clients? Remote Desktop Services cluster?

  45. Home user administration of whitelists by tepples · · Score: 1

    Say an inexperienced end user (call her Tilda) is using a browser on which a (perhaps more experienced) user has installed NoScript. How is Tilda supposed to determine which domains are safe to whitelist?

    1. Re:Home user administration of whitelists by ale2011 · · Score: 1

      How is Tilda supposed to determine which domains are safe to whitelist?

      Whitelist sites whose mission would justify spying, in case they do

      .

  46. Read this comment: Cancel or Allow? by tepples · · Score: 1

    JavaScript should require user permission to load/post data. This would help with the awful interfaces out there that arbitrarily load data incurring additional network requests and latencies.

    A "Cancel or Allow" box for every XMLHttpRequest or for every created DOM element that has a src attribute would be even more tiring for the user than Windows Vista UAC.

  47. Good case for turning scripting on by tepples · · Score: 1

    You know written directories of all the websites in the world went out of style in 1996? So how are you supposed to find new ones then?

    I think the idea is that you discover a site using a search engine or articles posted by your friends and then visit the site with scripting turned off, and the site has to make a good case for turning scripting on for that site. But with end users being willing to do anything to see the dancing bunnies, it becomes hard to define "a good case".

    1. Re:Good case for turning scripting on by serviscope_minor · · Score: 1

      I think the idea is that you discover a site using a search engine or articles posted by your friends and then visit the site with scripting turned off, and the site has to make a good case for turning scripting on for that site.

      It's a good job no sites ever have well hidden malware.

      So, apparently SJWs are evil because without them we'd have to be 100% vigilant the entire time when surfing the web and it's their fault we're not? It's amazing what people ascribe to SJWs these days!

      Besides, it's not like quite a lot of sites rely on JS entirely. That's annoying enough for static sites (like Blogger) but HTML/CSS/JS is now powerful enough to essentially deliver quirky, shoddy apps of some sort.

      How are you supposed to know of a random new mapping site is OK? It certainly will require JS to have a remotely modern interface.

      --
      SJW n. One who posts facts.
  48. Re:all they have to do is lure them to a webpage by myowntrueself · · Score: 1

    Thin clients? Remote Desktop Services cluster?

    This is in the context of the virtualisation *host* not the guests.

    --
    In the free world the media isn't government run; the government is media run.
  49. Re:all they have to do is lure them to a webpage by Anonymous Coward · · Score: 0

    But isn't the whole point that this could be run in a guest to spy on other guests?

  50. Re: all they have to do is lure them to a webpage by Phil+Urich · · Score: 1

    Sounds like somebody couldn't figure out how to set up GPG.

    --
    I remember sigs. Oh, a simpler time!
  51. Re: all they have to do is lure them to a webpage by Anonymous Coward · · Score: 0

    Like I said, snake oil! Don't be so naive... Besides, the 'meta-data' is just as good.