Skip to content

O365

Overview

Office 365 is a line of subscription services offered by Microsoft as part of the Microsoft Office product line.

Benefit from SEKOIA.IO built-in rules and upgrade Office 365 with the following detection capabilities out-of-the-box.

SEKOIA.IO x Office 365 on ATT&CK Navigator

Account Added To A Security Enabled Group

Detection in order to investigate who has added a specific Domain User in Domain Admins or Group Policy Creator Owners (Security event 4728)

  • Effort: master
Account Removed From A Security Enabled Group

Detection in order to investigate who has removed a specific Domain User in Domain Admins or Group Policy Creator Owners (Security event 4729)

  • Effort: master
CVE-2020-0688 Microsoft Exchange Server Exploit

Detects the exploitation of CVE-2020-0688. The POC exploit a .NET serialization vulnerability in the Exchange Control Panel (ECP) web page. The vulnerability is due to Microsoft Exchange Server not randomizing the keys on a per-installation basis resulting in them using the same validationKey and decryptionKey values. With knowledge of these, values an attacker can craft a special viewstate to use an OS command to be executed by NT_AUTHORITY\SYSTEM using .NET deserialization. To exploit this vulnerability, an attacker needs to leverage the credentials of an account it had already compromised to authenticate to OWA.

  • Effort: elementary
CVE-2021-20021 SonicWall Unauthenticated Administrator Access

Detects the exploitation of SonicWall Unauthenticated Admin Access.

  • Effort: advanced
CVE-2021-20023 SonicWall Arbitrary File Read

Detects Arbitrary File Read, which can be used with other vulnerabilities as a mean to obtain outputs generated by attackers, or sensitive data.

  • Effort: advanced
Covenant Default HTTP Beaconing

Detects potential Covenant communications through the user-agent and specific urls

  • Effort: intermediate
Domain Trust Created Or Removed

A trust was created or removed to a domain. An attacker could perform that in order to do lateral movement easily between domains or shutdown the ability of two domains to communicate.

  • Effort: advanced
Failed Logon Source From Public IP Addresses

A login from a public IP can indicate a misconfigured firewall or network boundary. The sekoia.tags are used to filter internal Ipv4 addresses (10.0.0.0/8 172.16.0.0/12 127.0.0.0/8 169.254.0.0/16 192.168.0.0/16).

  • Effort: master
Local Account Deleted

Detects local user deletion

  • Effort: master
Office 365 Anti-Phishing Policy Deletion

Detects when the anti-phishing policy is removed from Office 365. By default, Office 365 includes built-in features that help protect users from phishing attacks. This policy specifies the phishing protections to enable or disable, and the actions to apply options.

  • Effort: master
Office 365 Anti-Phishing Rule Deletion

Detects the deactivation of the anti-phishing rule from Office 365. The anti-phishing rule specifies the priority and recipient filters (who the policy applies to) for an anti-phish policy.

  • Effort: master
Office 365 AtpDetection

Detects when an AtpDetection (Advanced Threat Protection) event from the Office365 ThreatIntelligence service is raised. AtpDetection is a service which secures emails, attachments, and files by scanning them for threats.

  • Effort: intermediate
Office 365 DLP Policy Removed

Detects when a DLP (Data Loss Prevention) policy is removed in Office 365. DLP policies defines which resources can be shared and with whom, preventing sensitive information from being leaked.

  • Effort: master
Office 365 MCAS Detection Velocity

Detects when Microsoft Cloud App Security identifies two user activities (a single or multiple sessions) originating from geographically distant locations within a time period shorter than the time it would have taken the user to travel from the first location to the second. To use this feature, you must have an Office 365 E5 license (https://docs.microsoft.com/en-us/defender-cloud-apps/get-started?culture=fr-fr&country=FR).

  • Effort: master
Office 365 MCAS Inbox Hiding

Detects when Microsoft Cloud App Security identifies that a suspicious inbox rule was set on a user’s inbox. This may indicate that the user account is compromised, and that the mailbox is being used to distribute spam and malware in your organization. To use this feature, you must have an Office 365 E5 license (https://docs.microsoft.com/en-us/defender-cloud-apps/get-started?culture=fr-fr&country=FR).

  • Effort: master
Office 365 MCAS New Country

Detects when Microsoft Cloud App Security identifies a sign-in from a country where it has never connected. To use this feature, you must have an Office 365 E5 license (https://docs.microsoft.com/en-us/defender-cloud-apps/get-started?culture=fr-fr&country=FR).

  • Effort: master
Office 365 MCAS Repeated Delete

Detects when Microsoft Cloud App Security identifies that a user has deleted an unusually large volume of files. To use this feature, you must have an Office 365 E5 license (https://docs.microsoft.com/en-us/defender-cloud-apps/get-started?culture=fr-fr&country=FR).

  • Effort: master
Office 365 MCAS Repeated Failed Login

Detects when Microsoft Cloud App Security identifies a large number of failed login attempts which may indicate a brute-force attempt. To use this feature, you must have an Office 365 E5 license (https://docs.microsoft.com/en-us/defender-cloud-apps/get-started?culture=fr-fr&country=FR).

  • Effort: master
Office 365 MCAS Risky IP

Detects when Microsoft Cloud App Security identifies sign-ins from a risky IP address, for example, using an anonymous browser or VPN. To use this feature, you must have an Office 365 E5 license (https://docs.microsoft.com/en-us/defender-cloud-apps/get-started?culture=fr-fr&country=FR).

  • Effort: master
Office 365 MailBoxAuditBypassAssociation Option Implementation

Detects the implementation of a MailBoxAuditBypassAssociation option in Office 365. This option is used when you configure a user or computer account to bypass mailbox audit logging, access or actions taken by the user or computer account to any mailbox isn't logged.

  • Effort: master
Office 365 Malware Filter Policy Removed

Detects when a malware policy has been deleted in Office 365. A malware filter policy is used to alert administrators that an internal user sent a message that contained malware.

  • Effort: master
Office 365 Malware Filter Rule Deletion

Detects when a malware filter rule has been deleted in Office 365. The malware filter rule specifies the priority and recipient filters (who the policy applies to) for a malware filter policy.

  • Effort: master
Office 365 Malware Uploaded On OneDrive

Detects when Office 365 identifies a malicious file uploaded to OneDrive. Attackers can use this method to propagate through the network.

  • Effort: intermediate
Office 365 Malware Uploaded On SharePoint

Detects when Office 365 identifies a malicious file uploaded to SharePoint. Attackers can use this method to propagate through the network.

  • Effort: intermediate
Office 365 Mass Download By A Single User

Identifies when Microsoft Cloud App Security reports that a single user performs more than 50 downloads within 1 minute.

  • Effort: master
Office 365 Potential Ransomware Activity Detected

Detects when Microsoft Cloud App Security reports that a user has uploaded files to the cloud that might be infected with ransomware.

  • Effort: master
Office 365 Safe Attachment Rule Disabled

Detects when the safe attachment rule has been deleted in Office 365. Safe Attachments is a feature in Microsoft Defender for Office 365 that opens email attachments in a special hypervisor environment to detect malicious activity.

  • Effort: master
Office 365 Safelinks Disabled

Detects when a safelink rule has been deleted in Office 365. Safe Links is a feature in Defender for Office 365 that provides URL scanning and rewriting of inbound email messages in mail flow, and time-of-click verification of URLs and links in email messages and other locations.

  • Effort: master
Office 365 Unusual Volume Of File Deletion

Detects when Microsoft Cloud App Security identifies that a user has deleted an unusually large volume of files.

  • Effort: master
Password Change On Directory Service Restore Mode (DSRM) Account

The Directory Service Restore Mode (DSRM) account is a local administrator account on Domain Controllers. Attackers may change the password to gain persistence.

  • Effort: intermediate
Possible Malicious File Double Extension

Detects request to potential malicious file with double extension

  • Effort: elementary
Potential Bazar Loader User-Agents

Detects potential Bazar loader communications through the user-agent

  • Effort: elementary
Potential Lemon Duck User-Agent

Detects LemonDuck user agent. The format used two sets of alphabetical characters separated by dashes, for example "User-Agent: Lemon-Duck-[A-Z]-[A-Z]".

  • Effort: elementary
RYUK Ransomeware - martinstevens Username

Detects user name "martinstevens". Wizard Spider is used to add the user name "martinstevens" to the AD of its victims. It was observed in several campaigns; in 2019 and 2020.

  • Effort: elementary
Raccoon Stealer 2.0 Legitimate Third-Party DLL Download URL

Detects Raccoon Stealer 2.0 malware downloading legitimate third-party DLLs from its C2 server. These legitimate DLLs are used by the information stealer to collect data on the compromised hosts.

  • Effort: elementary
SEKOIA.IO Intelligence Feed

Detect threats based on indicators of compromise (IOCs) collected by SEKOIA's Threat and Detection Research team.

  • Effort: elementary
Smbexec.py Service Installation

Detects the use of smbexec.py tool by detecting a specific service installation

  • Effort: elementary
Suspicious URI Used In A Lazarus Campaign

Detects suspicious requests to a specific URI, usually on an .asp page. The website is often compromised.

  • Effort: intermediate
TrevorC2 HTTP Communication

Detects TrevorC2 HTTP communication based on the HTTP request URI and the user-agent.

  • Effort: elementary
WCE wceaux.dll Creation

Detects wceaux.dll creation while Windows Credentials Editor (WCE) is executed.

  • Effort: intermediate

Microsoft Office365 logs

SEKOIA.IO can pull four categories of logs from Microsoft Office 365 Management API:

  • Azure Active Directory audit events (Audit.AzureActiveDirectory)
  • Microsoft Exchange audit events (Audit.Exchange)
  • Microsoft SharePoint audit events (Audit.SharePoint)
  • General audit events not included in the other log categories (Audit.General)

The Office 365 Management Activity API Schema documents the schema leveraged by SEKOIA.IO to monitor the activities on your Organization.

Per default, the Audit logging is turned on by default for Microsoft 365 and Office 365 enterprise organizations. However, when setting up an organization, you should verify the auditing status. Microsoft provides instructions to verify and configure the auditing status for your organization in the article Turn auditing on or off.

Configure

Prerequisites

The following are prerequisites to onboard Microsoft 365 logs to SEKOIA.IO:

  • access to the SEKOIA.IO XDR Operations Center
  • be a Microsoft Office 365 Administrator to consent to the interconnection

and to generate logs:

  • For some advanced logs, an Azure Premium P1 or Azure Premium P2 license may be required.
  • Configure the Microsoft Office 365 logging in SEKOIA.IO XDR SEKOIA.IO Operations Center O365 intake

Collect events

SEKOIA.IO provides an automatical setup to collect Microsoft Office 365 logs. This setup is based on OAuth2.0 as described in this Microsoft documentation.

During the setup, SEKOIA.IO requests the following permissions against Microsoft to pull the logs:

  • User.Read and offline_access, from the Microsoft Graph API, to read your tenant uuid
  • ActivityFeed.Read, from the Office365 Management API, to activate feed subscription to collect events.

In order to exploit the automatic interconnection method, please follow these steps:

  • Login to the Operations Center
  • Go to Configure > Intakes, and click on + INTAKE
  • Choose Office 365 intake by clicking on CREATE
  • Enter the Intake name, select the related Entity and trigger the interconnexion by clicking on Automatically SEKOIA.IO Operations Center O365 intake
  • In the displayed modal, click on LOG IN TO OFFICE 365, then ADD PERMISSION INTO OFFICE 365 SEKOIA.IO Operations Center O365 intake
  • Choose your Office account, review the permissions and grant them to SEKOIA.IO

After the integration is created, it may take up to 12 hours for the Microsoft API to make data available for the first time.

Alternative mode

For any reason, you are unable or you don't want to collect Office 365 logs through the management API, SEKOIA.IO also supports Office 365 log collection through Azure EventHub. Follow this guide for more details on this solution.

Enjoy your events

You can go to the events page to watch your incoming events.

Event Categories

The following table lists the data source offered by this integration.

Data Source Description
Office 365 account logs Authentication events
Office 365 audit logs Some user actions are parsed (e.g. file access)

In details, the following table denotes the type of events produced by this integration.

Name Values
Kind event
Category file, iam, network
Type change, info

Event Samples

Find below few samples of events and how they are normalized by SEKOIA.IO.

{
    "user": {
        "name": "user@company.onmicrosoft.com",
        "email": "user@company.onmicrosoft.com"
    },
    "organization": {
        "id": "aa09a079-7796-46a8-a4d4-4d21b0dcf1b2"
    },
    "service": {
        "name": "AzureActiveDirectory"
    },
    "event": {
        "action": "UserLoggedIn",
        "kind": "event",
        "type": [
            "start"
        ],
        "category": [
            "authentication"
        ],
        "code": "15"
    },
    "action": {
        "name": "UserLoggedIn",
        "id": 15,
        "outcome": "success",
        "target": "network-traffic",
        "properties": [
            {
                "value": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.121 Safari/537.36",
                "name": "UserAgent"
            },
            {
                "value": "1",
                "name": "UserAuthenticationMethod"
            },
            {
                "value": "OAuth2:Authorize",
                "name": "RequestType"
            },
            {
                "value": "Redirect",
                "name": "ResultStatusDetail"
            },
            {
                "value": "True",
                "name": "KeepMeSignedIn"
            }
        ]
    },
    "source": {
        "address": "1.2.3.4",
        "ip": "1.2.3.4"
    },
    "office365": {
        "record_type": 15,
        "result_status": "Succeeded",
        "user_type": {
            "code": 0,
            "name": "Regular"
        }
    },
    "sekoiaio": {
        "intake": {
            "parsing_status": "success"
        }
    },
    "related": {
        "ip": [
            "1.2.3.4"
        ],
        "user": [
            "user@company.onmicrosoft.com"
        ]
    }
}
{
    "service": {
        "name": "Exchange"
    },
    "organization": {
        "id": "7f7e5b97-b780-473c-9c76-9182a9d7f2b4"
    },
    "office365": {
        "record_type": 2,
        "result_status": "Succeeded",
        "user_type": {
            "code": 0,
            "name": "Regular"
        }
    },
    "sekoiaio": {
        "intake": {
            "parsing_status": "success"
        }
    },
    "source": {
        "address": "d498:796:298e:be16:1b11:29eb:9996:8a36",
        "ip": "d498:796:298e:be16:1b11:29eb:9996:8a36"
    },
    "event": {
        "action": "Create",
        "kind": "event",
        "category": [
            "email",
            "file"
        ],
        "type": [
            "info",
            "creation"
        ],
        "code": "2"
    },
    "action": {
        "id": 2,
        "outcome": "success",
        "target": "user",
        "name": "Create"
    },
    "user": {
        "email": "email@example.org",
        "name": "email@example.org"
    },
    "related": {
        "ip": [
            "d498:796:298e:be16:1b11:29eb:9996:8a36"
        ],
        "user": [
            "email@example.org"
        ]
    }
}
{
    "event": {
        "action": "FilePreviewed",
        "kind": "event",
        "category": [
            "file"
        ],
        "type": [
            "info"
        ],
        "code": "6"
    },
    "organization": {
        "id": "aa09a079-7796-46a8-a4d4-4d21b0dcf1b2"
    },
    "office365": {
        "record_type": 6,
        "user_type": {
            "code": 0,
            "name": "Regular"
        }
    },
    "action": {
        "name": "FilePreviewed",
        "outcome": "success",
        "id": 6,
        "target": "user",
        "properties": [
            {
                "SiteUrl": "https://company-my.sharepoint.com/personal/jane_doe_company_onmicrosoft_com/",
                "SourceFileName": "MyDocument.docx",
                "SourceRelativeUrl": "Documents",
                "UserAgent": "OneDriveMpc-Transform_Thumbnail/1.0"
            }
        ]
    },
    "source": {
        "address": "1.2.3.4",
        "ip": "1.2.3.4"
    },
    "file": {
        "directory": "Documents",
        "name": "MyDocument.docx"
    },
    "url": {
        "domain": "company-my.sharepoint.com",
        "full": "https://company-my.sharepoint.com/personal/jane_doe_company_onmicrosoft_com/Documents/MyDocument.docx",
        "original": "https://company-my.sharepoint.com/personal/jane_doe_company_onmicrosoft_com/Documents/MyDocument.docx",
        "path": "/personal/jane_doe_company_onmicrosoft_com/Documents/MyDocument.docx",
        "port": 443,
        "registered_domain": "sharepoint.com",
        "scheme": "https",
        "subdomain": "company-my",
        "top_level_domain": "com"
    },
    "user_agent": {
        "original": "OneDriveMpc-Transform_Thumbnail/1.0"
    },
    "service": {
        "name": "OneDrive"
    },
    "user": {
        "name": "jane.doe@company.onmicrosoft.com",
        "email": "jane.doe@company.onmicrosoft.com"
    },
    "sekoiaio": {
        "intake": {
            "parsing_status": "success"
        }
    },
    "related": {
        "ip": [
            "1.2.3.4"
        ],
        "user": [
            "jane.doe@company.onmicrosoft.com"
        ]
    }
}
{
    "event": {
        "action": "FileSyncDownloadedFull",
        "kind": "event",
        "category": [
            "file"
        ],
        "type": [
            "info"
        ],
        "code": "6"
    },
    "action": {
        "name": "FileSyncDownloadedFull",
        "outcome": "success",
        "id": 6,
        "target": "user",
        "properties": [
            {
                "SiteUrl": "https://company.sharepoint.com/sites/shared",
                "SourceFileName": "logo.png",
                "SourceRelativeUrl": "public/assets/website",
                "UserAgent": "Microsoft SkyDriveSync 22.099.0508.0001 ship; Windows NT 10.0 (19043)"
            }
        ]
    },
    "organization": {
        "id": "2d7585dc-97bc-4494-b98c-79f2a4946931"
    },
    "office365": {
        "record_type": 6,
        "user_type": {
            "code": 0,
            "name": "Regular"
        },
        "context": {
            "aad_session_id": "0e042318-7c78-4acb-ae00-5ee74465bca3",
            "correlation": {
                "id": "c299a0a0-14da-428a-b08d-481d562298cb"
            }
        }
    },
    "source": {
        "address": "1.2.3.4",
        "ip": "1.2.3.4"
    },
    "file": {
        "directory": "public/assets/website",
        "name": "logo.png"
    },
    "url": {
        "domain": "company.sharepoint.com",
        "full": "https://company.sharepoint.com/sites/shared/public/assets/website/logo.png",
        "original": "https://company.sharepoint.com/sites/shared/public/assets/website/logo.png",
        "path": "/sites/shared/public/assets/website/logo.png",
        "port": 443,
        "registered_domain": "sharepoint.com",
        "scheme": "https",
        "subdomain": "company",
        "top_level_domain": "com"
    },
    "user_agent": {
        "original": "Microsoft SkyDriveSync 22.099.0508.0001 ship; Windows NT 10.0 (19043)"
    },
    "service": {
        "name": "SharePoint"
    },
    "user": {
        "name": "marketing@company.com",
        "email": "marketing@company.com"
    },
    "sekoiaio": {
        "intake": {
            "parsing_status": "success"
        }
    },
    "related": {
        "ip": [
            "1.2.3.4"
        ],
        "user": [
            "marketing@company.com"
        ]
    }
}
{
    "message": "{\"CreationTime\":\"2022-07-07T22:38:49\",\"Id\":\"266f5962-ffad-4fce-a101-3197581af3d4\",\"Operation\":\"AtpDetection\",\"OrganizationId\":\"7f7e5b97-b780-473c-9c76-9182a9d7f2b4\",\"RecordType\":47,\"UserKey\":\"ThreatIntel\",\"UserType\":4,\"Version\":1,\"Workload\":\"ThreatIntelligence\",\"UserId\":\"people@example.org\",\"DetectionDate\":\"2022-07-07T22:38:11\",\"DetectionMethod\":\"AntiMalware\",\"EventDeepLink\":\"https://protection.office.com/threatexplorer?dltarget=Explorer&dlstorage=Url&viewid=MalwareContent&query-Id=2ab4791e-fdd4-42f9-ad3c-c54ef7a4d548\",\"FileData\":{\"DocumentId\":\"03254108-f682-417d-f3e6-08da605bf091\",\"FileName\":\"malware\",\"FilePath\":\"https://example.sharepoint.com/personal/people_example_org/Documents/malware\",\"FileSize\":\"12345\",\"FileVerdict\":1,\"MalwareFamily\":\"iPhoneOS/Vortex.C\",\"SHA256\":\"SnltYq0lbVwFlAIf+lQugPXaMcDNV9t9pN/Zkhx7hQ8=\"},\"LastModifiedBy\":\"people@example.org\",\"LastModifiedDate\":\"2022-01-01T13:00:53\",\"SourceWorkload\":1}\n",
    "action": {
        "id": 47,
        "name": "AtpDetection",
        "outcome": "success",
        "target": "user"
    },
    "event": {
        "action": "AtpDetection",
        "code": "47",
        "kind": "event",
        "outcome": "success",
        "id": "00000000-0000-0000-0000-000000000000'",
        "url": "https://protection.office.com/threatexplorer?dltarget=Explorer&dlstorage=Url&viewid=MalwareContent&query-Id=2ab4791e-fdd4-42f9-ad3c-c54ef7a4d548"
    },
    "office365": {
        "defender": {
            "detection": {
                "method": "AntiMalware"
            }
        },
        "record_type": 47,
        "user_type": {
            "code": 4,
            "name": "System"
        }
    },
    "organization": {
        "id": "7f7e5b97-b780-473c-9c76-9182a9d7f2b4"
    },
    "related": {
        "user": [
            "people@example.org"
        ]
    },
    "service": {
        "name": "ThreatIntelligence"
    },
    "user": {
        "email": "people@example.org",
        "name": "people@example.org"
    }
}
{
    "message": "{\"CreationTime\":\"2022-07-08T09:10:19\",\"Id\":\"50906475-74dd-4447-ae4d-595d225d0055\",\"Operation\":\"TIMailData\",\"OrganizationId\":\"8a457951-a594-4607-a5dc-dfc72338eb13\",\"RecordType\":28,\"UserKey\":\"ThreatIntel\",\"UserType\":4,\"Version\":1,\"Workload\":\"ThreatIntelligence\",\"ObjectId\":\"4ca2df96-4488-4f3b-a265-b4edaa3c4d8f\",\"UserId\":\"ThreatIntel\",\"AdditionalActionsAndResults\":[\"OriginalDelivery: [N/A]\"],\"AttachmentData\":[{\"FileName\":\"malicious.pdf.exe\",\"FileType\":\"exe;zip\",\"FileVerdict\":1,\"MalwareFamily\":\"Trojan_Gen_FileWithSpoofedExtension_A\",\"SHA256\":\"E3B0C44298FC1C149AFBF4C8996FB92427AE41E4649B934CA495991B7852B855\"}],\"AuthDetails\":[{\"Name\":\"SPF\",\"Value\":\"Pass\"},{\"Name\":\"DKIM\",\"Value\":\"Fail\"},{\"Name\":\"DMARC\",\"Value\":\"Best guess pass\"},{\"Name\":\"Comp Auth\",\"Value\":\"pass\"}],\"DeliveryAction\":\"Blocked\",\"DetectionMethod\":\"File detonation\",\"DetectionType\":\"Inline\",\"Directionality\":\"Inbound\",\"EventDeepLink\":\"https://protection.office.com/?hash=/threatexplorer?messageParams=a4dbf74a-89e0-40de-b14d-df573f48aa45,a4dbf74a-89e0-40de-b14d-df573f48aa45-0000000000000000000-1,2022-07-08T00:00:00,2022-07-08T23:59:59&view=Malware\",\"InternetMessageId\":\"<4cc4a74e-a195-4222-abd7-a8adf2cd347d@sender.com>\",\"LatestDeliveryLocation\":\"Quarantine\",\"MessageTime\":\"2022-07-08T09:07:47\",\"NetworkMessageId\":\"7250ff78-fd13-45a2-bb5d-23a5d59c2699\",\"OriginalDeliveryLocation\":\"Quarantine\",\"P1Sender\":\"prvs=0000000000=human@sender.com\",\"P2Sender\":\"human@sender.com\",\"Policy\":\"SafeAttachements\",\"PolicyAction\":\"Quarantine\",\"Recipients\":[\"human@example.com\"],\"SenderIp\":\"1.2.3.4\",\"Subject\":\"Refund to you\",\"SystemOverrides\":[{\"Details\":\"Antimalware policy block by file type\",\"FinalOverride\":\"No\",\"Result\":\"Block\",\"Source\":\"Tenant\"}],\"ThreatsAndDetectionTech\":[\"Malware: [File detonation]\",\"Spam: [General filter]\"],\"Verdict\":\"Malware\"}\n",
    "action": {
        "id": 28,
        "name": "Blocked",
        "outcome": "success",
        "target": "user"
    },
    "event": {
        "action": "Blocked",
        "code": "28",
        "kind": "event",
        "outcome": "success",
        "id": "00000000-0000-0000-0000-000000000000'",
        "url": "https://protection.office.com/?hash=/threatexplorer?messageParams=a4dbf74a-89e0-40de-b14d-df573f48aa45,a4dbf74a-89e0-40de-b14d-df573f48aa45-0000000000000000000-1,2022-07-08T00:00:00,2022-07-08T23:59:59&view=Malware"
    },
    "email": {
        "attachments": [
            {
                "file": {
                    "hash": {
                        "sha256": "E3B0C44298FC1C149AFBF4C8996FB92427AE41E4649B934CA495991B7852B855"
                    },
                    "mime_type": "exe;zip",
                    "name": "malicious.pdf.exe"
                }
            }
        ],
        "delivery_timestamp": "2022-07-08T09:07:47",
        "from": {
            "address": [
                "human@sender.com"
            ]
        },
        "local_id": "7250ff78-fd13-45a2-bb5d-23a5d59c2699",
        "message_id": "4cc4a74e-a195-4222-abd7-a8adf2cd347d@sender.com",
        "reply_to": {
            "address": [
                "prvs=0000000000=human@sender.com"
            ]
        },
        "subject": "Refund to you",
        "to": {
            "address": [
                "human@example.com"
            ]
        }
    },
    "office365": {
        "defender": {
            "additional_actions": [
                "OriginalDelivery: [N/A]"
            ],
            "auth_details": [
                {
                    "Name": "SPF",
                    "Value": "Pass"
                },
                {
                    "Name": "DKIM",
                    "Value": "Fail"
                },
                {
                    "Name": "DMARC",
                    "Value": "Best guess pass"
                },
                {
                    "Name": "Comp Auth",
                    "Value": "pass"
                }
            ],
            "detection": {
                "method": "File detonation",
                "technology": [
                    "Malware: [File detonation]",
                    "Spam: [General filter]"
                ],
                "type": "Inline"
            },
            "email": {
                "attachments": [
                    {
                        "name": "Trojan_Gen_FileWithSpoofedExtension_A",
                        "verdict": {
                            "code": "1",
                            "name": "bad"
                        }
                    }
                ],
                "delivery": {
                    "action": "Blocked",
                    "latest_location": "Quarantine",
                    "original_location": "Quarantine"
                },
                "verdict": {
                    "reason": "Malware"
                }
            },
            "system_overrides": [
                {
                    "Details": "Antimalware policy block by file type",
                    "FinalOverride": "No",
                    "Result": "Block",
                    "Source": "Tenant"
                }
            ]
        },
        "record_type": 28,
        "user_type": {
            "code": 4,
            "name": "System"
        }
    },
    "organization": {
        "id": "8a457951-a594-4607-a5dc-dfc72338eb13"
    },
    "related": {
        "ip": [
            "1.2.3.4"
        ],
        "user": [
            "ThreatIntel"
        ]
    },
    "service": {
        "name": "ThreatIntelligence"
    },
    "source": {
        "address": "1.2.3.4",
        "ip": "1.2.3.4"
    },
    "user": {
        "name": "ThreatIntel"
    }
}
{
    "message": "{\"CreationTime\":\"2022-07-07T10:10:52\",\"Id\":\"47bf7844-15bf-4cf2-91a3-15b32ceb89b5\",\"Operation\":\"TIUrlClickData\",\"OrganizationId\":\"0eaa2260-b241-410b-bcae-e38c8b68787f\",\"RecordType\":41,\"UserKey\":\"ThreatIntel\",\"UserType\":4,\"Version\":1,\"Workload\":\"ThreatIntelligence\",\"UserId\":\"human@example.org\",\"AppName\":\"Mail\",\"AppVersion\":\"0.0.0000\",\"EventDeepLink\":\"https://protection.office.com/threatexplorer?dltarget=Explorer&dlstorage=Url&viewid=Phish&query-Recipients=people@xample.org&query-NetworkMessageId=53b5da37-1893-4e78-a89f-a4d26b53184c\",\"SourceId\":\"8a8634d0-d803-4bc9-b221-2863bff6a001\",\"TimeOfClick\":\"2022-07-07T09:33:33\",\"Url\":\"https://malicious.domain.com\",\"UserIp\":\"1.2.3.4\"}\n",
    "action": {
        "id": 41,
        "name": "TIUrlClickData",
        "outcome": "success",
        "target": "user"
    },
    "event": {
        "action": "TIUrlClickData",
        "code": "41",
        "kind": "event",
        "outcome": "success",
        "id": "00000000-0000-0000-0000-000000000000'",
        "url": "https://protection.office.com/threatexplorer?dltarget=Explorer&dlstorage=Url&viewid=Phish&query-Recipients=people@xample.org&query-NetworkMessageId=53b5da37-1893-4e78-a89f-a4d26b53184c"
    },
    "office365": {
        "record_type": 41,
        "user_type": {
            "code": 4,
            "name": "System"
        }
    },
    "organization": {
        "id": "0eaa2260-b241-410b-bcae-e38c8b68787f"
    },
    "related": {
        "user": [
            "human@example.org"
        ]
    },
    "service": {
        "name": "ThreatIntelligence"
    },
    "user": {
        "email": "human@example.org",
        "name": "human@example.org"
    }
}
{
    "source": {
        "address": "1.2.3.4",
        "ip": "1.2.3.4"
    },
    "organization": {
        "id": "34314e6e-4023-4e4b-a15e-143f63244e2b"
    },
    "office365": {
        "record_type": 25,
        "user_type": {
            "code": 0,
            "name": "Regular"
        },
        "teams": {
            "communication": {
                "type": "OneOnOne"
            },
            "message": {
                "id": "1649188295480",
                "version": "1649188295480",
                "urls": [
                    "https://www.amazon.fr/s?i=merchant-items&amp;me=A1TLEYKQIC7812&amp;marketplaceID=A13V1IB3VIYZZH&amp;qid=1649187214&amp;ref=sr_pg_1"
                ]
            },
            "team": {
                "members": [
                    {
                        "id": "admin@example.org",
                        "role": "Owner"
                    },
                    {
                        "id": "user1@example.org",
                        "role": "Member"
                    }
                ]
            }
        }
    },
    "user": {
        "email": "email@example.org",
        "name": "email@example.org"
    },
    "service": {
        "name": "MicrosoftTeams"
    },
    "sekoiaio": {
        "intake": {
            "parsing_status": "success"
        }
    },
    "event": {
        "action": "MessageCreatedHasLink",
        "kind": "event",
        "category": [
            "network"
        ],
        "type": [
            "info"
        ],
        "code": "25"
    },
    "action": {
        "target": "network-traffic",
        "id": 25,
        "outcome": "success",
        "name": "MessageCreatedHasLink"
    },
    "related": {
        "ip": [
            "1.2.3.4"
        ],
        "user": [
            "email@example.org"
        ]
    }
}
{
    "message": "{\"CreationTime\": \"2019-11-18T13:40:24\", \"Id\": \"038ae875-ffd8-45e4-9dcf-6e385cfad349\", \"Operation\": \"Update group.\", \"OrganizationId\": \"3e49b082-62d5-4849-a5b0-86ed519287d2\", \"RecordType\": 8, \"ResultStatus\": \"Success\", \"UserKey\": \"10030000A96EA230@acme.onmicrosoft.com\", \"UserType\": 0, \"Version\": 1, \"Workload\": \"AzureActiveDirectory\", \"ClientIP\": \"<null>\", \"ObjectId\": \"Not Available\", \"UserId\": \"Sync_V-WATT_83d3b7098669@acme.onmicrosoft.com\", \"AzureActiveDirectoryEventType\": 1, \"ExtendedProperties\": [{\"Name\": \"resultType\", \"Value\": \"Success\"}]}",
    "event": {
        "action": "Update group.",
        "kind": "event",
        "code": "8",
        "category": [
            "iam"
        ],
        "type": [
            "change"
        ]
    },
    "service": {
        "name": "AzureActiveDirectory"
    },
    "user": {
        "name": "Sync_V-WATT_83d3b7098669@acme.onmicrosoft.com",
        "email": "Sync_V-WATT_83d3b7098669@acme.onmicrosoft.com"
    },
    "organization": {
        "id": "3e49b082-62d5-4849-a5b0-86ed519287d2"
    },
    "action": {
        "id": 8,
        "name": "Update group.",
        "target": "user",
        "outcome": "success"
    },
    "office365": {
        "record_type": 8,
        "result_status": "Success",
        "user_type": {
            "code": 0,
            "name": "Regular"
        }
    },
    "related": {
        "user": [
            "Sync_V-WATT_83d3b7098669@acme.onmicrosoft.com"
        ]
    }
}
{
    "message": "{\"CreationTime\": \"2019-12-09T14:18:19\", \"Id\": \"359154c4-72c5-4ba0-bbf9-7eb1dff88af7\", \"Operation\": \"Update user.\", \"OrganizationId\": \"3e49b082-62d5-4849-a5b0-86ed519287d2\", \"RecordType\": 8, \"ResultStatus\": \"Success\", \"UserKey\": \"10030000A96EA230@acme.onmicrosoft.com\", \"UserType\": 0, \"Version\": 1, \"Workload\": \"AzureActiveDirectory\", \"ClientIP\": \"<null>\", \"ObjectId\": \"bob.smith@acme.org\", \"UserId\": \"Sync_V-WATT_83d3b7098669@acme.onmicrosoft.com\", \"AzureActiveDirectoryEventType\": 1, \"ExtendedProperties\": [{\"Name\": \"resultType\", \"Value\": \"Success\"}, {\"Name\": \"auditEventCategory\", \"Value\": \"UserManagement\"}, {\"Name\": \"nCloud\", \"Value\": \"<null>\"}]}",
    "event": {
        "action": "Update user.",
        "kind": "event",
        "code": "8",
        "category": [
            "iam"
        ],
        "type": [
            "change"
        ]
    },
    "service": {
        "name": "AzureActiveDirectory"
    },
    "user": {
        "name": "Sync_V-WATT_83d3b7098669@acme.onmicrosoft.com",
        "email": "Sync_V-WATT_83d3b7098669@acme.onmicrosoft.com"
    },
    "organization": {
        "id": "3e49b082-62d5-4849-a5b0-86ed519287d2"
    },
    "action": {
        "id": 8,
        "name": "Update user.",
        "target": "user",
        "outcome": "success"
    },
    "office365": {
        "record_type": 8,
        "result_status": "Success",
        "user_type": {
            "code": 0,
            "name": "Regular"
        }
    },
    "related": {
        "user": [
            "Sync_V-WATT_83d3b7098669@acme.onmicrosoft.com"
        ]
    }
}
{
    "message": "{\"CreationTime\":\"2021-03-05T14:43:17\",\"Id\":\"21a107c2-2071-4ce3-8330-cf82f3caa79f\",\"Operation\":\"Update user.\",\"OrganizationId\":\"3e49b082-62d5-4849-a5b0-86ed519287d2\",\"RecordType\":8,\"ResultStatus\":\"Success\",\"UserKey\":\"10030000A96EA230@domain.onmicrosoft.com\",\"UserType\":0,\"Version\":1,\"Workload\":\"AzureActiveDirectory\",\"ClientIP\":\"\",\"ObjectId\":\"aaaa.bbbb@example.org\",\"UserId\":\"user@domain.onmicrosoft.com\",\"AzureActiveDirectoryEventType\":1,\"ExtendedProperties\":[{\"Name\":\"additionalDetails\",\"Value\":\"{\\\"UserType\\\":\\\"Member\\\"}\"},{\"Name\":\"extendedAuditEventCategory\",\"Value\":\"User\"}],\"ModifiedProperties\":[{\"Name\":\"LastDirSyncTime\",\"NewValue\":\"[\\r\\n  \\\"2021-03-05T14:43:17Z\\\"\\r\\n]\",\"OldValue\":\"[\\r\\n  \\\"2021-03-03T12:30:50Z\\\"\\r\\n]\"},{\"Name\":\"Included Updated Properties\",\"NewValue\":\"LastDirSyncTime\",\"OldValue\":\"\"},{\"Name\":\"Action Client Name\",\"NewValue\":\"DirectorySync\",\"OldValue\":\"\"},{\"Name\":\"TargetId.UserType\",\"NewValue\":\"Member\",\"OldValue\":\"\"}],\"Actor\":[{\"ID\":\"user@domain.onmicrosoft.com\",\"Type\":5},{\"ID\":\"10030000A96EA230\",\"Type\":3},{\"ID\":\"User_c96cf894-cca6-438b-b6f2-c2744c1680f5\",\"Type\":2},{\"ID\":\"c96cf894-cca6-438b-b6f2-c2744c1680f5\",\"Type\":2},{\"ID\":\"User\",\"Type\":2}],\"ActorContextId\":\"3e49b082-62d5-4849-a5b0-86ed519287d2\",\"ActorIpAddress\":\"\",\"InterSystemsId\":\"92d46438-1e67-43e3-91ca-039ff39d7217\",\"IntraSystemId\":\"bd8cc421-efe8-4a44-b61d-44670fc6f56e\",\"SupportTicketId\":\"\",\"Target\":[{\"ID\":\"User_de76d2a9-d8bf-47d4-8f74-2ba2b560f55e\",\"Type\":2},{\"ID\":\"de76d2a9-d8bf-47d4-8f74-2ba2b560f55e\",\"Type\":2},{\"ID\":\"User\",\"Type\":2},{\"ID\":\"aaaa.bbbb@example.org\",\"Type\":5},{\"ID\":\"1003200119762B26\",\"Type\":3}],\"TargetContextId\":\"3e49b082-62d5-4849-a5b0-86ed519287d2\"}",
    "event": {
        "action": "Update user.",
        "kind": "event",
        "code": "8",
        "category": [
            "iam"
        ],
        "type": [
            "change"
        ]
    },
    "service": {
        "name": "AzureActiveDirectory"
    },
    "user": {
        "name": "user@domain.onmicrosoft.com",
        "email": "user@domain.onmicrosoft.com"
    },
    "organization": {
        "id": "3e49b082-62d5-4849-a5b0-86ed519287d2"
    },
    "action": {
        "id": 8,
        "name": "Update user.",
        "properties": [
            {
                "name": "LastDirSyncTime",
                "value": null
            },
            {
                "name": "Action Client Name",
                "value": null
            },
            {
                "name": "TargetId.UserType",
                "value": null
            }
        ],
        "target": "user",
        "outcome": "success"
    },
    "office365": {
        "record_type": 8,
        "result_status": "Success",
        "user_type": {
            "code": 0,
            "name": "Regular"
        }
    },
    "related": {
        "user": [
            "user@domain.onmicrosoft.com"
        ]
    }
}
{
    "user": {
        "name": "REDACTED@company.onmicrosoft.com",
        "email": "REDACTED@company.onmicrosoft.com"
    },
    "organization": {
        "id": "3e49b082-62d5-4849-a5b0-86ed519287d2"
    },
    "office365": {
        "record_type": 15,
        "result_status": "Succeeded",
        "user_type": {
            "code": 0,
            "name": "Regular"
        }
    },
    "service": {
        "name": "AzureActiveDirectory"
    },
    "event": {
        "action": "UserLoggedIn",
        "kind": "event",
        "type": [
            "start"
        ],
        "category": [
            "authentication"
        ],
        "code": "15"
    },
    "action": {
        "name": "UserLoggedIn",
        "id": 15,
        "outcome": "success",
        "target": "network-traffic",
        "properties": [
            {
                "value": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.140 Safari/537.36 Edge/18.17763",
                "name": "UserAgent"
            },
            {
                "value": "1",
                "name": "UserAuthenticationMethod"
            },
            {
                "value": "OAuth2:Authorize",
                "name": "RequestType"
            },
            {
                "value": "Redirect",
                "name": "ResultStatusDetail"
            },
            {
                "value": "True",
                "name": "KeepMeSignedIn"
            }
        ]
    },
    "source": {
        "address": "1.2.3.4",
        "ip": "1.2.3.4",
        "port": 8085
    },
    "sekoiaio": {
        "intake": {
            "parsing_status": "success"
        }
    },
    "related": {
        "ip": [
            "1.2.3.4"
        ],
        "user": [
            "REDACTED@company.onmicrosoft.com"
        ]
    }
}

Extracted Fields

The following table lists the fields that are extracted, normalized under the ECS format, analyzed and indexed by the parser. It should be noted that infered fields are not listed.

Name Type Description
@timestamp date Date/time when the event originated.
action.properties object A list of objects describing the action
action.target keyword The target of the action
email.attachments array A list of objects describing the attachment files sent along with an email message
email.delivery_timestamp date The date and time when the email message was received by the service or client
email.from.address keyword The email address of the sender, typically from the RFC 5322 From: header field
email.local_id keyword Unique identifier given to the email by the source that created the event
email.message_id keyword Identifier from the RFC 5322 Message-ID: email header that refers to a particular email message
email.reply_to.address keyword The address that replies should be delivered to based on the value in the RFC 5322 Reply-To: header
email.subject keyword A brief summary of the topic of the message
email.to.address keyword The email address of recipient
event.action keyword The action captured by the event.
event.category keyword Event category. The second categorization field in the hierarchy.
event.code keyword Identification code for this event.
event.kind keyword The kind of the event. The highest categorization field in the hierarchy.
event.type keyword Event type. The third categorization field in the hierarchy.
event.url keyword Event investigation URL
file.directory keyword Directory where the file is located.
file.name keyword Name of the file including the extension, without the directory.
office365.context.aad_session_id keyword The identifier of an Azure Active Directory session
office365.context.api_id keyword The identifier of the API pathway
office365.context.client.id keyword The identifier of Azure Active Directory application
office365.context.client.name keyword The name of Azure Active Directory application
office365.context.correlation.id keyword The identifier to correlate user's action across Microsoft 365 services
office365.defender.additional_actions array The additional actions taken on the email
office365.defender.auth_details array The authentication checks that are done for the email
office365.defender.connectors keyword Identifiers of connectors associated with the email
office365.defender.detection.method keyword The method or the technology used for the detection
office365.defender.detection.technology keyword The threats and technologies applied on the email
office365.defender.detection.type keyword The type of detection
office365.defender.email.attachments array The attachements of the email
office365.defender.email.delivery.action keyword The original action delivery on the email
office365.defender.email.delivery.latest_location keyword The latest location delivery of the email
office365.defender.email.delivery.original_location keyword The original location delivery of the email
office365.defender.email.verdict.confidence keyword The confidence in the verdict
office365.defender.email.verdict.reason keyword The verdict about the messahe
office365.defender.system_overrides array Overrides that are applicable to the email
office365.record_type long The type of the operation
office365.result_status keyword Indicates whether the action was successful or not
office365.scope.code long The origin (saas or on-premise) of the event
office365.teams.action keyword The action taken by an invitee or the channel owner
office365.teams.channel.id keyword The identifier of the channel
office365.teams.channel.name keyword The name of the channel
office365.teams.channel.type keyword The type of the channel
office365.teams.communication.type keyword The type of communication
office365.teams.invitee keyword The identifier of an invitee
office365.teams.message.id keyword The identifier of the message
office365.teams.message.size long The size of the message in bytes with UTF-16 encoding
office365.teams.message.urls keyword A list of urls present in the message
office365.teams.message.version keyword The version of the message
office365.teams.team.id keyword The identifier of the team
office365.teams.team.members object The list of users in a team
office365.teams.team.name keyword The name of the team
office365.user_type.code long The type of user that performed the operation
organization.id keyword Unique identifier for the organization.
rule.category keyword Rule category
service.name keyword Name of the service.
source.ip ip IP address of the source.
source.port long Port of the source.
url.full wildcard Full unparsed URL.
url.original wildcard Unmodified original url as seen in the event source.
user.email keyword User email address.
user.name keyword Short name or login of the user.
user_agent.original keyword Unparsed user_agent string.

Further Readings