MALICIOUS
252
Risk Score
Malware Insights
MITRE ATT&CK
T1059.005 Visual Basic
T1566.001 Spearphishing Attachment
The sample is an OOXML document containing a VBA project with a Document_Open macro. This macro, along with CreateObject and GetObject calls, indicates an attempt to execute arbitrary code. The script also includes logic to print the document, potentially to a PDF, which is a common technique for obfuscating malicious content or preparing for further stages. The presence of a Document_Open macro and the use of VBA point to a macro-based attack, often delivered via spearphishing attachments.
Heuristics 9
-
VBA project inside OOXML medium 5 related findings OOXML_VBADocument contains a VBA project — VBA macros present
-
Shell() call in VBA critical OLE_VBA_SHELLShell() call in VBA
-
Document_Open macro high OLE_VBA_DOCOPENDocument_Open macro
-
CreateObject call high OLE_VBA_CREATEOBJCreateObject call
-
GetObject call high OLE_VBA_GETOBJGetObject call
-
VBA p-code auto-exec with execution tokens high OLE_VBA_PCODE_AUTOEXEC_EXECCompiled 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_HYPERLINKSDocument contains 2 external hyperlinks — clickable URLs are stored as external relationships. First target: http://www.mdpi.com
-
Suspicious extracted artifact info EXTRACTED_FILE_STATIC_TRIAGEOne 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_URLOne 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.
| Filename | Kind | Source | Size |
|---|---|---|---|
macros.bas |
vba-macro | oletools.olevba.extract_macros (decoded VBA source from OOXML) | 53030 bytes |
SHA-256: 5f22b8a217c324c2f2bb97ce9d818febbf349f76effd4e18dc10ab082b94b875 |
|||
|
Detection
ClamAV:
No threats found
Obfuscation or payload:
likely
Carved artifact contains 1 eval/decoder/string-building token(s).
|
|||
Preview scriptFirst 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 = "article_metadata"
Attribute VB_Base = "0{1D664CE3-99C3-498D-A376-F4299B9AE316}{F60FF9B2-1D58-4DBF-A109-3AE1797BC354}"
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 abstract_Change()
End Sub
Private Sub submit_metadata_Click()
Word.ActiveDocument.BuiltInDocumentProperties("Author") = authors
Word.ActiveDocument.BuiltInDocumentProperties("Title") = title
Word.ActiveDocument.BuiltInDocumentProperties("Subject") = abstract 'Left(abstract, 254)
Word.ActiveDocument.BuiltInDocumentProperties("Keywords") = keywords
Dim strpdfname As String
Application.PrintOut FileName:="", Range:=wdPrintAllDocument, Item:= _
wdPrintDocumentWithMarkup, Copies:=1, Pages:="", PageType:= _
wdPrintAllPages, Collate:=True, Background:=True, PrintToFile:=False, _
PrintZoomColumn:=0, PrintZoomRow:=0, PrintZoomPaperWidth:=0, _
PrintZoomPaperHeight:=0
' strpdfname = ActiveDocument.path & "\" & Left(ActiveDocument.Name, InStrRev(ActiveDocument.Name, ".") - 1) & ".pdf"
' ActiveDocument.ExportAsFixedFormat OutputFileName:= _
' strpdfname, _
' ExportFormat:=wdExportFormatPDF, OpenAfterExport:=False, OptimizeFor:= _
' wdExportOptimizeForPrint, Range:=wdExportAllDocument, from:=1, To:=1, _
' Item:=wdExportDocumentContent, IncludeDocProps:=True, KeepIRM:=True, _
' CreateBookmarks:=wdExportCreateNoBookmarks, DocStructureTags:=True, _
' BitmapMissingFonts:=True, UseISO19005_1:=True
'''' below are codes to manipulate Acrobat.
'''' single quotes are genuine codes, double or more quotes are comments
''Set pdapp = CreateObject("AcroExch.App")
'Set pddoc = CreateObject("AcroExch.pddoc")
'
'pddoc.Open (strpdfname)
''pddoc.openavdoc (strpdfname)
'
'pddoc.SetPageMode (2)
'
''====probably use pddoc.setinfo here to write author and keywords data to remove the quotation marks
'' but syntax need to be researched
'
'Set jso = pddoc.getjsobject
'
''msgbox jso.zoomtype.fitw gives fitwidth, but jso.zoomtype.fitw itself gives exception,
''and jso.zoomtype = jso.zoomtype.fitw does not work. maybe because vba mix upper case with lower case?
''consider use shell or command line to execute javascript if necessary? 'jso.layout also not working
'
'a = pddoc.Save(PDSaveIncremental, "")
'pddoc.Close
'
'Dim strPrompt As String, editor_action As Integer
'
'strPrompt = "your pdf file has been generated at " & vbNewLine & strpdfname & vbNewLine & "please open the file and change magnification to fit width"
'editor_action = MsgBox(strPrompt, vbOKCancel, "save as pdf done")
'
'If editor_action = 1 Then
''MsgBox (strpdfname)
''pdapp.Show
'Else
''pdapp.exit
'End If
'
'Set pddoc = Nothing
MsgBox "Your pdf file has been generated at " & vbNewLine & strpdfname & vbNewLine, vbInformation
article_metadata.hide
End Sub
Attribute VB_Name = "doi_pub_date"
Attribute VB_Base = "0{99BEB687-7370-4BC5-A9D0-E7612249DD64}{E893F3D8-5BB1-4482-9
... (truncated)
|
|||
vbaProject_00.bin |
vba-project | OOXML VBA project: word/vbaProject.bin | 487424 bytes |
SHA-256: 95157dad195d8504d406fb71e0a97fb34147539ba0ed1a076bb836edb79216a4 |
|||
Open this report in the interactive analyzer, or submit your own file for analysis.