Advanced persistent threats (APT) are a fear most organizations have in the back of their heads because you never know where the attackers are and what they are doing.

Along those lines the feds are provide guidance to agencies and critical infrastructure organizations on enhancing monitoring in Microsoft Exchange Online environments, said officials at the Cybersecurity and Infrastructure Security Agency (CISA) and Federal Bureau of Investigation (FBI).

This guidance came about when the past June, a Federal Civilian Executive Branch (FCEB) agency observed unexpected events in Microsoft 365 (M365) audit logs. The agency reported the activity to Microsoft and the Cybersecurity and Infrastructure Security Agency (CISA), and Microsoft determined APT actors accessed and exfiltrated unclassified Exchange Online Outlook data.

The goal of this cybersecurity advisory (CSA) is to enhance organizational security posture and position organizations to detect similar malicious activity via implementing the listed logging recommendations.

In Mid-June 2023, an FCEB agency observed MailItemsAccessed events with an unexpected ClientAppID and AppID in M365 Audit Logs. The MailItemsAccessed event ends up generated when licensed users access items in Exchange Online mailboxes using any connectivity protocol from any client. The FCEB agency deemed this activity suspicious because the observed AppId did not normally access mailbox items in their environment. The agency reported the activity to Microsoft and CISA.

Schneider Bold

Microsoft determined APT actors accessed and exfiltrated unclassified Exchange Online Outlook data from a small number of accounts. The APT actors used a Microsoft account (MSA) consumer key to forge tokens to impersonate consumer and enterprise users. Microsoft remediated the issue by first blocking tokens issued with the acquired key and then replacing the key to prevent continued misuse. Microsoft determined this activity was part of a campaign targeting multiple organizations (all of which have been notified by Microsoft).

The affected FCEB agency identified suspicious activity by leveraging enhanced logging – specifically of MailItemsAccessed events –and an established baseline of normal Outlook activity (e.g., expected AppID). The MailItemsAccessed event enables detection of otherwise difficult to detect adversarial activity.

CISA and FBI are not aware of other audit logs or events that would detect this activity. Critical infrastructure organizations are urged to implement the logging recommendations in this advisory to enhance their cybersecurity posture and position themselves to detect similar malicious activity.

CISA and the FBI encourage critical infrastructure organizations to ensure they enable audit logging.

  • In addition to enabling audit logging, CISA and FBI encourage organizations to:
  • Enable Purview Audit (Premium) logging: This logging requires licensing at the G5/E5 level
  • Ensure logs are searchable by operators: The relevant logs need to be accessible to operational teams in a platform (e.g., security operations center [SOC] tooling) that enables hunting for this activity and distinguishing it from expected behavior within the environment
  • Enable Microsoft 365 Unified Audit Logging (UAL): UAL should be enabled by default, but organizations should to validate these settings
  • Understand your organization’s cloud baseline: Organizations should look for outliers and become familiar with baseline patterns to better understand abnormal versus normal traffic

Click here for more information on this CSA.

Pin It on Pinterest

Share This