Tips For Securing Your Secure Shell
jones_supa writes: As you may have heard, the NSA has had some success in cracking Secure Shell (SSH) connections. To respond to these risks, a guide written by Stribika tries to help you make your shell as robust as possible. The two main concepts are to make the crypto harder and make stealing keys impossible. So prepare a cup of coffee and read the tutorial carefully to see what could be improved in your configuration. Stribika gives also some extra security tips: don't install what you don't need (as any code line can introduce a bug), use the kind of open source code that has actually been reviewed, keep your software up to date, and use exploit mitigation technologies.
Not what I was expecting at all. This is actually a legitimate technical article.
I.. have to go re-evaluate my understanding of not just the current state of slashdot but of my life in general.
The goal shouldn't be to prevent your files from being seen by the NSA -- it should be to prevent your files from being seen by ANYONE. If you're hiding data from the NSA that sounds like you're some kind of criminal terrorist who hates the US, not a run-of-the-mill responsible sysadmin.
Remember kids, if you're not paying for the service, YOU ARE THE PRODUCT THAT IS BEING SOLD.
Tips for shelling my secure shell?
By the sea shore no less.....
"File to fit, pound to insert, paint to match" - Aircraft Maintenance 101
TFA: "... RC4 are broken. Again, no need to wait for them to become even weaker, disable them now."
Is that really so? I think RC4/arcfour is only known to leak secret data in the first 2 KB of the cipher stream, and for that reason SSH will simply feed it 2 KB or so of garbage data before encrypting the actual payliad. Or am I mistaken?
RC4 has a big advantage: it is by far the fastest cipher, which is relevant if you want to do large file transfers over slowish hardware (home-grade NAS, Raspberry Pi, old Atom CPU, etc.).
Avantslash: low-bandwidth mobile slashdot.
Just ask Neil deGrasse Tyson!
Taking guns away from the 99% gives the 1% 100% of the power.
You could save yourself a lot of time and effort and consider using Dropbear.
https://matt.ucc.asn.au/dropbe...
Kriston
Does that mean you use Dual_EC_DRBG?
If you're transferring large amounts of information, including X-Forwarding AND never access systems with very sensitive data such as credit cards, RC4 is probably okay FOR NOW. However, weak attacks tend to become complete breaks. It's entirely reasonable to expect that RC4 may well be utterly broken in a year, or two or three. If you're going to review your algorithm choices annually, you can probably keep RC4 for 2015. You'll need to check again in 2016 though. Personally, I'd rather not reconfigure all my systems' ssh very frequently, so I'd remove any algorithms that have been weakened, before they are completely broken.
shouldn't it be "Tips For Securing Your Shell"?
If you have to secure your secure shell then it isn't secure in the first place and shouldn't be called secure!
The top of my list is timing analysis of entered commands. You SSH into someplace and later type a password or something worth knowing. Timing between keystrokes can be used to recover information about what you are doing.
It can be done with microphones..
http://berkeley.edu/news/media...
It can be done with clocks..
http://users.ece.cmu.edu/~dawn...
From the article:
You want to use code that’s actually reviewed or that you can review yourself.
This is the piece we are missing from Linus' Law. Knowing that the source code can be reviewed by anyone is a good start, but it's just a theoretical possibility. We also need proof that someone has actually done an audit.
The constitution defines what is permissible to the government, or not, and the government is authorized to create laws only within the limits of those permissions.
Warrantless search is not "lawful government activity" because search without warrant is forbidden to the government. The 4th amendment is very clear in its requirements and its intent. A warrant is required; that warrant in turn can only be issued in the face of probable cause; it must be supported by oath or affirmation; and it must specify the thing or things to be searched for and the place or places to be searched.
Search without warrant is completely out by any sane reading of the 4th amendment. Likewise, general fishing expeditions. When you have both going on at the same time, as we do with broad government surveillance of US citizens, the government malfeasance is only that much further into illegal, unauthorized territory.
The constitution is the document that defines and authorizes our government. It lays out some very explicit limits; when the government exceeds those limits, it is operating in a wholly unauthorized manner, no different in any way from any tin-pot third-world dictatorship.
I've fallen off your lawn, and I can't get up.
sha1 is broken for PKI, but a second preimage attack hasn't been even devised for md5, so, its pure tin-foil here.
One bit of paranoia the author might add is moving your private key completely off of your desktop into a smartcard that does the RSA or ECDSA step and, being a far more limited microprocessor, should be more securable than processes running on a general-purpose networked computer and multitasking OS.
I believe there are ways to do ssh with PKCS-based smartcards, but the method used around here is based on PGP/GPG keys and either the "OpenPGP Smartcard" (ISO smartcard form factor, requires a smartcard reader) or the YubiKey Neo (USB pen-drive form factor). You create a key pair (possibly using the smartcard CPU itself). You use gpg-agent with OpenSSH (or PuTTY) support instead of ssh-agent/pageant. The private key never leaves the device (the little bit of flash memory in the chip) and is designed to be unrecoverable. The RSA authentication step happens in the microprocessor on the card. The card has a PIN and is designed to lock after a couple missed PINs.
http://www.bradfordembedded.co... for a starting point.
You obviously don't understand the RC4 break. It's based on reusing the same RC4 key for multiple sessions. This doesn't happen in practice: a 128- or 256-bit RC4 key is generated each time you connect to SSH; you're only vulnerable if the NONCE and IV used are related in a specific, mathematical way, and only if they have this relationship millions of times with the same key. You also have to know the sessions share the same key.
An attack on the SSL protocol using RC4 is mathematically impossible based on what we know about RC4 weaknesses.
Support my political activism on Patreon.
Ask Mario the plumber.
1. Disable SSH v1
2. Disable root login
3. Enable two factor authentication
Sig ?
Time to return to the land of custom protocols, custom encryption and even custom architecture.
There's a pretty solid (if somewhat offensive) guide for noobs on 4chan's /g/ (technology) Wiki:
https://wiki.installgentoo.com...
...How can you qualify the NSA as "unamerican"? They do reside in America. So do I (although my country's language is not English, this is as much America as the USA).
Yes, there are a lot of foundational myths to your country. One of them is that it is the "Land of the Free". Most countries that have been born in the last 200 years or so have similar origins and claims. But, if the country stands for freedom, it should not impose a credo to its citizens.
Hence, labeling something as "unamerican" is an oxymoron. Saying it's unamerican because it goes against personal privacy... Is more akin to saying it's un-soviet because it fosters private investment and therefore deprives society of its full economic benefits.
And do note, please, I said "un-soviet", not "un-russian".
If you were seriously under attack, the guys in black helicopters could recover your keystrokes with a remote emag detection (ie Tempest) attack. You would need to live inside a Faraday cage and have your wireless router in the cage with you. The wired WAN connection would be encrypted, so you CAT 6 cables would really not need to be shielded. ...but then out comes the rubber hose and scrotum electrodes.
I don't think the author has it quite right, both AES-GCM and all the ETM modes use a plain text packet length, and given the choice I would always prefer GCM over CTR + SHA. It is simpler, faster on new Intel hardware, and proven to be a strong MAC if the cipher is strong.
Only the djb modes actually avoid the plain text packet length, however they are new algorithms and it isn't clear just how much peer analysis they have undergone yet. I'm not sure how big a deal this is, the packet length is going to be knowable by inspecting the traffic pattern anyhow.
The strongest NIST algorithm set is, IMHO: DH2048, RSA4096, AES-GCM-256
If you move away from NIST then the DJB algorithms are probably the best.
The telnet protocol can be made very secure with the right software in place.* But it's only useful when you have a pre-agreed algorithm.
* Use the data stream to carry benign traffic. Encode your critical message elsewhere, e.g., the inter-packet delays, typos, a secondary (intermingled) TCP stream, TCP retries, TCP checksum, window lengths, header packing.
> An attack on the SSL protocol using RC4 is mathematically impossible based on what we know about RC4 weaknesses.
No, you've misunderstood the parent (and likely the magnitude of the attacks). Parent says there's no point in keeping RC4 because attacks only get better (and the NSA probably has attacks that are not publicly known), and you'll need to constantly evaluate the new attacks on RC4 every day. The known attacks are major warning signs the cipher is fundamentally insecure. It's simpler to just disable it now. You won't need RC4 anyway.
RC4 is considered cryptographically broken because it does not fulfill the required security properties. That does not mean anyone can trivially decrypt your RC4 protected SSH session, but it's only a matter of time before that's possible.
where is the recommendation to use a non-standard port?
> only if they have this relationship millions of times with the same key. Y
You're referring the March 2013 revelations about RC4 as used in SSL/TLS. That's just one in a long line of issues. In 2001, we knew that RC4 had a flaw, but we didn't think it could be exploited. It was soon used to break RC4 in WEP, though slowly. In 2005 Fluhrer, Mantin and Shamir improved the attack to crack WEP RC4 in under a minute (aircrack-ptw). In 2013, even worse news for RC4. In 2016, the attacks on RC4 expand to ???. I'm not betting MY customers' security on the answer.
I'm actually referring to FMS and Klein's attack. Klein's improvement to FMS cracks WEP in 58 seconds by causing it to generate something like 100k or 1M packets. I didn't know about the new developments in 2013.
Support my political activism on Patreon.
Good luck with having any customers by the time you whittle away every protocol with a potentially expandable attack surface.
As we don't even have a formal theory of quantum computation yet, but we do know that some things can be computed by quantum methods, I don't think any current protocol is entirely exempt from worrying cracks in the plaster.
Whatever you like to tell your customers, there's just no escaping this hard business of having to make a judgement call about which cracks to worry about and which to ignore.
Anyone else getting "This is probably not the site you are looking for" at the top of the page, and at the bottom of the page after the blog it says:
"You attempted to reach stribika.github.io, but instead you actually reached a server identifying itself as a shape shifter humanoid reptile alien. This may be caused by a misconfiguration on the server or something more serious. An attacker on your network could be trying to get you to visit a fake (and definitely harmful) version of stribika.github.io. You should not proceed."
The SSL certificate matches stribika.github.io so according to my browser I am going to the correct site. I am not sure if this is meant to be humor or if there is some sort of additional interception detection. I have no idea what it would be doing beyond the SSL checks?
This message is encrypted with Quad ROT-13 to protect the author's copyright under the DMCA.
Well they certainly have enough computing power... and curiosity
Downmodding, you using ac posts, + your fails listed != you win raymorris http://slashdot.org/comments.p... it shows you shoot your mouth off on things you have no clue on (especially on Windows' security measures shown there), and then trying to hide them by downmods. I don't see you prove apk wrong on a single point from a list of 16 here either http://slashdot.org/comments.p... just you downmodding by sockpuppets instead. Shouldn't have trolled apk like the weasel you are here then http://tech.slashdot.org/comme... and he wouldn't have had to busted you up with ease as always, seeing as you had to "Run, FORREST: RUN!!!" from him there and apply unjustifiable downmods to his posts that smoked you too. Poor performance Mr. wannabe expert. Very poor. Especially downmodding last time I posted this http://slashdot.org/comments.p...
See subject & this -> http://slashdot.org/comments.p...
APK
P.S.=> Like shooting your mouth off, trolling, thinking I wouldn't SEE this from you bigmouth? Guess again -> http://tech.slashdot.org/comme...
So, prove my points on hosts wrong raymorris (you NEVER do or have once): They're in that 1st link above (that you obviously downmodded to effetely *try* to "hide them", wrong again)... apk
What's the difference between getting into your SSH from the Internet and first getting into your VPN and then into your SSH? Or how would you limit who can get to the VPN itself?
Same here, trying to be funny I think.
It is just humor of course. It is a pun on the typical SSL warning of a web browser.
If you are worried about SSL, you can also download the content over SSH because the content is hosted on Github. This requires a Github account (unfortunately this has to be done over SSL) where you have setup SSH access (the later can be done with my tool github-keygen, despites it does not yet implement all Stribika advices).
git clone git@github.com:stribika/stribika.github.io.git
cd stribika.github.io
less _posts/2015-01-04-secure-secure-shell.md
Anyway whatever the state of the transport encrpytion, that will never tell you if the content is legitimate.
At least reading your local copy you will make with Git will at least ensure you that will not be affected if the server copy is later altered.
fail2ban in a must.
Default settings is wrong 3 tries every 10 minutes per IP address. This will make brute force attacks quite difficult.
PasswordAuthentication no
If SSH connections are coming in from the public Internet, you shouldn't be allowing password-based authentication. Let the bad guys have fun trying to brute force your RSA key for the next 14 million years.
They don't grade fathers, but if your daughter's a stripper, you fucked up. --Chris Rock
http://stribika.github.io/2015...
that's how to secure ssh