Microsoft Secure Tech Accelerator
Apr 03 2024, 07:00 AM - 11:00 AM (PDT)
Microsoft Tech Community

Historical data applications access to potentially sensitive data

Brass Contributor

Hello everyone.

 

I found this hunting query for finding occurrences of users granting access to applications, which is a nice query considering this is become a quite popular way of attackers to get illicit access to potentially sensitive information trough the mail application and such. Better explanation of the attack.

 

Now I'm curious if anyone has an idea where to look for historical data of applications that have been granted access, accessing other applications such as email etc. 

2 Replies

@stianhoydal 

 

Are you looking for data here:

AuditLogs
| where Category =="ApplicationManagement"

 

There are lots of application specific operations

 


AuditLogs
| where Category =="ApplicationManagement"
| extend displayName_ = tostring(TargetResources[0].displayName)
| where OperationName has "application"

 

Examples:

OperationName  
Add application  
Add owner to application  
Update application – Certificates and secrets management  
Update application  
Consent to application  
Delete application  

 

 

@CliveWatson 

 

Yes this is a great way of finding the occurrences of apps being granted permissions, but i am curious how i find information about what potentially malicious apps are doing with this information.

 

Say i find a user has given permissions to an application named "notavirus.exe". How do i find logs on what this application does with its permissions? For example a malicious application might use illicitly gained permissions to view users emails and such.