<br><br><div class="gmail_quote">On Wed, Jan 14, 2009 at 5:20 PM, Rashkae <span dir="ltr"><<a href="mailto:ubuntu@tigershaunt.com">ubuntu@tigershaunt.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div><div></div><div class="Wj3C7c">Kent Borg wrote:<br>
> NoOp wrote:<br>
>> why don't you try as I suggested? Put a machine w/ssh on an open<br>
>> DSL/Cable modem and watch your logs for a few days?<br>
><br>
> I don't need to put up such a test, I already have such a thing.<br>
> Checking the log file is quite easy...<br>
><br>
> [check, check. check]<br>
><br>
> As always, there have been break in attempts. These attempts came from<br>
> different IP addresses, and you suggested I will attract attacks like<br>
> flies to honey--but for the moment let's assume you are wrong on that<br>
> point and assume that these attacks are really just a single coordinated<br>
> attacker.<br>
><br>
> Some of the attacks are against randomly chosen user names, but most are<br>
> against root and that matters most, so let's look at the root attacks:<br>
> Based on the number of attempts in this sample and the entropy in my<br>
> root password, at minimum it will take over 2,500 years for a single<br>
> coordinated attacker to have a 50-50 chance of getting in. Further, if<br>
> the attacker doesn't know the format ("recipe") of my root password, the<br>
> effective entropy soars to a much higher figure--to estimate<br>
> conservatively it would take many octillion years of attempts to get to<br>
> the 50-50 point.<br>
><br>
> Conclusion: No attacker is going to get root on this machine via a brute<br>
> force attack. NEVER, EVER, EVER, not in any time span that I (nor my<br>
> machine) will live to see.<br>
><br>
> I am NOT saying that a break in is impossible, only that it will have to<br>
> come via some other vulnerability. Being distracted from the other<br>
> vulnerabilities is then a serious problem.<br>
><br>
> If I am worried about security, I should worry about other<br>
> vulnerabilities. Because I have a good root password, fretting over<br>
> moving sshd as a way to slow down a brute force attack is a distraction.<br>
> It is like arguing over what color car gets better mileage (do more<br>
> photons bounce off or get absorbed and do they impart momentum, slowing<br>
> or speeding the car???). Different cars get different mileage and<br>
> mileage certainly matters, but color doesn't make any real difference<br>
> difference.<br>
><br>
><br>
<br>
</div></div>Disclaimer: I do not personally move my ssh ports, nor do I advocate the<br>
practice.  I consider it security theater on par with confiscating<br>
bottles of water at airports.  There is a rationale however, which has<br>
been overlooked.<br>
<br>
The theory is that attackers, as well as trying common username/password<br>
combos (which really should not be mistaken for a brute force attack by<br>
any stretch) are also keeping records of which hosts have which ports<br>
open by which applications.  In theory, armed with this list, when an<br>
exploit is uncovered (and exploits are always being uncovered) they have<br>
a ready to go database of hosts that are likely to be vulnerable on zero<br>
day.<br>
<br>
The drive by port scanning, however, is normally restricted to the<br>
common service ports (22, 25, 80, etc.)  since probing all ports of<br>
every IP takes too long to be as effective.  Therefore, moving your ssh<br>
port, if ssh is your only open port, for example, will keep you off<br>
these lists.<br>
</blockquote></div><br>So how long does it take to scan all the ports? Then lets say you have 100 zombies to do it for you at the same time? What are we looking at to get 10,000 non 22 port ssh(s)?<br><br>-- <br>Douglas E Knapp<br>
<br>Amazon Gift Cards; let them choose!!<br><a href="http://www.amazon.com/gp/product/B001078FFE?ie=UTF8&tag=seattlebujinkand&linkCode=as2&camp=1789&creative=9325&creativeASIN=B001078FFE">http://www.amazon.com/gp/product/B001078FFE?ie=UTF8&tag=seattlebujinkand&linkCode=as2&camp=1789&creative=9325&creativeASIN=B001078FFE</a><br>