4 ms·
I think you're making some assumptions about people in your argument. This is really very simple, security is a multi layered thing and security by obscurity i
by INTPenis 13y ago
I think you're making some assumptions about people in your argument.
This is really very simple, security is a multi layered thing and security by obscurity is never a good layer by itself but part of a larger "onion" it can be helpful.
Bottom line, good security always takes discipline because humans are the last line of defense. There is no one button solution and anyone in security should know this so the argument shouldn't even be present about that point. Changing the SSH port towards the internet is a very pragmatic solution to spam in your logs.
I know people will mention fail2ban but I'd rather not have a log parser running day and night on every internet facing server when I can just change the port and get rid of all that spam Forever. (I have yet to encounter one robot that can dynamically scan for SSH ports and use anything else than 22).
Also, in my personal opinion, using a high port like 24601 is insecure because if your SSH daemon ever crashes then an unprivileged user on your system can listen on that high port and receive your precious connections. So personally I always use an alternative ssh port under 1024.
- marcosdumay 13y ago> security by obscurity is never a good layer by itself but part of a larger "onion" it can be helpful. That's ok. Just don't pretend that you are getting anything worthwhile from that policy. All you get is a 10 bit door, added (not multiplied - so, it does not increase your overall security) to whatever security you already had. In computer security, people normally consider anything with less than 64 bits worthless. A 10 protection can be brute-forced by hand. As humans work, changing that port is a clear indicator of an admin that didn't care about avoiding the less secure modes of SSH. If you are looking for obscurity, I'd consider a non-standard port (and concern about bots) to be a huge flag announcing "This system is exploitable".
- mscarborough 13y ago> I'd consider a non-standard port (and concern about bots) to be a huge flag announcing "This system is exploitable". Every system is exploitable. How is changing a port indicative of someone who did nothing else to secure their shell access? I keep all mine on 22, but have been considering moving it just to keep the logs a little more sane for when I actually have to read them to find something.
- uiri 13y agoIt really isn't difficult to write such a robot, it just involves a port scan before actually probing. Using bash, something like: nmap $host | grep -i open | cut -d '/' -f 1 | xargs -I {} ./sshscan.sh $host {} Where the contents of sshscan.sh is something like: #!/bin/bash nc $1 $2 | grep -i ssh if [ $? -eq 0 ]; then # ssh probing stuff here fi