GitRead 中文社区
首页趋势排行榜原创文章严选周刊
更多资源
新手训练营
精选专题热门话题GitHub 文档资源精选实战指南

Hunting-Queries-Detection-Rules

KQL Queries. Defender For Endpoint and Azure Sentinel Hunting and Detection Queries in KQL. Out of the box KQL queries for: Advanced Hunting, Custom Detection, Analytics Rules & Hunting Rules.

  • 语言Python
  • 默认分支main
  • 大小1.0 MB
  • 更新3 周前
在 GitHub 打开
avatarBert-JanP

项目介绍

Bert-JanP/Hunting-Queries-Detection-Rules 是一个托管在 GitHub 上的开源项目,主要使用 Python 编写,采用 BSD 3-Clause "New" or "Revised" License 许可证,目前获得 1.8k 个 Star、325 次 Fork。

仓库全名
Bert-JanP/Hunting-Queries-Detection-Rules

README 摘要

KQL Sentinel & Defender queries KQL for Defender For Endpoint & Microsoft Sentinel The purpose of this repository is to share KQL queries that can be used by anyone and are understandable. These queries are intended to increase detection coverage through the logs of Microsoft Security products. Not all suspicious activities generate an alert by default, but many of those activities can be made detectable through the…

完整内容见 GitHub 原始 README 或本页 。

常见问题

Hunting-Queries-Detection-Rules 用什么语言开发?

主要使用 Python 编写,采用 BSD 3-Clause "New" or "Revised" License 许可证,目前有 1.8k 个 Star。

Hunting-Queries-Detection-Rules 可以免费商用吗?

仓库采用 BSD 3-Clause "New" or "Revised" License 许可证,可免费使用与修改,商业使用请遵守许可证条款(例如保留版权声明与许可声明)。

如何获取 Hunting-Queries-Detection-Rules 的源码?

可以直接克隆仓库:git clone https://github.com/Bert-JanP/Hunting-Queries-Detection-Rules.git,默认分支为 main;安装与运行步骤见仓库 README。

Hunting-Queries-Detection-Rules 最近还在维护吗?

仓库最近一次更新为 3 周前,当前没有未关闭的 Issue;Star 数为 1.8k,可作为社区活跃度的参考。

本页面展示项目元数据与原始 README,GitRead 中文社区 编辑团队负责选题收录。

相关仓库

public-apis/public-apis avatar
public-apispublic-apis
1 天前
497.4k
55.6k
2.6k

免费 API 汇总列表

apipublic-apisfree+7
Python
15.5 MB
7
详情
EbookFoundation/free-programming-books avatar
free-programming-booksEbookFoundation
1 天前
401.3k
67.5k
95

免费可获取的编程书籍

bookseducationhacktoberfest+2
Python
21.8 MB
3
详情
donnemartin/system-design-primer avatar
system-design-primerdonnemartin
9月15日
377.4k
57.4k
290

学习如何设计大规模系统。为系统设计面试做准备。包含 Anki 闪卡。

designdesign-patternsdesign-system+10
Python
11.0 MB
0
详情
vinta/awesome-python avatar
awesome-pythonvinta
21 小时前
333.5k
28.0k
0

回答“我想用 Python 做 X,该用哪个工具?”的权威清单

awesomeawesome-listpython+3
Python
6.9 MB
2
详情
practical-tutorials/project-based-learning avatar
project-based-learningpractical-tutorials
5 小时前
289.4k
36.2k
155

精选的项目实战教程列表

tutorialprojectbeginner-project+5
Python
472 KB
1
详情
NousResearch/hermes-agent avatar
hermes-agentNousResearch
4 分钟前
261.9k
58.3k
53.8k

与你共同成长的智能体

aiai-agentai-agents+10
Python
1.4 GB
3
详情
TheAlgorithms/Python avatar
PythonTheAlgorithms
6 天前
226.0k
51.3k
90

所有算法均用 Python 实现

algorithmalgorithm-competitionsalgorithms-implemented+11
Python
17.9 MB
2
详情
yt-dlp/yt-dlp avatar
yt-dlpyt-dlp
5 天前
206.4k
18.1k
2.8k

功能丰富的命令行音视频下载器

youtube-dlpythonsponsorblock+4
Python
63.5 MB
0
详情

关于

azureblueteamcybersecuritydefender-for-endpointdfirinfoseckqlmdemdimispsecuritysentinelthreat-huntingvulnerability-managementzero-day
  • BSD 3-Clause "New" or "Revised" License
  • 1.8k Stars
  • 325 Forks
  • 74 Watching

简要分析

热度分
2498
价值分
1169
活跃状态
活跃
GitHub

语言占比

Python

贡献者

Bert-JanPBert-JanPm4nbatm4nbatBaderAlrowaieiBaderAlrowaieierikgruettererikgruetterinodeeinodeebabakmhzbabakmhzcyb3rmik3cyb3rmik3WesSecWesSechong5151hong5151lawndoclawndocep3pep3pKorving-FKorving-F

KQL Sentinel & Defender queries

Tweet

██   ██  ██████  ██                                                                                     
██  ██  ██    ██ ██                                                                                     
█████   ██    ██ ██                                                                                     
██  ██  ██ ▄▄ ██ ██                                                                                     
██   ██  ██████  ███████                                                                                
            ▀▀                                                                                          
                                                                                                        
█  ██████  ██████  ██ ███    ██ ████████   ██  ██     ██ ███████ ██       ██████  ██████  ███    ███ ███████ ██
█  ██   ██ ██   ██ ██ ████   ██    ██          ██     ██ ██      ██      ██      ██    ██ ████  ████ ██      
█  ██████  ██████  ██ ██ ██  ██    ██          ██  █  ██ █████   ██      ██      ██    ██ ██ ████ ██ █████   
█  ██      ██   ██ ██ ██  ██ ██    ██          ██ ███ ██ ██      ██      ██      ██    ██ ██  ██  ██ ██      
█  ██      ██   ██ ██ ██   ████    ██           ███ ███  ███████ ███████  ██████  ██████  ██      ██ ███████ 

KQL for Defender For Endpoint & Microsoft Sentinel

The purpose of this repository is to share KQL queries that can be used by anyone and are understandable. These queries are intended to increase detection coverage through the logs of Microsoft Security products. Not all suspicious activities generate an alert by default, but many of those activities can be made detectable through the logs. These queries include Detection Rules, Hunting Queries and Visualisations. Anyone is free to use the queries. If you have any questions feel free to reach out to me on Twitter @BertJanCyber.

Presenting this material as your own is illegal and forbidden. A reference to Twitter @BertJanCyber or Github @Bert-JanP is much appreciated when sharing or using the content.

KQL Blogs

More detailed KQL information can be found on my blog page: https://kqlquery.com. Some KQL related blogs:

  • KQL Functions For Security Operations
  • KQL Functions For Network Operations
  • Incident Response Part 1: IR on Microsoft Security Incidents (KQL edition)
  • Incident Response Part 2: What about the other logs?
  • From Threat Report to (KQL) Hunting Query
  • Prioritize Vulnerabilities Using The CISA Known Exploited Vulnerabilities Catalog
  • KQL Security Sources - 2024 Update
  • Detecting Post-Exploitation Behaviour
  • Investigating Microsoft Graph Activity Logs
  • Audit Defender XDR Activities
  • Use Cases For Sentinel Summary Rules
  • Unleash The Power Of DeviceTvmInfoGathering

For Sentinel Automations see the Repository Sentinel-Automation.

KQL Categories

The queries in this repository are split into different categories. The MITRE ATT&CK category contains a list of queries mapped to the tactics of the MITRE Framework. The product section contains queries specific to Microsoft security products. The Processes section contains several queries that can be used in common cyber processes to make things easier for security analysts. In addition, there is a special category for Zero Day detections. Lastly, there is an informational section that explains the use of KQL using examples.

MITRE ATT&CK

  • MITRE ATT&CK Mapping

Products

  • Defender For Endpoint detection rules
  • Defender For Identity detection rules
  • Defender For Cloud Apps detection rules
  • Defender For Office 365
  • Defender XDR
  • Azure Active Directory
  • Microsoft Sentinel
  • MISP
  • Windows Security Events
  • Graph API
  • Windows Security Events

Security Processes

  • Digital Forensics and Incident Response
  • Threat Hunting
  • Full Threat Hunting Cases
  • Vulnerability Management

Informational

  • KQL helpful functions
  • KQL Regex Example List
  • Azure Resource Graph

Contributions

Everyone can submit contributions to this repository via a Pull Request. If you want to contribute the Detection Template needs to be used. Besides that the query needs to be able to run and be readable. To give credit where credit is due the top contributors are listed in the Top Contributors section.

Top contributors

Name Queries added GitHub Twitter Query Links
Gavin Knapp 10 @m4nbat @knappresearchlb
  • NetSupport running from unexpected directory (FIN7)
  • Abusing PowerShell to disable Defender components
  • Suspicious network connection from MSBuild
  • PowerShell Encoded Command
  • PowerShell Launching Scripts From WindowsApps Directory (FIN7)
  • Azure ARC Related Persistence Detection
  • Scattered Spider Defense Evasion via Conditional Access Policies Detection
  • Check for Phishing Emails Using IPFS in Phishing Campaigns
  • Kerberos attacks
  • PowerShell Creating LNK Files within a Startup Directory Detection
  • Ransomware Leaksite Monitoring
Alex Teixeira 4 @inodee @ateixei
  • Rare_Outgoing_IPv4_Connections
  • Detect Known RAT RMM Process Patterns
  • NTDS.DIT File Modifications
  • Custom Detection Report
Babak Mahmoodizadeh 2 @babakmhz @Babakmhz
  • WebShell Detection
  • List AD Delegations
Deepak Kumar Ray 1 @roydeepakku
  • CEF MultiSource IP
Guy Sukerman 1 @guys1444
  • Anomalous Amount of URLClickEvents
ch4meleon 1 -
  • PowerShell Executions From Clipboard

Detection Template

The Detection Template can be used to standardize the detections in your own repository. This could help others to easily parse the content of the repository to collect the query and the metadata. The following repositories have already been standardized in this manner:

  • https://github.com/alexverboon/Hunting-Queries-Detection-Rules - By Alex Verboon
  • https://github.com/KustoKing/Hunting-Queries-Detection-Rules - By Gianni Castaldi
  • https://github.com/SlimKQL/Hunting-Queries-Detection-Rules - By Steven Lim
  • https://github.com/SecurityAura/DE-TH-Aura - By SecurityAura
  • https://github.com/m4nbat/KustQueryLanguage_kql - By m4nbat

If your repository is not yet listed, feel free to create a pull request (PR) or reach out via message to have it added.

Where to use KQL in Defender For Endpoint & Sentinel?

Defender XDR

  • Open security.microsoft.com
  • Hunting
  • Advanced Hunting

Sentinel

  • Open portal.azure.com
  • Search for Sentinel
  • Open Sentinel
  • Logs

KQL Defender For Endpoint vs Sentinel

KQL queries can be used in both Defender For Endpoint and Azure Sentinel. The syntax is almost the same. The main difference is the field that indicates the time. It must be adjusted according to the product used. In Sentinel, the ‘TimeGenerated’ field is used. In DFE it is ‘Timestamp’. The queries below show both in DFE and in Azure Sentinel 10 DeviceEvents of the last 7 days.

Quickstart Defender For Endpoint

DeviceEvents
| where Timestamp > ago(7d)
| take 10

Quickstart Azure Sentinel

DeviceEvents
| where TimeGenerated > ago(7d)
| take 10

KQL Sources

Documentation

Link Description
KQL Quick Reference Guide KQL Quick Reference Guide
KQL Tutorial KQL Tutorial
KQL Cheat Sheet PDF KQL Cheat Sheet

Respostiories

The community respostiories are available here

Other

Link Description
kqlsearch.com KQL Search Engine
Kusto Insights Newsletter Kusto Insights newsletter
The Definitive Guide to KQL Using Kusto Query Language for Operations, Defending, and Threat Hunting
Kusto Query Internals Hunting TTPs with Azure Sentinel
Microsoft Sentinel Analytics Rules Microsoft Sentinel Analytics Rules
KQL Internals Kusto Query Internals: Hunting TTPs with Azure Sentinel
Advanced Hunting Expert Training Advanced Hunting Expert Training

评论

登录 后发表评论
暂无评论
GitRead 中文社区
深度解读 · 趋势洞察 · 价值精选

关于

关于我们联系我们编辑准则收录标准赞赏人员

发现

技术趋势新手训练营资源精选实战指南精选专题热门话题GitHub 文档

条款

隐私政策服务条款网站地图
26.9万收录项目
5万中文话题
155精选专题
发现技术价值,连接开源智慧
© 2026 GitRead · GitHub 中文社区 本站与 GitHub, Inc. 无隶属关系;GitHub 是 GitHub, Inc. 的商标。