0Pricing
Ethical Hacking Academy · Lesson

Dynamic Analysis

Sandbox behavior.

Dynamic Analysis is a free Ethical Hacking Academy lesson on CoddyKit — lesson 2 of 4. You can read the complete lesson below for free — then practise it hands-on in the browser with a built-in code editor and a 24/7 AI tutor. It is part of the Ethical Hacking Academy learning path, one of 4 lessons in the course, and your progress syncs across the web and the CoddyKit app.

What Is Dynamic Analysis?

Dynamic analysis runs the malware in a controlled environment and observes its behavior: files created, registry changes, processes spawned, and network traffic.

It reveals what the sample actually does, including behavior hidden from static analysis by packing.

Building a Safe Sandbox

Run malware only in an isolated sandbox: a virtual machine with a clean snapshot you can revert to.

Use a host-only or fake network so the malware cannot reach the internet or your real systems. Never analyze on a machine connected to a production network.

Snapshots

Before detonating the sample, take a clean VM snapshot. After analysis, revert to it to wipe any changes the malware made.

This lets you run the sample repeatedly from an identical starting state.

Monitoring the File System and Registry

Procmon (Process Monitor) records file, registry, and process activity in real time. Filtering by the sample's process name shows exactly what it touches.

This reveals dropped files, created registry keys, and persistence mechanisms.

Watching Processes

Process Explorer and Process Hacker show running processes, parent-child relationships, and injected threads.

Malware often spawns child processes or injects into legitimate ones like explorer.exe to hide.

Capturing Network Traffic

Use Wireshark to capture traffic and INetSim or FakeNet-NG to simulate internet services. The malware thinks it reached its server, while you safely log the requests.

This exposes command-and-control domains, beacons, and exfiltration attempts.

Indicators of Compromise

From dynamic analysis you collect Indicators of Compromise (IOCs):

  • File hashes and dropped file names.
  • Registry keys for persistence.
  • C2 domains and IP addresses.
  • Mutex names.

IOCs help defenders detect and block the threat.

Persistence Mechanisms

Watch for how the malware survives reboots. Common methods include:

  • Run keys in the registry.
  • Scheduled tasks.
  • Services.
  • Startup folder entries.

The persistence location is a high-value IOC and removal target.

HKCU\Software\Microsoft\Windows\CurrentVersion\Run

Anti-Analysis Tricks

Sophisticated malware detects sandboxes and refuses to run. It may check for VM artifacts, low uptime, few CPU cores, or debugger presence.

Some delay execution or require user interaction. Recognizing these evasion tricks is part of dynamic analysis.

Automated Sandboxes

Tools like Cuckoo Sandbox and online services (Any.Run, Hybrid Analysis) automate detonation and produce behavior reports.

They speed up triage, but careful manual analysis still catches what automation misses, especially evasive samples.

Combining Static and Dynamic

Static and dynamic analysis complement each other. Static work reveals capabilities and hints; dynamic work confirms what actually executes.

An analyst typically loops between them: a string found statically guides what to watch dynamically, and observed behavior points back to code to read in the disassembler.

Quick Check

Recall the key safety step before detonating malware.

Recap

You now understand dynamic malware analysis:

  • Run the sample in an isolated VM with a clean snapshot and simulated network.
  • Monitor with Procmon, Process Explorer, and Wireshark + INetSim.
  • Collect IOCs and identify persistence mechanisms.
  • Watch for anti-analysis evasion tricks.

Next you will read the code itself with disassembly.

Frequently asked questions

Is the “Dynamic Analysis” lesson free?

Yes — the full text of “Dynamic Analysis” is free to read here on the web, and the Ethical Hacking Academy course includes 4 lessons in total. To practise it interactively (a built-in code editor and a 24/7 AI tutor) and unlock the rest of the Ethical Hacking Academy course, upgrade to CoddyKit PRO.

What will I learn in “Dynamic Analysis”?

Sandbox behavior. You practise Ethical Hacking Academy with hands-on code you run directly in the browser, and a 24/7 AI tutor answers your questions as you work through the lesson.

Do I need any experience to start Ethical Hacking Academy?

No prior experience is required. Ethical Hacking Academy on CoddyKit is structured for beginners through advanced learners; this is — lesson 2 of 4, so you can start here or from the beginning and move at your own pace.

How long does the “Dynamic Analysis” lesson take?

Most CoddyKit lessons take about 5–10 minutes. Each one is bite-sized and interactive, so you make steady progress and pick up exactly where you left off across the web and the app.

Can I write and run code in this Ethical Hacking Academy lesson?

Yes. Every Ethical Hacking Academy lesson includes a built-in code editor, so you write and run real code right in your browser and get instant AI feedback — no local setup required.

All lessons in this course

  1. Static Analysis
  2. Dynamic Analysis
  3. Disassembly Basics
  4. Unpacking
← Back to Ethical Hacking Academy