I want to be able to quarantine an email after some custom logic. Such as an alert in Azure Sentinel or KQL.
A sample solution I thought was:
Once an incident occurs the email entity is taken and then the email is quarantined. (We'll obtain the networkmessageid from emailevent logs)
However, I'm struggling to figure out what logic app module to use to quarantine?
- Is it possible to do via graph API and what permission does the app registration need to perform that action?
- Is there any existing module on logic apps - maybe exchange or outlook module?
You could submit the email as a threat, if it contains malicious content. That's better than moving it to quarantine, because this way it could that Microsoft updates it's filters or machine learning algorithms
https://learn.microsoft.com/en-us/graph/api/resources/security-emailthreatsubmission?view=graph-rest-beta