Skip to content

Latest commit

 

History

10 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🦠 Malware Analysis Lab

Static & Dynamic Analysis of RATs & Ransomware

typing summary

type samples full report

pestudio procmon windows utm

Static and dynamic analysis of three malware samples in an isolated Windows 11 ARM64 lab environment. This is Lab 5 in a series of home SOC labs built on Apple Silicon.

Lab Environment

Component Details
Host Apple Mac Mini M4, 32GB RAM, macOS
Virtualization UTM (QEMU)
Analysis VM Windows 11 ARM64 Home, 8GB RAM
Network Host-Only (fully isolated)
Static Analysis PEStudio 9.61
Process Monitoring Process Monitor (Sysinternals)

Defender was disabled via registry with Tamper Protection off. The Host-Only adapter prevents any outbound connections, ensuring no live C2 communication during testing.


Samples

Sample 1: RustyStealer

Field Value
SHA256 7de487e28c9dee3ceb40fec5aca690e2128514ce26929e46fa5442f76ab2439a
MD5 ab1f8537f6160dbcda6a5d30edb09885
Original Filename 2026.04.30板员名单及补偿方案WPS.exe (Chinese HR document lure)
Embedded Name StoreInstaller.exe
Size 707,584 bytes
Entropy 7.118
Architecture x64
Compiled 2026-04-30
Tags RustyStealer, SilverFox, ValleyRAT
Detections 10/70+

Capabilities confirmed via static analysis:

  • Credential theft
  • Process injection (WriteProcessMemory, VirtualAllocEx)
  • Service-based persistence (OpenSCManagerW, StartServiceW)
  • Encrypted exfiltration (BCryptGenRandom)
  • Multi-layer sandbox and debugger evasion (NtQueryInformationProcess, SleepEx, PDH queries)

Dropped payload: SSMaHtDqksB.exe
Mutex/C2 identifier: ZILkwgfk

Dynamic analysis: The sample detected the analysis environment and self-terminated before performing any observable actions. This is consistent with published behavior for the SilverFox/RustyStealer family and is itself a documented finding confirming the evasion capability identified in static analysis.

RustyStealer Overview

PEStudio overview — file metadata, entropy, and detection summary.

RustyStealer Imports

Flagged imports revealing process injection, persistence, and crypto APIs.

RustyStealer Indicators

PEStudio indicators highlighting suspicious and blacklisted behaviors.

RustyStealer Strings

Extracted strings, including the dropped payload and mutex identifier.


Sample 2: AsyncRAT

Field Value
SHA256 6d23eb561ad602dd178fd4c0fdc63d145df645ff0dd68d8ce123dc868ff29f65
Original Filename Stub.exe (AsyncRAT builder output)
Size 250,880 bytes
Architecture 32-bit .NET
Compiled 2026-04-30
Assembly Name gRGBVPLJAmCHSNT
Tags AsyncRAT

Capabilities confirmed via .NET method analysis:

  • Encrypted C2 communication over TCP/SSL (get_TcpClient, get_SslClient)
  • DNS resolution to locate C2 server (GetHostAddresses, CheckHostName)
  • Registry persistence (CreateSubKey, OpenSubKey, DeleteSubKeyTree)
  • Configurable heartbeat beacon (get_ActivatePong, get_Interval)
  • Anti-analysis (CheckRemoteDebuggerPresent)
  • Marks process as critical to prevent termination (RtlProcessIsCritical)

Dynamic analysis: The sample executed successfully and persisted as a background process (19.8MB memory). No outbound network activity was observable due to the Host-Only network configuration preventing any C2 connection. Process Monitor kernel driver was blocked by Windows 11 ARM64 HVCI enforcement — a known compatibility limitation documented in the lab report.

AsyncRAT Overview

PEStudio overview of the .NET stub binary.

AsyncRAT Imports

.NET method references exposing C2, DNS, and persistence behavior.

AsyncRAT Indicators

Indicators flagging anti-analysis and process-protection techniques.

AsyncRAT Strings

Extracted strings showing the obfuscated assembly name and config artifacts.


Sample 3: Babuk Ransomware

Field Value
SHA256 c94a81fdf688d220827320e88cc0b89af8690142abe5c602131b6659297c7d24
MD5 75a6690d9a4a89bd0cf6ceebcffd3c41
Size 315,904 bytes
Architecture 32-bit native (x86)
Compiler Microsoft Visual C++ 6.0 - 8.0
Compiled 2020-01-06
Export Name zasawuheb.exe
Entropy 6.647
First Seen 2022-04-10
Detections 15/70+
Tags Babuk, Ransomware

Capabilities confirmed via static analysis:

  • File encryption workflow (CopyFileExW, WriteFile, DeleteFileW)
  • Directory traversal to locate targets (CreateDirectoryExA, SearchPathA)
  • Inter-process communication (CreateNamedPipeA/W, CallNamedPipeA)
  • Active user session targeting (WTSGetActiveConsoleSessionId)
  • System modification (SetComputerNameW, SetVolumeLabelW)
  • Anti-debugging (DebugBreak, OutputDebugStringA/W)

Dynamic analysis: Execution was deliberately deferred. Babuk is functional ransomware that encrypts files system-wide. Running it without a clean VM snapshot would destroy the analysis environment. A VM snapshot restore workflow is required before executing this sample.

Babuk Overview

PEStudio overview of the native x86 Babuk binary.

Babuk Imports

Imports revealing the file-encryption and directory-traversal workflow.

Babuk Indicators

Indicators flagging anti-debugging and system-modification behavior.

Babuk Strings

Extracted strings from the ransomware binary.


Lab Report

Full write-up including import analysis tables, findings summary, IOC table, and lessons learned is in malware_analysis_lab_report.pdf.


Key Takeaways

  • Native malware and .NET malware require different static analysis approaches. PE import analysis works well for native binaries like RustyStealer and Babuk. For .NET samples like AsyncRAT, .NET method names and string extraction are more informative than the PE import table.
  • Evasion behavior is a finding, not a failure. RustyStealer's self-termination in the analysis environment confirmed the sandbox detection capabilities identified in static analysis and is consistent with published threat intelligence on the SilverFox family.
  • ARM64 virtualization introduces tooling limitations. Process Monitor's kernel driver is incompatible with Windows 11 ARM64 HVCI enforcement. Future iterations of this lab will evaluate Sysmon as an alternative.

Other Labs in This Series

Lab Topic Repo
Lab 1 SOC/SIEM Detection soc-siem-lab
Lab 2 Incident Response Simulation incident-response-lab
Lab 3 Web Application Attack web-app-attack-lab
Lab 4 Vulnerability Assessment vulnerability-assessment-lab
Lab 5 Malware Analysis This repo
Lab 6 Phishing Analysis phishing-analysis-lab
Lab 7 Active Directory Attack active-directory-lab

About

Static and dynamic analysis of RustyStealer, AsyncRAT, and Babuk ransomware in an isolated lab — IOC extraction and capability mapping.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Contributors