SysMon DNS Query Results are truncated RRS feed

  • Question

  • Hello,

    I have found that the DNS Query Results from SysMon could be truncated. See the example below:

     QueryResults: type: 5;::ffff:;::ffff:;::ffff:;::ffff:;::ffff:;::ffff:;::ffff:;::ffff:;::ffff:;::ffff:;::ffff:;::ffff:;::ffff:;::ffff:;::ffff:;::ffff:;::ffff:;::ffff:;::ffff:;::ffff:;::ffff:;::ffff:;::ffff:;::ffff:;::ffff:;::ffff:;::ffff:;::ffff:;::ffff:;::ffff:;::ffff:;::ffff:;::ffff:;::ffff:;::ffff:;::ffff:;::ffff:;::ffff:;::ffff:;::ffff:;::ffff:;::ffff:;::ffff:;::ffff:;::ffff:;::ffff:;::ffff:;::ffff:;::ffff:;::ffff:52

    Notice that end of the data is not a valid IP address but rather '52'. As we try to parse and ingest this, it is invalid.

    Is this expected behavior or a bug?

    SysMon 10.42 is what this was tested with.

    Thank you!

    Monday, May 11, 2020 10:40 PM

All replies

  • Interesting. I wasn't aware of this issue. Mark Russinovich added the DNS feature so I will check with him but I couldn't see any obvious restrictions in the Sysmon code. Note that DNS logging uses ETW so this may be a restriction on the ETW logs too. Have added to the backlog and will take a look.


    Tuesday, May 12, 2020 8:08 AM
  • Sounds great, thanks Mark! Let us know if you need more details.


    Tuesday, May 12, 2020 2:55 PM
  • This is a Windows DNS restriction for ETW logging - messages are cut to 1024 characters. However, new operating system code without this restriction is ready and waiting to roll out with the next major OS release.

    Consider that in the case of hostnames with multiple IP addresses, there's no guarantee for the order in which the IPs are sent back by the DNS server. Also, in the case of UDP queries, the datagrams might be cut short (datagrams are also capped at 64 kilobytes) with only a bit flag in the message to signal this. There is no way to retrieve what follows after the cut, the client is free to query again the stateless DNS server and might receive any subset of the answer back.


    Wednesday, September 9, 2020 2:29 PM