2021-03-27 19:26:56 +00:00
id : detect-dns-over-https
info :
name : Detect DNS over HTTPS
author : geeknik
2022-04-22 10:38:41 +00:00
severity : info
2023-05-30 10:04:03 +00:00
description : |
With DNS over HTTPS (DoH), DNS queries and responses are encrypted and sent via the HTTP or HTTP/2 protocols. DoH ensures that attackers cannot forge or alter DNS traffic. DoH uses port 443, which is the standard HTTPS traffic port, to wrap the DNS query in an HTTPS request. DNS queries and responses are camouflaged within other HTTPS traffic, since it all comes and goes from the same port.
2021-03-27 19:26:56 +00:00
reference :
- https://developers.google.com/speed/public-dns/docs/doh/
- https://developers.cloudflare.com/1.1.1.1/dns-over-https/wireformat
2023-04-28 08:11:21 +00:00
metadata :
max-request : 1
2024-01-14 09:21:50 +00:00
tags : miscellaneous,dns,doh,misc
2021-03-27 19:26:56 +00:00
2023-04-27 04:28:59 +00:00
http :
2021-03-27 19:26:56 +00:00
- method : GET
path :
- "{{BaseURL}}/dns-query?dns=q80BAAABAAAAAAAAA3d3dwdleGFtcGxlA2NvbQAAAQAB"
2023-10-14 11:27:55 +00:00
2021-03-27 19:26:56 +00:00
headers :
Accept : application/dns-message
matchers-condition : and
matchers :
- type : status
status :
- 200
2021-11-03 10:11:08 +00:00
2021-03-27 19:26:56 +00:00
- type : word
2021-11-03 10:11:08 +00:00
part : header
2021-03-27 19:26:56 +00:00
words :
- "application/dns-message"
2021-11-03 10:11:08 +00:00
2021-03-27 21:29:35 +00:00
- type : regex
2021-11-03 10:11:08 +00:00
part : header
2021-03-27 21:29:35 +00:00
regex :
- "(C|c)ontent-(L|l)ength: 49"
2024-01-26 08:31:11 +00:00
# digest: 4b0a00483046022100b6a282d177b5248871f599737511d414a8c812457fa48d20a44e993e267bd511022100ba5be0d06107ebdc7179bde4fde7325298c6770b43911259ece0521d0b762032:922c64590222798bb761d5b6d8e72950