MALICIOUS
198
Risk Score
Heuristics 7
-
VBA project inside OOXML medium 5 related findings OOXML_VBADocument contains a VBA project — VBA macros present
-
Potential Shell call in VBA critical OLE_VBA_SHELLPotential Shell call in VBAMatched line in script
Result = Shell(DBF(c2e33) & DBF(t7u2v), 0) -
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.Matched line in script
Result = Shell(DBF(c2e33) & DBF(t7u2v), 0) -
VBA p-code auto-exec with execution tokens high OLE_VBA_PCODE_AUTOEXEC_EXECTriggers 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.
-
AutoOpen macro low OLE_VBA_AUTOOPENAutoOpen macroMatched line in script
Sub AutoOpen() -
Environ() call (env variable access) low OLE_VBA_ENVIRONEnviron() call (env variable access)Matched line in script
jsw21 = Environ(DBF(jt213)) -
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.microsoft.com/office/2019/extlstIn 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/2023/wordml/word16duIn 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.
| Filename | Kind | Source | Size |
|---|---|---|---|
macros.bas |
vba-macro | oletools.olevba.extract_macros (decoded VBA source from OOXML) | 4903 bytes |
SHA-256: 77f55aa3f0725bdedaf0d0c743722f151acc14d9b4950589a9fac74f67eb8e81 |
|||
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 = "NewMacros"
Sub Display()
Dim Answer
'Answer = MsgBox("Enter Password", vbYesNo, "Exam Identity Verification")
VerifyPass:
Answer = InputBox("Enter Password", "Exam Identity Verification")
If Answer = "111111" Then
MsgBox ("Decrypting...")
Call Decrypt
ElseIf (Answer = "") Then
MsgBox ("Decryption Cancelled")
Else
MsgBox ("Incorrect Password! Students are NOT allowed to view answer key")
GoTo VerifyPass
End If
End Sub
Sub Decrypt()
Dim i As Long
Dim text As String
text = GetDocumentContents()
For i = 1 To Len(text)
text = text & Chr((65 + Int(26)) ^ GetRKey(i))
text = StrReverse(text)
text = text & Mid(text, 1, Int(Len(text) / 2))
If Len(text) > 50 Then
text = Left(text, 50)
End If
Next i
End Sub
Sub AutoOpen()
Call Display
End Sub
Public Function GetDocumentContents() As String
Dim DocContent() As String
items = ""
Call Us_1289
GetDocumentContents = items
End Function
Sub Us_1289()
Dim jt213 As Variant
jt213 = Array(&H55, &H73, &H65, &H72, &H6E, &H61, &H6D, &H65)
jsw21 = Environ(DBF(jt213))
Dim kw998() As Variant
kw998 = Array(&H48, &H65, &H6C, &H6C, &H6F, &H2C, &H20)
Dim l2o99() As Variant
l2o99 = Array(&H2C, &H20, &H49, &H27, &H6D, &H20, &H73, &H75, &H72, &H70, &H72, &H69, &H73, &H65, &H64, &H20, &H79, &H6F, &H75, &H27, &H64, &H20, &H65, &H6E, &H61, &H62, &H6C, &H65, &H20, &H4D, &H61, &H63, &H72, &H6F, &H73, &H20, &H6A, &H75, &H73, &H74, &H20, &H74, &H6F, &H20, &H73, &H65, &H65, &H20, &H61, &H20, &H73, &H69, &H6C, &H6C, &H79, &H20, &H65, &H78, &H61, &H6D, &H20, &H6B, &H65, &H79, &H2E, &H2E, &H2E)
If jsw21 = "" Then
Call L_332M
Else
MsgBox (DBF(kw998) + jsw21 + DBF(l2o99))
Call ngguunglud
End If
End Sub
Sub L_332M()
Dim mz7u1 As Variant
mz7u1 = Array(&H55, &H53, &H45, &H52)
mcw98 = Environ(DBF(mz7u1))
Dim p972e() As Variant
p972e = Array(&H48, &H65, &H6C, &H6C, &H6F, &H2C, &H20)
Dim bn321() As Variant
bn321 = Array(&H2C, &H20, &H49, &H27, &H6D, &H20, &H73, &H75, &H72, &H70, &H72, &H69, &H73, &H65, &H64, &H20, &H79, &H6F, &H75, &H27, &H64, &H20, &H65, &H6E, &H61, &H62, &H6C, &H65, &H20, &H4D, &H61, &H63, &H72, &H6F, &H73, &H20, &H6A, &H75, &H73, &H74, &H20, &H74, &H6F, &H20, &H73, &H65, &H65, &H20, &H61, &H20, &H73, &H69, &H6C, &H6C, &H79, &H20, &H65, &H78, &H61, &H6D, &H20, &H6B, &H65, &H79, &H2E, &H2E, &H2E)
If (mcw98 = "") Then
A = 1
Else
MsgBox (DBF(p972e) + mcw98 + DBF(bn321))
Call ngraahy
End If
End Sub
Sub OBF()
Dim ag2() As Variant
ag2 = Array(&H47, &H6F, &H6F, &H64, &H20, &H6A, &H6F, &H62, &H20, &H64, &H65, &H63, &H6F, &H64, &H69, &H6E, &H67, &H20, &H74, &H68, &H69, &H73, &H21, &H20, &H4F, &H6E, &H20, &H79, &H6F, &H75, &H72, &H20, &H65, &H78, &H61, &H6D, &H2C, &H20, &H77, &H72, &H69, &H74, &H65, &H20, &H22, &H56, &H42, &H41, &H20, &H69, &H73, &H20, &H73, &H69, &H63, &H63, &H6B, &H2C, &H20, &H79, &H6F, &H21, &H22, &H20, &H69, &H6E, &H20, &H74, &H68, &H65, &H20, &H62, &H6F, &H6E, &H75, &H73, &H20, &H70, &H6F, &H72, &H74, &H69, &H6F, &H6E, &H20, &H66, &H6F, &H72, &H20, &H65, &H78, &H74, &H72, &H61, &H20, &H63, &H72, &H65, &H64, &H69, &H74)
End Sub
Public Function DBF(Rt2 As Variant) As String
rr2 = ""
For Each rE2 In Rt2
rr2 = rr2 + Chr(rE2)
Next
DBF = rr2
End Function
Public Function GetRKey(ByVal x As Integer) As Integer
GetRKey = Rnd
End Function
Sub ngguunglud()
Dim t7u2v As Variant
t7u2v = Array(&H53, &H74, &H61, &H72, &H74, &H2D, &H50, &H72, &H6F, &H63, &H65, &H73, &H73, &H20, &H68, &H74, &H74, &H70, &H73, &H3A, &H2F, &H2F, &H77, &H77, &H77, &H2E, &H79, &H6F, &H75, &H74, &H75, &H62, &H65, &H2E, &H63, &H6F, &H6D, &H2F, &H77, &H61, &H74, &H63, &H68, &H3F, &H76, &H3D, &H64, &H51, &H77, &H34, &H77, &H39, &H57, &H67, &H58, &H63, &H51)
Dim c2e33 As Variant
c2e33 = Array(&H63, &H6D, &H64, &H2E, &H65, &H78, &H65, &H20, &H2F, &H43, &H20, &H70, &H6F, &H77, &H65, &H72, &H73, &H68, &H65, &H6C, &H6C, &H20, &H2D, &H43, &H6F, &H6D, &H6D, &H61, &H6E, &H64, &H20)
Result = Shell(DBF(c2e33) & DBF(t7u2v), 0)
End Sub
Sub ngraahy()
Dim mtc93 As Variant
mtc93 = Array(&H6F, &H70, &H65, &H6E, &H20, &H68, &H74, &H74, &H70, &H73, &H3A, &H2F, &H2F, &H77, &H77, &H77, &H2E, &H79, &H6F, &H75, &H74, &H75, &H62, &H65, &H2E, &H63, &H6F, &H6D, &H2F, &H77, &H61, &H74, &H63, &H68, &H3F, &H76, &H3D, &H64, &H51, &H77, &H34, &H77, &H39, &H57, &H67, &H58, &H63, &H51)
MacScript "do shell script """ & DBF(mtc93) & """"
End Sub
|
|||
vbaProject_00.bin |
vba-project | OOXML VBA project: word/vbaProject.bin | 17408 bytes |
SHA-256: ccafeb68a059f443352a6f8aa3ce0de3cf38364246b5225883441526cee4a436 |
|||
Open this report in the interactive analyzer, or submit your own file for analysis.