Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SSL Subject CN when PTR (reverse DNS) comes up unknown #676

Open
artmg opened this issue Dec 31, 2024 · 1 comment
Open

SSL Subject CN when PTR (reverse DNS) comes up unknown #676

artmg opened this issue Dec 31, 2024 · 1 comment

Comments

@artmg
Copy link

artmg commented Dec 31, 2024

Thank you very much for your effort in providing and supporting this useful security/privacy utility.

When prompted to Allow or Block a connection you offer the very useful feature of a DNS reverse lookup.

image

Unfortunately in the modern day of hyperscaled cloud providers, a ptr lookup may well fail to get you results. Fortunately, many of these services use secure https connections over port 443 which are predicated on a SSL certificate, and this allows us a means to 'reverse engineer' the identity of the site being connected to.

An example in this case would be use the nmap script ssl_cert with the IP address, although the devs may know better libraries available for obtaining ssl certificates over https requests within the lulu codebase.

> nmap -p 443 --script ssl-cert 20.26.156.215/32
Starting Nmap 7.95 ( https://nmap.org ) at 2024-12-31 18:20 GMT
Nmap scan report for 20.26.156.215
Host is up (0.0095s latency).

PORT    STATE SERVICE
443/tcp open  https
| ssl-cert: Subject: commonName=github.com
| Subject Alternative Name: DNS:github.com, DNS:www.github.com

As you can see the Subject SN is github.com which could be a valuable factoid if the reverse DNS lookup offers no record.

Please consider adding this as a new feature onto your development backlog, as it may become increasingly relevant as services are ever more co-hosted on anonymous, transitory servers. I appreciate your consideration. Thanks

@objective-see
Copy link
Owner

This is a great idea 💡

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants