With the average ransomware payment per incident continuing to rise, organizations can expect the financial impact of ransomware attacks to keep increasing in the coming years. SafetyDetectives is a group of security experts who focus on testing antivirus programs, password managers, and other cybersecurity software. They predict that by the end of 2021, the financial strain from ransomware will be as much as $20 billion per year.
Statistics like that are why many organizations are focusing on quick recovery from ransomware. But what if you could detect when a ransomware event has begun and then prevent it from spreading in the first place? WithNetApp® ONTAP®data management software, you have the capability to detect and to prevent the spread of ransomware built in at no additional cost!
This blog post is the third in a six-part series that discusses how you can detect and prevent ransomware by using native NetApp® ONTAP® features, recover quickly from an attack, and avoid paying the ransom. It’s best to read them in chronological order:
The concept behind Zero Trust is to never trust and to always verify. You can learn more about it in another recent NetApp blog post. The key point, though, is that just because a user (or administrator) has permission to access a file or folder, they shouldn’t necessarily be able to change whatever content they want to in that location.
FPolicy was initially intended to help you block unwanted files from being stored on your enterprise-grade storage appliance. (For example, many users stored .mp3 files on their home folders before music streaming services like Spotify became popular, allowing users to stream music from their personal devices.) However, FPolicy also gives you a way to block known ransomware file extensions, too. The user still has full access permissions to their home folder, but FPolicy doesn’t allow them to store whatever files your administrator marks as blocked, whether it’s .mp3 files or known ransomware file extensions.
FPolicy has two modes of operation: native and external. Native mode provides both blacklisting and whitelisting of file extensions. As I mentioned earlier, you get native FPolicy with ONTAP at no additional charge. It’s built in, and you don’t need an extra license to enable it. External mode has the same capabilities as native mode, but it also integrates with an FPolicy server that runs externally to the ONTAP system as well as a security information and event management (SIEM) system. So, you get extra capabilities to detect more advanced ransomware. Here is an example of the external mode configuration:
One of the key differentiators with external mode is that you can use UBA capabilities. These capabilities are important because they can stop even zero-day ransomware attacks. I will get into more details about external mode in the next blog post, but for now, let’s focus specifically on the native mode capabilities of whitelisting and blacklisting.
If you know exactly what type of files will reside on the NFS exports or SMB/CIFS shares, then it is advantageous to set up whitelisting. For example, if the only document type that you need to store on a particular share is .pdf files, then you should allow only the .pdf extension and block all others. Ransomware that encrypts files and modifies the extensions is then rendered useless.
It’s fairly straightforward to enable this type of FPolicy configuration. Here is an example of the steps to create a whitelist from the CLI:
In the preceding configuration, only .pdf files are now allowed, preventing the contents of the share from being encrypted by ransomware that uses file extensions. But what if you are unsure about which file types need to be stored on the share or export? You can still prevent many kinds of ransomware by using the blacklisting capability in native mode.
Blacklisting is exactly what you would expect it to be. Files with a certain type of extension are not permitted to be saved on the storage system and shares. It comes in handy when you know a very specific type of ransomware that you’re trying to block that uses file extensions after completing the encryption process. The WannaCry virus (.wncry) comes to mind as a popular extension to blacklist. If an outbreak has already started in your environment, blacklisting can be a quick way to stop the bleeding.
The following example shows how to create a blacklist from the CLI. The steps are very similar to creating a whitelist policy:
Both blacklisting and whitelisting can be quite valuable in preventing ransomware from encrypting your files. Because they’re built into ONTAP, they’re inexpensive approaches to prevent ransomware. However, both operate on the principle of applying events to file extensions. More modern versions of ransomware simply open files and encrypt the contents without changing the file extension. So, even when you use native mode whitelisting and blacklisting, you could still potentially be hit by ransomware.
That vulnerability is why the next blog post in this series will focus on the external FPolicy mode. When you combine it with an external FPolicy server, you can prevent ransomware attacks that don’t use extensions. Plus, you can use UBA capabilities to stop those pesky zero-day ransomware attacks.
If you want to get a jump start or learn more about the NetApp solution to ransomware, check out our technical report TR-4572: The NetApp Solution for Ransomware.
Matt is a Security Evangelist at NetApp with a focus on ransomware prevention, cyber resiliency, and data-centric portfolio security. With 25 years of IT experience, he specializes in Zero Trust, Data Governance, Encryption, Security Tools, and Best Practices. Matt has held various roles at NetApp, including Product Manager and Technical Marketing Engineer for ONTAP Security. He also has extensive expertise in networking, SMB/CIFS, and Microsoft technologies. Matt's passion lies in driving the latest security features and capabilities to ensure customer success.