Name:O365 Mailbox Inbox Folder Shared with All Users id:21421896-a692-4594-9888-5faeb8a53106 version:3 date:2024-09-30 author:Mauricio Velazco, Splunk status:production type:TTP Description:The following analytic detects instances where the inbox folder of an Office 365 mailbox is shared with all users within the tenant. It leverages Office 365 management activity events to identify when the 'Inbox' folder permissions are modified to include 'Everyone' with read rights. This activity is significant as it represents a potential security risk, allowing unauthorized access to sensitive emails. If confirmed malicious, this could lead to data breaches, exfiltration of confidential information, and further compromise through spear-phishing or other malicious activities based on the accessed email content. Data_source:
how_to_implement:You must install the Splunk Microsoft Office 365 Add-on and ingest Office 365 management activity events. known_false_positives:Administrators might temporarily share a mailbox with all users for legitimate reasons, such as troubleshooting, migrations, or other administrative tasks. Some organizations use shared mailboxes for teams or departments where multiple users need access to the same mailbox. Filter as needed. References: -https://attack.mitre.org/techniques/T1114/002/ -https://www.mandiant.com/sites/default/files/2022-08/remediation-hardening-strategies-for-m365-defend-against-apt29-white-paper.pdf -https://www.blackhillsinfosec.com/abusing-exchange-mailbox-permissions-mailsniper/ -https://learn.microsoft.com/en-us/purview/audit-mailboxes -https://learn.microsoft.com/en-us/openspecs/exchange_server_protocols/ms-oxodlgt/5610c6e6-3268-44e3-adff-8804f5315946 drilldown_searches: name:'View the detection results for - "$MailboxOwnerUPN$"' search:'%original_detection_search% | search MailboxOwnerUPN = "$MailboxOwnerUPN$"' earliest_offset:'$info_min_time$' latest_offset:'$info_max_time$' name:'View risk events for the last 7 days for - "$MailboxOwnerUPN$"' search:'| from datamodel Risk.All_Risk | search normalized_risk_object IN ("$MailboxOwnerUPN$") starthoursago=168 | stats count min(_time) as firstTime max(_time) as lastTime values(search_name) as "Search Name" values(risk_message) as "Risk Message" values(analyticstories) as "Analytic Stories" values(annotations._all) as "Annotations" values(annotations.mitre_attack.mitre_tactic) as "ATT&CK Tactics" by normalized_risk_object | `security_content_ctime(firstTime)` | `security_content_ctime(lastTime)`' earliest_offset:'$info_min_time$' latest_offset:'$info_max_time$' tags: analytic_story: - 'Office 365 Persistence Mechanisms' asset_type:O365 Tenant confidence:70 impact:80 message:Inbox folder for the $MailboxOwnerUPN$ mailbox was shared with all users. mitre_attack_id: - 'T1114' - 'T1114.002' observable: name:'MailboxOwnerUPN' type:'User' - role: - 'Victim' product: - 'Splunk Enterprise' - 'Splunk Enterprise Security' - 'Splunk Cloud' risk_score:56 required_fields: - '_time' - 'Operation' - 'Workload' - 'object' - 'Item.ParentFolder.MemberUpn' - 'Item.ParentFolder.MemberRights' - 'UserId' - 'MailboxOwnerUPN' security_domain:access