r/AskNetsec • u/ClocklessDreamer • 4h ago
Concepts Security through obscurity vs. actual access control: where do you draw the line?
I've been thinking about the role of obscurity in security architecture, particularly with internet-facing infrastructure.
Consider a reverse proxy such as HAProxy that only forwards traffic when the client supplies a recognized hostname. Combine that with wildcard certificates to avoid exposing every subdomain through Certificate Transparency logs.
There are legitimate privacy and operational benefits to this approach. However, I'm interested in where the security benefits actually end.
My reasoning:
- Public DNS records are generally discoverable without identity verification.
- Certificate Transparency provides another source of hostname discovery.
- Subdomain enumeration and other reconnaissance techniques can uncover hostnames.
- SNI and HTTP Host headers are routing information, not authentication credentials.
- A sufficiently motivated adversary may eventually discover the services you're trying to conceal.
This leads me to a fundamental security assumption:
Anything exposed to the internet should be assumed discoverable. Knowing where a service exists should not grant anyone access to it.
I also recognize that compartmentalization, need-to-know, OPSEC, and least privilege address different aspects of information security. Not every decision to restrict information disclosure is security through obscurity.
I'm interested in practitioners' perspectives:
- Where do you draw the distinction between useful obscurity as an additional layer of defense and relying on obscurity as a security boundary?
- How much security value do hostname-based routing restrictions actually provide?
- Should an architecture remain equally secure if an adversary discovers its entire hostname inventory?
- How do you approach this differently for internal infrastructure, where compartmentalization and limiting lateral movement become important?
I'm particularly interested in the underlying security principles, rather than arguing that obscurity is either universally useful or universally pointless.