Inside The Shellcode Dissecting North Korean Apt43s Advanced Powershell Loader
2025-11-12 • Bloo •
https://bloo.io/blog/inside-the-shellcode-dissecting-north-korean-apt43s-advanced-powershell-loader
The excerpt analyzes a PowerShell loader named shell.ps1 recovered from North Korean APT infrastructure and linked in the text to Kimsuky/APT43. The script uses multi-layer base64 encoding to dynamically compile C# with P/Invoke access to Windows APIs such as VirtualProtect, LoadLibrary, GetProcAddress, malloc, memset, and CreateThread. Its execution flow allocates memory, marks regions executable, builds a randomized NOP sled, transforms and writes shellcode bytes, resolves APIs with obfuscated names, and launches code via thread creation. The analysis matters because it documents authentic tooling with layered obfuscation, in-memory execution, and API-level evasion techniques used to bypass PowerShell monitoring and Windows memory protections.