Skip to content

armgit / AiSOC

Public Imported from GitHub
0

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.

2.8 KB
Raw Blame
id: splunk-security-content-8a1b22eb-50ce-4e26-a691-97ff52349569
name: O365 Admin Consent Bypassed by Service Principal
description: The following analytic identifies instances where a service principal
  in Office 365 Azure Active Directory assigns app roles without standard admin consent.
  It leverages `o365_management_activity` logs, specifically focusing on the 'Add
  app role assignment to service principal' operation. This activity is significant
  for SOCs as it may indicate a bypass of critical administrative controls, potentially
  leading to unauthorized access or privilege escalation. If confirmed malicious,
  this could allow an attacker to misuse automated processes to assign sensitive permissions,
  compromising the security of the environment.
severity: medium
enabled: false
tags:
  mitre:
  - T1098.003
  categories:
  - cloud
references:
- https://attack.mitre.org/techniques/T1098/003/
- https://msrc.microsoft.com/blog/2024/01/microsoft-actions-following-attack-by-nation-state-actor-midnight-blizzard/
- https://www.microsoft.com/en-us/security/blog/2024/01/25/midnight-blizzard-guidance-for-responders-on-nation-state-attack/
- https://attack.mitre.org/techniques/T1098/002/
- https://www.microsoft.com/en-us/security/blog/2024/01/25/midnight-blizzard-guidance-for-responders-on-nation-state-attack/
- https://winsmarts.com/how-to-grant-admin-consent-to-an-api-programmatically-e32f4a100e9d
logsource:
  product: splunk
detection:
  splunk_spl: '`o365_management_activity` Workload=AzureActiveDirectory Operation="Add
    app role assignment to service principal." | eval len=mvcount(''Actor{}.ID'')
    | eval userType = mvindex(''Actor{}.ID'',len-1) | eval roleId = mvindex(''ModifiedProperties{}.NewValue'',
    0) | eval roleValue = mvindex(''ModifiedProperties{}.NewValue'', 1) | eval roleDescription
    = mvindex(''ModifiedProperties{}.NewValue'', 2) | eval dest_user = mvindex(''Target{}.ID'',
    0) | search userType = "ServicePrincipal" | eval src_user = user | fillnull |
    stats count min(_time) as firstTime max(_time) as lastTime by signature dest user
    src vendor_account vendor_product dest_user roleId roleValue roleDescription |
    `security_content_ctime(firstTime)` | `security_content_ctime(lastTime)` | `o365_admin_consent_bypassed_by_service_principal_filter`'
provenance:
  source: splunk/security_content
  source_id: 8a1b22eb-50ce-4e26-a691-97ff52349569
  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_admin_consent_bypassed_by_service_principal.yml
notes:
  splunk_status: production
  splunk_data_source: []
  quarantine_reason: raw SPL — needs translation to AiSOC detection schema