{"id":6235,"date":"2022-10-12T22:46:47","date_gmt":"2022-10-12T22:46:47","guid":{"rendered":"https:\/\/pariswells.com\/blog\/?p=6235"},"modified":"2023-01-18T01:41:34","modified_gmt":"2023-01-18T01:41:34","slug":"azure-audit-logging-analysis","status":"publish","type":"post","link":"https:\/\/pariswells.com\/blog\/research\/azure-audit-logging-analysis","title":{"rendered":"Azure Audit Logging Analysis"},"content":{"rendered":"\n<p>Note that this requires the customer to have the Unified Audit Logging feature enabled.\u00a0<\/p>\n\n\n\n<p>This is enabled by default on tenants created after 2020; for those created before 2020 you need to enable it.<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Log in as a GA &#8211; NB: not available via partner centre<\/li>\n\n\n\n<li>Open the complaince centre \/ purview &#8211;&nbsp;<a href=\"https:\/\/compliance.microsoft.com\/homepage\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/compliance.microsoft.com\/homepage<\/a><\/li>\n\n\n\n<li>Solutions -&gt; Audit<br>If you see a blue bar that says &#8220;click here to enable unified audit logging&#8221; the feature is not enabled. Please enable it now and you won&#8217;t be able to do any further analysis.&nbsp;<\/li>\n\n\n\n<li>Create a search for the specific user and timeframe you are interested in. Use the sign in logs for the user to determine the initial attack time.<br>Note this is UTC so you need to subtract at least 10 hours; i normally do 12-18.<\/li>\n\n\n\n<li>Download the resulting CSV file.&nbsp;<\/li>\n<\/ol>\n\n\n\n<p>This CSV file will contain 4 columns &#8211; the one you are mostly interested in is the AuditData column; however this is stored in JSON format.&nbsp;<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Easiest way of handling this is to turn the data into a table. Select all of your data then Home -&gt; Format as Table<\/li>\n\n\n\n<li>Open PowerQuery with Data -> From Table\/Range<\/li>\n\n\n\n<li>Hilight the AuditData Column&nbsp;<\/li>\n\n\n\n<li>Transform -&gt; Parse -&gt; As JSON<br>The column will now show &#8220;Record&#8221; instead of text data<br><img decoding=\"async\" src=\"https:\/\/ww6.autotask.net\/Mvc\/Framework\/imagefilestream.mvc\/permanentrichtextthumbnail?key=172d7c7f511b74ec040e09d768f68d48\">Expand the AuditData column using the &lt;-&gt; arrows in the header<\/li>\n\n\n\n<li>Repeat for any other columns that have a &#8220;List&#8221; or &#8220;Record&#8221;<\/li>\n\n\n\n<li>Return to Excel with Home -&gt; Close &amp; Load<\/li>\n\n\n\n<li>Create a Pivot Table Table Design -&gt; Summarise with Pivor Table<\/li>\n\n\n\n<li>Add &#8220;Operation&#8221; to &#8220;Rows&#8221; and Values<br>You should now have a table that looks like the following<\/li>\n\n\n\n<li>Particular items of itnerest are New-InboxRules, Create (This is New Emails) and any Hard Deletes.<\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>Note that this requires the customer to have the Unified Audit Logging feature enabled.\u00a0 This is enabled by default on tenants created after 2020; for those created [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[4150,2548,1464,4149],"class_list":["post-6235","post","type-post","status-publish","format-standard","hentry","category-research","tag-analysis","tag-audit","tag-azure","tag-log"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/posts\/6235","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/comments?post=6235"}],"version-history":[{"count":2,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/posts\/6235\/revisions"}],"predecessor-version":[{"id":6558,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/posts\/6235\/revisions\/6558"}],"wp:attachment":[{"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/media?parent=6235"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/categories?post=6235"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/tags?post=6235"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}