3

We are all pretty comfortable with the fact that if ports 80 and 443 are open that these are for http even though some companies block 22 forcing people to repurpose 443 for ssh. So, those instances notwithstanding, does describing public services with SRV records make your system any more vulnerable than another sort of port relocation? 22->2222 etc...

(Consider that my network is still port mapped by China and Russia at least once a day or over the course of a few days. It would be great if my firewall could detect and blacklist them but that'll just escalate the issue)

migrated from serverfault.com Feb 24 '18 at 20:05

This question came from our site for system and network administrators.

  • More "vulnerable"? No. Are you asking about the risks or vulnerabilities? – schroeder Feb 24 '18 at 20:14
  • I think risk and vulnerable are the same... if I mapped my network ports in SRV records then the attacker does not have to portscan and can attack a particular port/service that have a wellknown weakness before IDS or fail2ban targets the attacker. – Richard Feb 25 '18 at 20:49
  • 1
    The vulnerability remains the same. The only change is the time to find it. – schroeder Feb 25 '18 at 21:21
3

A SRV record defines the location of a service. It doesn't provide or expose that service. Your server (along with any firewalls you implement) provides and exposes the service, so I don't see how/why the existence of an SRV record makes you any more or less vulnerable. If you provide and expose HTTP, SMTP, SSH, etc., etc. then it matters little how a potential hacker finds those services.

  • 2
    While both answers have their merits, I'm going to have to go with this one. On an IPv4 network, it's somewhat beside the point because your network is so easy to port scan. On an IPv6 network, it takes longer to scan without knowing more about your victim but you have to operate under the assumption that any exposed port is going to be discovered at some point anyway. At the end of the day, your security must be designed around the assumption that the attacker knows what you have exposed; security through obscurity won't save you. – Andrew B Feb 24 '18 at 23:55
  • but a port scan can be detected from the offending IP long before the port attack begins. – Richard Feb 25 '18 at 20:51
1

It depends on whether or not the SRV record can be used to identify the particular software/version running.

For common services such as auto configuring email, AD location, or, as mentioned in another answer, http, ssh, etc (no idea why you'd use a SRV record for these) it probably matters very little.

Where'd you'd want to be concerned is if you had a unique application listening on a special port. For example, say ACME Company produces "Specialized App" that defaults to listening on port 54321. You publish a SRV record pointing specialapp.yourdomain.com to your ip and port 54321. A hacker can then make an educated guess that you are running Specialized App published by ACME Company and attempt to exploit any past or currently known vulnerabilities in it.

  • I have one public IP and 3 baremetal and one vmware device... I also do a lot of docker development and being able to deploy containers with a SRV tunnel would be part of any CI/CD assuming that the client also used the SRV. – Richard Feb 25 '18 at 20:54

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.