capa-rules
capa-rules copied to clipboard
[Rule Idea] - Lazarus Decode Method
Prerequisites
- [x] Put an X between the brackets on this line if you have done all of the following:
- Checked that your rule idea isn't already filed: search
Summary
Lazarus uses a custom string decoding algo. The algorithm uses base64 and then a custom routine with arithmetic operations. Highlighted in the blog post here -> https://blog.malwarebytes.com/malwarebytes-news/2021/04/lazarus-apt-conceals-malicious-code-within-bmp-file-to-drop-its-rat/
Examples
Features
-
& 0x7f8 -
<< 0x14 -
0xFFFFFF80 -
<< 0x11 -
nxzor with counts -
characteristic loop
Additional context

Rule details
Namespace
Could fit in either
-
data-manipulation/encoding -
anti-analysis/obfuscation/string
References
- https://blog.malwarebytes.com/malwarebytes-news/2021/04/lazarus-apt-conceals-malicious-code-within-bmp-file-to-drop-its-rat/
- https://github.com/hackOtack/Malware/blob/main/lazerous_string_decoder.cpp