5 ms·
If someone is able to steal my private key file, then they have probably compromised my computer and could just as well install a keylogger.
by eli 10y ago
If someone is able to steal my private key file, then they have probably compromised my computer and could just as well install a keylogger.
- userbinator 10y agoConsider the scenario in which your computer is stolen (and might not ever be returned, so whether the attacker installs a keylogger is irrelevant): The fact that a private key file exists suggests that the user is very likely to be using SSH regularly. The fact that an SSH client exists is far less informational (there's one by default on most Linuxes and Mac OS). If I only ever use password authentication with SSH and don't save anything else, not even server keys, the attacker has far less information. That might be important in some scenarios, especially related to anonymity.
- DasIch 10y agoIf your computer is stolen and you don't have full disk encryption, a leaked private key is probably far from the only problem.
- old-gregg 10y agoalexk already addressed your concern: your keys, preferably issued by your org's CA (instead of being generated by you) should be short-lived, oftentimes for the duration of your "work shift". The tools listed above support this.
- lomnakkus 10y agoYou are aware it's usually recommended to have passphrases for keys, yes? Plus, you really should have whole-disk encryption for laptops. (I get the feeling I'm missing something here, but...)
- userbinator 10y agoRegardless of whether the keyfile has a passphrase, the point is that it exists. And FDE also suggests you may be hiding something. Sometimes the best way to make something secure, is to make it look like there is actually nothing to secure.
- tzs 10y ago> And FDE also suggests you may be hiding something. No one needs to bother trying to infer from FDE that I'm hiding something. I will tell them I am if they ask. Financial records, intimate correspondence, and employer trade secrets (I'm authorized to work at home on my personal computer) immediately come to mind and there is probably more. I'm sure I'm not unusual in this regard. Most people have things they are hiding.
- lomnakkus 10y agoIf anyone's targeting your specific laptop for theft they already think that you're hiding something. If some rando steals your laptop they probably have no clue what SSH even stands for.
- vacri 10y agoSecurity-by-obscurity only works alongside other layers. Do you also do things like stop all system logging? Or shell logging? Even with only user-level access, a simple 'history' will show where you're ssh'ing to, regardless of whether you use a keyfile or not.
- galdosdi 10y agoNot these days. FDE is so common and easy to use now, it might well have been an option you blindly hit upon install. And that's just in consumer environments. In corporate environments, in any company with a half-decent infosec department, all employees' computers will simply be required to have FDE, regardless of what they do on the computers.
- userbinator 10y agoFDE is also apparently not entirely impossible to bypass, which leaves you in the same situation of an attacker knowing that those SSH keyfiles exist on your machine. You may think it's all over at that point, but there's different levels of secrecy, and it'd be better that the attacker cannot even know that a further level exists beyond.
- 10y ago
- makomk 10y agoPassphrases on SSH keys used to be really easy to brute-force by default and I think they still are. Until two or three years ago the only way to slow down brute-forcing attacks was to use a complicated incantation with openssl to convert the keys to use a slower key derivation. Few people did.
- lomnakkus 10y agoWell, except I'm using "Correct Horse...". Oh. Well, I'm actually using a similar scheme to that, but I don't want to give too much away :). Actually, I think you're probably right about the ease of brute-forcing passphrases in practice. That's not to say some random person is going to get access to your SSH key[1], but if you're actually being targeted as a "person of interest" by a nation-state you're probably SoL unless you're actually practicing due diligence... but then I think that's generally the name of the game, no? I mean OPSEC is still a thing even if you're only doing stuff that's shady-but-definitely-not-illegal. [1] This isn't quite a "thing" yet, so some random burglar who steals your laptop isn't going to be attempting brute force.
- galdosdi 10y agoYes, what you're missing is that userbinator is probably trolling us
- Canada 10y agoWhat about your known_hosts? Do you delete that every connection?
- tedunangst 10y agoHashKnownHosts?
- dllthomas 10y agoStill establishes that SSH was being used, which seems to be userbinator's concern.
- dllthomas 10y agoAnd of course if you do, that is weakening you against other kinds of attacks.
- rhizome 10y agoYou're essentially arguing for SSH security to be reduced to the "something you know" prong of multifactor authentication.