Create oceanlotus_png_loader.yar

This commit is contained in:
blackorbird
2019-04-03 22:35:59 +08:00
committed by GitHub
parent fa5e22db92
commit cf3fee1f20

View File

@@ -0,0 +1,29 @@
import “pe”
rule OceanLotus_Steganography_Loader
{
meta:
description = “OceanLotus Steganography Loader”
strings:
$data1 = “.?AVCBC_ModeBase@CryptoPP@@” ascii
condition:\
// Must be MZ file
uint16(0) == 0x5A4D and
// Must be smaller than 2MB
filesize < 2MB and
// Must be a DLL
pe.characteristics & pe.DLL and
// Must contain the following imports
pe.imports(“gdiplus.dll”, “GdipGetImageWidth”) and
pe.imports(“gdiplus.dll”, “GdipCreateBitmapFromFile”) and
pe.imports(“kernel32.dll”, “WriteProcessMemory”) and
// Check for strings in .data
for all of ($data*) :
(
$ in
(
pe.sections[pe.section_index(“.data”)].raw_data_offset
..
pe.sections[pe.section_index(“.data”)].raw_data_offset + pe.sections[pe.section_index(“.data”)].raw_data_size
)
)
}