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-dd7798cf-c4f5-4114-ad0f-beacd9a33708
name: O365 Email Send and Hard Delete Exfiltration Behavior
description: The following analytic identifies when an O365 email account sends and
then hard deletes an email to an external recipient within a short period (within
1 hour). This behavior may indicate a compromised account where the threat actor
is attempting to remove forensic artifacts or evidence of exfiltration activity.
This behavior is often seen when threat actors want to reduce the probability of
detection by the compromised account owner.
severity: medium
enabled: false
tags:
mitre:
- T1114.001
- T1070.008
- T1485
categories:
- cloud
references:
- https://attack.mitre.org/techniques/T1114/
- https://www.hhs.gov/sites/default/files/help-desk-social-engineering-sector-alert-tlpclear.pdf
- https://intelligence.abnormalsecurity.com/attack-library/threat-actor-convincingly-impersonates-employee-requesting-direct-deposit-update-in-likely-ai-generated-attack
logsource:
product: splunk
detection:
splunk_spl: "`o365_messagetrace` Status=Delivered\n| eval mailtime = _time\n| bin\
\ _time span=1hr\n| eval user = lower(SenderAddress), recipient = lower(RecipientAddress)\n\
| eval InternetMessageId = lower(MessageId)\n| join InternetMessageId, user, max=0\n\
\ [\n | search `o365_management_activity` Workload=Exchange (Operation IN (\"\
Send*\")) OR (Operation IN (\"HardDelete\") AND Folder.Path IN (\"\\\\Sent Items\"\
,\"\\\\Recoverable Items\\\\Deletions\"))\n | eval user = lower(UserId), sender\
\ = lower(CASE(isnotnull(SendAsUserSmtp),SendAsUserSmtp,isnotnull(SendOnBehalfOfUserSmtp),SendOnBehalfOfUserSmtp,true(),MailboxOwnerUPN)),\
\ subject = trim(CASE(Operation IN (\"Send\",\"SendAs\",\"SendOnBehalf\"),'Item.Subject',Operation\
\ IN (\"SoftDelete\",\"HardDelete\"),'AffectedItems{}.Subject')), -time = _time,file_name\
\ = CASE(Operation IN (\"Send\",\"SendAs\",\"SendOnBehalf\"),split('Item.Attachments',\"\
; \"),Operation IN (\"SoftDelete\",\"HardDelete\"),split('AffectedItems{}.Attachments',\"\
; \")), file_size = CASE(Operation IN (\"Send\",\"SendAs\",\"SendOnBehalf\"),round(tonumber('Item.SizeInBytes')/1024/1024,2),true(),round(tonumber(replace(file_name,\
\ \"(.+)\\s\\((\\d+)(b\\)$)\", \"\\2\"))/1024/1024,2)), InternetMessageId = lower('Item.InternetMessageId')\n\
\ | eval sendtime = CASE(Operation IN (\"Send\",\"SendAs\",\"SendOnBehalf\"),_time)\n\
\ | eval deltime = CASE(Operation IN (\"SoftDelete\",\"HardDelete\"),_time)\n\
\ | bin _time span=1hr\n | stats values(sender) as sender, values(ClientInfoString)\
\ as http_user_agent, values(InternetMessageId) as InternetMessageId, values(file_name)\
\ as file_name, sum(file_size) as file_size, values(sendtime) as firstTime, values(deltime)\
\ as lastTime values(Operation) as signature, dc(Operation) as opcount, count\
\ by _time,subject,user\n | where opcount > 1 AND firstTime < lastTime\n ]\n\
| stats values(sender) as sender, values(http_user_agent) as http_user_agent,\
\ values(signature) as signature, values(file_name) as file_name, sum(file_size)\
\ as file_size, min(firstTime) as firstTime, max(lastTime) as lastTime count\
\ by subject,user,recipient,Organization\n| eval externalRecipient = if(match(lower(recipient),mvindex(split(lower(Organization),\"\
.\"),0)),0,1)\n| where externalRecipient = 1\n| `security_content_ctime(firstTime)`\n\
| `security_content_ctime(lastTime)`\n| `o365_email_send_and_hard_delete_exfiltration_behavior_filter`"
provenance:
source: splunk/security_content
source_id: dd7798cf-c4f5-4114-ad0f-beacd9a33708
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_email_send_and_hard_delete_exfiltration_behavior.yml
notes:
splunk_status: production
splunk_data_source: []
quarantine_reason: raw SPL — needs translation to AiSOC detection schema