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.
> 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.
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.
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.
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.
> 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.
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.
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.
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.
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.
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"