Back to Blog
Technical Learning 2024-05-18

Analyzing Malware: A Beginner's Guide

Analyzing Malware: A Beginner's Guide

Malware analysis is the process of understanding the behavior and purpose of a suspicious file or URL. Analysts use this information to create detections, understand the scope of an incident, and develop remediation strategies.

There are two primary approaches to malware analysis: Static and Dynamic.

Static Analysis

Static analysis involves examining the malware without actually running it.

Techniques include:

  • Hashing: Calculating the file's hash (MD5, SHA-256) to identify if it's a known threat.
  • Extracting Strings: Looking for readable text within the binary, which might reveal IP addresses, URLs, or registry keys it interacts with.
  • Disassembly: Reverse-engineering the code to understand its logic (often using tools like Ghidra or IDA Pro).

Dynamic Analysis

Dynamic analysis (or behavioral analysis) involves running the malware in a safe, isolated environment (a sandbox) and observing what it does.

What we look for:

  • File system changes (files dropped or deleted).
  • Registry modifications (often used for persistence).
  • Network activity (connecting to Command and Control servers).

Always perform malware analysis in a dedicated virtual machine that is completely isolated from your host machine and network.