// https://security.microsoft.com/apiproxy/mtp/huntingService/queries/encode
Advanced hunting encodes the query for sharing purposes.
- \x00 gets added to every second position in the query (DeviceEvents => D\x00e\x00v\x00...)
- Query gets gzip compressed
- Compressed query gets base64 encoded with a limited character set.
- Position 5 - 13 gets replaced with 'A'
You can now send the encoded query through https://security.microsoft.com/v2/advanced-hunting?query={add query here}&timeRangeId=week