Open-source AI Security Operations Center: alert fusion, LLM-agent triage, MITRE ATT&CK investigation, and a replayable decision ledger for every agent step. Self-hostable, runs with no API keys, MIT licensed. Ships an MCP server for Claude, Cursor and Continue.
Python agentic-aiai-securityalert-triageblue-teamcybersecuritydetection-engineeringincident-responselanggraphllm-agentsmcpmitre-attackmodel-context-protocolpurple-teamsecurity-operationsself-hostedsiemsoarsocthreat-detectionthreat-intelligence
id: splunk-security-content-bb093c30-d860-4858-a56e-cd0895d5b49c
name: Azure AD User Consent Denied for OAuth Application
description: The following analytic identifies instances where a user has denied consent
to an OAuth application seeking permissions within the Azure AD environment. This
detection leverages Azure AD's audit logs, specifically focusing on user consent
actions with error code 65004. Monitoring denied consent actions is significant
as it can indicate users recognizing potentially suspicious or untrusted applications.
If confirmed malicious, this activity could suggest attempts by unauthorized applications
to gain access, potentially leading to data breaches or unauthorized actions within
the environment. Understanding these denials helps refine security policies and
enhance user awareness.
severity: medium
enabled: false
tags:
mitre:
- T1528
categories:
- cloud
references:
- https://attack.mitre.org/techniques/T1528/
- https://www.microsoft.com/en-us/security/blog/2022/09/22/malicious-oauth-applications-used-to-compromise-email-servers-and-spread-spam/
- https://learn.microsoft.com/en-us/azure/active-directory/manage-apps/protect-against-consent-phishing
- https://learn.microsoft.com/en-us/defender-cloud-apps/investigate-risky-oauth
- https://www.alteredsecurity.com/post/introduction-to-365-stealer
- https://github.com/AlteredSecurity/365-Stealer
logsource:
product: splunk
detection:
splunk_spl: "`azure_monitor_aad` operationName=\"Sign-in activity\" properties.status.errorCode=65004\n\
\ | rename properties.* as *\n | fillnull\n | stats count min(_time) as firstTime\
\ max(_time) as lastTime\n BY dest user src\n vendor_account vendor_product\
\ appDisplayName\n status.failureReason signature\n | `security_content_ctime(firstTime)`\n\
\ | `security_content_ctime(lastTime)`\n | `azure_ad_user_consent_denied_for_oauth_application_filter`"
provenance:
source: splunk/security_content
source_id: bb093c30-d860-4858-a56e-cd0895d5b49c
source_commit: 4d4c7ee
license: Apache-2.0
license_url: https://github.com/splunk/security_content/blob/develop/LICENSE
imported_at: '2026-05-04'
imported_by: splunk_importer
upstream_path: detections/cloud/azure_ad_user_consent_denied_for_oauth_application.yml
notes:
splunk_status: production
splunk_data_source: []
quarantine_reason: raw SPL — needs translation to AiSOC detection schema