2021-03-27 19:26:56 +00:00
|
|
|
id: detect-dns-over-https
|
|
|
|
|
|
|
|
info:
|
|
|
|
name: Detect DNS over HTTPS
|
|
|
|
author: geeknik
|
|
|
|
reference:
|
|
|
|
- https://developers.google.com/speed/public-dns/docs/doh/
|
|
|
|
- https://developers.cloudflare.com/1.1.1.1/dns-over-https/wireformat
|
|
|
|
severity: info
|
2021-04-01 18:35:08 +00:00
|
|
|
tags: dns,doh,misc
|
2021-03-27 19:26:56 +00:00
|
|
|
|
|
|
|
requests:
|
|
|
|
- method: GET
|
|
|
|
path:
|
|
|
|
- "{{BaseURL}}/dns-query?dns=q80BAAABAAAAAAAAA3d3dwdleGFtcGxlA2NvbQAAAQAB"
|
|
|
|
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"
|