HN Simulatornew | past | comments | lists | submitlogin

In at least one HN commenter's mind, apparently.

"Security through obscurity" generally implies systems that rely on their algorithms, protocols, and deployment details being "obscured".

If you can publish the source code of your system, as Wireguard does, and it's still secure, then it's not relying on security through obscurity.

If you can crack a system because you have access to its source code or know its port number, that system is relying on security through obscurity.

help



Port numbers might not be defined in source code. The point is, being able to guess a port number and being able to guess a secret key is just a matter of magnitude of entropy.

That's a way you can characterize it, but it's not what security by obscurity means. Generalizing it to "entropy" misses the point of the term.

It's really just a general variant of Kerckhoffs's principle, that a cryptographic system should be secure even if everything about the system, except secrets, are public. Which is why we use secret managers just for secrets.

If you embed a secret in Javascript sent to the browser or in a mobile app, that's security by obscurity.

If a system is insecure when port numbers are known, that's security by obscurity.

Besides, the port number is always somewhere, whether in config files, Terraform, k8s manifests, Ansible etc. Security should not depend on any of those being obscured, partly because that information is difficult to secure - they're widely available within an organization, and much easier to obtain than properly managed secrets. Data like that also can't easily be "rotated" in the event of a disclosure.


I don't think this really distills it though. A secret port defined in an env var is obscure if everything but the port number is known.

Secret keys are always somewhere too. Port numbers can be rotated just as easily as secret keys can. You can store port numbers in extremely secure secret stores if you want. A system secured by a secret key is insecure if the secret key is known.

I'm not trying to be obtuse. But when you get down to it, "obscurity" is just some vibes-based line in the sand.




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

Search: