News for hackers. Stuff that matters.
Re:A Hacker's Replacement for Gmail by etherael on Sunday June 30, 2013 @12:23AM (#5964701)
I have a dedicated server with encrypted partitions and admin backdoors turned off at ovh. So theoretically they shouldn't be able to access the running system, and if they take it down to access the partitions directly, they're encrypted so that won't work either.
Re:A Hacker's Replacement for Gmail by Sami_Lehtinen on Sunday June 30, 2013 @02:15AM (#5964862)
That's why they take memory snapshot first, which is trivial with VPS and then pick encryption keys from it to access encrypted volumes. This is well known method and works with pure hardware machines too with physical access. It's great question when you get to server, to shut it down or leave on. If on, it could destroy data, if turned off encryption keys are gone. I think it would require some individual case analysis before deciding which one is better approach.
Re:A Hacker's Replacement for Gmail by etherael on Sunday June 30, 2013 @02:33AM (#5964908)
Isn't the pure hardware method for memory snapshots some ridiculously complex mechanism with freezing the memory and quickly transferring it to a reading device?

If you're going to pull this, you need to know in advance that it's necessary, that's not some minor thing that everyone is going to just do automatically, it's an extra, complicated step it's easy to screw up.

That said, I acknowledge the possibility of compromise in the aforementioned scenario, but once again I don't understand people who always jump to the "I am vulnerable to this narrow threat model, ergo, I should not bother to protect myself against any threat models". Especially when the measures you can take to protect yourself most likely will address the actual threat models you are liable to encounter.

Re:A Hacker's Replacement for Gmail by mike-cardwell on Sunday June 30, 2013 @02:48PM (#5966718)
"ridiculously complex mechanism" ... Not really. Anyone with the ability to stick a USB stick in a USB port and hit a power reset button can pull off this attack:

http://www.mcgrewsecurity.com/tools/msramdmp/

Re:A Hacker's Replacement for Gmail by noinsight on Monday July 01, 2013 @05:31AM (#5969586)
Hmm, that requires USB booting though, if you disable that from the BIOS and password protect it, they can't really use this method. If they pull the battery the machine needs to be turned off and so the RAM will clear.
Re:A Hacker's Replacement for Gmail by etherael on Monday July 01, 2013 @06:02AM (#5969650)
You don't get BIOS access to low cost dedicated servers on OVH, even though they're dedicated, you can't KVM them.

mid to high range ones you can though so that might be a workable solution there.

Also, they can still rip the ram out and nitrogen it.

Re:A Hacker's Replacement for Gmail by etherael on Sunday June 30, 2013 @03:32PM (#5966870)
Interesting stuff. TRESOR might not be overkill after all.
Re:A Hacker's Replacement for Gmail by lloeki on Sunday June 30, 2013 @05:10AM (#5965185)
> Isn't the pure hardware method for memory snapshots some ridiculously complex mechanism with freezing the memory and quickly transferring it to a reading device?

With Virtual Private Servers, it's trivial to do the virtualized version of this through the hypervisor.

Re:A Hacker's Replacement for Gmail by etherael on Sunday June 30, 2013 @05:25AM (#5965215)
My original statement said "dedicated server". The response said; "virtual server attack, also works with pure hardware machines". The only version of this attack that is relevant to the original statement is one that works on a dedicated server, so re-stating that it's trivial to do this against a virtual private server isn't really adding anything to the conversation.
Re:A Hacker's Replacement for Gmail by oijaf888 on Sunday June 30, 2013 @03:49AM (#5965055)
How do you do that with a pure hardware machine with physical access without rebooting the machine? Even if you freeze the memory with liquid nitrogen and extract the data from it, that process results in the server needing rebooted afaik. Obviously I'm assuming there's no 0-day you can just enter in via the serial console or similar.
Re:A Hacker's Replacement for Gmail by e12e on Monday July 01, 2013 @01:41AM (#5968887)
You might chill the RAM, reboot, read out the encryption keys, mirror the disks, verify that you can decrypt it -- and then leave the server off -- mail the customer a notice saying the server rebooted due to a power glitch.

At this point you have pretty much everything on hand to help you fool the customer into believing everything is ok (eg: replace the whole physical machine with a vm...).

Come to think of it -- if you know the hardware in the machine, you probably could replace the machine with a vm anyway -- just mirror the disks and go.

Re:A Hacker's Replacement for Gmail by dualboot on Sunday June 30, 2013 @02:12AM (#5964858)
The right answer. With a design that focuses on simplicity ( reducing the entry points ) you can be pretty well assured that if someone attempts to gain access to your data you will likely know.

For me that is an important factor. I rather dislike the fact that in scenarios like Gmail and other providers of their ilk -- access is provided transparently to a third party.

Running your own server can give you a reasonable expectation of privacy. Even in a hosted/colocated environment if you take the time and effort.

Re:A Hacker's Replacement for Gmail by etherael on Sunday June 30, 2013 @02:55AM (#5964959)
That said, even with a dedicated server, I still use gmail, because https://github.com/etherael/phoneme
Re:A Hacker's Replacement for Gmail by bigiain on Sunday June 30, 2013 @02:25AM (#5964889)
Possibly some too-cynical questions…

Do you think ovh is any less beholden to GCHQ than Google et al are to the NSA?

Do you think your encrypted partitions and turned-off admin backdoors protect you much against people with physical access to the hardware?

Re:A Hacker's Replacement for Gmail by etherael on Sunday June 30, 2013 @02:41AM (#5964927)
> Do you think ovh is any less beholden to GCHQ than Google et al are to the NSA?

OVH maybe a little more, because at least they're not under the direct auspice of the most megalomaniacal state in the world and will act according to their economic incentives in being a reliable and trustworthy service provider, which in a purely free market would align their interests with my own. However being as they are subject to various hostile state entities that have the ability to exert deleterious effects on that self interest, to the extent that they are forced to, they will cooperate with those entities.

I take action to protect myself from those threats to the greatest extent that I am able in either scenario whilst acknowledging that every theoretical threat model can never be entirely negated, coupled with the fact that at the end of the day, bothering to break through all of my measures and taking that trouble, they would find basically nothing that they were interested in.

I despise the state, sure, I'd like to see it dissolve into something like the system outlined in the machinery of freedom, sure. However in my view, taking any violent measures to expedite this process would both make me as bad as the enemy, and compromise the goal of a better world even if it actually contributed to the downfall of the state.

> Do you think your encrypted partitions and turned-off admin backdoors protect you much against people with physical access to the hardware?

"Much" more than non encrypted partitions and not turned off admin backdoors? Absolutely. Completely and utterly impenetrable to any attack by any means at all? Not likely, I can think of one off the top of my head that would work; freeze the memory, get an image, power off the system and extract the encryption keys from the image to re-mount the partitions. That's 1) not automatic 2) not easy 3) easy to screw up 4) not undetected

Re:A Hacker's Replacement for Gmail by bigiain on Sunday June 30, 2013 @03:00AM (#5964971)
Great response - thanks.

Another question - have you done the thinking or got some advice about whether marginally trusting a potentially subvert-able hosting company in a jurisdiction you don't particularly trust (US, UK, and unfortunately for me, Australia) is likely to be a better or worse bet than trying to source a server/vps in a more trusted jurisdiction? (perhaps Iceland? Or am I fooling myself assuming there's anywhere "trustworthy"?)

Re:A Hacker's Replacement for Gmail by etherael on Sunday June 30, 2013 @03:22AM (#5965001)
I used to be Australian, too.

I think of it like trusting gangs in the thieves guild, there might be some gangs that are ethically more admirable than others, but at the end of the day if it comes down to it, the administrative board of the thieves guild is able to compel any of it's member organisations to act in accordance with its edicts.

So if you're going to take any action that might cause the administrative guild of that thieves board to attack you, it should be a foregone conclusion that the trust of intermediary parties beholden to that central authority is irrelevant.

Arrange your affairs accordingly. If you must deal with gangs of thieves, deal with the better ones, and if you can avoid it, don't. And if, heaven help you, you decide to take action that will paint crosshairs on your back from the central thieves guild committee, your opsec should take into account the full powers that committee is able to bring to bear upon you.

Re:A Hacker's Replacement for Gmail by stevefleming on Sunday June 30, 2013 @06:14AM (#5965288)
As a former employee of OVH, I can guarantee that law enforcement compliance does happen, I don't know to what extent, but having been there for the better part of two years I have seen requests from local government be held up and data handed over to authorities. Though in those cases it was child pornography accusations.
Re:A Hacker's Replacement for Gmail by quicksilver03 on Monday July 01, 2013 @07:56AM (#5969997)
Which could mean that the only thing an unscrupulous government official needs to do in order to access one's data is hinting at implications on child pornography.
Re:A Hacker's Replacement for Gmail by oijaf888 on Sunday June 30, 2013 @03:46AM (#5965049)
How do you handle reboots? If all of your partitions are encrypted I would guess you use a serial console to enter in the encryption password to decrypt and mount the actual OS drive?
Re:A Hacker's Replacement for Gmail by etherael on Sunday June 30, 2013 @03:48AM (#5965052)
small boot partition (basically enough to boot, get network, start ssh), all the actual data and /tmp on encrypted stores.
Re:A Hacker's Replacement for Gmail by th0br0 on Sunday June 30, 2013 @05:47AM (#5965252)
But do you validate that boot partition each time you reboot the system? How do you know that your computed hashsum (or similar) is actually the true one? ...
Re:A Hacker's Replacement for Gmail by etherael on Sunday June 30, 2013 @05:51AM (#5965257)
got a hash of the boot partition, validate when it comes back up.
Re:A Hacker's Replacement for Gmail by e12e on Monday July 01, 2013 @01:44AM (#5968897)
How do you know that you're not logging in to a vm, with all the data mirrored from your physical server?
Re:A Hacker's Replacement for Gmail by etherael on Monday July 01, 2013 @04:04PM (#5973237)
This is reasonably clever, but how do you get a full disk mirror from a server you can't get into without powering off, if you do power off, the amount of time the system is down is a tipoff to the target as to what's going on.

Assuming however it could somehow be pulled off; I guess potential ways to mitigate would be to keep a copy of the exact hardware characteristics of the system you originally have, kernel log on bootup, precise size of disks, chipsets of all the various controllers and compare when the system reboots. It would however be possible though extremely hard to get an exact duplicate of all of these at the virtualisation layer level.

You could call the virtualisation layer in the cpu requesting access to virtualise a subsystem, clock the data bus speeds... There should be some overhead from virtualisation that wasn't there when dedicated...

It's an interesting problem. I'll think more about it.

Re:A Hacker's Replacement for Gmail by e12e on Wednesday July 03, 2013 @04:07AM (#5983101)
Please note that as soon as you've typed in the key needed to unlock the disk in the vm, your data is compromised. So any verification you attempt, has to be made from the unencrypted boot image...

As for time needed, assume this: The attacker sets up a physical server that can accept the same physical disks as your server (with hotswap), with an additional disk (or ssd) for booting into a hypervisor, sets parameters for this hypervisor to closely mirror that of your server. The attackers server would typically be faster than yours -- it is/can be bought some time after your server was, so this should almost be universally possible.

The attacker boots the vm server, sets everything up; then kills power to your machine, moves the disks over. Your downtime: the time it takes to move the disks (literally).

Good luck differentiating between this and legitimate downtime.

I still think reading the encryption keys from RAM after cooling them with some co2 would be the more likely attack, but it's a fun thought experiment...

Re:A Hacker's Replacement for Gmail by e12e on Thursday July 04, 2013 @10:54PM (#5993272)
Not sure if anyone will see this, this late, but someone else recently posted this presentation on Rakasha, a malware based on top of coreboot open bios and friends -- so if you know the type of server, you might just pop up the cover and switch out the BIOS...:

https://www.youtube.com/watch?v=yRpilXPv8pU