1
0
Форкнуть 0
Sample queries for Advanced hunting in Microsoft 365 Defender
Перейти к файлу
Iveco 19253acb9f
Update C2-NamedPipe.md
2021-08-17 20:44:30 +02:00
Campaigns Rename Campaigns/JNLP-File-Attachment.md to Email Queries/JNLP-File-Attachment.md 2021-08-12 15:26:19 -07:00
Collection title updates, see-also, typos 2021-03-09 17:56:58 -05:00
Command and Control Update C2-NamedPipe.md 2021-08-17 20:44:30 +02:00
Credential Access New AHQ 2021-03-05 10:32:46 -08:00
Defense evasion title updates, see-also, typos 2021-03-09 17:56:58 -05:00
Delivery New AHQ 2021-03-05 10:32:46 -08:00
Discovery title updates, see-also, typos 2021-03-09 17:56:58 -05:00
Email Queries Update JNLP-File-Attachment.md 2021-08-12 15:26:51 -07:00
Execution Create Detect PowerShell v2 Downgrade.md 2021-04-16 12:01:53 -04:00
Exfiltration Update Files copied to USB drives.md 2021-03-23 16:27:23 -07:00
Exploits Merge pull request #387 from YulelogPagoda/patch-3 2021-07-21 16:53:11 +03:00
Fun Update Make FolderPath Vogon Poetry.md 2020-09-01 14:02:39 -04:00
General queries Update MD AV Signature and Platform Version.md 2021-07-15 11:08:16 +09:00
Impact Merge pull request #231 from martyav/ransomware-healthcare-misc 2020-11-11 13:28:21 +02:00
Initial access added template to tweet query 2021-02-18 18:58:22 -05:00
Lateral Movement Change CSL to TXT 2021-02-22 15:11:44 +02:00
M365-PowerBi Dashboard Add files via upload 2021-06-20 08:40:59 +03:00
Network Change CSL to TXT 2021-02-22 15:11:44 +02:00
Notebooks Add files via upload 2021-04-26 18:57:58 +03:00
Persistence title updates, see-also, typos 2021-03-09 17:56:58 -05:00
Privilege escalation title added 2021-05-25 14:53:52 -04:00
Protection events Update ExploitGuardBlockOfficeChildProcess.txt 2021-04-04 16:00:42 +03:00
Ransomware Update Suspicious Bitlocker Encryption.md 2021-06-03 13:48:37 -07:00
TVM Update devices_with_vuln_and_users_received_payload.md 2021-04-01 11:53:49 +02:00
Troubleshooting Merge pull request #239 from microsoft/mjmelone-patch-48 2020-10-22 09:56:08 +03:00
Webcasts Rename MCAS - The Hunt.csl to MCAS - The Hunt.txt 2021-05-10 17:51:26 +03:00
.gitignore Initial commit 2018-03-18 05:07:43 -07:00
00-query-submission-template.md Update 00-query-submission-template.md 2021-02-15 15:11:31 +02:00
CODE_OF_CONDUCT.md Create CODE_OF_CONDUCT.md 2020-04-22 15:48:37 +03:00
LICENSE Initial commit 2018-03-18 05:07:47 -07:00
MTPAHCheatSheetv01-dark.pdf Add files via upload 2020-07-06 13:45:51 +04:00
MTPAHCheatSheetv01-light.pdf Add files via upload 2020-07-06 13:45:51 +04:00
README.md added brief descriptive note to readme of repo 2021-02-25 15:25:43 -05:00
SECURITY.md Create SECURITY.md 2020-04-22 15:49:02 +03:00

README.md

page_type languages products description
sample
kusto
Microsoft 365 Defender
Microsoft 365 Defender repository for Advanced Hunting

Advanced hunting queries for Microsoft 365 Defender

This repo contains sample queries for advanced hunting in Microsoft 365 Defender. 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.

Advanced hunting queries provide a great starting point for locating and investigating suspicious behavior, and they can be customized to fit your organization's unique environment. Further, you can use these queries to build custom detection rules if you determine that behaviors, events, or data from the advanced hunting query helps you surface potential threats.


NOTE: Most of these queries can also be used in Microsoft Defender ATP. However, queries that search tables containing consolidated alert data as well as data about email, apps, and identities can only be used in Microsoft 365 Defender.


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. To help other users locate new queries quickly, we suggest that you:

  • Create a new MarkDown file in the relevant folder according to the MITRE ATT&CK category 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
  • Include comments that explain the attack technique or anomaly being hunted. Whenever possible, provide links to related documentation.

In addition, construct queries that adhere to the published advanced hunting performance best practices.

Suggestions and feedback

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

We value your feedback. Let us know if you run into any problems or share your suggestions by sending email to wdatpqueriesfeedback@microsoft.com.