Research · Incident

Detecting EBurst and office-cli mailbox theft in Microsoft 365

Last reviewed: by Dr. Austin Osuide

Correlate password failures that reach Microsoft Entra ID, the accepted identity and MailItemsAccessed context to catch Integrity Tech-enabled mailbox theft, and know which EBurst activity cloud logs cannot show.

In this research
  1. Contribution
  2. The pattern
  3. Where the spray is and is not visible
  4. Why it matters to cloud defenders
  5. ATT&CK mapping
  6. Detection guidance
  7. What to do now
Research snapshot
Type
Incident
Reviewed
2026-11-10
ATT&CK
T1078, T1078.004, T1110

Contribution

This post adds detection content for the Microsoft 365 part of the Integrity Technology Group-enabled activity described in joint advisory AA26-281A. It joins records that are usually reviewed apart: password failures in Microsoft Entra sign-in logs, the first accepted sign-in from the same source, and MailItemsAccessed audit records that show mailbox reads. A second analytic covers app-only access by matching service-principal sign-ins to the ClientAppId on Exchange audit records.

It also sets out a limit the advisory does not discuss. Exchange Online no longer accepts Basic authentication on most of the interfaces EBurst probes, so part of that tool's activity never reaches a cloud sign-in log. The analytics below are built around what the tenant does record.

The pattern

Advisory AA26-281A was published on 8 October 2026 by the FBI, CISA, the NSA and partner agencies including the UK's NCSC. It describes Chinese government-linked actors who combine automated and hands-on tools to steal data, and says Integrity Technology Group, a China-based company with links to the Chinese government, enables them. The agencies call the tradecraft consistent with activity publicly known as Flax Typhoon, Ethereal Panda and Red Juliett, among others. That wording supports an overlap in tradecraft; it does not assign every event in the advisory to one named group.

Three tools in the advisory concern mail. EBurst is an open-source Python tool that, in the agencies' words, targets accounts in the Microsoft Office 365 cloud environment and compromises email accounts on Microsoft Exchange servers through password spraying and password guessing. The interfaces listed are ECP, EWS, OAB, OWA, RPC, API, MAPI, PowerShell, Autodiscover and Microsoft-Server-ActiveSync. One source can therefore test many identities while moving between Exchange-facing endpoints.

office-cli is a command-line utility the actors use to access Microsoft Outlook 365 accounts continuously and exfiltrate email across different time periods. The advisory says it automates access with configuration files such as client_id, tenant_id and secret, reads JSON files from a config directory and saves collected data under a dump directory. It does not name the API or the OAuth grant. Those values are, however, the inputs Microsoft documents for app-only OAuth access to mailboxes, where an application authenticates with its own secret and no user signs in.

Curlc4 is a PHP script that the FBI observed running as a bot to obtain victims' email through the Exchange Web Services (EWS) API. It compresses the mail, in some cases encrypts it, and uploads it to a remote server. The advisory adds that office-cli evades detection because it uses legitimate access methods, which is why tenant-side context matters more than a tool name.

The advisory does not say EBurst is always followed by office-cli, or that the tools share a source address. Treat them as related paths in the reported activity. The analytics here look for the spray-to-read sequence when it occurs and keep separate hunts for app-only collection.

Microsoft's 2023 Flax Typhoon research is a useful comparison outside the cloud mailbox. Microsoft reported activity that relied on valid accounts and living-off-the-land binaries, used legitimate SoftEther VPN software and involved minimal malware, against organisations in Taiwan. Initial access in that campaign came from exploiting public-facing servers, and Microsoft had not observed the actor act on final objectives. The shared defensive problem is quiet use of legitimate interfaces, where blocking one tool name achieves little.

Where the spray is and is not visible

EBurst's ReadMe addresses targets as https://Exchangeserver/<path>. It authenticates with NTLM on the Autodiscover, EWS, MAPI, OAB, RPC and API paths, Basic authentication on ActiveSync, and HTTP authentication on OWA and ECP. That is the profile of a tool written for self-hosted Exchange. The advisory still places it against Office 365 accounts and does not explain how the two fit together.

Microsoft's own changes narrow what the cloud can log. Basic authentication is disabled in all Exchange Online tenants for ActiveSync, POP, IMAP, Remote PowerShell, EWS, OAB, Autodiscover and Outlook. SMTP AUTH is the exception that remains available, with its retirement announced. Microsoft also documents that a blocked Basic request is stopped at Exchange Online before it reaches Microsoft Entra ID, and the client receives only 401 Unauthorized. Those pages describe Basic and modern authentication only; they say nothing about NTLM, which EBurst uses on most paths. Our reading is that a spray of legacy credentials against those endpoints will not produce Entra sign-in records, and that is worth confirming against your own tenant.

That leaves three places to look:

  • Attempts that reach Entra ID. Password tests through modern authentication, and through SMTP AUTH where it is still enabled, are evaluated by Entra ID and logged as failed sign-ins. The first analytic below is written for these and is tool-agnostic.
  • Hybrid and on-premises Exchange. Microsoft states that on-premises Exchange servers handle authentication for on-premises mailboxes in a hybrid deployment. EBurst traffic against those servers appears in their logs, outside cloud telemetry.
  • Federated tenants. For a username that does not exist in the cloud organisation, Exchange Online forwards the credentials to the on-premises identity provider, so that system can still see a spray.

EWS is also leaving the cloud. Microsoft's timeline has EWS starting to be disabled for all Exchange Online organisations in October 2026 and fully disabled in April 2027, with Microsoft Graph as the replacement. Curlc4-style EWS collection against cloud mailboxes has a closing window. App-only hunts must therefore cover Microsoft Graph as well as the Exchange Online resource.

Why it matters to cloud defenders

Microsoft 365 is both an identity plane and a data store. A compromised mailbox exposes correspondence, password-reset messages, cloud console alerts and contact networks. The advisory reports email exfiltration from on-premises systems and cloud-based services alike, so this is not an endpoint-only campaign with incidental SaaS use.

The telemetry is split by design. Microsoft Entra sign-in logs separate interactive user, non-interactive user, service-principal and managed-identity activity, and Microsoft notes that the legacy sign-in view shows only interactive user sign-ins. A hunt that reads only that view misses token-based access and application credentials. Exchange mailbox auditing then records what happened after authentication.

Microsoft documents MailItemsAccessed as covering POP, IMAP, MAPI, EWS, Exchange ActiveSync and REST. Sync access is recorded only for desktop Outlook on Windows or Mac, as one event per synced folder. Every other client, which includes scripted collection, produces bind records that identify each message by InternetMessageId. Bind operations within a two-minute interval are aggregated into one record, with the number in OperationCount.

Deduplication changes detection design. Microsoft filters duplicate bind records for the same message within an hour unless a context property such as ClientIPAddress, ClientInfoString or SessionId differs. A low count of audit rows therefore does not show that little mail was touched. Read MailAccessType, OperationCount and the Folders detail instead of counting rows.

There is a licensing and ingestion check before any analytic can work. Microsoft states that MailItemsAccessed is part of Audit (Standard) and enabled by default for users assigned Office 365 E3/E5 or Microsoft 365 E3/E5 licences. An empty result can still mean missing entitlement, delayed ingestion or an incomplete connector. Test the path with a known mailbox before trusting absence during an incident.

ATT&CK mapping

The entry is Brute Force (T1110). The advisory maps EBurst to both Password Spraying (T1110.003) and Password Guessing (T1110.001). Keep the two apart when setting thresholds: spraying shows as many users with few attempts each, guessing as many attempts against one user.

An accepted sign-in with a compromised identity maps to Valid Accounts (T1078), and for Microsoft 365 identities to its Cloud Accounts sub-technique (T1078.004). This is our mapping; the advisory's table does not list T1078. It is the bridge between the failures and the data access that follows.

The payoff is Remote Email Collection (T1114.002), which the advisory assigns to Curlc4's use of the EWS API. It maps Curlc4's upload step to Automated Exfiltration (T1020) and maps office-cli only to Unix Shell (T1059.004), as a Linux binary that automates mail exfiltration. We treat office-cli's continuous mailbox access as the same collection behaviour in tenant logs. Do not wait for evidence of the upload before treating systematic mailbox access as data loss.

Detection guidance

Spray, accepted sign-in, mailbox read

Send the interactive, non-interactive and service-principal sign-in categories to the workspace, along with the Microsoft 365 audit data that populates OfficeActivity. The SigninLogs schema provides UserPrincipalName, IPAddress, ClientAppUsed, AuthenticationProtocol, AutonomousSystemNumber and ResultType, where 0 indicates success. ClientAppUsed names legacy clients such as Exchange ActiveSync, IMAP, MAPI, SMTP or POP. The non-interactive table carries the same columns.

Failure codes matter more than a bare count. In Microsoft's error reference, 50126 is an invalid username or password, 50053 is a lockout or a block on an IP address with malicious activity, 50034 is an unknown account and 50057 is a disabled one. Codes 50074, 50076 and 50079 are multifactor requirements, and 53003 is a Conditional Access block.

Microsoft's sign-in detail guidance says Conditional Access is not evaluated when primary authentication fails. We therefore read the second group, arriving from a spray source, as a password that was accepted and then stopped. Reset those accounts even though no sign-in succeeded.

The Microsoft Sentinel query below is a starting hunt; it has not been tuned against any tenant. It finds one source IP producing those failures for at least ten users in 15 minutes, then a successful sign-in from the same IP, then MailItemsAccessed records for that user within an hour.

Code block KUSTO
let Lookback = 1d;
let SprayWindow = 15m;
let ReadWindow = 1h;
let MinUsers = 10;
let PasswordFailed = dynamic(["50126", "50053", "50034", "50057"]);
let PasswordAccepted = dynamic(["50074", "50076", "50079", "53003"]);
let SignIns = materialize(
    union isfuzzy=true SigninLogs, AADNonInteractiveUserSignInLogs
    | where TimeGenerated > ago(Lookback)
    | extend EventTime = coalesce(CreatedDateTime, TimeGenerated)
    | project EventTime, Upn = tolower(UserPrincipalName), SourceIP = IPAddress,
        ClientAppUsed, AuthenticationProtocol, ResultType, AppId,
        AutonomousSystemNumber
);
let SpraySources =
    SignIns
    | where ResultType in (PasswordFailed) or ResultType in (PasswordAccepted)
    | summarize FailureCount = count(), TargetedUsers = dcount(Upn),
        PasswordKnownUsers = make_set_if(Upn, ResultType in (PasswordAccepted), 100),
        ClientApps = make_set(ClientAppUsed, 20),
        SprayStart = min(EventTime), SprayEnd = max(EventTime)
        by SourceIP, bin(EventTime, SprayWindow)
    | where TargetedUsers >= MinUsers;
let SprayThenSuccess =
    SpraySources
    | join kind=inner (
        SignIns
        | where ResultType == "0" or ResultType =~ "Success"
        | project SuccessTime = EventTime, SourceIP, Upn,
            SuccessClient = ClientAppUsed, SuccessProtocol = AuthenticationProtocol,
            SuccessAppId = AppId
      ) on SourceIP
    | where SuccessTime between (SprayStart .. (SprayEnd + ReadWindow))
    | summarize arg_min(SuccessTime, *) by SourceIP, Upn, SprayStart;
let MailReads =
    OfficeActivity
    | where TimeGenerated > ago(Lookback)
    | where OfficeWorkload =~ "Exchange" and Operation =~ "MailItemsAccessed"
    | extend RawIP = iff(isnotempty(Client_IPAddress), Client_IPAddress, ClientIP)
    | extend MailIP = case(
        RawIP startswith "[", extract(@"^\[([^\]]+)\]", 1, RawIP),
        RawIP matches regex @"^\d{1,3}(\.\d{1,3}){3}:\d+$", tostring(split(RawIP, ":")[0]),
        RawIP)
    | extend MailAccessType = extract(@'"MailAccessType","Value":"(\w+)"', 1,
        tostring(OperationProperties))
    | project MailTime = TimeGenerated, MailUser = tolower(UserId), MailIP,
        ClientInfoString, ClientAppId, MailAccessType;
SprayThenSuccess
| join kind=inner MailReads on $left.Upn == $right.MailUser
| where MailTime between (SuccessTime .. (SuccessTime + ReadWindow))
| summarize MailRecords = count(), FirstMailRead = min(MailTime),
    MailIPs = make_set(MailIP, 10), MailClients = make_set(ClientInfoString, 10),
    MailAppIds = make_set(ClientAppId, 10), AccessTypes = make_set(MailAccessType, 3)
    by SourceIP, Upn, SprayStart, SuccessTime, SuccessClient, SuccessProtocol,
        TargetedUsers, FailureCount
| extend SameSourceIP = set_has_element(MailIPs, SourceIP)
| order by FirstMailRead desc

Four design choices are deliberate. The accepted user does not have to appear among the failures, because a spray can succeed for an account on the first password tried. The spray stage is not limited to an Exchange resource, since a password proven against any Entra-protected application works for mail.

Client diversity is reported in ClientApps but not required, given how few legacy paths still reach Entra ID. The mailbox join is on identity, with SameSourceIP as context, because the authentication and mailbox addresses can differ.

The sign-in stages use CreatedDateTime because Microsoft documents TimeGenerated in a Log Analytics workspace as the ingestion time. The IP handling strips a port from IPv4 values and brackets from IPv6 ones in Client_IPAddress; test it against the formats your connector emits. Fixed 15-minute bins can split one spray across two windows, so lower MinUsers during an incident.

Separating false positives

Shared egress is the main source of noise. A corporate proxy, a VPN concentrator or a carrier network can produce ten users with 50126 in 15 minutes after a password-expiry wave. Exclude approved egress ranges by name, and keep the unfiltered version for incident scoping. A source whose AutonomousSystemNumber has no history for the tenant deserves more weight than a familiar one.

For the mailbox stage, compare ClientInfoString and ClientAppId with each user's established clients. The OfficeActivity schema carries both, along with MailboxOwnerUPN and Logon_Type. Microsoft's audit-property reference gives Client=WebServices for EWS, Client=ActiveSync, Client=IMAP4, Client=POP3 and Client=OWA. A first-seen programmatic client straight after a spray outweighs routine ActiveSync from a managed phone. Do not suppress EWS or REST globally; backup, migration and e-discovery applications use them legitimately.

App-only mailbox access

The service-principal sign-in table records AppId, ServicePrincipalName, ClientCredentialType, ServicePrincipalCredentialKeyId, IPAddress and ResourceDisplayName. Join successful sign-ins for Exchange or Microsoft Graph resources to MailItemsAccessed records whose ClientAppId is the same application. The sign-in alone does not show mail access, since a Graph token serves many purposes; the audit record does.

Code block KUSTO
let Lookback = 1d;
let AppTokens =
    AADServicePrincipalSignInLogs
    | where TimeGenerated > ago(Lookback)
    | where ResultType == "0" or ResultType =~ "Success"
    | where ResourceDisplayName has_any ("Exchange", "Graph")
    | summarize TokenRequests = count(), TokenIPs = make_set(IPAddress, 20),
        Resources = make_set(ResourceDisplayName, 5),
        CredentialTypes = make_set(ClientCredentialType, 5),
        CredentialKeyIds = make_set(ServicePrincipalCredentialKeyId, 5)
        by AppId = tolower(AppId), ServicePrincipalName;
OfficeActivity
| where TimeGenerated > ago(Lookback)
| where OfficeWorkload =~ "Exchange" and Operation =~ "MailItemsAccessed"
| where isnotempty(ClientAppId)
| summarize Mailboxes = dcount(MailboxOwnerUPN), MailRecords = count(),
    MailClients = make_set(ClientInfoString, 10),
    MailIPs = make_set(Client_IPAddress, 20)
    by AppId = tolower(ClientAppId)
| join kind=inner AppTokens on AppId
| order by Mailboxes desc

Rank the output against an inventory of sanctioned applications that records owner, credential, source networks and mailbox scope for each AppId. Raise priority when an application is absent from the inventory, reads more mailboxes than its scope, or arrives from a network it has not used before. ServicePrincipalCredentialKeyId shows which credential signed in, so a secret added last week stands out from one in use for a year.

Tie that to the Entra audit log. In the AuditLogs table, search OperationName for Add service principal credentials, Certificates and secrets management, Add app role assignment to service principal and Consent to application. A new secret or mail permission followed by first-time mailbox reads is the strongest app-only signal available. Failed attempts are also informative: 7000215 is an invalid client secret and 7000222 an expired one.

A stolen client_id and secret can also accompany a delegated flow, where the application acts for a user. Hunt the same unfamiliar AppId values in the non-interactive user table so that variant is not missed.

Scoping after a hit

Use the full audit record, since SessionId and OperationCount sit in the audit data and have no dedicated OfficeActivity columns; per-message detail is in the Folders value. For bind access, collect the InternetMessageId values and review those messages for sensitive content. For sync access, Microsoft advises assuming every item in the synced folder is compromised when the context matches the attacker. Microsoft identifies context by client IP address and mail protocol, with SessionId separating attacker activity from the user's own.

What to do now

  1. Verify coverage with a controlled mailbox. Confirm that all three sign-in categories arrive in the SIEM, then read a test message with a script and confirm that MailItemsAccessed arrives with ClientInfoString and ClientAppId populated.

  2. Run the spray-to-read query as a hunt, then run its first two stages alone. A spray source with an accepted sign-in is worth an investigation before any mailbox read appears, as is any account in PasswordKnownUsers.

  3. Close the paths a spray can still reach. Disable SMTP AUTH where nothing depends on it, require multifactor authentication for all users, and in hybrid estates review authentication logs on the Exchange servers themselves. The advisory asks for multifactor authentication on webmail in particular.

  4. Inventory applications that can read mail; the advisory tells defenders to monitor cloud accounts for connected applications with access to email data. Remove unused secrets. Microsoft's RBAC for Applications scopes an application to a defined set of mailboxes for Graph and EWS, but only once the unscoped tenant-wide grant in Entra ID is removed, because the two sets of permissions are combined.

  5. On a confirmed hit, treat it as data loss. Microsoft's emergency revocation guidance is to disable the account and revoke its sessions, and it warns that an issued access token lasts one hour by default. Resetting a user's password does nothing to an application's own secret, so remove exposed application credentials separately. Preserve the Exchange audit records and identify the folders and messages touched.

EBurst, office-cli and Curlc4 give this activity different shapes, and some of the first tool's noise falls outside cloud logging altogether. Microsoft 365 still records who authenticated, which client or application arrived, and what mail it touched. Joining those facts catches the objective without depending on infrastructure indicators that the actors can replace.

01 ATT&CK references

Sources
Last verified: 2026-11-10