Reverse Engineering a DGA (Domain Generation Algorithm) @OALABS
Reverse Engineering a DGA (Domain Generation Algorithm)  @OALABS
Uploaded November 2017 | Updated September 2026, 1 week ago
Open Analysis Live! In this tutorial we walk through the process of locating, reverse engineering, and replicating a domain generation algorithm (DGA).

-----
OALABS DISCORD
discord.gg/6h5Bh5AMDU

OALABS PATREON
patreon.com/oalabs

OALABS TIP JAR
ko-fi.com/oalabs

OALABS GITHUB
github.com/OALabs

UNPACME - AUTOMATED MALWARE UNPACKING
unpac.me/#

-----

1) DGA overview 2:26
2) Locating a DGA by tracing API calls that use a domain as an argument 12:02
3) Locating a DGA by tracing TLD string use 29:36
4) Replicating DGA in Python 33:20

Original Sample:
malwr.com/analysis/ODNmNzk3Yzc4OTc4NGEwOGIxMTk5Y2NjZDc4N2JlMjk
virustotal.com/en/file/5823bd2a5965cda23aff9962a235614329be1c8effbf752565143023c3344eeb/analysis

Stage1 Unpacked Sample:
malwr.com/analysis/ZWZkNjQyMmJkZTE2NDMwMDgxY2QwYzZmNzMxNGNkYWE
virustotal.com/en/file/304d8eca79033ef6be37038629bbdcab48f5c880f599d4aa2b6040cbc65cb6c0/analysis

Payload (Injected DLL):
malwr.com/analysis/MGI5MWJmZmIwZGE5NGM0MzljZWFmODcwOTNiODBmMjE
virustotal.com/en/file/ee608599f3e5bf714f5a440c60798580dcf272e19ef93aae73cdd9add18dcbcd/analysis

Ramnit DGA script (Python):
gist.github.com/herrcore/caa41b90ffcf1374b6b6b0c659be6607

Feedback, questions, and suggestions are always welcome : )

Sergei twitter.com/herrcore
Sean twitter.com/seanmw

As always check out our tools, tutorials, and more content over at openanalysis.net
Reverse Engineering a DGA (Domain Generation Algorithm)Unpacking Quick Tip: Two Breakpoints to Unpack Hermes RansomwareThe Vitali MetricUnderstanding Pointers for Reverse Engineers - Pointer Basics in Assembly [ Patreon Unlocked ]Introduction to YARA Part 4 - Efficient Rule DevelopmentIntroduction to YARA Part 3 - Rule Use CasesAnalyzing Adwind / JRAT Java MalwareUnpacking VB6 Packers With IDA Pro and API Hooks (Re-Upload)Using Yara Rules With IDA Pro - New Tool!
OALabs |

Reverse Engineering a DGA (Domain Generation Algorithm)

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER