Flare-VM
FLARE-VM is a Windows-based security distribution specifically designed for malware analysis, incident response, and digital forensics. Developed by the FireEye Labs Advanced Reverse Engineering (FLARE) team, this customizable environment provides a comprehensive collection of open-source and freeware tools pre-configured for security professionals. Unlike traditional Linux security distributions, FLARE-VM runs directly on Windows, offering native analysis capabilities for Windows malware and artifacts while integrating seamlessly with the Windows operating system through a package management system built on Chocolatey.
Requirements¶
FLARE-VM should ONLY be installed on a virtual machine. The VM should satisfy the following requirements:
- Windows ≥ 10
- PowerShell ≥ 5
- Disk capacity of at least 60 GB and memory of at least 2GB
- Usernames without spaces or other special characters
- Internet connection
- Tamper Protection and any Anti-Malware solution (e.g., Windows Defender) disabled, preferably via Group Policy
- Windows Updates Disabled
Installation¶
Pre-installation¶
- Prepare a Windows 10+ virtual machine
- Install Windows in the virtual machine, for example using the raw Windows 10 ISO from https://www.microsoft.com/en-us/software-download/windows10ISO
- Ensure the requirements above are satisfied, including:
- Disable Windows Updates (at least until installation is finished)
- Disable Tamper Protection and any Anti-Malware solution (e.g., Windows Defender), preferably via Group Policy.
- GPO: https://stackoverflow.com/questions/62174426/how-to-permanently-disable-windows-defender-real-time-protection-with-gpo
- Non-GPO - Manual: https://www.maketecheasier.com/permanently-disable-windows-defender-windows-10/
- Non-GPO - Automated: https://github.com/ionuttbara/windows-defender-remover
- Non-GPO - Semi-Automated (User needs to toggle off Tamper Protection): https://github.com/AveYo/LeanAndMean/blob/main/ToggleDefender.ps1
- Take a VM snapshot so you can always revert to a state before the FLARE-VM installation
- NOTE for IDA Pro: If you are installing IDA Pro via
idapro.vm, you must place your IDA Pro installer (and optionally, your license file) on the Desktop before running the FLARE-VM installer.
Disable automatic updates¶
Settings¶
If you want to prevent the system from downloading a specific update for a short period of time, you do not need to disable Windows Update permanently. Instead, you could pause updates for up to seven days.
To disable automatic updates temporarily, use these steps:
- Open Settings.
- Click on Windows Update.
-
Click the "Pause updates for 5 Weeks" option.
Once you complete the steps, the system won't download for one week.
Note
When it reaches the pause limit, you will need to install the latest patch to make the option available again.
Group Policy¶
On Windows 11, the Local Group Policy Editor includes policies to permanently disable automatic updates or change the update settings to choose when patches should be installed on the device.
To disable automatic updates on Windows 10 permanently, use these steps:
- Open Start.
- Search for gpedit.msc and click the top result to launch the Local Group Policy Editor.
- Navigate to the following path: Computer Configuration > Administrative Templates > Windows Components > Windows Update > Manage end user experience
-
Double-click the "Configure Automatic Updates" policy on the right side.
-
Check the Disabled option to turn off automatic Windows 11 updates permanently.
- Click the Apply button.
-
Click the OK button.
After you complete the steps, Windows 11 will stop downloading updates automatically.
Tip
However, the ability to check for updates manually will continue on Settings > Windows Update, and clicking the "Check for updates" button to download the most recent patches as needed.
Note
If you want to enable automatic updates on the computer again, you can use the same instructions outlined above, but in step 5, make sure to select the "Not Configured" option.
Registry¶
You can also use the Registry in two different ways to disable automatic updates on Windows 10.
Danger
This is a friendly reminder that editing the Registry is risky and can cause irreversible damage to your installation if you don't do it correctly. Before proceeding, it's recommended to make a backup of your PC.
To disable Windows 11 updates permanently by changing the Registry settings, use these steps:
- Open Start.
- Search for regedit and click the top result to launch the Registry Editor.
- Navigate to the following path: HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows
- Right-click the Windows (folder) key, select the New submenu, and choose the Key option.
- Name the new key WindowsUpdate and press Enter.
- Right-click the newly created key, select the New submenu, and choose the Key option.
- Name the new key AU and press Enter.
- Right-click the AU key, select the New submenu, and choose the DWORD (32-bit) Value option.
- Name the new key NoAutoUpdate and press Enter.
-
Double-click the newly created key and change its value from 0 to 1.
-
Click the OK button.
- Restart the computer.
After you complete the steps, automatic updates will be permanently disabled on the device. However, you can still download updates by clicking the "Check for updates" button on the Windows Update settings page.
If you want to undo the changes, you can use the same instructions outlined above, but on step 4, right-click the WindowsUpdate key, select the "Delete" option, then reboot the computer to apply the settings.
Resources
Disable Tamper Protection and any Anti-Malware solution¶
Settings¶
Windows gives you an option to turn Microsoft Defender off. But, it’s only temporary. Once it’s been off for a while, or you restart your PC, it’ll come back on. If you just need a temporary solution, this is it.
- Access it by going to Start -> Settings -> Privacy & security.
- Select Windows Security and scroll until you see Virus & threat protection settings. Click the Manage Settings link.
-
Toggle the various options to Off.
Note
Turning everything off is just temporary. This is great if you just need to disable Microsoft Defender for a short while, but doesn’t solve the ultimate goal of turning off Windows Defender permanently.
Tip
Note: if you’re already using another antivirus instead of Microsoft Defender, you may not see these settings at all – which is a fix in itself and will be detailed below.
Local Group Policy¶
- Press Win+R to load the Run box, type
gpedit.mscinto the box, and press OK. - When the Local Group Policy window loads, select Computer Configuration -> Administrative Templates on the right.
-
Go to Windows Components -> Microsoft Defender (Antivirus). If you don’t see Microsoft Defender, look for Windows Defender (Antivirus). Scroll down until you see the Turn off Microsoft Defender file. For older versions of Windows 10, look for Turn off Windows Defender.
-
Double-click it, and click Enabled on the left to turn on the Turn off Microsoft Defender policy, which disables Microsoft Defender. If you later change your mind, select Disabled instead.
Registry¶
- Open the Run command by pressing Win+R . Type
regedit, and click OK. - On the left pane of the Registry Editor, navigate to the following folder:
- Select the Windows Defender folder as shown and right-click on the empty space on the right side of the window, and go to New -> DWORD (32-bit) Value.
Windows will create an untitled DWORD file. Right-click the file, and click Rename, then call it DisableAntiSpyware. Make sure you enter the name perfectly!
-
Right-click the DisableAntiSpyware file, and click Modify. To enable the policy that disables Microsoft Defender, set the value data to 1, and click OK. This tells the computer that the policy that was just created should be enabled, and Windows will disable Defender for you. If you want to bring Microsoft Defender back, return to this file, and change the value to 0 to disable the policy and allow Defender to work again.
-
If anything related to Defender is still running, add the following DWORD values in the following folder locations using the same process as above:
- DisableRealtimeMonitoring – set the value to 1.
- DisableRoutinelyTakingAction – set the value to 1.
- DisableAntiVirus – set the value to 1.
- DisableSpecialRunningModes – set the value to 1.
- ServiceKeepAlive – set value to 0.
- You may also need to create three new folders under Windows Defender. Right-click the Windows Defender folder, and select New -> Key. Add three new Keys: Signature Updates, Real-Time Protection, and Spynet.
-
Add the following DWORD values to the corresponding folders:
-
ForceUpdateFromMU – set value to 0.
- DisableRealtimeMonitoring – set value to 1.
- DisableOnAccessProtection – set value to 1.
- DisableBehaviorMonitoring – set value to 1.
-
DisableScanOnRealtimeEnable – set value to 1.
-
DisableBlockAtFirstSeen – set value to 1.
-
Reference¶
- How to Permanently Disable Microsoft Defender
- How to permanently disable Windows Defender Real Time Protection with GPO?
FLARE-VM installation¶
- Open a
PowerShellprompt as administrator - Download the installation script
installer.ps1to your Desktop: - Unblock the installation script:
-
Enable script execution:
Tip
If you receive an error saying the execution policy is overridden by a policy defined at a more specific scope, you may need to pass a scope in via
Set-ExecutionPolicy Unrestricted -Scope CurrentUser -Force. To view execution policies for all scopes, executeGet-ExecutionPolicy -List -
Finally, execute the installer script as follow:
# To pass your password as an argument .\install.ps1 -password <password> # To use the CLI-only mode with minimal user interaction .\install.ps1 -password <password> -noWait -noGui # To use the CLI-only mode with minimal user interaction and a custom config file .\install.ps1 -customConfig <config.xml> -password <password> -noWait -noGui
Note
After installation it is recommended to switch to host-only networking mode and take a VM snapshot
Installer GUI¶
The Installer GUI is display after executing the validation checks and installing Boxstarter and Chocolatey (if they are not installed already). Using the installer GUI you may customize:
- Package selection from FLARE-VM and Chocolatey community
- Environment variable paths
In newer versions of Windows, Group Policy settings for Microsoft Defender are reverted back.
To prevent this, before changing them:
- Open Resource Monitor (type
resmon.exein the search box) - Overview
- Find
MsMpEng.exein the list - Right-click > Suspend Process
In Windows 10 1903, Tamper Protection was added.
Tamper Protection must be disabled before changing Group Policy settings, otherwise these are ignored.
- Open Windows Security (type
Windows Securityin the search box) - Virus & threat protection > Virus & threat protection settings > Manage settings
- Switch
Tamper ProtectiontoOff
To permanently disable real-time protection:
- Open Local Group Policy Editor (type
gpedit.mscin the search box) - Computer Configuration > Administrative Templates > Windows Components > Microsoft Defender Antivirus > Real-time Protection
- Enable
Turn off real-time protection - Restart the computer
To permanently disable Microsoft Defender:
- Open Local Group Policy Editor (type
gpedit.mscin the search box) - Computer Configuration > Administrative Templates > Windows Components > Microsoft Defender Antivirus
- Enable
Turn off Microsoft Defender Antivirus - Restart the computer