08-New-TenantAllowBlockListItems.md

October 11, 2023 · View on GitHub

New-TenantAllowBlockListItems

Table of contents:

Overview

Why it matters?

An insider threat could prevent emails with business critical URL's from reaching the organization as a method of Impact. Examples of such URL's could be Teams Meeting URL's or Supplier vanity URL's used by Zoom. This would be achieved by adding those URL's to the Tenant Allow/Block List (TABL) in Microsoft Defender for Office 365 (MDO) with a Block action.

In this scenario, it's important to be able to understand exactly what has happened to answer questions like:

  • Which URL was added to the block list and was it successful?
  • Who added the URL and when?
  • When is the block set to expire and are there are any notes about this addition?

This page will help you investigate the audit event for the New-TenantAllowBlockListItems operation from a DFIR perspective in terms of:

  • Useful fields and the insight we can gain from them
  • Key fields of note and if applicable, how to decipher them

Pre-Requisites

  • Ensure you have access to the Audit Log following the guide in 01-Access
  • Search for the New-TenantAllowBlockListItems operation, adjusting the date/time range and if applicable, including other relevant criteria to refine the search.

Operation                           RecordTypeRecordType NameScreenshot (Note: Some personal fields have been redacted)Description                                                              
New-TenantAllowBlockListItems1ExchangeAdminNew-TenantAllowBlockListItems is an operation logged when an admin adds entries to the Tenant Allow/Block List in the Microsoft 365 Defender portal.

Note


The screenshot above shows the full audit record for this operation. Right click on it and open in a new tab to see a larger version. Fields from this will be referenced throughout so follow along.


Useful fields

FieldInsight (Source)
CreationTimeFrom this, we know that the command was ran on "10th October 2023 at 8:23 PM UTC"
ResultStatusFrom this, we know that the command executed successfully; value of "True"
UserIdFrom this, we know that that the user that added the URL to the TABL was "User3@domain(.)onmicrosoft.com"
ClientIPFrom this, we would know which IP address the command was ran from. In this case, it's been redacted.

Other useful fields

Field                                Insight
AppIdAs we learnt from 07-Set-TeamsProtectionPolicy , an AppId of "80ccca67-54bd-44ab-8625-4b79c4dc7775" resolves to Microsoft 365 Defender.

Note

Editor's Note: At time of writing, my Pull Request is still waiting for approval to get this AppId updated in the Microsoft Docs page.

Key fields of note

The Parameters object shown below contains useful information relating to this operation:

FieldInsight
Parameters.Name.EntriesFrom this, we know the URL's added were "supplier1.zoom.us/*;supplier2.zoom.us/*" and as you might notice, these URL's have wildcards which means any emails with Zoom invites from Supplier1 or Supplier2 would be blocked from delivering
Parameters.Name.ExpirationDateFrom this, we can see that the block entry has been set to expire on "9th November 2023 00:00 AM UTC". This aligns to the default 30 days expiry setting for new TABL entries
Parameters.Name.NotesFrom this, we can see that the block was added with a note of "Block emails with Zoom links from two suppliers".
Parameters.Name.ListTypeFrom this, we know that a "Url" was added. More on this property can be found at ListType
Parameters.Name.BlockFrom this, we know that a Block action was set for this URL once added, value of "True"

Fields to Decipher

None 👌🏽

Next Steps

Now that you've seen how to interpret the audit log record for when a new entry is added to the TABL, what can you do?

  • Set up a detection rule for new entries being added to the TABL.
    • This could be further tuned to look for specific business critical URL's being added
  • Check MDO Quarantine to identify emails blocked due to entries in TABL and then release/delete accordingly.
    • Filtering on "Quarantine Reason: High Confidence Phish" and/or "Policy type:Anti-spam policy* might help to reduce the results to go through.
    • Clicking an entry in the Quarantine will bring up a side panel and in this, there's a property called "Blocked by organization policy : Tenant Allow/Block List URL blocked". If Microsoft is reading, it would be ideal if we could filter on this property in the overall Quarantine email section since this seems to be the best way to identify emails quarantined due to TABL entries.

:rocket: Stay tuned for Parts 9 and 10 where we'll explore the audit events of TABL entries being modified and removed respectively.