Skip to content
Please note that GitHub no longer supports Internet Explorer.

We recommend upgrading to the latest Microsoft Edge, Google Chrome, or Firefox.

Learn more
Sample queries to start your Advanced hunting journey in Microsoft Threat Protection
Branch: master
Clone or download
Cannot retrieve the latest commit at this time.
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
queries folder fix Nov 27, 2019
.gitignore Initial commit Nov 27, 2019
CODE_OF_CONDUCT.md Initial CODE_OF_CONDUCT.md commit Nov 27, 2019
LICENSE Initial LICENSE commit Nov 27, 2019
README.md
SECURITY.md Initial SECURITY.md commit Nov 27, 2019

README.md

Advanced hunting queries for Microsoft Threat Protection

This repo contains sample queries for Advanced hunting in Microsoft Threat Protection. With these sample queries, you can start to experience Advanced hunting, including the types of data that it covers and the query language it supports. You can also explore a variety of attack techniques and how they may be surfaced through Advanced hunting.

To get started, simply paste a sample query into the query builder and run the query. If you get syntax errors, try removing empty lines introduced when pasting. If a query returns no results, try expanding the time range.

We are continually building up documentation about Advanced hunting and its data schema. You can access the full list of tables and columns in the portal or reference the following resources:

Contributions

This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit https://cla.opensource.microsoft.com.

When you submit a pull request, a CLA bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., status check, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repos using our CLA.

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.

How to contribute

Everyone can freely add a file for a new query or improve on existing queries in the queries folder. To help other users locate new queries quickly, we suggest that you:

  • Create a new MarkDown file in the queries folder with contents based on the query submission template
  • In the new file:
    • Provide a name for the query that represents the components or activities that it searches for, e.g. Files from malicious sender
    • Describe the query and provide sufficient guidance when applicable
    • Select the categories that apply by marking the appropriate cell with a "v"
  • Use the query name as the title, separating each word with a hyphen (-), e.g. files-from-malicious-sender.md

Suggestions and feedback

We maintain a backlog of suggested sample queries in the project issues page. Feel free to comment, rate, or provide suggestions.

You can’t perform that action at this time.