MALICIOUS
242
Risk Score
Malware Insights
MITRE ATT&CK
T1059.005 Visual Basic
T1566.001 Spearphishing Attachment
T1203 Exploitation for Client Execution
The sample is an OOXML document containing a VBA macro with a Document_Open auto-execution subroutine. This macro attempts to evade detection by checking various system properties and potentially executes further malicious actions via WMI's Win32_Process Create method. The document body and macro code indicate a purpose related to testing sandbox evasion techniques.
Heuristics 7
-
VBA project inside OOXML medium 5 related findings OOXML_VBADocument contains a VBA project — VBA macros present
-
VBA WMI Win32_Process launcher critical OLE_VBA_WMI_PROCESS_CREATEVBA macro builds or references a WMI moniker for Win32_Process and invokes .Create to start a command. This is a high-confidence macro execution chain that often hides the WMI class name through string concatenation or helper functions.
-
Document_Open macro high OLE_VBA_DOCOPENDocument_Open macro
-
CreateObject call high OLE_VBA_CREATEOBJCreateObject call
-
GetObject call high OLE_VBA_GETOBJGetObject 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.microsoft.com/office/word/2010/wordprocessingCanvas In document text (OOXML body / shared strings)
- http://schemas.openxmlformats.org/markup-compatibility/2006In document text (OOXML body / shared strings)
- http://schemas.openxmlformats.org/officeDocument/2006/relationshipsIn document text (OOXML body / shared strings)
- http://schemas.openxmlformats.org/officeDocument/2006/mathIn document text (OOXML body / shared strings)
- http://schemas.microsoft.com/office/word/2010/wordprocessingDrawingIn document text (OOXML body / shared strings)
- http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawingIn document text (OOXML body / shared strings)
- http://schemas.openxmlformats.org/wordprocessingml/2006/mainIn document text (OOXML body / shared strings)
- http://schemas.microsoft.com/office/word/2010/wordmlIn document text (OOXML body / shared strings)
- http://schemas.microsoft.com/office/word/2012/wordmlIn document text (OOXML body / shared strings)
- http://schemas.microsoft.com/office/word/2010/wordprocessingGroupIn document text (OOXML body / shared strings)
- http://schemas.microsoft.com/office/word/2010/wordprocessingInkIn document text (OOXML body / shared strings)
- http://schemas.microsoft.com/office/word/2006/wordmlIn document text (OOXML body / shared strings)
- http://schemas.microsoft.com/office/word/2010/wordprocessingShapeIn document text (OOXML body / shared strings)
- https://www.maxmind.com/geoip/v2.1/city/meIn document text (OOXML body / shared strings)
- https://www.maxmind.com/en/locate-my-ip-addressIn document text (OOXML body / shared strings)
- https://www.maxmind.com/geoip/v2.1/city/me�In document text (OOXML body / shared strings)
Extracted artifacts 2
Files carved from inside the sample during analysis.
| Filename | Kind | Source | Size |
|---|---|---|---|
macros.bas |
vba-macro | oletools.olevba.extract_macros (decoded VBA source from OOXML) | 7884 bytes |
SHA-256: ff32278b8f6f392f06a3b165e72f60888baa71152485eb6ad2f2f7d610c6b79f |
|||
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
Private Sub Document_Open()
On Error Resume Next
ActiveDocument.Range.Text = "Pafish for Office Macro v2, by Joe Security" & vbCrLf & vbCrLf & "Includes latest in-the-wild evasion checks. Developed to test and improve sandboxes!" & vbCrLf
If checkISP() Then
Debug.Print "ISP - detect"
Else
Debug.Print "ISP - norm"
End If
If checkMac() Then
Debug.Print "Mac - detect"
Else
Debug.Print "Mac - norm"
End If
If checkFilenameBad() Then
Debug.Print "Name - detect"
Else
Debug.Print "Name - norm"
End If
If checkProc() Then
Debug.Print "Proc - detect"
Else
Debug.Print "Proc - norm"
End If
If checkTasks() Then
Debug.Print "Tasks - detect"
Else
Debug.Print "Tasks - norm"
End If
If checkCores() Then
Debug.Print "Cores - detect"
Else
Debug.Print "Cores - norm"
End If
If checkBios() Then
Debug.Print "Bios - detect"
Else
Debug.Print "Bios - norm"
End If
If checkPnP() Then
Debug.Print "PnP - detect"
Else
Debug.Print "PnP - norm"
End If
If checkRecentDocs() Then
Debug.Print "Recent - detect"
Else
Debug.Print "Recent - norm"
End If
End Sub
Function checkISP() As Boolean
badISP = False
badISPNames = Array("Amazon", "Anonymous", "Blue Coat Systems", "Cisco Systems", "Cloud", "Data Center", "Dedicated", "ESET", "FireEye", "Forcepoint", "Hetzner", "Hosted", "Hosting", "LeaseWeb", "Microsoft", "NForce", "OVH SAS", "Security", "Server", "Strong Technologies", "Trend Micro", "blackoakcomputers", "Datacamp")
Set request = CreateObject("WinHttp.WinHttpRequest.5.1")
request.Open "GET", "https://www.maxmind.com/geoip/v2.1/city/me", False
request.setRequestHeader "Referer", "https://www.maxmind.com/en/locate-my-ip-address"
request.setRequestHeader "User-Agent", "Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0)"
request.setRequestHeader "Host", "www.maxmind.com"
request.send
For Each badName In badISPNames
If InStr(request.responseText, badName) > 0 Then
badISP = True
End If
Next
checkISP = badISP
End Function
Function checkProc() As Boolean
Dim Name As String
Dim Desc As String
badProc = False
badMacNames = Array("vbox", "vmware", "vxstream", "autoit", "vmtools", "tcpview", "wireshark", "process explorer", "visual basic", "fiddler", "qemu", "virtual", "kvm", "xen", "redhat")
Set objWMIService = GetObject("winmgmts:\\.\root\cimv2")
Set colAdapters = objWMIService.ExecQuery("SELECT * FROM Win32_Process")
For Each objAdapter In colAdapters
Name = objAdapter.Name
For Each badName In badMacNames
If InStr(LCase(Name), badName) > 0 Then
badProc = True
End If
Next
Next
checkProc = badProc
End Function
Function checkMac() As Boolean
badMac = False
badMacNames = Array("00:50:56", "00:0C:29", "00:05:69", "80:00:27", "00:1C:42", "00:16:3E")
Set objWMIService = GetObject("winmgmts:\\.\root\cimv2")
Set colAdapters = objWMIService.ExecQuery("Select * from Win32_NetworkAdapter")
For Each objAdapter In colAdapters
MACAddress = objAdapter.MACAddress
For Each badName In badMacNames
If InStr(MACAddress, badName) > 0 Then
badMac = True
End If
Next
Next
checkMac = badMac
End Function
Function checkFilenameBad() As Boolean
... (truncated)
|
|||
vbaProject_00.bin |
vba-project | OOXML VBA project: word/vbaProject.bin | 48640 bytes |
SHA-256: 25d5090e578d63775f40960ea79a8d4390438af29e0ca2d5d10aa2b80d450bc7 |
|||
Open this report in the interactive analyzer, or submit your own file for analysis.