Malicious Office (OOXML) — malware analysis report

Static analysis result for SHA-256 c48256e1faf16655…

MALICIOUS

Office (OOXML)

21.5 KB Created: 2021-07-01 18:23:00 UTC Authoring application: Microsoft Office Word 16.0000 First seen: 2026-06-04
MD5: 2d85f985dc6650a4296ffa1fd0352fd3 SHA-1: 3a8d50f469d8d0de49370d10772bbd804dbfe672 SHA-256: c48256e1faf16655dffd5dfa6305f2c99ad361f1556ba401137a04dbefed2714
110 Risk Score

Malware Insights

MITRE ATT&CK
T1059.005 Visual Basic T1566.001 Spearphishing Attachment

The sample is an OOXML document containing VBA macros, including an Auto_Open macro, which is a common technique for malicious documents. The VBA code displays several messages to the user, including one that attempts to decode a Base64 string, suggesting a downloader or obfuscated payload. The presence of VBA macros and an Auto_Open function strongly indicates a malicious document intended for initial access via spearphishing.

Heuristics 5

  • 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
        With CreateObject("Microsoft.XMLDOM").createElement("b64")
  • VBA p-code auto-exec with execution tokens high OLE_VBA_PCODE_AUTOEXEC_EXEC
    Triggers on the COMBINATION of two tokens co-occurring in the same compiled VBA/cache stream: an auto-execution entry point (Auto_Open / AutoOpen / Document_Open / Workbook_Open / Auto_Close / AutoClose) AND a shell/download/object-execution token (Shell, CreateObject, GetObject, PowerShell, cmd.exe, URLDownloadToFile, WinHttp, XMLHTTP, ADODB.Stream, ShellExecute, ExecuteExcel4Macro). Neither token alone fires it — it is the pairing that flags p-code-only or source-extraction-failure macro documents where the visible VBA source is unavailable. The matched tokens are named in the detail line below.
  • 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) 2490 bytes
SHA-256: 90b1f8c7db3906c0f5d320cd08638c9802c807e63c10c76d7770f1ce5a5b8305
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
Function ZararlıYazılımMesajı()
   
    sonuc = MsgBox("Bu word macrosunu sanal makinada mı çalıştırdın?", 4, "Hoş Geldiniz!")
    If sonuc = 6 Then
        sonuc2 = MsgBox("Helal olsun bee, doğru karar vermişsin. Eğer sanal makinede olmasaydın şu anda hacklenmiş olurdun. Pekii sence flag'i hakettin mi?", 4, "Helal olsun!")
        If sonuc2 = 6 Then
        sonuc3 = MsgBox("Sence evet ama bence hayır :) Flag'i buradan elde edemezsin ama istersen sana ipucu verebilirim. İster misin?", 4, "Üzgünüm :(")
        If sonuc3 = 6 Then
        MsgBox ("Macroyu incelemen gerekiyor, flag makronun içinde gizli!")
        Else
        MsgBox ("İpucunu alsan iyiydi ama yine de sen bilirsin :)")
        End If
        Else
        MsgBox ("Çok mütevazisin! bence hakettin ama yine de sen bilirsin!")
        End If
    Else
        MsgBox ("Oouuu bu büyük bir hata! HACKLENDİN!!!! şaka şaka hacklenmedin, yani şimdilik, eğer gerçekten zararlı bir yazılım olsaydım hacklenmiş olurdun ve şu anda sen bu yazıyı okuyorken tüm kişisel bilgilerini ele geçiriyor olurdum! Bir sonraki analizinde buna dikkat et! Şimdilik için rahat olsun, zararlı değilim :) Lütfen tekrar dene!!!")
    End If
      
End Function
Function DecodeBase64(b64$)
    Dim b
    With CreateObject("Microsoft.XMLDOM").createElement("b64")
        .DataType = "bin.base64": .Text = b64
        b = .nodeTypedValue
        With CreateObject("ADODB.Stream")
            .Open: .Type = 1: .Write b: .Position = 0: .Type = 2: .Charset = "utf-8"
            DecodeBase64 = .ReadText
            .Close
        End With
    End With
End Function
Sub Document_Open()
ZararlıYazılımMesajı
maybeFlag = DecodeBase64("RkxBR3taYXJhcmzEsU9sYWJpbGlyZGltQW1hRGXEn2lsaW19")
End Sub


Attribute VB_Name = "UserForm1"
Attribute VB_Base = "0{297E76AD-750B-4556-B5BE-C016DE108E09}{1983EF46-975E-4F0F-BBBF-46BE7DB0B062}"
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 UserForm_Click()

End Sub
vbaProject_00.bin vba-project OOXML VBA project: word/vbaProject.bin 15872 bytes
SHA-256: b9ef52c0ac4cc20cf07023d7b81ed2a58c464f45905557e71768ba7dfafd83ee