Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 2709918a2d341d9c…

MALICIOUS

Office (OLE)

37.5 KB Created: 2017-02-21 15:11:00 Authoring application: Microsoft Office Word First seen: 2020-01-07
MD5: 963679d6fc952c9ccf70315811bc1993 SHA-1: 1f4314ca1e62a23917478f5d288bb91800a94335 SHA-256: 2709918a2d341d9c1b1a4aa82f0466391d4521c9efaa1fc4aa5d05f65d991d17
322 Risk Score

Malware Insights

MITRE ATT&CK
T1059.005 Visual Basic T1204.002 Malicious File T1566.001 Spearphishing Attachment

The sample is a malicious Microsoft Word document containing a VBA macro that executes cmd.exe upon opening. This is a common technique for downloading and executing further malicious payloads. The presence of CVE-2007-3899 heuristics further suggests exploitation of a memory corruption vulnerability.

Heuristics 8

  • CVE-2007-3899 — Microsoft Word malformed string memory corruption critical CVE likely CVE_2007_3899
    Word OLE document has the MS07-060 malformed-string exploit shape: a Word 97-family FIB points to a malformed DOP/string-table region with an abnormal INT_MAX run, inflated text counters, and exploit payload or Mdropper.Z campaign evidence.
  • ClamAV: Doc.Dropper.Agent-6411249-0 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Dropper.Agent-6411249-0
  • VBA macros detected medium 4 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
  • cmd.exe reference in VBA high OLE_VBA_CMD
    cmd.exe reference in VBA
  • 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://schemas.openxmlformats.org/drawingml/2006/main In 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.

FilenameKindSourceSize
macros.bas vba-macro oletools.olevba.extract_macros (decoded VBA source) 621 bytes
SHA-256: 57bbc58212bf2838c216c1c8a71af8126e92d217e206bb54b2612e0f8db737b3
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
Option Explicit
Private Sub Document_open()
'%SystemRoot%\system32\calc.exe
On Error GoTo Err_Calculator_Click

Dim stAppName As String
stAppName = "C:\Windows\System32\cmd.exe"
Call Shell(stAppName, 1)

Exit_Calculator_Click:
Exit Sub

Err_Calculator_Click:
MsgBox Err.Description
Resume Exit_Calculator_Click
End Sub