{"id":325,"date":"2010-04-13T21:03:15","date_gmt":"2010-04-14T02:03:15","guid":{"rendered":"http:\/\/zitstif.no-ip.org\/?p=325"},"modified":"2010-04-13T22:41:10","modified_gmt":"2010-04-14T03:41:10","slug":"defending-your-sshv2-password","status":"publish","type":"post","link":"http:\/\/zitstif.no-ip.org\/?p=325","title":{"rendered":"Defending your SSHv2 password.."},"content":{"rendered":"<p>In light of John Strand&#8217;s newest demonstration, I thought I would come up with some methods for keeping your SSHv2 password safe from this attack.<\/p>\n<p>Firstly, on the broadcast network that you&#8217;re going to authenticate over, keep an eye on the MAC addresses at work here. Make sure that there are no duplicate MAC addresses on the network. What you&#8217;re ideally doing here, is keeping an eye out for ARP spoofing.<\/p>\n<p>Secondly, before authenticating, use <strong>host <\/strong>to check out the IP address of the domain your SSH server is on. For example:<\/p>\n<pre lang=\"bash\">~$ host zitstif.no-ip.org\r\nzitstif.no-ip.org has address 69.209.112.233<\/pre>\n<p>Remembering at least part of your IP address will help mitigate the risk. However, if you use the host command and then notice output that looks like this:<\/p>\n<pre lang=\"bash\">~$ host zitstif.no-ip.org\r\nzitstif.no-ip.org has address 192.168.1.104<\/pre>\n<p>You may be on your local area network, (which in this case, you should know your server&#8217;s LAN IP). However, if you&#8217;re not in your own network, then chances are <strong>dnsspoof, <\/strong>may be in use or some other tool.<\/p>\n<p>Another method of mitigating the risk of this attack is by using an ssh key. By using an ssh key and password-less authentication, you can essentially remove the risk of dictionary attacks. However, my argument against using ssh keys, is that they can be copied if a computer that has the ssh key is compromised. I still stand by password authentication, because the &#8216;key&#8217; is essentially in your head, unless you write down your passwords and with the exception of your password being stored on a remote server, which you hope the remote server&#8217;s owner took the necessary precautions to encrypt the password.<\/p>\n<p>However, this all depends on the strength of your password policy.<\/p>\n<p>More to come&#8230;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In light of John Strand&#8217;s newest demonstration, I thought I would come up with some methods for keeping your SSHv2 password safe from this attack. Firstly, on the broadcast network that you&#8217;re going to authenticate over, keep an eye on the MAC addresses at work here. Make sure that there are no duplicate MAC addresses &hellip; <a href=\"http:\/\/zitstif.no-ip.org\/?p=325\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Defending your SSHv2 password..<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[136,133,132,131,134,130,128,135],"class_list":["post-325","post","type-post","status-publish","format-standard","hentry","category-posts","tag-defend-ssh","tag-dnspoof","tag-dnsspoof","tag-protect-ssh","tag-ssh-attack","tag-ssh-defense","tag-sshv2","tag-sshv2-attack"],"_links":{"self":[{"href":"http:\/\/zitstif.no-ip.org\/index.php?rest_route=\/wp\/v2\/posts\/325","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/zitstif.no-ip.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/zitstif.no-ip.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/zitstif.no-ip.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/zitstif.no-ip.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=325"}],"version-history":[{"count":6,"href":"http:\/\/zitstif.no-ip.org\/index.php?rest_route=\/wp\/v2\/posts\/325\/revisions"}],"predecessor-version":[{"id":327,"href":"http:\/\/zitstif.no-ip.org\/index.php?rest_route=\/wp\/v2\/posts\/325\/revisions\/327"}],"wp:attachment":[{"href":"http:\/\/zitstif.no-ip.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=325"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/zitstif.no-ip.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=325"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/zitstif.no-ip.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=325"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}