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-fddad083-cdf5-419d-83c6-baa85e329595
name: O365 Mail Permissioned Application Consent Granted by User
description: The following analytic identifies instances where a user grants consent
to an application requesting mail-related permissions within the Office 365 environment.
It leverages O365 audit logs, specifically focusing on events related to application
permissions and user consent actions. This activity is significant as it can indicate
potential security risks, such as data exfiltration or spear phishing, if malicious
applications gain access. If confirmed malicious, this could lead to unauthorized
data access, email forwarding, or sending malicious emails from the compromised
account. Validating the legitimacy of the application and consent context is crucial
to prevent data breaches.
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: '`o365_management_activity` Workload=AzureActiveDirectory Operation="Consent
to application." ResultStatus=Success | eval admin_consent =mvindex(''ModifiedProperties{}.NewValue'',0)
| search admin_consent=False | eval permissions =mvindex(''ModifiedProperties{}.NewValue'',4)
| rex field=permissions "Scope:(?<Scope>[^,]+)" | makemv delim=" " Scope | search
Scope IN ("Mail.Read", "Mail.ReadBasic", "Mail.ReadWrite", "Mail.Read.Shared",
"Mail.ReadWrite.Shared", "Mail.Send", "Mail.Send.Shared") | fillnull | stats count
min(_time) as firstTime max(_time) as lastTime values(Scope) as Scope by signature
dest user src vendor_account vendor_product object ObjectId | `security_content_ctime(lastTime)`
| `o365_mail_permissioned_application_consent_granted_by_user_filter`'
provenance:
source: splunk/security_content
source_id: fddad083-cdf5-419d-83c6-baa85e329595
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/o365_mail_permissioned_application_consent_granted_by_user.yml
notes:
splunk_status: production
splunk_data_source: []
quarantine_reason: raw SPL — needs translation to AiSOC detection schema