Skip to content

Tripati3000/Malware-ANALYSIS

Repository files navigation

Building a Malware analysis lab

SIEM System steps

What is a Malware and Malware analysis lab ?

Malware is like a sneaky computer program that's designed to cause harm, like stealing information or damaging your computer.

A Malware Analysis Lab is a safe place where cybersecurity experts study these sneaky programs to understand how they work. It's like a detective's lab, where they examine the malware to figure out its tricks and how to stop it from causing trouble.

Types of Malware Analysis

  1. Static Analysis: This is like looking at a suspect's photo and examining it closely without letting them move. In static analysis, experts study the malware's code and structure without actually running it. It helps in understanding what the malware does and how it does it, without risking harm to the computer.

  2. Dynamic Analysis: This is like watching a suspect in action, observing their behavior and actions. In dynamic analysis, experts run the malware in a controlled environment (like a sandbox) and observe its behavior. They monitor what files it accesses, what network connections it makes, and what changes it makes to the system. This helps in understanding the malware's actions in real-time.

What do we gonna do ?

  1. Setting up a VM (virtual machine) and install a windows 10 (ISO file) into VM

  2. Installing Flare VM

  3. Static analysis hands on practice

  4. Dynamic analysis hands on practice

Walkthrough

  1. Download virtual box - https://www.virtualbox.org/

  2. Download windows 10 (ISO file) - https://www.microsoft.com/en-in/software-download/windows10ISO

  3. Create a folder in your computer files name "windows10" and close it.

  4. Open up your virtual box and add new to get your setups and choose in folder section - "windows10" which is empty.

  5. Open up again your virtual box and tap "start" After that load your "windows iso file" to the VM and get started

Click on "Devices" and go to "insert guess Additional CD image

SIEM System steps

Go to "files" πŸ‘‡

SIEM System steps

Go to "PC" πŸ’»

SIEM System steps

Click on "CD drive (D;) VirtualBox Guest Additions" πŸ‘‡

SIEM System steps

Click to "VBox Windows Additions-amt454" πŸ‘‡

SIEM System steps

Click "Yes" πŸ‘‡

SIEM System steps

Click "Next" πŸ‘‡

SIEM System steps

Click "Install" πŸ‘‡

SIEM System steps

Login your account πŸ’»

SIEM System steps

Click Windows button and "R" there will be pop up like this and type "Services.msc"πŸ‘‡

SIEM System steps

Find "windows update" and double click it πŸ‘‡

SIEM System steps

Click "Stop" >>> "Disable" >>> "Apply" πŸ‘‡

SIEM System steps

Go to search bar and search " windows security " and open it πŸ‘‡

SIEM System steps

Click the Shield button "πŸ›‘οΈ" πŸ‘‡

SIEM System steps

Go to "Manage settings" πŸ‘‡

SIEM System steps

Turn OFF these four - Realtime protection, Cloud delivered protection, Automatic sample submission and Tamper protectionπŸ‘‡

SIEM System steps

Go to search bar and search - "gpedit.msc" πŸ‘‡

SIEM System steps

Go to "Administrative templates"πŸ‘‡ >>> "Windows Components"πŸ‘‡

SIEM System steps

Find "Microsoft Defender antivirus"πŸ‘‡

SIEM System steps

Choose "Real time protection"πŸ‘‡

SIEM System steps

Double click on " turn on real time protection " πŸ‘‡

SIEM System steps

Click "Enable","Ok" and "Apply"πŸ‘‡

SIEM System steps

Then on "Real time protection" section Go to >>> "Turn off Microsoft Defender Antivirus" πŸ‘‡

SIEM System steps

Click "Enable","Ok" and "Apply"πŸ‘‡

SIEM System steps

Restart your Virtualbox in windows sectionπŸ‘‡

SIEM System steps

After restart Go to Files >>> "View" >>> "Options" >>> "Change folder and search options"

SIEM System steps

Click to "View" , tap "Show hidden files" , untick the box - "Hide extensions for known file types"

SIEM System steps

After this go to "machines" in windows

SIEM System steps

Take a snapshot becoz if we download Flare Vm and we face any problem then we can setup again so name it to "Basline" and give description whatever you want

SIEM System steps

Close your virtual box and go to "settings" - Display >>> video memory Full (256MB) >>> Enable 3D accelerationβœ…

SIEM System steps

Now lets Install Flare VM

  • Open powershell as administrator
  • Download installation script -Installer.ps1
  • make a file and paste it
  • open powershell and Unblock the script Unblock-File .Vinstall.ps1
  • enable script execution Set-ExecutionPolicy Unrestricted -Force
  • β€’ 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 Set-ExecutionPolicy Unrestricted -Scope CurrentUser - Force
  • To view execution policies for all scopes, execute Get- ExecutionPolicy -List
  • Finally, execute the installer script as follow:

\install.ps1

  • Enter your virtual box windows 10 password πŸ”‘
  • Now the download starts
  • After Downloading Press Enter Button to exitπŸ‘
  • Make sure you have these files in your folder or you can download raw files
  • Hashmyfiles
  • Fakenet
  • Ghidra
  • Regshot

Go to windows and create another snapshot πŸ‘‡ And name whatever you want and shut down

SIEM System steps

Click here for Hands on Static analysis

Click here for Hands on Dynamic analysis