Thx
When I check Exchange message tracking log fields (https://technet.microsoft.com/en-us/library/cc539064.aspx), recipient-count is listed as a field. Unfortunately, pulling the logs from the O365 service, this is a field that is not offered.
I'm trying to adapt and apply the search shown in the .conf2016 presentation, "Detecting the Adversary Post-Compromise with Threat Models and Behavioral Analytics" (around the 31 min mark) to look for anomalies. Search is as follows:
sourcetype="MSExchange"2010:MessageTracking" sender="
[email protected]" recipient_count!=NONE
| dedup message_id sortby _time
| table _time directionality sender recipient message_subject message_id recipient_count total_bytes
| timecahrt sum(recipient_count) as daily_total span=1d
| eventstats median(daily_total) AS median, p25(daily_total) as p25, p75(daily_total) as p75, mean(daily_total) as mean
| eval iqr = p75 - p25
| eval xplier = 2
| eval low_lim = median - (iqr * xplier)
| eval high_lim = median + (iqr * xplier)
| eval anomaly = if(daily_total<low_lim OR daily_total > high_lim, daily_total,0)
| table _time daily_total anomaly
Thx again
... View more