Dark Reading is part of the Informa Tech Division of Informa PLC

This site is operated by a business or businesses owned by Informa PLC and all copyright resides with them.Informa PLC's registered office is 5 Howick Place, London SW1P 1WG. Registered in England and Wales. Number 8860726.

Threat Intelligence

02:50 PM
Connect Directly

How Advanced Attackers Take Aim at Office 365

Researchers discuss how adversaries use components of Office 365 that are poorly understood and not closely monitored.

Microsoft Office 365 is quickly becoming the most common business email platform and a hot target for cybercriminals following their enterprise victims to the cloud. The size, complexity, and data stores in Office 365 make it an appealing and often easy target for advanced actors.

Since he started working at Mandiant more than four years ago, manager Josh Madeley has seen attackers use Office 365 in ways he never previously considered while handling large intrusion investigations. As more companies adopted the platform, advanced persistent threat (APT) groups started to use tactics nobody had discussed let alone developed investigative methodology for, he says. 

Office 365 encompasses not only Microsoft Exchange, but also Teams, SharePoint, OneDrive, and other popular enterprise tools. The sheer amount of data stored in the full platform means attackers often don't need to compromise the on-premises network to get what they're after.

The past year alone has seen multiple cases in which APT actors have realized Office 365 is a "gold mine of information," adds Doug Bienstock, principal consultant at Mandiant. His work in red teaming and incident response has led Bienstock down the path of investigating the Office 365 platform from an attacker's perspective. They're becoming experts in it, he says. 

Madeley and Bienstock's research into APT attacks targeting Office 365 has given them insight into how and why advanced adversaries use it. Most APTs target an organization to steal data or gain additional access; sometimes they target one business with the goal of breaching another. Advanced attackers seek long-term, persistent access and will use techniques that enable them to keep access to a mailbox for a period of months or years.

Email isn't the only target, they say. Many seek access to Teams, where developers chat about API keys and vulnerabilities, or SharePoint and OneDrive, where sensitive files are usually stored. "It's really a huge treasure trove of information," Bienstock says. "Especially in the last six months with COVID, it's what a lot of organizations are dependent on to work together."

Unskilled attackers typically target Office 365 with business email compromise (BEC). In the APT model, intruders acquire administrator credentials for the infrastructure so they can access the configuration of Office 365 and learn how it integrates with the on-premises network. Active Directory, Madeley and Bienstock say, is an example of a main integration point; APT actors have taken advantage of this to ensure persistent access to Office 365 content. Sometimes they exploit bugs in the way Office 365 validates configuration changes, and sometimes they act as an admin to access data.

Legacy software is a consistent issue across organizations and software vendors, says Bienstock. In one 2020 investigation he and Madeley and managed, an attacker learned if they accessed Office 365 using a piece of software from 2016, they could bypass the business' multifactor authentication (MFA) requirement. This wasn't an issue Microsoft was aware of at the time, but it was a legacy loophole that had never been closed.

To pull this off, an attacker would have to download an old version of the target software and go through trial and error to see what worked – not something an unskilled actor would do.

On the data theft side, Madeley says some attackers abuse Office 365's built-in security tools designed for admins to detect malicious activity. Some actors are using these tools to sneak in, noticing the logging mechanisms are insufficient in detecting and analyzing which data was stolen. These tools have the greatest access but don't raise any red flags, he points out.

Madeley and Bienstock will discuss more of these attack methods in their upcoming Black Hat USA talk, "My Cloud is APT's Cloud: Investigating and Defending Office 365," on August 6, 2020.

Improving Defenses: What Businesses Can Do
"As we work with organizations, we realize they don't necessarily have the same experience in investigating these things," Madeley says of cloud intrusions. While he's an advocate of moving to the cloud and believes cloud platforms are more secure in most instances, he also sees a learning curve for businesses that have managed servers in a more traditional way versus the growing platform-as-a-service (PaaS) models.

There is a misconception that Office 365 is just an email platform, Bienstock adds, "but it's really much more than that." He and Madeley are trying to shine a spotlight on this and help people realize they need to invest time and effort in improving their security posture and educating analysis and defenders. Microsoft updates its platforms often, and they need to be in the loop.

Madeley advises organizations to take a closer look at their shared security model and identify where Microsoft assumes responsibility for certain parts of the infrastructure, and where they assume the remaining portion. "Where is that gap? What's between that gap? Where does Microsoft start and stop, and where does user knowledge of tools start and stop?" he asks.

Businesses should also enable MFA if they haven't already, Bienstock adds. "You'd be surprised how many organizations of all shapes and sizes are not enforcing multifactor for Office 365," he says.

Related Content:

Check out The Edge, Dark Reading's new section for features, threat data, and in-depth perspectives. Today's featured story: "The Entertainment Biz Is Changing, but the Cybersecurity Script Is One We've Read Before."

Kelly Sheridan is the Staff Editor at Dark Reading, where she focuses on cybersecurity news and analysis. She is a business technology journalist who previously reported for InformationWeek, where she covered Microsoft, and Insurance & Technology, where she covered financial ... View Full Bio

Recommended Reading:

Comment  | 
Print  | 
More Insights
Newest First  |  Oldest First  |  Threaded View
COVID-19: Latest Security News & Commentary
Dark Reading Staff 9/25/2020
Hacking Yourself: Marie Moe and Pacemaker Security
Gary McGraw Ph.D., Co-founder Berryville Institute of Machine Learning,  9/21/2020
Startup Aims to Map and Track All the IT and Security Things
Kelly Jackson Higgins, Executive Editor at Dark Reading,  9/22/2020
Register for Dark Reading Newsletters
White Papers
Current Issue
Special Report: Computing's New Normal
This special report examines how IT security organizations have adapted to the "new normal" of computing and what the long-term effects will be. Read it and get a unique set of perspectives on issues ranging from new threats & vulnerabilities as a result of remote working to how enterprise security strategy will be affected long term.
Flash Poll
How IT Security Organizations are Attacking the Cybersecurity Problem
How IT Security Organizations are Attacking the Cybersecurity Problem
The COVID-19 pandemic turned the world -- and enterprise computing -- on end. Here's a look at how cybersecurity teams are retrenching their defense strategies, rebuilding their teams, and selecting new technologies to stop the oncoming rise of online attacks.
Twitter Feed
Dark Reading - Bug Report
Bug Report
Enterprise Vulnerabilities
From DHS/US-CERT's National Vulnerability Database
PUBLISHED: 2020-09-25
In tensorflow-lite before versions 1.15.4, 2.0.3, 2.1.2, 2.2.1 and 2.3.1, when determining the common dimension size of two tensors, TFLite uses a `DCHECK` which is no-op outside of debug compilation modes. Since the function always returns the dimension of the first tensor, malicious attackers can ...
PUBLISHED: 2020-09-25
In tensorflow-lite before versions 1.15.4, 2.0.3, 2.1.2, 2.2.1 and 2.3.1, a crafted TFLite model can force a node to have as input a tensor backed by a `nullptr` buffer. This can be achieved by changing a buffer index in the flatbuffer serialization to convert a read-only tensor to a read-write one....
PUBLISHED: 2020-09-25
In tensorflow-lite before versions 1.15.4, 2.0.3, 2.1.2, 2.2.1 and 2.3.1, if a TFLite saved model uses the same tensor as both input and output of an operator, then, depending on the operator, we can observe a segmentation fault or just memory corruption. We have patched the issue in d58c96946b and ...
PUBLISHED: 2020-09-25
In TensorFlow Lite before versions 1.15.4, 2.0.3, 2.1.2, 2.2.1 and 2.3.1, saved models in the flatbuffer format use a double indexing scheme: a model has a set of subgraphs, each subgraph has a set of operators and each operator has a set of input/output tensors. The flatbuffer format uses indices f...
PUBLISHED: 2020-09-25
In TensorFlow Lite before versions 2.2.1 and 2.3.1, models using segment sum can trigger writes outside of bounds of heap allocated buffers by inserting negative elements in the segment ids tensor. Users having access to `segment_ids_data` can alter `output_index` and then write to outside of `outpu...