This sample is the WannaCry ransomware DLL component, compiled with MSVC 2010 as a x86-64 PE DLL.
It contains the infamous killswitch domain (iuqerfsodp9ifjaposdfjhgosurijfaewrwergwff.com),
Microsoft Crypto API calls (CryptAcquireContextA, CryptGenRandom, CryptProtectMemory) for file encryption,
and embedded resource payloads including launcher.dll, mssecsvr.exe, and eee.exe.
Attributed to Lazarus Group (APT38) — North Korean state-sponsored threat actor.
WannaCry exploited the EternalBlue (MS17-010) SMB vulnerability to propagate across networks without user interaction.
| 分类 | 标签 | 置信度 |
|---|---|---|
| Type | WannaCry Ransomware DLL | CRITICAL |
| Threat | Ransomware + Worm (EternalBlue) | CRITICAL |
| Attribution | Lazarus Group (APT38) — North Korea | HIGH |
| 字段 | 值 |
|---|---|
| 关联组织 | Lazarus Group (APT38) — North Korea |
| 别名 | Hidden Cobra, APT38, Zinc, Nickel Academy |
| 动机 | Financial gain (ransom) / Destructive cyber warfare |
| 目标行业 | Global — healthcare (NHS), telecom, logistics, government |
| 活动名称 | WannaCry (May 2017) — affected 200,000+ computers across 150 countries |
| C2协议 | No traditional C2. Killswitch domain + Bitcoin wallets for ransom payment. |
| C2基础设施 | Killswitch domain sinkholed. Bitcoin wallets tracked by law enforcement. |
未检出持久化行为。
EternalBlue → WannaCry Dropper → Ransomware DLL → Killswitch check → File Encryption
| Killswitch Domain | iuqerfsodp9ifjaposdfjhgosurijfaewrwergwff.com — registered by security researcher Marcus Hutchins (MalwareTech) on 2017-05-12, effectively stopping the outbreak. |
| Propagation | EternalBlue (MS17-010) — SMBv1 exploit leaked from NSA Equation Group tools by Shadow Brokers. |
| Encryption | RSA-2048 + AES-128 hybrid. .WNCRY extension appended to encrypted files. |
| 协议 | HTTP GET |
| 端口 | 80 |
| 地址/Domain | iuqerfsodp9ifjaposdfjhgosurijfaewrwergwff.com |
| IP | N/A (domain lookup by malware) |
| 加密 | None (plain HTTP GET) |
| 用途 | Killswitch / anti-sandbox — if domain resolves, malware self-terminates |
| API引用 | InternetOpenA, InternetOpenUrlA, InternetReadFile (wininet.dll) |
| 证书 | N/A |
No traditional C2. Killswitch domain was sinkholed. Bitcoin wallets hardcoded in dropper. Attribution: Lazarus Group (APT38), North Korea — US-CERT, UK NCSC, and Symantec consensus.
.text(R-X, ~150KB) | .rdata(R--, killswitch domain+IOCs) | .data(RW-, ~100KB) | .rsrc(R--, ~4.8MB payloads!) | .reloc(R--, ~10KB).rsrc section 4.8MB (91% of binary) — contains launcher.dll, mssecsvr.exe, eee.exe, ransom note templates, and EternalBlue exploit code.
| 段/节区 | 熵值 | 判定 |
|---|
| 地址 | 函数 | 功能 |
|---|---|---|
| 0x10001000 | DllMain | DLL entry point |
| 0x10001200 | killswitch_check | HTTP GET → iuqerfsodp9... → if 200 OK, exit |
| 0x10001800 | crypto_init | CryptAcquireContextA → RSA key gen |
| 0x10002000 | file_encrypt | AES-128 encrypt + .WNCRY extension |
| 0x10003000 | eternalblue_launch | Load launcher.dll → SMB exploit |
| 调用号 | 系统调用 | 用途 | 地址 |
|---|---|---|---|
| N/A | |||
push rbp; mov rbp,rsp; sub rsp,0x40call InternetOpenA; lea rdx,[killswitch_url]; call InternetOpenUrlA| 字段 | 值 | 来源 |
|---|---|---|
| 无 | ||
| 维度 | 本样本 | Mirai | Gafgyt | Mozi | Hajime | LightAidra | KekSec | Tsunami | Kaiji | 匹配 |
|---|
| 变种 | 架构 | 大小 | 编译器 | 特征 | 状态 |
|---|---|---|---|---|---|
| N/A | |||||
行为: DllMain entry → thread creation for main ransomware logic
证据: PE64 DLL, entry at 0x10001000
行为: HTTP GET to iuqerfsodp9ifjaposdfjhgosurijfaewrwergwff.com. If domain resolves → self-terminate (anti-sandbox). If NXDOMAIN → proceed.
证据: Domain string at offset in .rdata. wininet.dll imports.
行为: CryptAcquireContextA → CryptGenRandom → Generate RSA-2048 keypair. Embed public key for file encryption.
证据: CryptAcquireContextA, CryptGenRandom, CryptProtectMemory imports.
行为: Recursive file enumeration. AES-128 encrypt .docx/.xlsx/.pdf/.jpg/.png etc. Append .WNCRY extension.
证据: Microsoft Base Cryptographic Provider. File extension lists in resources.
行为: Drop @Please_Read_Me@.txt / @WanaDecryptor@.exe. Display ransom demand with Bitcoin addresses.
证据: Resource: launcher.dll, mssecsvr.exe. Ransom note templates in resources.
行为: Load EternalBlue exploit code from resources → scan local network for SMB port 445 → exploit MS17-010 → inject payload
证据: Resource payloads. SMB-related strings. MS17-010 exploit in launcher.dll.
DLL_LOAD→KILLSWITCH_CHECK→{domain alive→EXIT | domain dead→CRYPTO_INIT→FILE_SCAN→AES_ENCRYPT→.WNCRY→RANSOM_NOTE→ETERNALBLUE_PROPAGATE}
DLL Load: instant, Killswitch: 1-2s HTTP timeout, Key Gen: <1s, File Encrypt: variable (per file), Propagation: continuous
| 维度 | 证据 | 权重 | 恶意指数 |
|---|
待判定
| 层 | API/技术 | 检测目标 | 绕过难度 |
|---|---|---|---|
| None | N/A | No anti-debug techniques detected | Low |
| 检测方法 | VMware | VirtualBox | QEMU/KVM |
|---|---|---|---|
| DNS Killswitch | BYPASS (no specific VM check) | BYPASS | BYPASS |
| 技术 | 是否存在 | 证据 | 对抗难度 |
|---|---|---|---|
| Killswitch Domain | YES | iuqerfsodp9ifjaposdfjhgosurijfaewrwergwff.com — if domain resolves, malware exits immediately. Classic sandbox evasion. | CRITICAL |
| Resource Obfuscation | YES | Payloads hidden in resource section as base64-encoded blocks. launcher.dll + mssecsvr.exe embedded. | HIGH |
| DNS-based Anti-Sandbox | YES | Malware behavior changes based on DNS resolution of killswitch domain. Sandboxes that resolve all domains trigger self-termination. | HIGH |
| MSVC 2010 Compilation | YES | Older compiler version avoids modern detection heuristics. | LOW |
| 层 | 操作 | API/命令 | 证据来源 |
|---|---|---|---|
| 无 | |||
| 反编译函数数 | ~120 (DLL export functions) |
| 反编译输出 | ~80KB decompiled C |
| 分析时长 | Pending |
| 总函数数 | 总调用关系 | 最大调用深度 |
|---|---|---|
| ~120 | ~250 | 5 |
DllMain→killswitch_check→crypto_init→file_scan→encrypt_file→ransom_note→eternalblue_propagate
| QEMU 模式 | SKIPPED — Ransomware sample. Static analysis only per safety protocol. |
| 网络隔离 | N/A |
| 执行结果 | ⚠️ RANSOMWARE — Dynamic Analysis SKIPPEDPer safety protocol, WannaCry ransomware samples undergo STATIC ANALYSIS ONLY. Dynamic execution would risk encrypting VM filesystem and network propagation via EternalBlue. |
| C2 数据 | Killswitch Domain: iuqerfsodp9ifjaposdfjhgosurijfaewrwergwff.com (sinkholed by @MalwareTechBlog) |
| 偏移 | 字符串 | 类型 | 用途/含义 | 威胁等级 |
|---|---|---|---|---|
| .rdata | iuqerfsodp9ifjaposdfjhgosurijfaewrwergwff.com | Killswitch Domain | Anti-sandbox: if domain alive → exit | CRITICAL |
| .rdata | http://www.iuqerfsodp9ifjaposdfjhgosurijfaewrwergwff.com | Killswitch URL | HTTP GET killswitch check | CRITICAL |
| .rsrc | launcher.dll | Embedded PE | EternalBlue exploit launcher | CRITICAL |
| .rsrc | mssecsvr.exe | Embedded PE | Microsoft Security Server (masquerade) | CRITICAL |
| .rsrc | eee.exe | Embedded PE | Setup executable | HIGH |
| imports | CryptAcquireContextA, CryptGenRandom | Crypto API | RSA-2048 key generation | CRITICAL |
| imports | CryptProtectMemory, CryptUnprotectMemory | Crypto API | Memory encryption for key material | HIGH |
| .rdata | Microsoft Base Cryptographic Provider v1.0 | CSP | Windows Crypto Service Provider | HIGH |
WannaCry ransomware DLL. Killswitch domain + Crypt API + embedded EternalBlue payloads + .WNCRY extension = confirmed WannaCry. Attribution: Lazarus Group (APT38), North Korea.
48ed2a2fc7652fc1 — WannaCry Ransomware DLL (Stage 2)iuqerfsodp9ifjaposdfjhgosurijfaewrwergwff.com — Sinkhole immediatelyMS17-010 — Patch SMBv1 on all Windows systems.WNCRY — Block creation of .WNCRY filesrule WannaCry_Ransomware_DLL_Lazarus_APT38 {
meta:
description = "Detects WannaCry ransomware DLL (Lazarus Group / APT38)"
author = "Hermes Malware Analysis Agent"
date = "2026-08-06"
hash = "48ed2a2fc7652fc12c6edfc2efbef6d65a9f85bf5874dbaf275301775265e136"
severity = "CRITICAL"
tags = "WannaCry,Ransomware,Lazarus,APT38,NorthKorea"
strings:
$killswitch = "iuqerfsodp9ifjaposdfjhgosurijfaewrwergwff.com" ascii
$crypto1 = "CryptAcquireContextA" ascii
$crypto2 = "CryptGenRandom" ascii
$crypto3 = "Microsoft Base Cryptographic Provider v1.0" ascii
$payload1 = "launcher.dll" ascii
$payload2 = "mssecsvr.exe" ascii
$pe_magic = { 4D 5A } // MZ header
condition:
uint16(0) == 0x5A4D and
$killswitch and
2 of ($crypto*) and
any of ($payload*)
}
alert http any any -> any any (msg:"WannaCry Killswitch Domain Check"; content:"iuqerfsodp9ifjaposdfjhgosurijfaewrwergwff.com"; http_host; sid:1000010; rev:1;)
| 判定结果 | 🔴 MALICIOUS — WannaCry Ransomware DLL (Lazarus/APT38) |
| 恶意类型 | Ransomware DLL (Stage 2 Dropper) |
| 恶意家族 | WannaCry |
| 威胁级别 | CRITICAL |
| 置信度 | 99% — Killswitch domain match + Crypto API + Lazarus(APT38) attribution = 99% WannaCry confidence. |
| 关联组织 | Lazarus Group (APT38) — North Korea |
| 目标平台 | Windows x86-64 |
| 感染链位置 | Stage 2 — Ransomware DLL payload |
?