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.3 KB
Raw Blame
id: splunk-security-content-80b44ae2-60ff-43f1-8e56-34beb49a340a
name: O365 Exfiltration via File Access
description: The following analytic detects when an excessive number of files are
  access from o365 by the same user over a short period of time. A malicious actor
  may abuse the "open in app" functionality of SharePoint through scripted or Graph
  API based access to evade triggering the FileDownloaded Event. This behavior may
  indicate an attacker staging data for exfiltration or an insider threat removing
  organizational data. Additional attention should be take with any Azure Guest (#EXT#)
  accounts.
severity: medium
enabled: false
tags:
  mitre:
  - T1567
  - T1530
  categories:
  - cloud
references:
- https://attack.mitre.org/techniques/T1567/exfil
- https://www.varonis.com/blog/sidestepping-detection-while-exfiltrating-sharepoint-data
- https://thedfirjournal.com/posts/m365-data-exfiltration-rclone/
logsource:
  product: splunk
detection:
  splunk_spl: '`o365_management_activity` Operation IN ("fileaccessed") UserId!=app@sharepoint
    NOT SourceFileExtension IN (bmp,png,jpeg,jpg)

    | eval user = replace(mvindex(split(lower(UserId),"#ext#"),0),"_","@"), user_flat
    = replace(UserId, "[^A-Za-z0-9]","_")

    | where NOT match(SiteUrl,user_flat)

    | stats values(user) as user, latest(ClientIP) as src values(ZipFileName) as file_name,
    values(Operation) as signature, values(UserAgent) as http_user_agent, dc(SourceFileName)
    as count, min(_time) as firstTime, max(_time) as lastTime by Workload,UserId,SiteUrl

    | eventstats avg(count) as avg stdev(count) as stdev by Workload

    | rename SiteUrl as file_path,Workload as app

    | where count > 50 AND count > (avg + (3*(stdev)))

    | `security_content_ctime(firstTime)`

    | `security_content_ctime(lastTime)`

    | `o365_exfiltration_via_file_access_filter`'
provenance:
  source: splunk/security_content
  source_id: 80b44ae2-60ff-43f1-8e56-34beb49a340a
  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_exfiltration_via_file_access.yml
notes:
  splunk_status: production
  splunk_data_source: []
  quarantine_reason: raw SPL — needs translation to AiSOC detection schema