Entra ID Sign-in BloodHound Suite User-Agent Detected
Description
Identifies potential enumeration activity using AzureHound, SharpHound, or BloodHound across Microsoft cloud services. These tools are often used by red teamers and adversaries to map users, groups, roles, applications, and access relationships within Microsoft Entra ID (Azure AD) and Microsoft 365.
Query · eql
any where data_stream.dataset : (
"azure.activitylogs",
"azure.graphactivitylogs",
"azure.auditlogs",
"azure.signinlogs",
"o365.audit"
) and user_agent.original regex~ "(azure|sharp|blood)(hound)/.*"
Known false positives
- Legitimate administrative or security assessment activities may use these user-agents, especially in environments where BloodHound is employed for authorized audits. If this is expected behavior, consider adjusting the rule or adding exceptions for specific user-agents or IP addresses.
- Expected red team assessments or penetration tests may utilize BloodHound tools to evaluate the security posture of Azure or Microsoft 365 environments. If this is expected behavior, consider adjusting the rule or adding exceptions for specific IP addresses, registered applications, JWT tokens, PRTs or user principal names (UPNs).
Analyst notes
This rule identifies potential enumeration activity using AzureHound, SharpHound, or BloodHound across Microsoft cloud services. These tools are often used by red teamers and adversaries to map users, groups, roles, applications, and access relationships within Microsoft Entra ID (Azure AD) and Microsoft 365.
The detection is based on known enumeration patterns, particularly the presence of suspicious user agent strings (e.g., azurehound/, sharphound/, bloodhound/) in various Azure and M365 logs. The rule monitors multiple log sources, including:
- Azure Graph API Activity Logs
- Microsoft 365 Audit Logs
- Entra ID Sign-in Logs
- Entra ID Audit Logs
- Azure Activity Logs
This ensures broader detection of credential abuse, token misuse, or unauthorized identity discovery activity from both interactive and non-interactive (API) sessions.
Possible investigation steps
- Confirm the tool used via
user_agent.original. Look for:azurehound/x.y.zbloodhound/1.0sharphound/1.0
- Examine
url.originalorurl.pathto determine which APIs were accessed if Graph API activity logs. For example:/v1.0/organization,/v1.0/users,/v1.0/groupsmay indicate user/group/tenant discovery.
- Identify the
user.id,user.name, orazure.auditlogs.properties.initiated_by.user.user_principal_namefields to determine which identity executed the API request. - Review
app_id,app_display_name, orclient_idto identify the application context (e.g., Azure CLI, Graph Explorer, unauthorized app). - Check
http.request.method,http.response.status_code, andevent.actionfor enumeration patterns (many successful GETs in a short period) if Graph API activity logs. - Investigate correlated sign-ins (
azure.signinlogs) by the same user, IP, or app immediately preceding the API calls. Was MFA used? Is the location suspicious? - Review
source.ip,client.geo.*, andnetwork.*fields to determine the origin of the requests. Flag unexpected IPs or ISPs. - If the event originates in M365 Audit Logs, investigate cross-service activity: Exchange Online, Teams, SharePoint, or role escalations via Unified Audit.
False positive analysis
- This activity may be benign if performed by red teams, internal security auditors, or known security tools under authorization.
- Automated monitoring solutions, cloud posture scanners, or legitimate Azure/M365 integrations may generate similar traffic. Review the
app_idand user context. - Developer activity in test tenants may include tool usage for learning or validation purposes.
Response and remediation
-
If confirmed malicious:
- Revoke active sessions or tokens associated with the identified user/app.
- Disable the account or rotate credentials immediately.
- Review the role assignments (
Directory.Read.All,AuditLog.Read.All,Directory.AccessAsUser.All) and remove excessive privileges. - Conduct historical analysis to determine how long enumeration has been occurring and what objects were queried.
- Enable Conditional Access policies to require MFA for API and CLI-based access.
- Validate audit logging and alerting is enabled across Microsoft Graph, Azure Activity Logs, and M365 workloads.
-
If legitimate:
- Document the source (e.g., red team operation, security tool).
- Add appropriate allowlist conditions for service principal, user, source address or device if policy allows.