Sentinel Queries

该项目提供了一系列KQL查询,用于检测Azure AD租户中与BloodHound BARK工具包相关的滥用行为。这些查询旨在识别BARK模拟的行为,而非工具本身的使用。内容包括针对不同BARK功能的检测查询、控制建议以及相关资源链接。
2分
14

What is BARK Detection?

These detection queries help identify suspicious activities in Azure AD that could indicate privilege escalation attempts, similar to what the BARK toolkit can perform. They monitor for actions like password resets, credential additions, role assignments and other sensitive operations.

How to Use These Detections?

The queries should be run in Microsoft Sentinel or Log Analytics against your Azure AD logs. It's recommended to first test them in your environment to tune for accuracy.

When to Use These Detections?

Use these queries for continuous monitoring of your Azure AD environment, especially if you have privileged users/service principals or want to detect potential compromise.

Key Detection Capabilities

Password Reset DetectionIdentifies password reset operations performed via PowerShell which could indicate compromise.
Application Secret CreationDetects when new credentials are added to application objects.
Role Assignment MonitoringTracks when users or service principals are added to privileged roles.
Ownership ChangesMonitors for changes to owners of applications and service principals.

Strengths and Limitations

Strengths
Provides visibility into potential privilege escalation paths
Covers both user and service principal activities
Uses native Azure AD logs requiring no additional instrumentation
Helps detect abuse of legitimate tools and permissions
Limitations
May generate false positives in environments with legitimate automation
Requires tuning to match your specific environment
Only detects actions after they occur (not preventive)
Some legitimate admin activities may appear similar to malicious ones

Implementation Guide

Set up logging
Ensure Azure AD logs are being collected in your Log Analytics workspace.
Test queries
Run the detection queries against your environment to establish baselines.
Create alerts
Configure alerts for suspicious activities in Microsoft Sentinel.
Implement controls
Apply the recommended prevention controls from the documentation.

Detection Scenarios

Detecting Application Secret CreationMonitoring when new credentials are added to applications, which could allow attackers to persist in the environment.
Identifying Suspicious Role AssignmentsDetecting when service principals are added to privileged roles, which could indicate privilege escalation.

Frequently Asked Questions

Are these queries specific to the BARK toolkit?
How often should I run these detection queries?
What permissions do I need to use these detections?
How can I reduce false positives?

Additional Resources

BloodHound BARK GitHub
The official BARK toolkit repository
Azure AD Privilege Escalation Detection
Blog post on detecting Azure AD privilege escalation
Microsoft Azure AD Documentation
Official Microsoft documentation for Azure Active Directory
安装
复制以下命令到你的Client进行配置
注意:您的密钥属于敏感信息,请勿与任何人分享。
Agentic Radar
Agentic Radar是一个用于分析和评估代理系统的安全扫描工具,帮助开发者、研究人员和安全专家理解代理系统的工作流程并识别潜在漏洞。
Python
560
5分
MCP Scan
MCP-Scan是一款针对MCP服务器的安全扫描工具,用于检测提示注入、工具污染和跨域升级等常见安全漏洞。
Python
623
5分
Edgeone Pages MCP Server
EdgeOne Pages MCP是一个通过MCP协议快速部署HTML内容到EdgeOne Pages并获取公开URL的服务
TypeScript
324
4.8分
Kubernetes
一个基于Kubernetes的MCP服务器,用于管理和操作Kubernetes集群
TypeScript
533
5分
Awslabs Cost Analysis MCP Server
AWS MCP Servers是一套基于Model Context Protocol的专用服务器,提供多种AWS相关功能,包括文档检索、知识库查询、CDK最佳实践、成本分析、图像生成等,旨在通过标准化协议增强AI应用与AWS服务的集成。
Python
2.6K
5分
MCP K8s Go
一个基于Golang的MCP服务器,用于连接Kubernetes集群,提供资源查询和操作功能。
Go
300
4分
Ida Pro MCP
已认证
IDA Pro MCP是一个用于逆向工程的服务器插件,通过MCP协议与客户端工具交互,提供函数分析、注释修改、变量重命名等功能,支持多种MCP客户端如Cline、Roo Code等。
Python
1.7K
5分
Solon
Solon是一个高效、开放、生态友好的Java企业级应用开发框架,支持全场景开发,具有高性能、低内存消耗、快速启动和小体积打包等特点,兼容Java8至Java24及GraalVM原生运行时。
Java
2.5K
5分
精选MCP服务推荐
Duckduckgo MCP Server
已认证
DuckDuckGo搜索MCP服务器,为Claude等LLM提供网页搜索和内容抓取服务
Python
972
4.3分
Firecrawl MCP Server
Firecrawl MCP Server是一个集成Firecrawl网页抓取能力的模型上下文协议服务器,提供丰富的网页抓取、搜索和内容提取功能。
TypeScript
4.1K
5分
Figma Context MCP
Framelink Figma MCP Server是一个为AI编程工具(如Cursor)提供Figma设计数据访问的服务器,通过简化Figma API响应,帮助AI更准确地实现设计到代码的一键转换。
TypeScript
6.8K
4.5分
Edgeone Pages MCP Server
EdgeOne Pages MCP是一个通过MCP协议快速部署HTML内容到EdgeOne Pages并获取公开URL的服务
TypeScript
324
4.8分
Exa Web Search
已认证
Exa MCP Server是一个为AI助手(如Claude)提供网络搜索功能的服务器,通过Exa AI搜索API实现实时、安全的网络信息获取。
TypeScript
1.9K
5分
Baidu Map
已认证
百度地图MCP Server是国内首个兼容MCP协议的地图服务,提供地理编码、路线规划等10个标准化API接口,支持Python和Typescript快速接入,赋能智能体实现地图相关功能。
Python
821
4.5分
Minimax MCP Server
MiniMax Model Context Protocol (MCP) 是一个官方服务器,支持与强大的文本转语音、视频/图像生成API交互,适用于多种客户端工具如Claude Desktop、Cursor等。
Python
901
4.8分
Context7
Context7 MCP是一个为AI编程助手提供实时、版本特定文档和代码示例的服务,通过Model Context Protocol直接集成到提示中,解决LLM使用过时信息的问题。
TypeScript
5.4K
4.7分
AIbase
智启未来,您的人工智能解决方案智库
简体中文