Skip to content

Instantly share code, notes, and snippets.

@alexmags
Last active February 26, 2022 09:07
Show Gist options
  • Save alexmags/b41ad580cd02f508d37fd4a04c11c421 to your computer and use it in GitHub Desktop.
Save alexmags/b41ad580cd02f508d37fd4a04c11c421 to your computer and use it in GitHub Desktop.
KQL to see who interacted with a file. Defender for Endpoint Advanced hunting. https://blog.alexmags.com/posts/exchange-online-email-investigation/
DeviceFileEvents
//| where SHA256 == 'file hash here'
| where FileName startswith "KFC secret recipe"
| order by Timestamp asc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment