How to submit email sample to Microsoft for analysis via API, PowerShell or other way

Sławomir Janiszewski 20 Reputation points
2023-07-04T11:21:57.77+00:00

Hello,

Is there any other way to submit a email sample to Microsoft other than through the portal? It would be appropriate via Graph API, PowerShell, sending email with sample in attachment to the appropriate address or some other way.

There is a "Email threat submission" API but it seems it's not possible to send a sample to Microsoft, please correct me if I'm wrong.

https://learn.microsoft.com/en-us/graph/api/security-emailthreatsubmission-post-emailthreats?view=graph-rest-beta&tabs=http

To clarify, this functionality shown in the screenshot is needed. We want to send samples to Microsoft via app so reporting via the portal or via the phishing button is not a solution.

We do not need feedback on the result of the analysis by Microsoft, this reporting is intended to improve the filtering of unwanted emails (phishing).

User's image

Microsoft 365 and Office | Install, redeem, activate | For business | Windows
Windows for business | Windows Server | User experience | PowerShell
Microsoft Security | Microsoft Graph
{count} votes

Accepted answer
  1. TH-4749-MSFT 3,315 Reputation points
    2023-07-04T20:08:07.33+00:00

    Hello

    You can also try the method via the threatAssessmentrequests endpoint as documented in article https://learn.microsoft.com/en-us/graph/api/informationprotection-post-threatassessmentrequests?view=graph-rest-1.0&tabs=http.

    Thanks.


1 additional answer

Sort by: Most helpful
  1. TH-4749-MSFT 3,315 Reputation points
    2023-07-04T14:13:15.3866667+00:00

    Hello Sławomir Janiszewski,

    Thanks for reaching out. Email Submission via Graph API is currently in preview. Please refer to below article for more information on the topic.

    https://learn.microsoft.com/en-us/graph/api/resources/security-emailthreatsubmission?view=graph-rest-beta

    Please note that APIs under the /beta version in Microsoft Graph are subject to change. Use of these APIs in production applications is not supported.

    If the reply is helpful, please click Accept Answer and kindly upvote it. If you have additional questions about this answer, please click Comment.

    Thanks.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.