MALICIOUS
302
Risk Score
Malware Insights
MITRE ATT&CK
T1059.005 Visual Basic
The file contains a heavily obfuscated VBA macro with an auto-execution loader, indicated by multiple critical heuristic firings. The macro uses CreateObject and CallByName, suggesting it attempts to execute arbitrary code, likely to download and run a second-stage payload. ClamAV also detected this file as Doc.Malware.Valyria-6749505-0.
Heuristics 8
-
ClamAV: Doc.Malware.Valyria-6749505-0 critical CLAMAV_DETECTIONClamAV detected this file as malware: Doc.Malware.Valyria-6749505-0
-
VBA macros detected medium 5 related findings OLE_VBA_MACROSDocument contains VBA macro code
-
Obfuscated auto-exec VBA loader critical OLE_VBA_OBFUSCATED_AUTOEXEC_LOADERAuto-exec VBA reconstructs strings with a heavy custom decoder (numeric char-array, repeated hex-string decode, or junk-token Replace removal) and feeds them to a COM-instantiation or execution sink. This obfuscated-loader shape keeps CreateObject/Shell/URL indicators out of the macro source.
-
Document_Open macro high OLE_VBA_DOCOPENDocument_Open macro
-
CreateObject call high OLE_VBA_CREATEOBJCreateObject call
-
CallByName call high OLE_VBA_CALLBYNAMECallByName call
-
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://schemas.openxmlformats.org/drawingml/2006/main In document text (OLE body)
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) | 8615 bytes |
SHA-256: a5cd781674963381e62ce20ca4e4f5c5d389a9c2594b179915a9b8ae439be612 |
|||
Preview scriptFirst 1,000 lines of the extracted script
Attribute VB_Name = "ThisDocument"
Attribute VB_Base = "1Normal.ThisDocument"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = True
Attribute VB_TemplateDerived = True
Attribute VB_Customizable = True
Option Explicit
Sub CreateReport()
Dim coll As Collection
' read the data
Set coll = ReadAlbums(1990, 2001)
' Print the album details
PrintAlbum coll
' Print the total sales
PrintTotalSales coll
End Sub
Sub PrintAlbum(coll As Collection)
Dim oAlbum As clsAlbum
For Each oAlbum In coll
Debug.Print oAlbum.Title, oAlbum.Artist
Next
End Sub
Sub PrintTotalSales(coll As Collection)
Dim oAlbum As clsAlbum, sales As Double
For Each oAlbum In coll
sales = sales + oAlbum.sales
Next
Debug.Print "Total number sales is " & sales
End Sub
Private Sub CommandB1_Click()
Dim strFileName As String
Dim objPic As Picture
Dim rngDest As Range
strFileName = Application.GetOpenFilename( _
FileFilter:="Images (*.jpg;*.gif;*.png),*.jpg;*.gif;*.png", _
Title:="Please select an image...")
If strFileName = "False" Then Exit Sub
Set rngDest = Me.Range("A18:C18")
Set objPic = Me.Pictures.Insert(strFileName)
With objPic
.ShapeRange.LockAspectRatio = msoFalse
.Left = 300
.Top = 745
.Width = 100
.Height = 54
End With
End Sub
Private Sub WorkshionChange(ByVal Target As Range)
If Target.Count > 20 Then Exit Sub
If Target.Column = 20 Then
Target.Columns.ColumnWidth = 15
Else
Columns(20).ColumnWidth = 10
Columns(21).ColumnWidth = 4
Columns(22).ColumnWidth = 2
End If
If Target.Count > 25 Then Exit Sub
If Target.Column = 25 Then
Target.Columns.ColumnWidth = 45
Else
Columns(25).ColumnWidth = 16
End If
If Range("I41").Value = 1 Then
Range("G39").Value = "[ Type ]"
End If
If Range("G34").Value = "" Then
Range("G34").Value = "[ Type]"
End If
If Range("X42").Value = "" Then
Range("X42").Value = "Type"
End If
End Sub
Function ReadAlbums(startYear As Long, endYear As Long) _
As Collection
Dim rg As Range
Set rg = Sheet1.Range("A1").CurrentRegion
' Create a collection to store the albums
Dim coll As New Collection
Dim oAlbum As clsAlbum
Dim i As Long, Year As Long
For i = 2 To rg.Rows.Count
Year = rg.Cells(i, 3)
If startYear <= Year And endYear >= Year Then
' Create new album
Set oAlbum = New clsAlbum
' Add the details
oAlbum.Artist = rg.Cells(i, 1)
oAlbum.Title = rg.Cells(i, 2)
oAlbum.Year = Year
oAlbum.Genre = rg.Cells(i, 4)
oAlbum.sales = rg.Cells(i, 5)
' Add the album objecdt to the collection
coll.Add oAlbum
End If
Next i
Set ReadAlbums = coll
End Function
Private Sub Create_XML()
Dim objDom As DOMDocument
Dim objRootElem As IXMLDOMElement
Dim objMemberElem As IXMLDOMElement
Dim objMemberRel As IXMLDOMAttribute
Dim objMemberName As IXMLDOMElement
Set objDom = New DOMDocument
' Creates root element
Set objRootElem = objDom.createElement("Family")
objDom.appendChild objRootElem
objMemberName.Text = "Some Guy"
' Saves XML data to disk.
objDom.Save ("H:\documents\The Project\XML File\XML_Test3.xml")
End Sub
Sub PivotSourceListAll()
Dim wb As Workbook
Dim ws As Worksheet
Dim wsList As Worksheet
Dim pt As PivotTable
Dim lPT As Long
On Error Resume Next
Set wb = ActiveWorkbook
Set wsList = Worksheets.Add
With wsList
.Range(.Cells(1, 1), .Cells(1, 3)).Value _
= Array("Sheet", "PivotTable", "Source Data")
End With
lPT = 2
For Each ws In wb.Worksheets
For Each pt I
... (truncated)
|
|||
Open this report in the interactive analyzer, or submit your own file for analysis.