News for hackers. Stuff that matters.
Re:Moving your SSH port isn’t security by obscurity by heavenlyblue on Monday September 21, 2020 @12:16PM (#24545141)
> I know this is just an anecdote and it might not necessarily be true today, but this experiment always sticks in my head. At least the guy used the scientific method: created a hypothesis, conducted the experiment, analyzed his results.

I don't need a research to see the difference in how much logging journalctl generates immediately after I disable port 22.

Re:Moving your SSH port isn’t security by obscurity by doggydogs94 on Monday September 21, 2020 @12:21PM (#24545223)
Don’t disable port 22; just neuter it. If port 22 is disabled, the attacker will look elsewhere in your system.
Re:Moving your SSH port isn’t security by obscurity by tensor on Monday September 21, 2020 @12:29PM (#24545336)
This is an interesting point. Imagine if you put a fake SSH agent on 22, it responds just like SSH but never allows a login. Would it make it even less likely that someone would bother trying another port?
Re:Moving your SSH port isn’t security by obscurity by peder on Monday September 21, 2020 @01:44PM (#24546269)
Obviously the next step here is a fake SSH agent that allows logins to a little sandbox.
Re:Moving your SSH port isn’t security by obscurity by giovannibajo1 on Monday September 21, 2020 @04:25PM (#24548042)
Re:Moving your SSH port isn’t security by obscurity by isbvhodnvemrwvn on Monday September 21, 2020 @01:53PM (#24546368)
Probably a bad idea, one vulnerable service invites people to look for more.
Re:Moving your SSH port isn’t security by obscurity by yjftsjthsd-h on Monday September 21, 2020 @04:48PM (#24548278)
Depends what we mean by sandbox. I wouldn't make a chroot the honeypot, but I don't see an issue with a program that just simulates a shell but doesn't allow exec or real fs access, for instance.
Re:Moving your SSH port isn’t security by obscurity by Sohcahtoa82 on Monday September 21, 2020 @03:46PM (#24547625)
I'd be weary of that. Sandboxes have been escaped.
Re:Moving your SSH port isn’t security by obscurity by jrockway on Monday September 21, 2020 @05:47PM (#24548839)
I don't think you would ever let them touch OS-level resources. There are plenty of third-party ssh server libraries where you just get a Reader and a Writer to the remote end. When they connect, you write "root@cool-computer# ". When they send bytes, you discard them, then print "root@cool-computer# " again.

While obviously accepting a TCP connection and allocating resources on your computer is more risky than just ignoring the connection, presumably it would be fun to do this, which is a good reason for doing something. You can set a memory limit, file descriptor limit, etc. and just crash if they're exceeded. You can run your little fake ssh daemon in gvisor and protect against attacks nobody even knows about yet. All in all, it would be pretty low risk, and also pretty interesting.

Re:Moving your SSH port isn’t security by obscurity by drtillberg on Monday September 21, 2020 @02:19PM (#24546653)
And the next beyond that is a sandbox that contains simulated data....
Re:Moving your SSH port isn’t security by obscurity by throwawaynothx on Monday September 21, 2020 @06:54PM (#24549290)
honeypots are obvious.
Re:Moving your SSH port isn’t security by obscurity by just-juan-post on Monday September 21, 2020 @12:54PM (#24545660)
They won't and that's the point of the OP.

"They" are just a bunch of bots that try to hit 22 once and that's it. If it's open report it's open if not then move onto the next target.

The only time a human is going to look for SSH on non-22 ports is when they are actively attacking you or your organization.

Re:Moving your SSH port isn’t security by obscurity by vlod on Monday September 21, 2020 @12:27PM (#24545313)
Do you have a suggestion on how to do this?
Re:Moving your SSH port isn’t security by obscurity by ogre_codes on Monday September 21, 2020 @12:34PM (#24545386)
An SSH Tarpit is a good way:

https://nullprogram.com/blog/2019/03/22/

Re:Moving your SSH port isn’t security by obscurity by vlod on Monday September 21, 2020 @12:46PM (#24545552)
thanks!
Re:Moving your SSH port isn’t security by obscurity by giovannibajo1 on Monday September 21, 2020 @04:26PM (#24548060)
Re:Moving your SSH port isn’t security by obscurity by rootsudo on Monday September 21, 2020 @12:40PM (#24545478)
It depends, many people do not do a full NMAP scan. Takes to much time.

Then again, is port knocking security by obscurity enough?

Re:Moving your SSH port isn’t security by obscurity by nickmooney on Monday September 21, 2020 @12:56PM (#24545693)
Moving SSH to a non-standard port is helpful only to reduce log noise coming from untargeted attacks. If an attacker is looking at your system, your attack surface is the same no matter where your SSH daemon is bound. I don't think it's worthy any extra effort to "distract" attackers like this.
Re:Moving your SSH port isn’t security by obscurity by warrenm on Tuesday September 22, 2020 @09:12AM (#24554003)
Sometimes I run an extra http listener on 22