News for hackers. Stuff that matters.
Re:Obscurity Is a Valid Security Layer by omginternets on Tuesday June 07, 2016 @01:54PM (#11856259)
I think your disagreement stems from a failure (on your part and the author's) to distinguish between targeted and dragnet attacks.

With regards to the former, I emphatically agree with you. If you've been singled out by a competent attacker, you're subject to his statistical probing of your system, which is bound to reveal most (if not all) of the configuration/parametrization info you're trying to hide.

In the case of dragnet attacks, however, I emphatically disagree. There is asymmetric cost imposed upon the attacker: time.

Your door doesn't have to be impenetrable; it just has to be stronger than your neighbor's.

Thoughts?

Re:Obscurity Is a Valid Security Layer by crumpled on Tuesday June 07, 2016 @05:27PM (#11858025)
I agree, for example: When a WordPress vulnerability is found, millions of sites are at risk. The large installation base is enough incentive for people to relentlessly scrutinize WordPress for vulnerabilities.

Your home-made CMS isn't going to attract attackers because the spoils are limited to one site, and the code isn't readily available.

That doesn't mean your CMS is more secure; it probably isn't. But it's going to take a focused effort to attack, and an exploit becomes less likely.

Re:Obscurity Is a Valid Security Layer by zippergz on Tuesday June 07, 2016 @05:38PM (#11858119)
Even making minor changes to the Wordpress URLs from the defaults is enough to avoid getting hit by most (if not all) of the automated exploit I see on a day to day basis.
Re:Obscurity Is a Valid Security Layer by AstralStorm on Tuesday June 07, 2016 @02:41PM (#11856698)
Why would you ever want to be vulnerable to targeted attack while only keeping dragnet ones at bay?

Also such measures do not help any kind of a system that has to be really exposed. Want to hide your http and mail server behind a port knocking mechanism? A rarely supported or proprietary TLS method only?

Re:Obscurity Is a Valid Security Layer by detaro on Tuesday June 07, 2016 @02:43PM (#11856713)
It doesn't make you more vulnerable to targeted attack, so why would you not want to additionally keep dragnet ones at bay?
Re:Obscurity Is a Valid Security Layer by tptacek on Tuesday June 07, 2016 @03:00PM (#11856858)
Because it's not doing anything to stop dragnet attacks either!
Re:Obscurity Is a Valid Security Layer by omginternets on Tuesday June 07, 2016 @04:14PM (#11857421)
Maybe "dragnet" wasn't the best term to use. I'm not talking about the NSA, but rather about automated brute-force attempts (think: random attempted ssh connections from the internet).

With regards to that, not stopping automated attacks in general is fully-independent of being a less appealing target for such attacks. The latter -- even on it's own -- improves security.

Re:Obscurity Is a Valid Security Layer by tptacek on Tuesday June 07, 2016 @05:22PM (#11857979)
It's not doing anything to stop brute-force attempts! SSH keys already stop that attack cold!
Re:Obscurity Is a Valid Security Layer by zippergz on Tuesday June 07, 2016 @05:40PM (#11858135)
So is this an argument that defense in depth is not a worthwhile strategy as long as you have a single "really good" layer of defense?
Re:Obscurity Is a Valid Security Layer by tptacek on Tuesday June 07, 2016 @09:07PM (#11859304)
No, it's an argument not to waste time with pointless layers that impose no significant costs on attackers. Surely, you can't believe that "defense in depth" justifies arbitrary layers, or you'd also advocate for ROT-13 tunnels.
Re:Obscurity Is a Valid Security Layer by zippergz on Tuesday June 07, 2016 @09:33PM (#11859400)
No, but I disagree that running sshd on an alternate port is an arbitrary layer. It is PROVEN that it prevents the automated mass scanners from even attempting to login. This you admit yourself when you mention the reduction in log noise.

You are correct that a properly configured sshd has nothing to worry about with respect to these mass scanners. However, can we guarantee that we'll never make a configuration error? You're also correct that a pre-auth sshd vuln would be a HUGE deal. But can we guarantee one will never happen? Do you disagree that if a misconfiguration or a world-changing vulnerability were to happen, that a little time more to deal with it would be helpful?

If I run something that is in any way vulnerable (whether via bug or misconfiguration) on port 22, it will be found within minutes (based on how often I see that port getting scanned today). Unless I'm being specifically targeted, an sshd running on an arbitrary port isn't going to get hit until/unless someone is running full port scans across the internet looking for it. I don't understand how you can argue that this is worthless. A measure that isn't useful against a determined and targeted attacker can still be useful. The adversaries that most of us face in the real world are looking for the path of least resistance, not access to our specific systems.

Re:Obscurity Is a Valid Security Layer by zippergz on Tuesday June 07, 2016 @09:39PM (#11859423)
By the way, this is the same reason I lock my door even though there’s a glass sidelight right next to it. Any burglar who wants to get into my house can do it in about 5 seconds by breaking that sidelight. But that doesn’t mean there’s no value in keeping out the mischievous neighbor kids who are just rattling doorknobs and looking for a place to steal booze from.
Re:Obscurity Is a Valid Security Layer by wglb on Tuesday June 07, 2016 @10:47PM (#11859650)
I wouldn't think of alternate port as any kind of layer whatsoever. It defends against the horde of ants that are knocking on any open port 22. It does not defend against the kind of attack that you should worry about--that of a sophisticated, patient well funded attacker.

Moving from port 22 to $RANDOM will only net you annoying log bloat from things that you don't really care about.

Re:Obscurity Is a Valid Security Layer by omginternets on Tuesday June 07, 2016 @05:45PM (#11858187)
You're assuming everything is properly configured. A bug-free setup is essentially impossible.

The claim is that obfuscation makes it less likely that a mistake will be spotted by an attacker.

To be clear, I agree with you to the extent that a properly configured SSH server with good keys and no 0-day exploit is more effective than what I'm proposing. My point is rather that such a setup makes a lot of assumptions (key exchange, configuration, secure updates, etc...) and that obfuscation is a complementary security layer for when those things occasionally fail.

Re:Obscurity Is a Valid Security Layer by tptacek on Tuesday June 07, 2016 @06:30PM (#11858517)
"A bug free setup"? Don't use passwords. Done.
Re:Obscurity Is a Valid Security Layer by omginternets on Tuesday June 07, 2016 @07:31PM (#11858893)
Come on, now I'm starting to suspect you're commenting in bad faith.

Just to reiterate, SSH was an example of the general problem that is misconfigured/buggy software. OpenSSH is certainly one of the most secure programs I'm aware of, but the same can't be said for things like wordpress.

Eventually, something gets messed up (if only momentarily), and being nonstandard makes you less susceptible to scripted breaches.

We can debate whether the tradeoff is worthwhile (and in many cases it's not), but it's a valid gosh-darn secruity layer!

Re:Obscurity Is a Valid Security Layer by tptacek on Tuesday June 07, 2016 @09:08PM (#11859306)
If you can't deploy passwordless SSH, you have problems port-knocking can't solve.
Re:Obscurity Is a Valid Security Layer by omginternets on Wednesday June 08, 2016 @08:12AM (#11861634)
I'm at a loss for words. I implore you to re-read this comment thread and try to understand what I'm saying.

You're responding to an argument I haven't made.