So a buddy of mine in devops casually mentions certificate transparency logs like it's common knowledge and I'm sitting there like... what. Apparently every cert you issue gets logged publicly. Forever. And anyone can search them.
I ran my domain through crt.sh out of curiosity and there it was. Every subdomain I've ever put a cert on. staging., dev., old-admin., jenkins. (that one hurt), plus a bunch of stuff from a contractor who set up a subdomain for a demo in like 2019 and never cleaned it up. Some of those hosts are still live. Some resolve. I checked two of them and both loaded a login page over HTTPS with a perfectly valid cert.
Valid cert does NOT mean safe to expose, that's the part that took me a minute to internalize. It just means nobody can snoop the traffic. Doesn't mean the thing behind it isn't running PHP 5.6 with no rate limiting lol.
Anyway I've spent the last two evenings locking stuff down. Moved the internal ones behind the VPN, killed the dead subdomains at the DNS level, put basic auth in front of the two that have to stay public. Wildcard certs help here too since it means you're not issuing a new logged cert for every little hostname, though honestly the horse may already be out of the barn if you've been issuing certs for years.
What I'm still unsure about: does anything actually crawl these logs aggressively, or is this more of a "security researchers poke at it sometimes" situation? I keep seeing Censys and Shodan mentioned in the same breath. Feels like the answer is yes and I just got lucky that nobody cared about my little staging box.
If you've never checked yours, go look. Takes 30 seconds and it's a weirdly humbling experience.