Besuchen Sie uns beim SASE Summit von Netskope und kommen Sie in eine Stadt in Ihrer Nähe! Registrieren Sie sich jetzt.

  • Edge-Produkte von Security Service

    Schützen Sie sich vor fortgeschrittenen und cloudfähigen Bedrohungen und schützen Sie Daten über alle Vektoren hinweg.

  • Borderless SD-WAN

    Stellen Sie selbstbewusst sicheren, leistungsstarken Zugriff auf jeden Remote-Benutzer, jedes Gerät, jeden Standort und jede Cloud bereit.

  • Plattform

    Unübertroffene Transparenz und Daten- und Bedrohungsschutz in Echtzeit in der weltweit größten privaten Sicherheits-Cloud.

Die Plattform der Zukunft heißt Netskope

Intelligent Security Service Edge (SSE), Cloud Access Security Broker (CASB), Cloud Firewall, Next Generation Secure Web Gateway (SWG) und Private Access for ZTNA sind nativ in einer einzigen Lösung integriert, um jedes Unternehmen auf seinem Weg zum Secure Access Service zu unterstützen Edge (SASE)-Architektur.

Netskope Produktübersicht
Netskope-Video
Borderless SD-WAN: Der Beginn der neuen Ära des Borderless Enterprise

Netskope Borderless SD-WAN bietet eine Architektur, die Zero-Trust-Prinzipien und gesicherte Anwendungsleistung zusammenführt, um beispiellos sichere, leistungsstarke Konnektivität für jeden Standort, jede Cloud, jeden Remote-Benutzer und jedes IoT-Gerät bereitzustellen.

Read the article
Borderless SD-WAN
Netskope bietet einen modernen Cloud-Security-Stack mit vereinheitlichten Funktionen für Daten- und Bedrohungsschutz sowie sicherem privaten Zugriff.

Erkunden Sie unsere Plattform
Städtische Metropole aus der Vogelperspektive
Steigen Sie auf marktführende Cloud-Security Service mit minimaler Latenz und hoher Zuverlässigkeit um.

Mehr über NewEdge erfahren
Beleuchtete Schnellstraße mit Serpentinen durch die Berge
Ermöglichen Sie die sichere Nutzung generativer KI-Anwendungen mit Anwendungszugriffskontrolle, Benutzercoaching in Echtzeit und erstklassigem Datenschutz.

Erfahren Sie, wie wir den Einsatz generativer KI sichern
Safely Enable ChatGPT and Generative AI
Zero-Trust-Lösungen für SSE- und SASE-Deployments

Learn about Zero Trust
Bootsfahrt auf dem offenen Meer
Netskope ermöglicht einen sicheren, cloudintelligenten und schnellen Weg zur Einführung von Cloud-Diensten, Apps und Public-Cloud-Infrastrukturen.

Learn about Industry Solutions
Windkraftanlagen entlang einer Klippe
  • Unsere Kunden

    Netskope bedient mehr als 2.000 Kunden weltweit, darunter mehr als 25 der Fortune 100-Unternehmen

  • Kundenlösungen

    Wir sind für Sie da, stehen Ihnen bei jedem Schritt zur Seite und sorgen für Ihren Erfolg mit Netskope.

  • Schulung und Zertifizierung

    Netskope-Schulungen helfen Ihnen ein Experte für Cloud-Sicherheit zu werden.

Wir helfen unseren Kunden, auf alles vorbereitet zu sein

Sehen Sie sich unsere Kunden an
Lächelnde Frau mit Brille schaut aus dem Fenster
Das talentierte und erfahrene Professional Services-Team von Netskope bietet einen präskriptiven Ansatz für Ihre erfolgreiche Implementierung.

Learn about Professional Services
Netskope Professional Services
Mit Netskope-Schulungen können Sie Ihre digitale Transformation absichern und das Beste aus Ihrer Cloud, dem Web und Ihren privaten Anwendungen machen.

Learn about Training and Certifications
Gruppe junger Berufstätiger bei der Arbeit
  • Ressourcen

    Erfahren Sie mehr darüber, wie Netskope Ihnen helfen kann, Ihre Reise in die Cloud zu sichern.

  • Blog

    Erfahren Sie, wie Netskope die Sicherheits- und Netzwerktransformation durch Security Service Edge (SSE) ermöglicht.

  • Veranstaltungen& Workshops

    Bleiben Sie den neuesten Sicherheitstrends immer einen Schritt voraus und tauschen Sie sich mit Gleichgesinnten aus

  • Security Defined

    Finden Sie alles was Sie wissen müssen in unserer Cybersicherheits-Enzyklopädie.

Security Visionaries Podcast

Bonus-Episode 2: Der magische Quadrant für SSE und SASE richtig machen
Mike und Steve diskutieren den Gartner® Magic Quadrant™ für Security Service Edge (SSE), die Positionierung von Netskope und wie sich das aktuelle Wirtschaftsklima auf die SASE-Reise auswirken wird.

Podcast abspielen
Bonus-Episode 2: Der magische Quadrant für SSE und SASE richtig machen
Neueste Blogs

Wie Netskope die Zero-Trust- und SASE-Reise durch Security Service Edge (SSE)-Funktionen ermöglichen kann.

Den Blog lesen
Sonnenaufgang und bewölkter Himmel
Netskope AWS Immersion Day World Tour 2023

Netskope hat eine Vielzahl von praktischen Labors, Workshops, ausführlichen Webinaren und Demos entwickelt, um AWS-Kunden bei der Verwendung und Bereitstellung von Netskope-Produkten zu schulen und zu unterstützen.

Learn about AWS Immersion Day
AWS-Partner
Was ist Security Service Edge?

Entdecken Sie die Sicherheitselemente von SASE, die Zukunft des Netzwerks und der Security in der Cloud.

Learn about Security Service Edge
Kreisverkehr mit vier Straßen
  • Unternehmen

    Wir helfen Ihnen, den Herausforderungen der Cloud-, Daten- und Netzwerksicherheit einen Schritt voraus zu sein.

  • Warum Netskope?

    Cloud-Transformation und hybrides Arbeiten haben die Art und Weise verändert, wie Sicherheit umgesetzt werden muss.

  • Leadership

    Unser Leadership-Team ist fest entschlossen, alles zu tun, was nötig ist, damit unsere Kunden erfolgreich sind.

  • Partner

    Unsere Partnerschaften helfen Ihnen, Ihren Weg in die Cloud zu sichern.

Netskope ermöglicht das "neue" Arbeiten

Finde mehr heraus
Kurvige Straße durch ein Waldgebiet
Am besten in der Ausführung. Am besten in Sachen Vision.

Im 2023 Gartner® Magic Quadrant™ für SSE wurde Netskope als führender Anbieter ausgezeichnet.

Report abrufen
Im 2023 Gartner® Magic Quadrant™ für SSE wurde Netskope als führender Anbieter ausgezeichnet.
Denker, Architekten, Träumer, Innovatoren. Gemeinsam liefern wir hochmoderne Cloud-Sicherheitslösungen, die unseren Kunden helfen, ihre Daten und Mitarbeiter zu schützen.

Lernen Sie unser Team kennen
Gruppe von Wanderern erklimmt einen verschneiten Berg
Die partnerorientierte Markteinführungsstrategie von Netskope ermöglicht es unseren Partnern, ihr Wachstum und ihre Rentabilität zu maximieren und gleichzeitig die Unternehmenssicherheit an neue Anforderungen anzupassen.

Learn about Netskope Partners
Gruppe junger, lächelnder Berufstätiger mit unterschiedlicher Herkunft

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

Feb 24 2022

Summary

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.

Conclusions

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.