Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

It's impossible to detect an open wireguard port as no response is generated unless you have the correct key. SSH on the other hand is easily scanned for.
 help



> easily scanned for.

unless you use IP whitelisting


By definition that would not be a public, open port.

Or TCPMD5, which I have tried to sell to openssh, even sending patches, as I recall.

With the major drawback that TCPMD5 doesn't work through NAT.


TCPMD5 is a really terrible hack. Authentication is better done at either the application layer, or the VPN layer.

Which is great if you're always behind a particular IP. As for the rest of the world...

I've had success allow listing the whole IPv6 ASN block my ISP owns. It cuts down on all the drive by attempts and if someone on my ISP's network was trying to break in they'll still need to defeat SSH before I notice the stream of failed login attempts and report them.

I have the naive hope that as a paying customer of my ISP they'll take my abuse report involving a fellow customer seriously.


Don't forget to add the IP blocks of your new provider, if you ever decide to switch...

This is an argument for security-through-obscurity.

The phrase "security thru obscurity" is something that people parrot because they heard it somewhere and it makes them feel smart. In reality, all cybersecurity is security thru obscurity. There's nothing else but obscurity. The entire field of encryption is literally obscuring.

A thinking person understands that security, like obscurity, is just a matter of degree, and the only lever you have is increasing the cost for the attacker by increasing obscurity. Security isn't binary, it's a matter of degree in the form of cost.


Obscure as in "I'm using a port nobody can guess" and obscure as in "I multiplied two large primes together that nobody can guess" are very different. Crypto is definitely obscuring, but it is muddying the waters too much to conflate them.

Technically that’s only because the port is 2 bits of secrecy. If port numbers were 128 bits we’d be having a different conversation I think.

Just to nipick, that's 2 bytes, so 16 bits of secrecy (a bit less if you choose to avoid other well-known port numbers).

EDIT: And on a practical level, the port number is sent as plaintext in the packet header, and generally much easier to snoop on than a secret sent in the data.


Not really, because the port is observable over the wire. It’s no bits of secrecy once comms have been watched. That’s the difference between real security and security through obscurity.

Though there is a point to be made to also make obscurity a layer of your defence strat (albeit not effective for all threat models, and brittle).

After all, most organisations dont put out their whole network design, serverpark documentation and infra architecture out in the open. It usually goes by many names, like 'company secret', 'internal knowledge', 'NDA', but in the end its all just obscurity.

For me it just another layer of the onion. I don't really consider it security, though I do qualify it as some sort of defence.


There's a reason militaries don't paint their tanks bright pink...

No one expects camo paint to stop a projectile, that's what the armor is for. But in an ideal scenario you don't get hit by the projectile in the first place, and that's what the camo is for.


> In reality, all cybersecurity is security thru obscurity.

No, that's not what that word means. "Obscurity" means low/no entropy. If you're leaning on a "secret" int between 0 and 65,536 then it's going to break. If your secret is a random int between 0 and 2^2048 then that's not "obscurity", that's an actual secret.


> the practice of concealing the details or mechanisms of a system to enhance its security

By that Wikipedia definition, Wireguard is more obfuscated than SSH because it won't reveal that it exists to unauthorized users. This enhances its security.

Your example creates a binary that begs the question: how much entropy does it take to advance from obscurity to secret? "Defense in depth" implies many layers of imperfect obfuscation/secrets.


Thank you.

Security through obscurity means "as long as nobody knows our process we're safe"

Which is true in cryptography, knowing that primes are used does not suddenly make it surmountable.

If your security is that the ssh port is x, REGARDLESS of how many bits there are, it's security through obscurity. Someone reading the process would immediately know.

If your process is randomly picking a port, then that's not. You'd have to figure out how to communicate that port to your users though.


Where is obscurity defined as low/no entropy?

unless its 4, of course

RSA actually is security through obscurity, where the obscurity is that nobody will figure out practical factoring.

> In reality, all cybersecurity is security thru obscurity.

I'm usually not here to debate semantics, but good god, trusting in cryptographically secure algorithms is a much stronger promise of security than something like, say, port-knocking.

Just because the math behind these algorithms are being put under a lot more pressure than we could imagine a decade ago doesn't mean we should throw the baby out with the bathwater. If anything, it's a good thing to validate that our assumptions are true, and correct the assumptions we had incorrect.


>I'm usually not here to debate semantics, but good god, trusting in cryptographically secure algorithms is a much stronger promise of security than something like, say, port-knocking.

That’s his point though. That some forms of obscurity are much stronger and aren’t bad.


The NSA itself has a secret suite of cryptographic primitives for this exact reason.

https://en.wikipedia.org/wiki/NSA_Suite_A_Cryptography


Yes! Thank you for saying this. It bugs me when people don't understand this. Of course, cryptographic obscurity has some measurement of obscurity associated with it, which is why it is valuable.

“Security through obscurity” refers to the algorithm not any key material.

Yes, it refers to it somewhat obscurely.

Explain how one time pad is security by obscurity.

Because the pad is not visible to those you want to keep the communication secure from. The pad is 'obscured'.


The phrase is imprecise in its meaning. No dictionary definition of obscure would make it apparent. But the point is that some information has to be held back, even if it is only the key. That's what is obscure.

We just call those secrets in the biz.

It's just dark turtles all the way down

This is an absurd reduction and nobody serious things ACLs on source IPs are on the same spectrum as encryption. These things are qualitatively different.

Port knocking or source IP filtering is trivially defeated by an attacker that can observe any traffic in the chain of a legitimate traffic exchange. The entire class of things people call “security through traffic obscurity” are these trivial things that only help against bulk automation.

These are extra things you sprinkle on to buy you more time from 0-day bot farms (not 0-day dedicated attackers who have watched your traffic), but they are not a replacement for real security that gives you well bounded guarantees through cryptography.

The people who think “it’s all security bro” are the ones who end up losing their crypto money when their ISP gets BGP hijacked by a dedicated attacker. “The IP was hardcoded, how could they possibly take over!?!?”


No, it’s a demonstration of obscurity by design.

It doesn’t back up any claims about the benefits of SBO.


Is a password security through obscurity, since it’s just some not-well-known (known by one) string?

Security through obscurity mostly refers to the attacker not knowing how the system works, not hiding information.


Yes, it is. And code is data. "Security through obscurity" is all that exists.

Cryptography is, in good part, about the practice of using mathematics for the assurance of sufficiently sophisticated obscurity.

The trope of "security through obscurity bad" does not survive scrutiny, because it was never meant to. It's a "practical sense" shorthand, not something to actually deeply consider like this. It falls apart immediately when you do.


Sophisticated obscurity is the key.

Most obscurity is not sophisticated. The things the users are doing aren't much different than a kid hiding behind a sofa and they think their dad doesn't know where they are any longer.


I really do wonder how the cookie will crumble with hardness assumptions in this regard.

The currently trending story may be that it is only a matter of time before the frontier AI labs crack all crypto and then we're hosed, but it's also possible they find hardness proofs and better constructions instead.

Though maybe their focus is not pointing that way right now / counterarguments may continue to be more discoverable.


Nothing wrong with security through obscurity, even in its most naive form of changing your port ranges and stuff like that. It's only a problem when some obscurity is the only method of securing.

Obscurity adds layers of security, and security is all about layering and increasing the difficulty, not about some perfect binary solution secure vs not secure.


There's nothing wrong with obscurity, as long as it's not your only line of defence.

Defense-in-depth does not use security-through-obscurity alone, but obscurity can still be a valuable part of a complete strategy. You should know better than "obscurity makes a system less secure"

Layered security*

Security-through-obscurity is another slice of Swiss cheese, albeit one with a big hole.

I would hardly consider that "dangerous."



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: