by userbinator · 8y ago · 0 comments
The researchers looked only at Intel processors, using the attacks to leak information protected using Intel's SGX (Software Guard Extensions), a feature found on certain chips to carve out small sections of encrypted code and data such that even the operating system (or virtualization software) cannot access it.
Perhaps the other good thing to come of this. Fuck that DRM shit.
On the end-user/device side, JavaScript has proven that sharing hardware with untrusted code is just too valuable to give up, and a similar dynamic continues to play out in the cloud.
I'm also happy whenever a headline brings attention to these types of problems because I believe we can fix them.
I think it's spot-on. Isolation has never been the top priority. Regardless of the priority, if one simply views all "untrusted code" as "code created by my enemy" the solution becomes clear - don't run it.
>> JavaScript has proven that sharing hardware with untrusted code is just too valuable to give up...
This is something I strongly disagree with. Javascript has become a common way to handle things but it's not the only way. In my opinion it's the lazy way - most people want to just use what's there and common rather than solve a few problems.
>> I'm also happy whenever a headline brings attention to these types of problems because I believe we can fix them.
One thing I'm seeing is that CPUs with speculative execution have lower performance/watt and performance/area. So in the cloud space it seem like just going to simpler CPU cores may be a solution (risc-v Esperanto Minions for example). Obviously that's not a solution where single thread performance is critical.
You mean, unless you browse the web and enable javascript...
Also, which code do you "trust"? Computer games? Phone apps? The OS?
Even then, if you're only hitting Gmail, Facebook and reddit, hackernews maybe a few news sites, you're gonna be fine most of the time. Yeah sometimes malware gets distributed via ad networks, so you're even better to use an ad blocker.
It's not like the average user spends a lot of time on random sketchy sites, most of their time is on the big companies sites.
You need to meet more average users then :). Plenty of sketchy sites are just one Google search away. The most common ways I've seen people end up in such places are free video streaming, browser games and (obviously) porn.
The only safe computer is a computer that has been submerged in liquid lead, cooled, poured into a solid 6m by 6m by 6m concrete cube, placed into the deepest edge of a saltmine and finally detonating a charge and collapsing a mounting over the computer.
That computer will be reasonably out of reach for everyone.
It's also quite useless.
And then someone will find a vulnerability in the thermocouple data processing code and will pwn the box by cunningly heating and cooling the surface above (possibly with low-yield nuclear warheads).
Also, the attack surface is less about the port, and more about the protocol. A Node HTTP interface is going to prioritise being correct as much as possible, because you're coding to the API. Nginx on the other hand will often by default (or at least with configuration) give a much more restricted implementation because it knows that there are bad people out there on the web.
To take a totally made up example that may or may not actually be the case, but should make the point... you can upload files in web forms with multipart/form-data - I would expect Node to either not have a limit, or have a very high limit, so that you can set it up how you want. Nginx on the other hand has a default of something like 2MB, which is maybe a bit low for apps that need file upload, but will crucially prevent certain kinds of denial of service attacks.
There are many similar areas of attack, abusing edge cases of the HTTP spec that Nginx will handle well out of the box. Not to mention the HTTPS support being probably much more complete in Nginx (in terms of cipher suites and browser compatibility).
Well, except for people using web browsers…
In our rush to get rid of Flash on the web we turned the web into Flash. At least it's an open standard now, I suppose.
Images and other codecs might also be an issue but it seems like a more complicated attack vector and one that could be mitigated more effectively.
This seems like an odd thing to say. There are plenty of very good reasons to not run your own hardware.... lower cost, uptime, ability to scale with demand all comes to mind.
Cloud providers will figure out how to mitigate threats like this...
[0] https://sawtooth.hyperledger.org/docs/core/releases/1.0/sysa...
Or consider a colocation friendly host / dedicated hosting only. Of course this doesn't mean you have any guarantees there wont be any bad state actors on the premise at any moment (if this is a concern), but it beats sharing a machine with some skiddies.