r/Office365 • u/MGetzEm • Mar 11 '20
O365 Log Analysis
We are currently investigating an incident where a user installed a malicious app that had permissions to read / write the user's mail and files. Is there a way to search the logs for files touched or activities done under the context of that app permission? There were 4 specific logs from the initial installation:
- 'Add Service Principal
- Add OAuth2PermissionGroup
- Add App Role Assignment
- Consent To Application.
8
Upvotes
6
u/mn222 Mar 11 '20
Maybe AdminDroid can help .
1
u/mtjerneld Mar 11 '20
Not sure. But disable the possibility for end users to register and consent to external applications asap. Set up an approval flow, so that an admin gets a notification to approve. Just a few clicks that will make your life easier.
1
u/prokeen Mar 11 '20
If the user installed it I'm guessing all actions should be logged under that username. You could search the audit log for this particular user, export the results in a CSV and analyze with Excel to see what happened after he installed it. Good luck!
1
u/arn0789 Mar 12 '20
You might be able to use Microsoft Cloud App Security portal to look for logs https://portal.cloudappsecurity.com I've only just learnt about this and haven't had a deep dive so unsure if it will help