Malicious Office (OOXML) — malware analysis report

Static analysis result for SHA-256 ddf8be12e6c49488…

MALICIOUS

Office (OOXML)

564.6 KB Created: 2014-07-04 09:40:00 UTC Authoring application: Microsoft Office Word 16.0000 First seen: 2021-10-01
MD5: c917f2d98c5b1648457a0fcb99913257 SHA-1: 8682c2d12be21b55174b4f07a9d2c88872041ee5 SHA-256: ddf8be12e6c49488224c2e80d41de1aefceef9e41ab1868f17507d82c4197e3e
192 Risk Score

Malware Insights

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

The OOXML document contains a VBA project with a Document_Open macro, indicating malicious intent. The presence of CreateObject and GetObject calls within the VBA code suggests the macro is designed to interact with the system, likely to download and execute a secondary payload. The external hyperlink to 'http://www.mdpi.com' is noted, though its direct role in the malicious execution is unclear without further analysis of the macro's full functionality.

Heuristics 8

  • VBA project inside OOXML medium 4 related findings OOXML_VBA
    Document contains a VBA project — VBA macros present
  • Document_Open macro high OLE_VBA_DOCOPEN
    Document_Open macro
  • CreateObject call high OLE_VBA_CREATEOBJ
    CreateObject call
  • GetObject call high OLE_VBA_GETOBJ
    GetObject 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.
  • External hyperlinks (2) low OOXML_EXTERNAL_HYPERLINKS
    Document contains 2 external hyperlinks — clickable URLs are stored as external relationships. First target: http://www.mdpi.com
  • 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/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)
    • http://www.fileformat.info/info/unicode/00b0/index.htmIn document text (OOXML body / shared strings)
    • http://creativecommons.org/licenses/by-nc-sa/2.0/l���In document text (OOXML body / shared strings)
    • http://www.fileformat.info/info/unicode/00b1/index.htm����In document text (OOXML body / shared strings)
    • http://www.fileformat.info/info/unicode/2020/index.htm�h��In document text (OOXML body / shared strings)
    • http://www.fileformat.info/info/unicode/03b2/index.htm���In document text (OOXML body / shared strings)
    • http://www.fileformat.info/info/unicode/2032/index.htmIn document text (OOXML body / shared strings)
    • http://www.fileformat.info/info/unicode/0052/index.htm,�In document text (OOXML body / shared strings)
    • http://www.fileformat.info/info/unicode/00b5/index.htmM*�WIn document text (OOXML body / shared strings)
    • http://www.mdpi.comDocument hyperlink
    • http://redmine.mdpi.com/projects/production-editing/wiki/MDPI_Formatting_Rules#ReferencesIn document text (OOXML body / shared strings)
    • http://search.crossref.org/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) 34135 bytes
SHA-256: 21d801251100b521b71487f0d4e55383bb57c45b8d0a98fa451cad687347f470
Detection
ClamAV: No threats found
Obfuscation or payload: likely
Carved artifact contains 1 eval/decoder/string-building token(s).
Preview script
First 1,000 lines of the extracted script
Attribute VB_Name = "ThisDocument"
Attribute VB_Base = "0{00020906-0000-0000-C000-000000000046}"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = True
Attribute VB_TemplateDerived = False
Attribute VB_Customizable = True
Private WithEvents App As Word.Application
Attribute App.VB_VarHelpID = -1
Private Sub Document_Open()
Set App = Word.Application

End Sub

Private Sub App_DocumentBeforeSave(ByVal doc As Document, SaveAsUI As Boolean, Cancel As Boolean)
Dim a
a = ActiveDocument.ComputeStatistics(Statistic:=wdStatisticWords, IncludeFootnotesAndEndnotes:=True)

End Sub

Attribute VB_Name = "watingBox"
Attribute VB_Base = "0{6875E0D9-3808-4F99-B670-998F9CF8379A}{1CCB13EA-2ED4-41ED-B747-617500CEA05E}"
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 Label1_Click()

End Sub

Attribute VB_Name = "FindLiterature"
Attribute VB_Base = "0{E0EDB431-43C7-49EE-BBC4-126A8B6FF512}{17DDB0C7-3EDB-4F26-818F-0BABF3C8F970}"
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 CommandButton1_Click()
    Selection.Sort ExcludeHeader:=False, FieldNumber:="Paragraphs", _
                   SortFieldType:=wdSortFieldSyllable, SortOrder:=wdSortOrderAscending, _
                   FieldNumber2:="", SortFieldType2:=wdSortFieldSyllable, SortOrder2:= _
                   wdSortOrderAscending, FieldNumber3:="", SortFieldType3:= _
                   wdSortFieldSyllable, SortOrder3:=wdSortOrderAscending, Separator:= _
                   wdSortSeparateByCommas, SortColumn:=False, CaseSensitive:=False, _
                   LanguageID:=wdSimplifiedChinese, SubFieldNumber:="Paragraphs", _
                   SubFieldNumber2:="Paragraphs", SubFieldNumber3:="Paragraphs"
End Sub

Private Sub CommandButton2_Click()
    Call liyuan_run.onered1
End Sub

Private Sub CommandButton3_Click()
    Call liyuan_run.oneyellow1
End Sub

Private Sub CommandButton4_Click()
    Call liyuan_run.sishuzi
End Sub

Private Sub CommandButton5_Click()
    Selection.Style = ActiveDocument.Styles("M_deck_4_ref-citation")
    Selection.Range.HighlightColorIndex = wdYellow
 
    '  End With
End Sub

Private Sub CommandButton6_Click()
    Call liyuan_run.tuchugaoliang
    Call liyuan_run.Yellow
    Select Case MsgBox("是否全部生成黄色标记到yellow.docx?", vbInformation + vbYesNo, echo)
    Case vbYes
        Call liyuan_run.echodocxyellow
        'Select Case MsgBox("已经生成到桌面", vbInformation + vbYes, echo)
        'Case vbYes
        'End Select
    End Select
End Sub

Private Sub CommandButton7_Click()
    Call liyuan_run.tuchugaoliang
    Call liyuan_run.red
    Select Case MsgBox("是否全部生成红色标记到red.docx?", vbInformation + vbYesNo, echo)
    Case vbYes
        Call liyuan_run.echodocxred
        'Select Case MsgBox("已经生成到桌面", vbInformation + vbYes, echo)
        'Case vbYes
        'End Select
    End Select
End Sub

Private Sub CommandButton8_Click()
    Call liyuan_run.sishuzi2
End Sub

Private Sub red_Click()
    Call liyuan_run.oneyellow

End Sub

Private Sub 黄色文献_Click()
    Call liyuan_run.onered
End Sub



Attribute VB_Name = "layout_symbols"
Attribute VB_Base = "0{8E24D649-736A-42B3-8FB3-59229550BA14}{1889FF55-C910-40E5-939E-B848DF6E0443}"
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 CommandButton1_Click()
    Selection.TypeText ChrW(945)
End Sub

Private Sub CommandButton100_Click()
    Selection.TypeText ChrW(176)
End Sub

Private Sub CommandButton101_Click()
    Selection.TypeText ChrW(177)
End Sub

Priv
... (truncated)
vbaProject_00.bin vba-project OOXML VBA project: word/vbaProject.bin 375296 bytes
SHA-256: cdb935d91eea384fc8d70029f8b8b8ea742be5fbf06497d3b9f16ab3fd9d43ff