Netskope named a Leader in the 2024 Gartner® Magic Quadrant™ for Security Service Edge. Get the report

  • Why Netskope chevron

    Changing the way networking and security work together.

  • Our Customers chevron

    Netskope serves more than 3,000 customers worldwide including more than 25 of the Fortune 100

  • Our Partners chevron

    We partner with security leaders to help you secure your journey to the cloud.

Still Highest in Execution.
Still Furthest in Vision.

Learn why 2024 Gartner® Magic Quadrant™ named Netskope a Leader for Security Service Edge the third consecutive year.

Get the report
Netskope Named a Leader in the 2024 Gartner® Magic Quadrant™ for Security Service Edge graphic for menu
We help our customers to be Ready for Anything

See our customers
Woman smiling with glasses looking out window
Netskope’s partner-centric go-to-market strategy enables our partners to maximize their growth and profitability while transforming enterprise security.

Learn about Netskope Partners
Group of diverse young professionals smiling
Your Network of Tomorrow

Plan your path toward a faster, more secure, and more resilient network designed for the applications and users that you support.

Get the white paper
Your Network of Tomorrow
Introducing the Netskope One Platform

Netskope One is a cloud-native platform that offers converged security and networking services to enable your SASE and zero trust transformation.

Learn about Netskope One
Abstract with blue lighting
Embrace a Secure Access Service Edge (SASE) architecture

Netskope NewEdge is the world’s largest, highest-performing security private cloud and provides customers with unparalleled service coverage, performance and resilience.

Learn about NewEdge
Netskope Cloud Exchange

The Netskope Cloud Exchange (CE) provides customers with powerful integration tools to leverage investments across their security posture.

Learn about Cloud Exchange
Netskope video
The platform of the future is Netskope

Intelligent Security Service Edge (SSE), Cloud Access Security Broker (CASB), Cloud Firewall, Next Generation Secure Web Gateway (SWG), and Private Access for ZTNA built natively into a single solution to help every business on its journey to Secure Access Service Edge (SASE) architecture.

Go to Products Overview
Netskope video
Next Gen SASE Branch is hybrid — connected, secured, and automated

Netskope Next Gen SASE Branch converges Context-Aware SASE Fabric, Zero-Trust Hybrid Security, and SkopeAI-powered Cloud Orchestrator into a unified cloud offering, ushering in a fully modernized branch experience for the borderless enterprise.

Learn about Next Gen SASE Branch
People at the open space office
Designing a SASE Architecture For Dummies

Get your complimentary copy of the only guide to SASE design you’ll ever need.

Get the eBook
Make the move to market-leading cloud security services with minimal latency and high reliability.

Learn about NewEdge
Lighted highway through mountainside switchbacks
Safely enable the use of generative AI applications with application access control, real-time user coaching, and best-in-class data protection.

Learn how we secure generative AI use
Safely Enable ChatGPT and Generative AI
Zero trust solutions for SSE and SASE deployments

Learn about Zero Trust
Boat driving through open sea
Netskope achieves FedRAMP High Authorization

Choose Netskope GovCloud to accelerate your agency’s transformation.

Learn about Netskope GovCloud
Netskope GovCloud
  • Resources chevron

    Learn more about how Netskope can help you secure your journey to the cloud.

  • Blog chevron

    Learn how Netskope enables security and networking transformation through security service edge (SSE)

  • Events and Workshops chevron

    Stay ahead of the latest security trends and connect with your peers.

  • Security Defined chevron

    Everything you need to know in our cybersecurity encyclopedia.

Security Visionaries Podcast

The Intersection of Zero Trust and National Security
On the latest episode of Security Visionaries, co-hosts Max Havey and Emily Wearmouth sit down for a conversation with guest Chase Cunningham (AKA Dr. Zero Trust) about zero trust and national security.

Play the podcast
The Intersection of Zero Trust and National Security
Latest Blogs

Read how Netskope can enable the Zero Trust and SASE journey through security service edge (SSE) capabilities.

Read the blog
Sunrise and cloudy sky
SASE Week 2023: Your SASE journey starts now!

Replay sessions from the fourth annual SASE Week.

Explore sessions
SASE Week 2023
What is SASE?

Learn about the future convergence of networking and security tools in today’s cloud dominant business model.

Learn about SASE
  • Company chevron

    We help you stay ahead of cloud, data, and network security challenges.

  • Leadership chevron

    Our leadership team is fiercely committed to doing everything it takes to make our customers successful.

  • Customer Solutions chevron

    We are here for you and with you every step of the way, ensuring your success with Netskope.

  • Training and Certification chevron

    Netskope training will help you become a cloud security expert.

Supporting sustainability through data security

Netskope is proud to participate in Vision 2045: an initiative aimed to raise awareness on private industry’s role in sustainability.

Find out more
Supporting Sustainability Through Data Security
Thinkers, builders, dreamers, innovators. Together, we deliver cutting-edge cloud security solutions to help our customers protect their data and people.

Meet our team
Group of hikers scaling a snowy mountain
Netskope’s talented and experienced Professional Services team provides a prescriptive approach to your successful implementation.

Learn about Professional Services
Netskope Professional Services
Secure your digital transformation journey and make the most of your cloud, web, and private applications with Netskope training.

Learn about Training and Certifications
Group of young professionals working

Microsoft Office: VBA Blocked By Default in Files From the Internet

Feb 24 2022


In January 2022, Microsoft announced that Excel 4.0 macros will be restricted by default, as a measure to protect customers against malware based on XLM 4.0 macros. As a more aggressive measure, on February 07, 2022, Microsoft announced that they will start blocking VBA macros for files downloaded from the internet. This is an important step toward security as Office documents containing malicious VBA code are commonly abused by attackers to deliver other threats, such as BazarLoader, Trickbot, and remote access trojans like AveMaria and AgentTesla. In January 2022, 31% of all malware downloads Netskope blocked were malicious Office files.

Bar graph showing Monthly percentage of malware downloads that are Office files for last 12 months
Monthly percentage of malware downloads that are Office files for last 12 months

Visual Basic for Applications (VBA) is a powerful tool for automation within Office files, but it also provides many resources for attackers, especially when combined with LoLBins. In 2021, Netskope described many different techniques used by attackers through VBA macros. Earlier in 2022, we also identified a malicious campaign that was using Web Archives to abuse Microsoft Office. 

Previously, Microsoft Office applications required users to click “Enable” in a dialog box to run macros. So, attackers would simply use social engineering to convince their victims to click “Enable”. The hope is that the new stance of blocking VBA macros will reduce malware infections by making it harder for attackers to execute their macros on victims’ computers.

This change only applies to Windows, and only to Access, Excel, PowerPoint, Visio, and Word. There is no change for users running Office for Mac because it relies on an NTFS feature.

We believe this is an important step as it directly impacts many threat campaigns, such as Emotet. However, this doesn’t mean that attackers will stop using Office files. In this blog post, we will explain how it works and how we expect attackers will adapt.

Files downloaded from the internet

Microsoft announced that VBA macros on files downloaded from the internet will be blocked by default. But how does Microsoft Office know whether a file was downloaded from the internet?

Back in 1993, Windows NT 3.1 was released by Microsoft, and along with the OS, a new file system was introduced: NTFS. This file system was designed to be more robust than other technologies, such as FAT, introducing many new features. 

Every file in NTFS is composed of at least one stream, which can have different types. One of these attributes is named $DATA, which holds the contents of the file. One of the many features provided by NTFS is the ability to store multiple $DATA attributes, commonly known as Alternate Data Stream (ADS). 

The full name of a stream is defined as “filename:stream_name:stream_type”. For example, let’s assume we just created a file named “hello.txt” at “C:\Test“, with a simple text message.

Screenshot of Test file created as “C:\test\hello.txt”.
Test file created as “C:\test\hello.txt”.

If we inspect the streams of this file, which can be done through PowerShell or the Streams utility from Sysinternals, we will only see a single data stream. 

Since the default data stream of a file is unnamed, the full stream name in our example is “C:\Test\hello.txt::$DATA”.

Example of Inspecting the file’s streams and displaying the default data stream contents.
Inspecting the file’s streams and displaying the default data stream contents.

We can create an ADS by simply adding a new stream, which is named “HiddenValue” in this example.

Example of Creating an ADS.
Creating an ADS.

Once this is done, we can repeat the process and access the file’s streams through PowerShell. Now, we can see the details about the stream we have created, which is stored under “C:\Test\hello.txt:HiddenValue:$DATA”.

Example of Listing and reading the value from the ADS we created.
Listing and reading the value from the ADS we created.

If we open this file via notepad normally, we would not see the data we added to the “HiddenValue”, as the software reads just the default data stream. However, we can access the ADS by adding the stream name to the file path:

Example of Opening the default stream and the ADS with notepad.
Opening the default stream and the ADS with notepad.

ADS is commonly abused by malware authors, as it provides the ability to store “hidden” data within files.

All right, but what does this have to do with files downloaded from the internet? 

When a file is downloaded on Windows systems through a browser or another internet client (e.g. Outlook), an ADS named Zone.Identifier is commonly added to the files, which helps to track the location in which the file was sourced. This is also known as the Mark-of-the-Web (MOTW).

Example of a Zone.Identifier ADS of a file downloaded from the internet.
Example of a Zone.Identifier ADS of a file downloaded from the internet.

Within this ADS, we can find a parameter named ZoneId, which identifies the security zone based on where the file was downloaded from. In the screenshot above, we see that the ZoneId is equal to 3, meaning that the file was sourced from the internet.

Screenshot of Description for each ZoneId.
Description for each ZoneId.

This is how software, as well as forensic analysts, may find details about the source of a file. 

A common attack flow using Microsoft Office files.

Before we show what this new release means, let’s take a look at how an attacker often abuses Microsoft Office documents to infect devices. A popular channel for malware delivery is through phishing emails.

Example of a malicious campaign identified by Netskope in January 2022.
Example of a malicious campaign identified by Netskope in January 2022.

Once the victim downloads and opens the attachment, the document will often lure the person into enabling the macros by clicking the “Enable Content” or “Enable Macros” buttons.

Screenshot of Security warning displayed within the document.
Security warning displayed within the document.

What happens to the attack flow after the change?

After this change, which is planned to be released in version 2203 in early April 2022, Microsoft will block VBA macros by default, without providing the “enable” option to the user. According to Microsoft, if the file was downloaded from the Internet or from a Restricted Zone, the VBA macros will be blocked by default, displaying only a security warning

The software won’t display buttons to allow the VBA macros anymore, showing only the following security warning:

Screenshot of Security warning showing that the macro was blocked.
Security warning showing that the macro was blocked.

This will be verified through the Mark-of-the-Web (MOTW), which we described earlier in this post, and is set whenever a user downloads a file from the internet, whether via a web browser, email client, or another app.

What can go wrong?

While this update adds an extra layer of protection against this type of attack, Microsoft Office files may continue to be abused through Mark-of-the-Web bypasses. 

From a user perspective, anyone can remove the MOTW by “unblocking” the file through its properties. Once the file is unblocked, the Zone.Identifier ADS is removed, bypassing the protection. 

Example of Option to remove the MOTW
Option to remove the MOTW

While not as simple as clicking the “Enable Macros” button, this process could be easily used in social engineering by attackers, luring the user to unblock files. Users may already be familiar with this process, already required to execute other files downloaded from the internet.

From the attacker’s perspective, this protection may be bypassed by delivering the document within a compressed archive, such as “.gzip”, or through disk images, like “.iso” and “.vhd”. If downloaded from the internet, the compressed file will contain the MOTW, but the files within may not include the same mark.

Also, an attacker can craft a custom Zone.Identifier ADS to be decompressed along with the infected document, making it look like it was not sourced from the Internet. On January 12, 2022, Netskope Threat Labs released a report about threat actors abusing Microsoft Office through Web Archive files. On that occasion, the attackers were bypassing the MOTW by using this technique.

Example of Attacker bypassing the Mark-of-the-Web.
Attacker bypassing the Mark-of-the-Web.

In that case, once both files are decompressed, the infected document will be marked as trusted, as the ZoneId is defined as 2.

This new security verification may also be bypassed through software bugs, such as the one identified on 7-Zip in 2016, or this one in Firefox in 2009. Also, attackers may try to remove the MOTW somehow before the user opens the file, using PowerShell or WSL (Windows Subsystem for Linux) tools, such as VIM.

Lastly, aside from bypassing the MOTW, we can also expect attackers to use other types of files as initial infection vectors aside from Microsoft Office documents, like LNK, and VBS.

Example of a VBS dropper, commonly used by the malware Ramnit.
Example of a VBS dropper, commonly used by the malware Ramnit.


Disabling VBA macros for files downloaded from the internet adds an extra layer of protection that makes the use of Office files in attacks more difficult. However, this is not a silver bullet. Attackers have multiple techniques they can use to bypass this protection, as demonstrated in this post. Netskope Threat Labs is monitoring the situation closely to identify any new techniques attackers use to bypass this new layer of protection.

Special thanks to Ray Canzanese and Ghanashyam Satpathy for collaborating on this blog.

author image
Gustavo Palazolo
Gustavo Palazolo is an expert in malware analysis, reverse engineering and security research, working many years in projects related to electronic fraud protection. He is currently working on the Netskope Research Team, discovering and analyzing new malware threats.

Stay informed!

Subscribe for the latest from the Netskope Blog