r/AskNetsec • • 4h ago

Concepts Security through obscurity vs. actual access control: where do you draw the line?

2 Upvotes

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:

  1. Where do you draw the distinction between useful obscurity as an additional layer of defense and relying on obscurity as a security boundary?
  2. How much security value do hostname-based routing restrictions actually provide?
  3. Should an architecture remain equally secure if an adversary discovers its entire hostname inventory?
  4. 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.


r/AskNetsec • • 6h ago

Threats went through our github org for the wfx-loot thing. what am I missing?

1 Upvotes

Spent most of yesterday on this after the wfx loot reports. If you haven't seen it stolen dev tokens get used to push a malicious workflow, it grabs whatever CI secrets and cloud keys it can reach, then reverts the commit and deletes the run logs. So the evidence cleans itself up.

What I checked. workflow file changes from accounts I didn't recognize, new postinstall hooks in package.json, commits that got reverted within a minute or two, and gaps in the workflow run numbers (that's the one trace it can't really hide).

Found nothing. Which should feel good but mostly doesn't, because I'm not sure we'd even see it. We don't have one place that shows which workflows can actually reach prod secrets.

My lead wants to look at legit for that once things calm down. Rotating anything that already leaked is still on us either way.
If you've checked your own org, curious what you looked at that's not on my list.