Forum Discussion

JerrySmith_UAB's avatar
JerrySmith_UAB
Copper Contributor
Jul 25, 2022

Query for file hashes in MDE portal

Hello! My organization is new to Microsoft Defender for Endpoints. I'd like to be able to threat hunt for IOC in the form of IPs, URL and naturally file hashes. Can someone direct me to the proper s...
  • MichaelJMelone's avatar
    Jul 26, 2022
    You have a couple of options here. If you wanted to keep it all in the query you can do this:
    let Hashes = pack_array('foo','bar','baz');
    DeviceFileEvents
    | where SHA256 in (Hashes)

    ...or you could upload a text file containing the hashes to blob storage and use a SAS URL like this:

    externaldata (SHA256:string)['https://some.blob.core.windows.net/files/myhashfile.txt?SasTokenHere']
    | join kind=rightsemi DeviceFileEvents on SHA256

Resources